Repository navigation
Stacks and environments, milestone 2: environments in the repo - #27
Open
davidjalbers wants to merge 16 commits into
Open
davidjalbers wants to merge 16 commits into
davidjalbers wants to merge 16 commits into
Conversation
… hostname alone PLX-Stack states the environment file beside the stack with its four keys, the checks it gets, what the platform owes a stack on a prepared host, and that the deployer writes the environment's files. A hostname belongs to one environment, so the path prefix and its record field go; PLX-Ingress states the route as a fragment per environment (PLX-295). Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
…dentials reach The stack playbook resolves an environment's pointers where it runs; the deploy key and the read-only vault token are repository secrets; one token reads the whole vault and whoever can push can read both, with the deferral of a vault per product and its trigger (PLX-295). Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
…stack The stack record and its requirements go: the platform playbook prepares the deploy user, /opt/stacks, the fragment directory and the reload rule, and the stack playbook lays out an environment, allocates its port under a lock and claims its hostname. A deploy key is root on its host, written down with rootless Docker as the deferral and its trigger (PLX-295). Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
The deploy finds a stack's environment by its file, reaches the host the file names, and restores compose.yaml, .env and .env.secret together on failure while the route stays. The inventory flag, the operations repo's checkout, the GitHub App token for it and the deploy-ssh vault item go; the deploy key and the vault token are repository secrets (PLX-295). Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
The environment record's contract goes with the record; the contracts index, the approaches index and PLX-Tenancy no longer name it. The map's § 1.2, § 5.4, § 6.4 and § 7.3 to § 7.7 say an environment is a file beside its stack, and the deferral in § 6.1 names environment files, without renumbering (PLX-295). Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
…hey cover .env holds the values under env, the project name and the port; a variable the compose file interpolates is listed under env, and a secret reaches a container through env_file alone. EnvironmentFile, EnvironmentCoverage, SinglePort and HostnamePort read as the checks of tooling PR 116 do, and the restore, the route and the removal of an environment are pointed at their one home (PLX-295). Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
…s more than the decisions The hostname claim is PLX-Ingress's and binds the deployer as Decisions § 4.5 does; the removal of an environment is PLX-Platform's, the restore and the route on failure PLX-Delivery's. The § 6.1 deferral keeps its trigger, the operations repo's environments are no inventory groups, the deploy key is no platform secret, and the sentences beyond § 5.12 and § 9.8 go (PLX-295). Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
…he default branch host takes an optional user@ and :port, as the maintainer decided on 2026-12-06; the check of HostnamePort says no more than its bullet, and .env names the two bindings it holds. PLX-Updates says plx update lands a version on the repo's default branch, which tooling's PLX-327 makes true (PLX-295). Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
…-environment-files-in-the Environment files in the stack contract, PLX-Environment retired, the trade-offs in writing
…oxy's refusals and the stack playbook's interface Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
… state the secret, wait and first-deploy rules Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
…rigin names Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
…ait, removals, and the pull's condition Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
…-the-pages-follow-the-tools The pages follow the tools of milestone 2
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Milestone 2 of the project "Stacks and environments": the pages for environment files in the stack contract, the platform that prepares a host and knows no stack, and the deploy that reads only its own repo.
It goes with tooling#124, which holds the tools.
Important
What merging starts.
Nothing is published by the merge.
The next step is yours:
mise ship, after both pull requests are merged, cuts the version that carries this.It removes four standard requirements and rewords six; while the Plexus version is
0.xthat needs no major.The release notes are drafted in a comment on PLX-300.
What it holds
PLX-329 is still in Triage (attn
19c899): I filed it and had it done so that the pages do not go tomainbehind their tools; a decline means reverting6f42a96.Requirement names
PLX-Stack/EnvironmentFile,PLX-Stack/EnvironmentParity,PLX-Stack/EnvironmentCoverage,PLX-Stack/HostnamePort,PLX-Stack/PreparedHostPLX-Stack/NoCommittedValuesPLX-Stack/NoCommittedSecretsPLX-Ingress/OneStackPerPrefixPLX-Ingress/OneEnvironmentPerHostnamePLX-Stack/PathPrefix,PLX-Ingress/PrefixInRecordPLX-Platform/StackRecord,PLX-Platform/RecordValuesPLX-Stack/EnvironmentFileReworded under their names:
PLX-Stack/EnvFiles,PLX-Stack/HostDirectory,PLX-Stack/SinglePort,PLX-Delivery/CIVault,PLX-Delivery/OperationsTrunk,PLX-Tenancy/OperationsRepo.To know before merging
shipregeneratespackages/lib/src/standard-index.jsonintoolingfrom these pages.For the maintainer to decide
79ac91:PLX-Stack/Deploysays the deployer MUST runmigratewherever the compose file declares one; the playbook runs it only where the compose file changed. The line is unchanged.PLX-Delivery/CIVault, which no decision names.Readings made without the maintainer, to confirm or correct
hostis required in an environment file;hostname,envandsecretsmay be left out.composeis no environment name, and a file<name>.ymlis refused.hostnameor none has; a stack without one binds no port.NoCommittedValuesis renamed, because plain values are committed by design.PLX-Stack/PreparedHostkeeps its four things; the registry login is prose, not a requirement./healthzfence is described as the snippet's, and whoever can write a fragment is as trusted as the deploy key; prose, not a requirement.birth-onlyis introduced as a kind of born-once file..env.secret.prev(0600) on the host until.env.secretchanges again.Known and recorded, not fixed
host, secrets throughenv_fileonly, no path prefixes, the update's branch).Verification
mise run testata4112aa, run by the coordinator: exit 0. The head ofstacks-2,6f42a96, has the identical tree (0c11911).toolingat61d97daagainst these pages: citations resolve.stacks-2at6f42a96(run 47619045437): green.🤖 Generated with Claude Code