Help us shape the future of Go! Take the 2026 Go Developer Survey

applicationsecretapi

package
v0.4.17 Latest Latest
Warning

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

Go to latest
Published: Sep 29, 2026 License: Apache-2.0 Imports: 12 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type DynamicSecretService

type DynamicSecretService interface {
	CreateDynamic(context.Context, string, []byte) (applicationsecret.Reference, error)
	ReadDynamic(context.Context, string, applicationsecret.Reference) ([]byte, error)
	RotateDynamic(context.Context, string, applicationsecret.Reference, []byte) error
	DeleteDynamic(context.Context, string, applicationsecret.Reference) error
}

DynamicSecretService is the optional application-facing managed-secret extension. The existing named-secret operator contract remains independent.

type Handler

type Handler struct {
	// contains filtered or unexported fields
}

func New

func New(secrets SecretService, ownership OwnershipResolver, rbac *authorization.Service) (*Handler, error)

func (*Handler) ServeHTTP

func (h *Handler) ServeHTTP(w http.ResponseWriter, r *http.Request)

type OwnershipResolver

type OwnershipResolver interface {
	OwnedByTenant(context.Context, string, string) (bool, error)
}

OwnershipResolver proves that an application belongs to the resolved tenant. Implementations must fail closed when ownership is unknown or ambiguous.

type SecretService

type SecretService interface {
	List(context.Context, string) ([]applicationsecret.Metadata, error)
	Set(context.Context, string, string, []byte) error
	Delete(context.Context, string, string) error
}

SecretService is the transport-facing subset of the application secret service.

Jump to

Keyboard shortcuts

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