Sync the self-hosting stack
This commit is contained in:
@@ -44,18 +44,30 @@ stringData:
|
||||
JWT_ACCESS_SECRET: "REPLACE_ME"
|
||||
JWT_REFRESH_SECRET: "REPLACE_ME"
|
||||
|
||||
# WHEN THE VAULT KEY WAS CREATED, as an ISO 8601 timestamp or epoch seconds.
|
||||
# WHEN THE VAULT KEY WAS CREATED, bound to that key. Manual path only: if `01-secret-job.yaml`
|
||||
# mints your key, delete this line with the other `VAULT_*` ones — left here, even as
|
||||
# "REPLACE_ME", it overrides the value the Job wrote beside its key.
|
||||
#
|
||||
# Set it when you mint the key, and never move it afterwards. On Compose this is inferred from the
|
||||
# key file's modification time, which is a good answer on a volume nobody rewrites. Here it is a
|
||||
# wrong one: the kubelet writes a projected Secret into every pod at start, so the mtime is the
|
||||
# POD's age and every pod reports a key created seconds ago however old it is.
|
||||
# The value is the moment you generate the key and the key's fingerprint, one space apart:
|
||||
#
|
||||
# FP=$(printf %s "$VAULT_MASTER_KEY" | sha256sum | cut -c1-16)
|
||||
# echo "$(date -u +%Y-%m-%dT%H:%M:%SZ) sha256:$FP"
|
||||
#
|
||||
# Restoring a key you backed up? Restore the value saved with it, word for word, and never compute
|
||||
# a new one: today's date bound to an old key is the one mistake this line can make dangerous. A
|
||||
# date without the fingerprint, or bound to another key, is ignored.
|
||||
#
|
||||
# On Compose this is inferred from the key file's modification time. Here there is no file: the
|
||||
# api receives the key through `envFrom`, so this line is the only evidence of the key's age.
|
||||
# (Mounting the Secret as a file would not do better — the kubelet writes it into every pod at
|
||||
# start, so its mtime is the POD's age.)
|
||||
#
|
||||
# What that number decides is narrow and serious. An instance with no accounts can have its first
|
||||
# super-admin claimed by whoever reaches the install screen — unless the vault key is old, which
|
||||
# means the database has gone missing from an instance that already existed (a bad restore, a PVC
|
||||
# pointed at the wrong volume) and the claim needs proof of possession instead. Without this line,
|
||||
# that check reads "brand new instance" on exactly the estate it exists to protect.
|
||||
# pointed at the wrong volume) and the claim needs proof of possession instead. Without this line
|
||||
# the age is unknown and the claim always asks for the key, which costs you nothing but its last
|
||||
# characters.
|
||||
VAULT_KEY_CREATED_AT: "REPLACE_ME"
|
||||
|
||||
# `connection_limit` is not optional here, and it is the reason this URL is in the Secret rather
|
||||
|
||||
Reference in New Issue
Block a user