Keep the values of a session's environment out of the Job's spec (a Secret for each session) #52
Loading…
Reference in a new issue
No description provided.
Delete branch "server-secret"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Item 2 of specs-18's request, as the owner chose it ("A"): no value of gc's environment, nor
ROOMCITY_TOKEN, is written into a Job's spec. Stacked on #50 (baseserver-env); after #50 merges, retarget tomain, no conflict expected.ROOMCITY_*. The pod reads it withenvFrom; the container's ownenvisPATHand the paths of mounted files (path_env,ROOMCITY_SECRET_*), which win over the Secret's. The Job owns the Secret (owner reference, set once the Job has its UID), so deleting the Job, asstop, a failed start andkill-objectdo, removes it;DeleteandDeleteObjectalso delete it by name.the server may not make Secrets in the namespace ... (its Role: create, get, update and delete on secrets)as the start's error, and no Job is made. A start that finds the session's Job already there neither overwrites nor removes its Secret.DeleteObject; Forbidden gives the error and no Job; a Job that cannot be made leaves no Secret.GC_DOLT_PASSWORDstays, my judgement: it is no longer in a spec, but bd in the pod reads its credentials from the fileBEADS_CREDENTIALS_FILEnames (the Secret ofroomcity.toml), so a second copy in the session's Secret serves nothing.Lands with the image that needs it: saraksh/kube's Role (roomcity-5e) gets
create,get,update,deleteonsecretsin the namespace, nolist. Of those, this code uses create, update and delete;getis granted as the owner said and not used.Assisted-By: Claude noreply@anthropic.com
b0bd860468f6505a84b0f6505a84b036fbc8226c