Skip to content

Let a private resource be granted to an environment - #184

Merged
vitramir merged 1 commit into
mainfrom
private-resource-environment-principal
Aug 10, 2026
Merged

Let a private resource be granted to an environment#184
vitramir merged 1 commit into
mainfrom
private-resource-environment-principal

Conversation

@vitramir

Copy link
Copy Markdown
Contributor

A sandbox workload matches no existing principal type. It carries no agent-<id> attribute — there is no agent class behind it — and it cannot be a group member, because groups collect users, agents, and apps. Nothing in the access model can name the engineer at a sandbox shell.

PRIVATE_RESOURCE_ACCESS_PRINCIPAL_TYPE_ENVIRONMENT resolves to every workload running that environment, agent workloads and sandboxes alike. It backs onto environment-<id>, the role attribute the Orchestrator already stamps on every workload identity and that egress rule attachments already target — so no new OpenZiti mechanism is involved.

Its principal_id is an Environment id, not an identity id — the first principal here that is a configuration resource rather than an identity — so the field comment says so.

buf lint and buf breaking against main are both clean.

Spec: agynio/architecture#178.

@vitramir
vitramir requested a review from a team as a code owner August 10, 2026 03:30
@github-actions

github-actions Bot commented Aug 10, 2026

Copy link
Copy Markdown

The latest Buf updates on your PR. Results from workflow buf-pr / buf (pull_request).

BuildFormatLintBreakingUpdated (UTC)
✅ passed✅ passed✅ passed✅ passedAug 10, 2026, 3:59 AM

A sandbox workload matches no existing principal type. It carries no agent-<id>
attribute -- there is no agent class behind it -- and it cannot be a group
member, because groups collect users, agents, and apps. Nothing in the access
model can name the engineer at a sandbox shell.

An ENVIRONMENT principal resolves to every workload running that environment,
agent workloads and sandboxes alike.
@vitramir
vitramir force-pushed the private-resource-environment-principal branch from 22c1ec9 to f7e7063 Compare August 10, 2026 03:59
@vitramir
vitramir merged commit db3a147 into main Aug 10, 2026
1 check passed
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