cs-image-system
A plugin-based, configuration-driven system that turns one YAML tree into
infrastructure-as-code for identities, storages, base images and instance
images, and applies it through gates, on AWS, on GCE and on a docker host.
GCE is reached through the Google Cloud family of plugins, which is
released from its own repository
(cs-image-system-google-cloud)
and installed with the [gcloud] extra.
Its purpose is scientific compute: machine images that are correct for a
given HPC model, formally released, whose users log in through Okta
Privileged Access.
Where to start
- docs/DAILY_DRIVER.md — how a person actually uses the system: what must exist first, the first run, making and changing things, what proves what, and what a failure means.
- docs/DESCRIPTION.md — what the system is and how it works, in one read.
- GOALS.md — what it is for and the properties it keeps.
- docs/OPERATIONS.md — the operating manual: runs, the developer workflow, CI, the operator's cycles, the rules.
- docs/CONFIGURATION.md — the configuration reference: every file, every type, every field, one example each.
- docs/DESIGN.md — the design and its rationale.
- docs/GLOSSARY.md — the house words (the bar, the walk, the take, the record, the gate, …), one paragraph each, every term linked to the page that owns it.
- docs/PLUGINS.md — the packages, each with its own README ending in the same four sections: prerequisites, configuration, what it tests, when it fails.
- GOLDEN.md — the pinned emission every change is judged against.
- docs/PARITY.md — how the system and its documentation can diverge, and how to check.
- REMINDERS.md — what the operator checks at intervals: the monthly general items and the GCP account's cost housekeeping.
- specs/ — the work in flight: one specification per change, each for a named user, under the constitution.
- ATTIC/ — retired: the former work list, the frozen history and past reviews. Nothing there describes the present, and nothing current takes a fact from it.
The Justfile contract
The Justfile is the single entry point for the build lifecycle. Five
names are reserved, in lifecycle order:
| Target | Does |
|---|---|
init |
Toolchain and every workspace package (uv sync), the pre-commit hook; idempotent |
build |
Every workspace member as sdist + wheel under dist/; no tests |
test |
The fast suite, all blocking: ruff, pyright, the unit tests (the golden included) |
full-test |
test plus the docker-backed modification tests and, when the runtime sessions are present, a headless dry run --all with state query --strict; an absent prerequisite reports SKIPPED |
release |
just release <part|version> [test|pypi]: probe the index, the token and the container daemon, then the bar and the install check (TestPyPI) or full-test (PyPI), bump every version line and pin, lock, build, publish, commit, tag v<version> |
just alone lists every recipe, the contract first. just publish [test|pypi] builds and uploads the version in the tree (TestPyPI by
default; a pushed v* tag makes CI do the same). just cli … runs
the CLI against the reference configuration for the system's own live
proofs; just fixture-live proves the frozen fixture against the real
accounts; just public-safe is the gate that keeps secrets and people
out of anything published. The cloud change cycle (cloud-*,
ci-login-proof, sft-install) is a configuration repository's own
business: its Justfile comes from the release (cs-image-system init-config), and a team runs those recipes from its own repository.
cs-image-system bootstrap is the one-time initialisation of such a
repository as terraform from an interview: the answers to
bootstrap.yaml, the root to generated/bootstrap/, regenerated by every
run and applied by the operator. The manual describes each.
Layout
packages/ holds the uv workspace: the core packages and the plugins,
each with its own README (docs/PLUGINS.md
describes them together). uv tool install cs-image-system installs the core and the plugins marked bare, each
provider's plugins come with the extra marked beside them ([aws],
[gcloud], [docker], [okta]; [all] is every one), and the two
marked never published are workspace-only. The Google Cloud family's
three plugins are listed below too, but they are not in packages/: they
live in its own repository, are released there on a version
line of their own, and the [gcloud] and [all] extras name them by
that line's range, so this workspace's venv does not hold them ("Installing
a release" in docs/OPERATIONS.md says how an
operator installs them). The core (all bare):
- contract — the plugin contract: the protocols a plugin satisfies.
- base — the kit: the base classes, the models, the registry and the run context. With the two terraform libraries below it is the SDK a plugin is written against: each declares what a plugin may use and keeps a version of its own (docs/WRITING_A_PROVIDER.md).
- engine — the engine: the plugin loader, the configuration reader, the resolver, the lifecycle runner and its commands, meta-state, state and the records. No plugin imports it.
- system — the
cs-image-systemCLI. - hashicorp-utils — the terraform library (a library, not a plugin): HCL rendering and the per-run collectors. It depends on the contract and nothing else of the system.
- tofu-roots — the provider-neutral terraform roots every OpenTofu root plugin subclasses (a library, not a plugin).
The plugins, discovered through Python entry points, one package each:
- aws-runtime-plugin — the
awsruntime: profiles, regions, VPCs and subnets.[aws] - gcloud-runtime-plugin — the
gcloudruntime: projects, zones and networks.[gcloud], in the Google Cloud family's own repository - docker-plugin — the
dockerruntime (a host's container daemon), and containers and named volumes on it through OpenTofu's docker provider.[docker] - default-os-plugin — the OS families a base image is built from. bare
- packer-plugin — the one
packerimage builder, which bakes on whichever runtime it is bound to. bare - ansible-plugin — modifications as ansible playbooks. bare
- bash-mod-plugin — modifications as
shell scripts and
ensureitems. bare - okta-opa-plugin — Okta users and
OPA groups.
[okta] - posix-identity-plugin — POSIX groups and users on the machines, with declared ids. bare
- tf-ebs-instance-plugin —
the OpenTofu instance and storage builders for AWS.
[aws] - tf-gcp-plugin — the OpenTofu
instance and storage builders for Google Cloud.
[gcloud], in the Google Cloud family's own repository - tf-s3-state-plugin — the
s3state backend.[aws] - gcs-state-plugin — the
gcsstate backend.[gcloud], in the Google Cloud family's own repository - local-state-plugin — the
localstate backend: a state file on disk. bare - contract-example-plugin —
the
inmemstate backend: the proof that a plugin can be written against the contract and nothing else, never a backend for a real tree. never published: installed with the workspace through the root'sdevgroup, classifiedPrivate :: Do Not Upload. - dummy-plugin — the extension template and test double. never published, the same way.
A tree's Justfile reads the extras it needs from its own type:
words (just extras), and validate names the extra to install when a
declared word's plugin is absent ("Installing a release" in
docs/OPERATIONS.md).
The terraform modules the builders emit calls to ship inside their
plugin's package (packages/<plugin>/src/cs_image_system/<pkg>/tfmodules/,
declared through the cs_image_system.modules entry point);
cs-image-system modules lists them and `cs-image-system modules --write
Licence
Apache-2.0 (LICENSE); every package carries the licence file and declares it in its project metadata.
Metadata
Release files for cs-image-system 0.1.12
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | Provenance | Actions |
|---|---|---|---|---|
| cs_image_system-0.1.12.tar.gz | 15.7 kB | Without provenance | Details for cs_image_system-0.1.12.tar.gz |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Actions Reset |
|---|---|---|---|---|
| cs_image_system-0.1.12-py3-none-any.whl | Python 3 | none | any | Details for cs_image_system-0.1.12-py3-none-any.whl |
Total release size: 28.2 kB
Release files / cs_image_system-0.1.12.tar.gz
| Download URL | cs_image_system-0.1.12.tar.gz |
|---|---|
| Size | 15.7 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
ae50c632e150158dcce46a5645b7b75fbf0a83470f767b7baa0829c84d5183a1
|
|
BLAKE2b-256 checksum How to use checksums |
449a8dfd51ce622fa3cf5b9d6b5c49c8f57bc624ceb516b876ad72b69433aa27
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
uv/0.12.18 {"installer":{"name":"uv","version":"0.12.18","subcommand":["publish"]},"python":null,"implementation":{"name":null,"version":null},"distro":{"name":"macOS","version":null,"id":null,"libc":null},"system":{"name":null,"release":null},"cpu":null,"openssl_version":null,"setuptools_version":null,"rustc_version":null,"ci":null}
|
Release files / cs_image_system-0.1.12-py3-none-any.whl
| Download URL | cs_image_system-0.1.12-py3-none-any.whl |
|---|---|
| Size | 12.5 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
e251d671576403f54d4c27ba95b2c499936aae015787782f36270756f2a74fe2
|
|
BLAKE2b-256 checksum How to use checksums |
fa17aaddc7a11e26299fd88c99860a1ce5fc983441d905270eb31e6af0132e58
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
uv/0.12.18 {"installer":{"name":"uv","version":"0.12.18","subcommand":["publish"]},"python":null,"implementation":{"name":null,"version":null},"distro":{"name":"macOS","version":null,"id":null,"libc":null},"system":{"name":null,"release":null},"cpu":null,"openssl_version":null,"setuptools_version":null,"rustc_version":null,"ci":null}
|
Security for cs-image-system 0.1.12
Provenance
Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.
No provenance found
None of the files in this release were uploaded with provenance metadata.
A note on package security
PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.
To learn more about protecting yourself from malicious actors, visit our package security documentation.