Documentation
¶
Overview ¶
Package keymanager orchestrates DEK lifecycle operations using envelope encryption.
Index ¶
- type Manager
- func (m *Manager) ActiveKeyVersion(ctx context.Context, scope, scopeID string) (int, error)
- func (m *Manager) CreateKey(ctx context.Context, scope, scopeID string) (int, error)
- func (m *Manager) DestroyKeys(ctx context.Context, scope, scopeID string) error
- func (m *Manager) RevokeKeys(ctx context.Context, scope, scopeID string) error
- func (m *Manager) RotateKey(ctx context.Context, scope, scopeID string) (int, error)
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Manager ¶
type Manager struct {
// contains filtered or unexported fields
}
Manager coordinates DEK creation, rotation, revocation, and destruction.
func (*Manager) ActiveKeyVersion ¶
ActiveKeyVersion returns the version number of the active key for the scope.
func (*Manager) CreateKey ¶
CreateKey generates a new DEK for the given scope, encrypts it with the active system key, and stores it at version 1. Returns ErrKeyExists if the scope already has an active key.
func (*Manager) DestroyKeys ¶
DestroyKeys permanently removes all keys for the scope.
func (*Manager) RevokeKeys ¶
RevokeKeys marks all keys for the scope as revoked, except the highest version. Use DestroyKeys to permanently remove all keys including the active one.
Click to show internal directories.
Click to hide internal directories.