Documentation
¶
Index ¶
Constants ¶
SharedSecretKeyRedisKey is the Redis key under which the auto-provisioned SERVER_SECRET_KEY is stored so every replica encrypts vault material and verifies admin-plane JWTs with the same secret.
Variables ¶
This section is empty.
Functions ¶
func ResolveSharedSecretKey ¶ added in v0.18.0
func ResolveSharedSecretKey(ctx context.Context, rdb *redis.Client, logger *slog.Logger) (string, error)
ResolveSharedSecretKey returns a base64-encoded secret shared across replicas via Redis. It returns the stored secret when present; otherwise it generates one and stores it with SETNX so concurrent replicas converge on a single value instead of each minting with its own ephemeral secret.
Types ¶
Click to show internal directories.
Click to hide internal directories.