This is the multi-page printable view of this section. Click here to print.

Return to the regular view of this page.

Tf

Terraform config

    userpass.tf contains the explicit user list, initially only simeonwarrenbot. It generates a stable 72-character password for each selected user and stores the username/password at secrets/alwaldend.com/users/<username>/userpass before updating that login. Users and the users group receive no storage grant. No deny rules are added.

    The existing simeonwarren entity receives exact data/metadata read access to secrets/alwaldend.com/users/simeonwarrenbot/userpass. This grants no writes, namespace listing, or sibling reads. The infrastructure role can manage only selected userpass entries, including provider-required metadata read/update, without metadata deletion.

    The account’s existing alias and token policy settings are preserved. Unchanged configuration retains the generated password. Vault cannot return userpass passwords for drift detection; out-of-band changes require managed rotation. Sensitive state remains in the existing Vault backend. Do not export it or enable debug logging. KV removal soft-deletes the entry and retains versions. The deployment verification records the authorized apply and live access checks.

    This root manages Vault’s PKI and SSH issuers. Public snapshots are owned and refreshed independently by data/ssl/alwaldend.com/tf and data/ssh/tf; this root does not write them.

    The removed blocks in outputs.tf retire the four former local_file exports with destroy = false. A later authorized apply forgets those state entries without deleting their files. No state migration or Vault operation is performed merely by moving the checked-in snapshots.

    Missing DNS-owner AppRoles compose the existing reusable AppRole module with an owner-specific DNS policy in approles/<name>/. DNS access grants read-only access to the existing provider credentials for the owner’s views. Existing component identities receive these policies through their existing module declarations.

    DNS-only group membership adds no policies. These identities retain their own state and named shared-secret access without joining the general infrastructure AppRole group or receiving cloud provisioning, SSH, or PKI permissions.

    The operator bootstrap membership follows the existing component pattern. An authorized Vault apply must create the roles and policies before their DNS stages can authenticate; source validation does not establish deployed access. Follow the DNS migration for the coordinated cutover and the AppRole bootstrap procedure when distinguishing missing deployment from insufficient operator access.

    The Flux project owns its AppRoles and related policies. Shared Vault resolves the Flux identities by name for cross-component grants.

    The Vast infrastructure role declares access to only src_infra_image_gen/vastai in addition to its existing namespace. The policy grants data lifecycle operations and exact metadata read/delete access, with no sibling or component-state access. It lets the team root deliver and later remove the generated key using its own identity.

    The image-generation role owns its own KV and state subtree. Its operator member can bootstrap the AppRole and browse that namespace in Vault. List-only permissions on exact metadata ancestors support UI navigation without access to other secret values. An additional exact-path metadata read/delete policy lets the component manage and remove all versions of its web-login entry. Its explicit read permission retains metadata access when this exact-path policy takes precedence over the namespace wildcard. It does not join the broad infrastructure AppRole group.

    The legacy personal image-generation grant was removed through a reviewed scoped apply on 2026-11-10. The replacement role and delivery grant were then deployed under the user’s credential-only authorization; no rental was created. The component receipt records the operation. The existing personal user role and its browser access are independent and remain unchanged.