A session's pod gets the environment gc set for the agent #50
Loading…
Reference in a new issue
No description provided.
Delete branch "server-env"
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 1 of specs-18's request for 0.3.3, and the part of item 2 that needs no decision.
guestfailed every start with "Configuration value not found: GOOSE_PROVIDER" because onlyGC_*of gc's start environment reached the Job.sc.Env: the supervisor's variables and the workspace's, provider's and agent'senv, merged by gc, per gc's reference "Session environment"), less what a pod has of its own:PATH,HOME,USER,LOGNAME,SHELL,PWD,OLDPWD,TMPDIR,TMP,TEMP,HOSTNAME,TERM, and by prefixXDG_andKUBERNETES_. It is a list of what cannot be true in the pod, not of prefixes that gc's next provider falls outside of. A variable that is not a name is left out, and so is an empty value (gc asking for an unset, which a pod that lacks it satisfies). What the server sets (ROOMCITY_*) wins, and aROOMCITY_*in gc's environment (the supervisor'sROOMCITY_RUNTIME_URL) is left out.GC_DOLT_PASSWORD, a secret gc itself sets, is not written into the Job's spec: held back by its full name, as specs-18 decided, not by a pattern. bd in the pod reads its credentials from the fileBEADS_CREDENTIALS_FILEnames (#42). The start logs once, by name and never by value, what it left out.ROOMCITY_TOKENof someone else's andGC_DOLT_PASSWORDyields a Job spec that has the provider's and has none of the others, no value of the secret anywhere in it, and a log that names what was left out.Item 2 as a whole (any secret value gc passes,
ROOMCITY_TOKENamong them, kept out of the Job's spec) waits for the owner: per-session Secret read withenvFrom, which grants the server create/get/update/delete on Secrets of its namespace (recommended by me and by specs-18), or a rule by name, which specs-18 ruled out. It will be its own pull request, with saraksh/kube's Role.Not covered, and I did not look at: variables the supervisor sets that name its disk besides those above (
CITY_*of the supervisor's start script, for one). They are passed; none broke a start so far.Assisted-By: Claude noreply@anthropic.com
Read at
2b43753: the suite is green here under-race,internal/operateandinternal/kubeten times withGOMAXPROCS=1. The list agrees with what gc sends (ProviderProcessPassthroughEnvin internal/processenv/provider.go:PATH,HOME,USER,LOGNAME,TZ, the locale, twoXDG_directories, a few Claude Code settings, the provider credentials of gc's own environment, thenGC_*and the configuredenv). gc does not send its whole environment, so the supervisor'sCITY_*never arrive and the description's last paragraph has nothing to worry about.One variable before it merges: the locale. gc sends
LANG=en_US.UTF-8whenever its own environment names none, which is the case in the city's pod, and the image has no such locale (locale -ain a session's pod:C,C.utf8,POSIX;LANGis unset there today). Passed on, it leaves the pod in the C locale as before and adds a warning to every perl run in the agent's shell, tried in the runninghostpod:Which locales exist is the image's, so
LANG,LANGUAGEandLC_*belong with what the pod has of its own, with a line in the test. Add it as a commit on top, so that #52 keeps its base.A small one: the log line says "that the pod has of its own" and its list also carries the known secret and the names that are no names.