Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
24 commits
Select commit Hold shift + click to select a range
2269034
feat: migrate from device roles to capabilities
vireshnavalli Jul 17, 2026
589e1bc
chore: updated role to supported deployment type
Jul 21, 2026
ec3083b
chore: added print to debug capabilities
sanjujunnuthula Jul 22, 2026
d9606cd
chore: updated capabilities deployment type for compose and helm
sanjujunnuthula Jul 22, 2026
5642430
chore: added log to check devices listing
sanjujunnuthula Jul 22, 2026
66d5b62
chore: added log to check devices listing
sanjujunnuthula Jul 22, 2026
360f9f2
chore: added log to list the device
sanjujunnuthula Jul 23, 2026
53d2dde
chore: added devices log to check the deployment type
sanjujunnuthula Jul 23, 2026
1b70b2f
chore: removed devices listing logs
sanjujunnuthula Jul 23, 2026
66e7f03
chore: updated capabilities file
sanjujunnuthula Jul 24, 2026
a645aaa
chore: updated capabilities file
sanjujunnuthula Jul 24, 2026
e4ba753
fix(scripts): fixes setting correct capabilities for device
spulkit138 Jul 24, 2026
89fc1b4
chore(scripts): adds debug log for printing all devices
spulkit138 Jul 24, 2026
db0d8d6
chore(scripts): remove useless debug log
spulkit138 Jul 24, 2026
9ba217b
chore: updated deployment type log
sanjujunnuthula Jul 24, 2026
ad53708
chore: updated deployment type log
sanjujunnuthula Jul 24, 2026
95ea57f
fix(scripts): changes deployment capability after copying
spulkit138 Jul 24, 2026
fed1166
fix(scripts): replaced sed with jq for altering capabilities.json
spulkit138 Jul 24, 2026
12af725
chore(sandbox): regenerates code per latest spec and fixes compile er…
spulkit138 Aug 5, 2026
a2f56d7
fix(device-agent): removes redundant db update while setting desired …
spulkit138 Aug 3, 2026
7753db8
chore: adds fixes to go vulnerabilities
sanjujunnuthula Aug 3, 2026
f81482d
fix: adapted device-agent to use configurable database data directory…
spulkit138 Aug 3, 2026
59f2b7b
chore(sandbox): updates docs with latest terminology
spulkit138 Aug 5, 2026
9a304e9
chore(sandbox): updates codeowners
spulkit138 Aug 5, 2026
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
8 changes: 4 additions & 4 deletions .github/workflows/sandbox-sanity-test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -353,7 +353,7 @@ jobs:
done


- name: WFM-Client (Standalone Cluster) – Start
- name: WFM-Client (Helm-capable device) - Start
working-directory: scripts
run: |
sudo -E bash ./device-agent.sh k3s start-k3s
Expand All @@ -370,7 +370,7 @@ jobs:
sleep 2
done

- name: WFM-Client (Standalone Device) – Start
- name: WFM-Client (Compose-capable device) - Start
working-directory: scripts
run: |
sudo -E bash ./device-agent.sh docker create-rsa-certs
Expand Down Expand Up @@ -441,7 +441,7 @@ jobs:
(
echo "📋 Deploying to K3s..."
PACKAGE_ID=$(sudo -E bash ./wfm-cli.sh get-package-id-by-name "${APP_PACKAGE_NAME_K3S}" | tail -n1)
DEVICE_ID=$(sudo -E bash ./wfm-cli.sh get-device-id-by-role "Standalone Cluster" | tail -n1)
DEVICE_ID=$(sudo -E bash ./wfm-cli.sh get-device-id-by-deployment-type "helm" | tail -n1)

if [ -z "$PACKAGE_ID" ] || [ "$PACKAGE_ID" = "null" ] || [ -z "$DEVICE_ID" ] || [ "$DEVICE_ID" = "null" ]; then
echo "❌ K3s: Invalid IDs"
Expand Down Expand Up @@ -474,7 +474,7 @@ jobs:
(
echo "📋 Deploying to Docker..."
PACKAGE_ID=$(sudo -E bash ./wfm-cli.sh get-package-id-by-name "${APP_PACKAGE_NAME_DOCKER}" | tail -n1)
DEVICE_ID=$(sudo -E bash ./wfm-cli.sh get-device-id-by-role "Standalone Device" | tail -n1)
DEVICE_ID=$(sudo -E bash ./wfm-cli.sh get-device-id-by-deployment-type "compose" | tail -n1)

if [ -z "$PACKAGE_ID" ] || [ "$PACKAGE_ID" = "null" ] || [ -z "$DEVICE_ID" ] || [ "$DEVICE_ID" = "null" ]; then
echo "❌ Docker: Invalid IDs"
Expand Down
1 change: 1 addition & 0 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -1 +1,2 @@
.buildx-cache/
vendor
12 changes: 6 additions & 6 deletions CODEOWNERS
Original file line number Diff line number Diff line change
@@ -1,14 +1,14 @@
# Default owners for everything
* @singhmj-1 @vireshnavalli
* @singhmj-1 @vireshnavalli @spulkit138

# Infra and scripts directory (CI/CD)
/scripts/ @nitparihar @sanjujunnuthula
/.github/ @nitparihar @sanjujunnuthula
/helmchart @nitparihar @sanjujunnuthula
/docker-compose @nitparihar @sanjujunnuthula
/scripts/ @nitparihar @sanjujunnuthula @rishabhrai9616
/.github/ @nitparihar @sanjujunnuthula @rishabhrai9616
/helmchart @nitparihar @sanjujunnuthula @rishabhrai9616
/docker-compose @nitparihar @sanjujunnuthula @rishabhrai9616

# All testing directories
**/testing/ @nitparihar @sanjujunnuthula
**/testing/ @nitparihar @sanjujunnuthula @rishabhrai9616

# Root LICENSE file
/LICENSE @ajcraig @phil-abb
2 changes: 2 additions & 0 deletions docker-compose/config/config.yaml
Original file line number Diff line number Diff line change
@@ -1,6 +1,8 @@
logging:
# Log level (e.g., DEBUG, INFO, WARN, ERROR, FATAL)
level: DEBUG
database:
dataDir: "/var/lib/margo/device-agent/data" # directory where databse data is stored.

# The device's root identity/attestation used for onboarding/registration of this device client with WFM (for auto-onboarding).
deviceRootIdentity:
Expand Down
2 changes: 1 addition & 1 deletion docker-compose/docker-compose.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@ services:
- ./config/device-ecdsa.key:/config/device-ecdsa.key
- ./config/device-ecdsa.crt:/config/device-ecdsa.crt
- ./config/ca-cert.pem:/config/ca-cert.pem
- ./data:/data
- ./data:/var/lib/margo/device-agent/data #should be changed to whatever is set as dataDir in config.yaml for device agent
restart: unless-stopped
entrypoint: ["./device-agent"]
command: ["-config", "config/config.yaml"]
Binary file modified docs/margo-architecture.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified docs/overlay-architecture.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
4 changes: 2 additions & 2 deletions docs/setup-guide.md
Original file line number Diff line number Diff line change
Expand Up @@ -7,8 +7,8 @@
| VM Type | Processors(vCPU) | Memory | Storage | Purpose |
|---------|-----------|--------|---------|---------|
| **Main VM (WFM)** | 8 | 16GB | 100GB | Workload Fleet Manager |
| **Device VM 1 (Standalone Cluster)** | 4 | 4-8GB | 50GB | Kubernetes-based device |
| **Device VM 2 (Standalone Device)** | 4 | 4-8GB | 50GB | Docker-based device |
| **Device VM 1 (Helm-capable device)** | 4 | 4-8GB | 50GB | Kubernetes-based device |
| **Device VM 2 (Compose-capable device)** | 4 | 4-8GB | 50GB | Docker-based device |

**Requirements:**
- Ubuntu operating system (**ubuntu-24.04.3-desktop-amd64 or server**) (you can check by doing ```cat /etc/os-release```)
Expand Down
28 changes: 14 additions & 14 deletions go.mod
Original file line number Diff line number Diff line change
Expand Up @@ -8,12 +8,12 @@ require (
github.com/docker/compose/v2 v2.40.2
github.com/docker/docker v28.5.2+incompatible
github.com/go-git/go-git/v5 v5.19.1
github.com/go-playground/validator/v10 v10.14.1
github.com/go-playground/validator/v10 v10.20.0
github.com/google/go-containerregistry v0.20.6
github.com/google/uuid v1.6.0
github.com/kr/pretty v0.3.1
github.com/lestrrat-go/htmsig v1.0.0
github.com/oapi-codegen/runtime v1.1.1
github.com/oapi-codegen/runtime v1.6.0
github.com/stretchr/testify v1.11.1
go.uber.org/zap v1.27.0
gopkg.in/yaml.v2 v2.4.0
Expand Down Expand Up @@ -93,9 +93,9 @@ require (
github.com/chai2010/gettext-go v1.0.2 // indirect
github.com/cloudflare/circl v1.6.3 // indirect
github.com/containerd/console v1.0.5 // indirect
github.com/containerd/containerd v1.7.32 // indirect
github.com/containerd/containerd v1.7.33 // indirect
github.com/containerd/containerd/api v1.10.0 // indirect
github.com/containerd/containerd/v2 v2.2.1 // indirect
github.com/containerd/containerd/v2 v2.2.5 // indirect
github.com/containerd/continuity v0.4.5 // indirect
github.com/containerd/errdefs v1.0.0 // indirect
github.com/containerd/errdefs/pkg v0.3.0 // indirect
Expand All @@ -122,7 +122,7 @@ require (
github.com/fsnotify/fsevents v0.2.0 // indirect
github.com/fvbommel/sortorder v1.1.0 // indirect
github.com/fxamacker/cbor/v2 v2.9.0 // indirect
github.com/gabriel-vasile/mimetype v1.4.2 // indirect
github.com/gabriel-vasile/mimetype v1.4.3 // indirect
github.com/go-errors/errors v1.4.2 // indirect
github.com/go-git/gcfg v1.5.1-0.20230307220236-3a3c6141e376 // indirect
github.com/go-git/go-billy/v5 v5.9.0 // indirect
Expand Down Expand Up @@ -162,11 +162,11 @@ require (
github.com/jonboulle/clockwork v0.5.0 // indirect
github.com/json-iterator/go v1.1.12 // indirect
github.com/kevinburke/ssh_config v1.2.0 // indirect
github.com/klauspost/compress v1.18.4 // indirect
github.com/klauspost/compress v1.18.5 // indirect
github.com/kr/text v0.2.0 // indirect
github.com/lann/builder v0.0.0-20180802200727-47ae307949d0 // indirect
github.com/lann/ps v0.0.0-20150810152359-62de8c46ede0 // indirect
github.com/leodido/go-urn v1.2.4 // indirect
github.com/leodido/go-urn v1.4.0 // indirect
github.com/lestrrat-go/blackmagic v1.0.4 // indirect
github.com/lestrrat-go/dsig v1.0.0 // indirect
github.com/lestrrat-go/option v1.0.1 // indirect
Expand Down Expand Up @@ -256,13 +256,13 @@ require (
go.opentelemetry.io/proto/otlp v1.10.0 // indirect
go.uber.org/multierr v1.11.0
go.yaml.in/yaml/v3 v3.0.4 // indirect
golang.org/x/crypto v0.50.0 // indirect
golang.org/x/net v0.53.0 // indirect
golang.org/x/crypto v0.53.0 // indirect
golang.org/x/net v0.55.0 // indirect
golang.org/x/oauth2 v0.35.0 // indirect
golang.org/x/sync v0.20.0 // indirect
golang.org/x/sys v0.43.0 // indirect
golang.org/x/term v0.42.0 // indirect
golang.org/x/text v0.36.0 // indirect
golang.org/x/sync v0.21.0 // indirect
golang.org/x/sys v0.46.0 // indirect
golang.org/x/term v0.44.0 // indirect
golang.org/x/text v0.38.0 // indirect
golang.org/x/time v0.14.0 // indirect
google.golang.org/genproto/googleapis/api v0.0.0-20260401024825-9d38bb4040a9 // indirect
google.golang.org/genproto/googleapis/rpc v0.0.0-20260401024825-9d38bb4040a9 // indirect
Expand All @@ -282,7 +282,7 @@ require (
k8s.io/kube-openapi v0.0.0-20250910181357-589584f1c912 // indirect
k8s.io/kubectl v0.35.1 // indirect
k8s.io/utils v0.0.0-20251002143259-bc988d571ff4 // indirect
oras.land/oras-go/v2 v2.6.0 // indirect
oras.land/oras-go/v2 v2.6.1 // indirect
sigs.k8s.io/json v0.0.0-20250730193827-2d320260d730 // indirect
sigs.k8s.io/kustomize/api v0.20.1 // indirect
sigs.k8s.io/kustomize/kyaml v0.20.1 // indirect
Expand Down
Loading
Loading