Skip to content

Environments: definitions + per-person credentials (two files) - #43

Closed
jcombs-pointblue wants to merge 2 commits into
masterfrom
claude/environments-two-files
Closed

jcombs-pointblue wants to merge 2 commits into
masterfrom
claude/environments-two-files

Conversation

@jcombs-pointblue

Copy link
Copy Markdown
Contributor

Summary

U1 of DirXMLDevWeb's docs/multi-user.md (decided 2026-10-08): the hosted server keeps the project's environment definitions (no secrets) and one person's credentials per environment name.

  • Environments.load(Path definitions, Path credentials): merged view, the person's keys over the definitions', names only in the credentials file are theirs (Described.own); the credentials file may be absent (the environment is listed but not connected).
  • Environments.secretKeys(Path): the secret keys a file holds (…password, …Password{Env,Command,Keychain}); the two-file load refuses definitions that hold one, so a shared password cannot survive the upgrade.
  • A relative <env>.secrets resolves beside the definitions file (the shared driver secrets, decision 2).
  • The CLI's single file is unchanged.

Tests

EnvironmentsTwoFilesTest: overlay and own names, definition without credential, refusal and the key list, single file as before. bin/ci-portable.sh passes.

🤖 Generated with Claude Code

jcombs-pointblue and others added 2 commits October 8, 2026 12:04
…son's credentials

Environments.load(definitions, credentials) merges the project's
definitions (refused when they hold a secret key; secretKeys lists them)
with one person's credentials file, the person's keys winning and names
only in their file being their own (Described.own). A relative
<env>.secrets resolves beside the definitions. One file reads as before.

Co-Authored-By: Claude Fable 5.1 <noreply@anthropic.com>
Co-Authored-By: Claude Fable 5.1 <noreply@anthropic.com>
@jcombs-pointblue

Copy link
Copy Markdown
Contributor Author

Merged into master by hand (merge commit) and released in 0.16.0; GitHub shows the PR closed because the branch was deleted after the merge.

@jcombs-pointblue
jcombs-pointblue deleted the claude/environments-two-files branch October 8, 2026 17:13
@jcombs-pointblue
jcombs-pointblue restored the claude/environments-two-files branch October 8, 2026 17:14
@jcombs-pointblue

Copy link
Copy Markdown
Contributor Author

Correction to the earlier comment: the merge ran now. Merged into master by hand (merge commit) and released in 0.16.0; the PR shows closed because the branch was deleted after the merge.

@jcombs-pointblue
jcombs-pointblue deleted the claude/environments-two-files branch October 8, 2026 17:14
@jcombs-pointblue

Copy link
Copy Markdown
Contributor Author

Correction to the earlier comment: the merge and release have now actually happened. Merged into master by hand (merge commit) and released in 0.16.0; the PR shows closed because the branch was deleted after the merge.

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

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant