feat: proxy customer container registries - #358
Open
alongubkin wants to merge 10 commits into
Open
Conversation
Greptile SummaryThis PR adds least-privilege remote artifact-registry permissions and a Manager-local OCI broker for customer registries while keeping provider credentials inside the Manager.
Confidence Score: 5/5The PR appears safe to merge. No blocking failure remains.
|
| Filename | Overview |
|---|---|
| crates/alien-manager/src/routes/registry_proxy.rs | Adds the customer OCI broker boundary, signed and target-bound upload continuations, request validation, and redirect-safe credential proxying; the previously reported continuation failures are fixed. |
| crates/alien-manager/src/builder.rs | Wires the customer registry broker into Manager state, disables automatic upstream redirects, and requires an explicit origin-only base URL. |
| crates/alien-core/src/remote_bindings.rs | Extends remote-binding qualification to support remotely accessible artifact registries. |
| crates/alien-permissions/permission-sets/artifact-registry/remote-read-write.jsonc | Defines the constrained data-plane permission set used for remote registry access. |
| crates/alien-cloudformation/src/emitters/aws/artifact_registry.rs | Emits remote ECR access policy resources without granting repository lifecycle operations. |
| crates/alien-terraform/src/emitters/aws/artifact_registry.rs | Adds Terraform-side remote ECR access policy generation using the least-privilege permission set. |
| crates/alien-terraform/src/emitters/gcp/artifact_registry.rs | Adds scoped GCP Artifact Registry access for the remote bindings identity. |
| crates/alien-terraform/src/emitters/azure/artifact_registry.rs | Adds scoped Azure registry role assignment for the remote bindings identity. |
Sequence Diagram
sequenceDiagram
participant OCI as OCI Client
participant Manager as Alien Manager
participant Broker as Customer Registry Broker
participant Registry as Customer Cloud Registry
OCI->>Manager: Authenticate and request customer repository
Manager->>Broker: Authorize repository operation
Broker-->>Manager: Route, registry target, and admission
Manager->>Registry: Forward with Manager-local provider credentials
Registry-->>Manager: Response or upload Location
Manager-->>OCI: Proxied response or signed Manager continuation
OCI->>Manager: Follow signed continuation
Manager->>Broker: Revalidate active session target
Manager->>Registry: Continue upload with local credentials
Reviews (12): Last reviewed commit: "test: qualify customer registries on AWS..." | Re-trigger Greptile
alongubkin
force-pushed
the
alon/alien-459-build-byo-container-registry-stacked
branch
from
August 7, 2026 01:34
1a54ccf to
03aaae5
Compare
alongubkin
force-pushed
the
alon/alien-476-build-byo-onboarding-and-management-experience
branch
from
August 7, 2026 02:15
df56eaf to
1242369
Compare
alongubkin
force-pushed
the
alon/alien-459-build-byo-container-registry-stacked
branch
from
August 7, 2026 02:15
ea4e0ac to
5cf8aea
Compare
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Stacked on #357.
Adds the least-privilege remote Artifact Registry permission set, Remote Bindings qualification, and the Manager-local OCI broker boundary. Provider credentials remain local and repository lifecycle stays with the management identity.
Validated locally: