Fine-grained Access Control
Images pushed to nscr.io are shared with your workspace by default, allowing for frictionless collaboration. Namespace supports fine-grained access controls, allowing you to flexibly restrict or grant image access. Learn more about RBAC support under workspace access controls. Images can be shared publicly usingnsc registry share or the ContainerRegistryService API.
Shared images are accessible via a public.nscr.io URL and can optionally have an expiration date.
Expiration policy
Container images stored in nscr.io can be associated with an expiration policy. Once an image is expired, it is automatically removed and no longer consumes any storage. This feature enables ephemeral container images, ideal for testing workflows. Expiration policies can be configured at two levels: a default policy that applies to all repositories, or a per-repository policy that overrides the default for a specific repository. Seensc registry policy for details.
Programmatic Access
You can access the Container Registry directly through HTTP calls. To authorize incoming traffic, it employs Basic access authentication. The expected username istoken, while the password is a workspace access token.
That is, the registry expects an Authorization header with the content Basic base64(token:access_token).
You can generate an access token using our CLI: