Skip to content

platform: read ownership labels under agents.nanohype.dev/* with legacy fallback#33

Merged
stxkxs merged 1 commit into
mainfrom
platform-audit-labels
Jun 16, 2026
Merged

platform: read ownership labels under agents.nanohype.dev/* with legacy fallback#33
stxkxs merged 1 commit into
mainfrom
platform-audit-labels

Conversation

@stxkxs

@stxkxs stxkxs commented Jun 16, 2026

Copy link
Copy Markdown
Member

Companion to eks-agent-platform#43. The operator migrated its k8s labels eks-agent-platform/*agents.nanohype.dev/*. cloudgov's platform audit reads those ownership labels (platform/tenant/persona) off each tenant namespace to flag conformance gaps — it's a reader, not a selector, so it degrades gracefully, but it'd emit false "label missing" findings until updated.

Now it reads the canonical agents.nanohype.dev/* keys with a fallback to the legacy eks-agent-platform/* keys, so the audit is correct against both a migrated and a not-yet-migrated cluster. The check became an ordered slice (deterministic output) and the remediation text points at the new prefix. Added a test asserting a legacy-labeled namespace stays conformant.

Verified: task build + go vet + gofmt clean · go test ./internal/platform green · coverage 83.2% (floor 80%).

…cy fallback

The eks-agent-platform operator migrated its k8s labels from eks-agent-platform/*
to the resource-tagging standard's agents.nanohype.dev/* prefix. The platform
audit reads those ownership labels off each tenant namespace (platform / tenant /
persona) to flag conformance gaps — so it now reads the canonical
agents.nanohype.dev/* keys, falling back to the legacy eks-agent-platform/* keys
so the audit is correct against both a migrated and a not-yet-migrated cluster.

The check is now an ordered slice (deterministic finding output) keyed on the
canonical label; the remediation text points at agents.nanohype.dev. Adds a test
asserting a namespace carrying only the legacy labels stays conformant.

Verified: task build + go vet + gofmt clean; go test ./internal/platform green;
internal/platform coverage 83.2% (floor 80%).
@stxkxs stxkxs merged commit ea47ef8 into main Jun 16, 2026
4 checks passed
@stxkxs stxkxs deleted the platform-audit-labels branch June 16, 2026 01:22
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant