Files
Alano Terblanche 0c2d0f700c vendor: github.com/docker/secrets-engine/client v0.2.2
Add the Docker secrets engine client, used to read the Docker Desktop session for Docker Hub. It brings in github.com/docker/secrets-engine/x v0.8.5 and connectrpc.com/connect v1.19.1.

The client module requires go1.26.10, which raises the go directive in vendor.mod from 1.26.0.

Signed-off-by: Alano Terblanche <18033717+Benehiko@users.noreply.github.com>
2026-10-22 11:10:40 +02:00

70 lines
3.1 KiB
Go

// Copyright 2025-2026 Docker, Inc.
//
// Licensed under the Apache License, Version 2.0 (the "License");
// you may not use this file except in compliance with the License.
// You may obtain a copy of the License at
//
// http://www.apache.org/licenses/LICENSE-2.0
//
// Unless required by applicable law or agreed to in writing, software
// distributed under the License is distributed on an "AS IS" BASIS,
// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
// See the License for the specific language governing permissions and
// limitations under the License.
package realms
import "github.com/docker/secrets-engine/x/secrets"
// 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>`.
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/**")
)
var (
// DockerHubAuthenticationMetadata holds one profile entry per signed-in
// Docker Hub account, plus a default entry duplicating the default
// account's profile.
DockerHubAuthenticationMetadata = secrets.MustParsePattern("docker/auth/metadata/hub/**")
// DockerHubStagingAuthenticationMetadata is the staging variant of
// [DockerHubAuthenticationMetadata].
DockerHubStagingAuthenticationMetadata = secrets.MustParsePattern("docker/auth/metadata/hub-staging/**")
)
var (
// DockerMCPDefault is the default realm used for MCP related secrets
DockerMCPDefault = secrets.MustParsePattern("docker/mcp/**")
// DockerMCPOAuth is the realm used for all MCP OAuth credentials retrieved by Docker.
DockerMCPOAuth = secrets.MustParsePattern("docker/mcp/oauth/**")
// DockerMCPOAuthDCR is the realm used to hold Dynamic Client Registered (DCR)
// OAuth configurations for supported MCP servers.
DockerMCPOAuthDCR = secrets.MustParsePattern("docker/mcp/oauth-dcr/**")
)
var (
// DockerSandbox is the default realm used for Sandbox related secrets
DockerSandbox = secrets.MustParsePattern("docker/sandbox/**")
// DockerSandboxOAuth is the realm used for all Sandbox OAuth credentials
// such as third-party tokens - this does not store the Docker Auth tokens.
DockerSandboxOAuth = secrets.MustParsePattern("docker/sandbox/oauth/**")
)
var (
// SecretsEngine is the default realm used for secrets-engine related secrets.
SecretsEngine = secrets.MustParsePattern("docker/secrets-engine/**")
// SecretsEnginePlugins is the realm used to store credentials and configuration for secrets-engine plugins.
SecretsEnginePlugins = secrets.MustParsePattern("docker/secrets-engine/plugins/**")
)