Skip to content

Add environment variable for system user name - #6137

Open
VPS-Obi wants to merge 1 commit into
mainfrom
claude/system-user-env-var-f65rjc
Open

Add environment variable for system user name#6137
VPS-Obi wants to merge 1 commit into
mainfrom
claude/system-user-env-var-f65rjc

Conversation

@VPS-Obi

@VPS-Obi VPS-Obi commented Aug 6, 2026

Copy link
Copy Markdown
Contributor

The system user name was hardcoded to system-user in multiple places. This led to errors when changing the user name (e.g., from vivid to system-user). For instance, in a project of ours the name was updated for the AccessLogModule.shouldLogRequest option, but not for the user itself, resulting in all site build requests being logged.

I therefore suggest to make the user name an environment variable and use the variable throughout. Alternatively, we could move the user name to comet-config.json. Personally, I'd prefer an environment variable though, even if we don't plan on changing the user name for different environments.

https://claude.ai/code/session_01Ci3aLTesK1cDDTVJDe4Xgb

The system user name was hardcoded in the demo API (`SYSTEM_USER_NAME`) and
again in the demo site's basic auth headers. Since both sides must agree on
the same name, it now comes from a shared environment variable
(`BASIC_AUTH_SYSTEM_USER_NAME` for the API, `API_BASIC_AUTH_SYSTEM_USER_NAME`
for the site), mirroring how the system user password is already handled.

Co-Authored-By: Claude Opus 5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01Ci3aLTesK1cDDTVJDe4Xgb
@VPS-Obi VPS-Obi self-assigned this Aug 6, 2026
@VPS-Obi VPS-Obi changed the title Make system user credentials configurable Add environment variable for system user name Aug 6, 2026
@VPS-Obi
VPS-Obi marked this pull request as ready for review August 6, 2026 13:47
@VPS-thodax VPS-thodax added the needs-starter-pr Change in Demo that needs to be changed in Starter as well. label Aug 7, 2026
@nsams

nsams commented Aug 7, 2026

Copy link
Copy Markdown
Member

I would not do that, this is nothing we will change again as we did in the past.

@VPS-Obi

VPS-Obi commented Aug 13, 2026

Copy link
Copy Markdown
Contributor Author

I would not do that, this is nothing we will change again as we did in the past.

"the only constant in life is change".

@nsams do you have a strong opinion against it?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

needs-starter-pr Change in Demo that needs to be changed in Starter as well.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

8 participants