realms

package
v0.0.20-do.not.use Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Feb 17, 2026 License: Apache-2.0 Imports: 1 Imported by: 1

Documentation

Overview

Package realms keeps track of known Docker realms

Realms do not define a permission model and should not be used as such! Realms are simply contracts that clients may use to query a set of secrets. Once a realm has been established it MUST not change as clients would treat the realm as a contract. Clients may pin themselves to a specific realm or a group of realms.

Examples:

`docker/` is a realm for all known Docker secrets.
`docker/auth` is a realm for all known Docker Auth secrets.

Index

Constants

This section is empty.

Variables

View Source
var (
	DockerHubAuthentication             = secrets.MustParsePattern("docker/auth/hub/**")
	DockerHubStagingAuthentication      = secrets.MustParsePattern("docker/auth/hub-staging/**")
	DockerRegistryAuthentication        = secrets.MustParsePattern("docker/auth/registry/docker/**")
	DockerRegistryStagingAuthentication = secrets.MustParsePattern("docker/auth/registry/docker-staging/**")
)

Docker realms all start with `docker/` as the prefix.

Authentication flows done by the Docker CLI, Docker Desktop and Docker related products must go through `docker/auth`.

Docker Hub authentication (browser based OAuth login) will be prefixed with `docker/auth/hub/<username>`.

Docker Registry authentication will be prefixed with `docker/auth/registry/docker/<username>`.

View Source
var (
	// DockerHubAuthenticationMetadata is a pointer to the default user signed in to Docker
	DockerHubAuthenticationMetadata = secrets.MustParsePattern("docker/auth/metadata/hub/**")
	// DockerHubStagingAuthenticationMetadata is a pointer to the default staging user signed in to Docker
	DockerHubStagingAuthenticationMetadata = secrets.MustParsePattern("docker/auth/metadata/hub-staging/**")
)

Functions

This section is empty.

Types

This section is empty.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL