From b542a9c80b48d4c38d1c502cfaab1c8af8cf6fec Mon Sep 17 00:00:00 2001 From: Eric Rakestraw Date: Fri, 4 Dec 2026 19:18:45 +0000 Subject: [PATCH] Use SSH for workspace Git sources --- docs/orientation.md | 4 +- .../0030-upstream-release-binaries.md | 13 +++- docs/roadmap/implementation.md | 78 +++++++++++++++---- docs/roadmap/mvp.md | 4 +- docs/status.md | 6 +- workspace.yml | 32 ++++---- 6 files changed, 97 insertions(+), 40 deletions(-) diff --git a/docs/orientation.md b/docs/orientation.md index 73e6dcb..729adf1 100644 --- a/docs/orientation.md +++ b/docs/orientation.md @@ -33,7 +33,9 @@ Relevant upstream repositories are siblings of this directory: public dependency; catalog selection is optional. Use [the workspace inventory](../workspace.yml) as the complete -machine-readable inventory of paths and remotes. +machine-readable inventory of paths and remotes. Git access uses SSH on port +22222 and requires existing controller credentials; managed hosts also need SSH +access for asset checkouts. Release downloads and browser links use HTTPS. ## Sources of Truth diff --git a/docs/roadmap/features/0030-upstream-release-binaries.md b/docs/roadmap/features/0030-upstream-release-binaries.md index a695288..4a9cd3e 100644 --- a/docs/roadmap/features/0030-upstream-release-binaries.md +++ b/docs/roadmap/features/0030-upstream-release-binaries.md @@ -75,7 +75,14 @@ Assets use `--linux-`, distributed as raw executables. Notarius v0.10.2's published artifacts follow this contract. Construct versioned URLs without querying a moving `latest` release. -Canonical repository URLs use `https://forge.maximumdirect.net/eric/.git`. +Canonical Git clone/fetch/push URLs use +`ssh://git@forge.maximumdirect.net:22222/eric/.git`. Workspace repository +remotes, Git dependency manifests, asset Git defaults and subtree operations +use this SSH form. Binary/checksum downloads, APIs, browser-facing metadata +and documentation links retain HTTPS on Forge. Controller-side Git operations +and managed-host asset checkouts each require SSH access from their execution +host, using existing operator-provided authentication. + The domain change applies to repository, documentation and release locations; it does not change Ansible namespaces, application configuration endpoints, Go module/import identities or immutable historical tags and artifacts. Current @@ -151,7 +158,9 @@ there is no new shared installer role or custom module. - Active repository/release URLs in the changed Ansible repositories and workspace inventory/tooling use `forge.maximumdirect.net`. Public dependency installation, subtree import and binary downloads use the canonical host - directly, rather than depending on redirects from the old hostname. + directly, rather than depending on redirects from the old hostname. Git + operations use SSH; HTTP resources retain HTTPS. Anonymous HTTPS Git access + is not an acceptance requirement. ## Dependencies and Release Availability diff --git a/docs/roadmap/implementation.md b/docs/roadmap/implementation.md index f1079ae..168c91f 100644 --- a/docs/roadmap/implementation.md +++ b/docs/roadmap/implementation.md @@ -41,11 +41,20 @@ owns scope, rationale and acceptance criteria. by collection and workspace commits. Push only the relevant `main` branches; no force push, new tag, Gitea release, uploaded artifact or rewritten history. This planning pass performs none of that publication. -- Use existing Git authentication. The canonical origin stays HTTPS on Forge; - an existing authenticated SSH push transport may be used without changing - the public fetch/install URLs. Never display credentials. If publication is - unavailable, retain validated commits and report the public integration step - that remains unsatisfied; do not substitute sibling paths or moving refs. +- Use `ssh://git@forge.maximumdirect.net:22222/eric/.git` for Git + clone/fetch/push URLs, role dependency sources, workspace inventory remotes, + asset repository defaults and subtree operations. Use explicit URI syntax + because Forge SSH uses port 22222. Retain HTTPS for binary/checksum downloads, + APIs, browser-facing metadata and documentation links. +- Use existing SSH authentication and host configuration. Role/collection + installation and subtree operations need SSH access from the controller; + campaign/prompt/catalog Git tasks need SSH access from the managed host. + Document these requirements without adding credential provisioning to this + feature. Never display credentials. Here, public source availability means + the commits are published in the canonical repositories and accessible over + SSH; anonymous HTTPS Git access is not a validation gate. If publication is + unavailable, retain validated commits and report the unsatisfied integration + step; do not substitute sibling paths or moving refs. - Local integration may modify the authorized Ubuntu test host and use synthetic credentials. No controller provisioning, `pipeline-dnd` deployment, live provider calls, S3 transfers or Narratio preflight/run is in scope. @@ -154,8 +163,13 @@ plugin. Use the application name in place of ``: ## Stage 1: Establish Canonical Workspace Repository Locations -**Completed:** Workspace inventory and owned origins use Forge; venv tools, -inventory parsing, status script, and whitespace validation passed. +**Completed:** Original Forge hostname migration, venv tools, inventory +parsing, status script and whitespace validation passed. The subsequent SSH +transport revision requires the focused follow-up described under Stage 7; +completed application-role stages do not need to be repeated. + +**SSH follow-up completed:** Inventory and eight owned origins use canonical SSH; +workspace tooling, inventory parsing, status and whitespace checks passed. ### Required Policy Review @@ -170,12 +184,12 @@ Inspect the existing planning edits and preserve unrelated work. ### Required Changes - Change every repository `remote` in `workspace.yml`, including read-only - reference entries, from the old Gitea hostname to `forge.maximumdirect.net`. - Preserve paths, categories, names and branches. Update current workspace + reference entries, to `ssh://git@forge.maximumdirect.net:22222/eric/.git`. + Preserve repository paths, categories, names and branches. Update current workspace orientation, README, tooling and canonical-source documentation where needed. Historical completed roadmap/release evidence does not need a bulk rewrite. - Set local `origin` fetch URLs for the workspace and the seven owned Ansible - repositories to their corresponding canonical HTTPS URL. Preserve unrelated + repositories to their corresponding canonical SSH URL. Preserve unrelated remotes and authentication. Do not modify origins in application, content or deployment-consumer checkouts. - Mark Feature 0030 and this plan `in_progress` when execution begins. Make no @@ -436,6 +450,13 @@ Immediately before this stage, read root `AGENTS.md`, `docs/orientation.md`, `ansible-role-dnd-pipeline`, with publication of completed application-role commits. Stages 1–6 passed and their five role commits are clean and recorded. +**Resume after the approved SSH revision:** Preserve the completed stage hashes +and existing Stage 7 work. Apply Stage 1's revised SSH inventory/origin changes +as a focused workspace follow-up, recording a workspace commit after its +existing validation. Then finish the Stage 7 manifest/asset/default/documentation +changes below and rerun the pipeline integration. Do not rerun completed binary +migration suites merely because repository transport changed. + ### Required Changes 1. Push only the five validated application-role `main` commits to their Forge @@ -452,13 +473,18 @@ commits. Stages 1–6 passed and their five role commits are clean and recorded. 3. Extend the existing apt prerequisite task to install both `git` and `acl`, with its current `update_cache`/`cache_valid_time: 3600` behavior. Preserve task-level become. Git now explicitly belongs to asset deployment. -4. Update all five `requirements.yml` sources to Forge and their versions to - the full published Stage 2–6 commit IDs. Development manifests may use these +4. Set each `requirements.yml` role `src` to + `ssh://git@forge.maximumdirect.net:22222/eric/ansible-role-.git`, retaining + `scm: git`, and its version to the corresponding full published Stage 2–6 + commit ID. Development manifests may use these immutable commits; future released manifests will select role release tags. Remove unused `community.general` from `collections/requirements.yml` and retain `ansible.posix: 2.2.0`. Do not remove unrelated ACL behavior. -5. Change campaign/prompt repository defaults, metadata links and current README - contract/install examples to Forge. Preserve campaign commit +5. Set campaign/prompt Git repository defaults to the canonical SSH URLs. + Keep a selected reference catalog's caller-supplied URL overrideable, while + using SSH in its Git examples. Update current README clone/install examples + to SSH; metadata/browser/contract links use HTTPS on Forge. Document managed + host SSH access for asset checkouts. Preserve campaign commit `488c2eb97b5c62efe51aa7af35a5ec9cb8b7a747` and prompt commit `d15a630ddfec18ab505df3ea5b076f6a0a5fd4b3`, catalog choices, explicit prompt variants, overlays, model choices, credentials, runtime policy and publishing. @@ -509,18 +535,21 @@ clean before the subtree import. ```sh pipeline_revision=FULL_PUBLISHED_STAGE_7_COMMIT git subtree pull --prefix=roles/pipeline \ - https://forge.maximumdirect.net/eric/ansible-role-dnd-pipeline.git \ + ssh://git@forge.maximumdirect.net:22222/eric/ansible-role-dnd-pipeline.git \ "$pipeline_revision" --squash ``` Substitute the recorded full hash. Do not import from a sibling checkout or edit the imported subtree. If source changes are necessary, fix/validate/ publish the owning pipeline role first, then import the new exact commit. -- Align root `requirements.yml` role names, Forge URLs and full commit pins +- Align root `requirements.yml` role names, Forge SSH URLs and full commit pins with the imported pipeline manifest. Align its native collection dependencies and `galaxy.yml` to `ansible.posix: 2.2.0` only; remove `community.general`. Change metadata repository/issue URLs and current README/subtree examples to - Forge. Retain packaging exclusions and FQCN `rakestraw.dnd.pipeline`. + Forge, using SSH for subtree/Git installation commands and HTTPS for web + links. The source collection install form is + `git+ssh://git@forge.maximumdirect.net:22222/eric/ansible-collection-dnd.git,COLLECTION_COMMIT`. + Retain packaging exclusions and FQCN `rakestraw.dnd.pipeline`. - Keep `galaxy.yml` version at 0.2.0 for this untagged development snapshot. Explain clearly that current source installs upstream application binaries, whereas immutable release 0.2.0 retains its older source-build implementation. @@ -635,3 +664,18 @@ commit IDs will be recorded as stages complete, not chosen as new design work. ## Progress Notes Roadmap and implementation plan approved on 2026-12-04. Execution is in progress. + +Stages 1–6 are complete. The published role commits are Seriatim +`17aeb4f22072350856643a0586d697502d1d439d`, Audita +`c4c39d907afd491b977f7ddfd89918f43a49aa69`, Notarius +`c0e94563c74f747c42925610eb3e585d63f64318`, Scriptorium +`53741d8aaff34c3e6040c25db282d447d27e34c6`, and Narratio +`fa65335006f00cb5f86758aceb8608a41bc9f0ab`. Each role suite passed on amd64. +Stage 7 is in progress: its first two full integration attempts could not install +role dependencies because Forge Git HTTPS returned HTTP 503. Public API requests +confirmed all five commits were available. The user subsequently directed Git +operations to SSH. An SSH `ls-remote` check of the Seriatim origin succeeded at +its recorded commit. Resume with the SSH inventory/origin follow-up and Stage 7 +SSH manifest/asset URL changes, then rerun pipeline integration. Binary/checksum +HTTP downloads retain HTTPS. Do not mark Stage 7 complete or begin collection +assembly until its validation passes. diff --git a/docs/roadmap/mvp.md b/docs/roadmap/mvp.md index 4836d19..d08d8f5 100644 --- a/docs/roadmap/mvp.md +++ b/docs/roadmap/mvp.md @@ -203,7 +203,7 @@ application-role releases in one source repository. native prompt and schema directory configuration, while the pipeline role owns populating those locations with suite integration content. - The upstream repository is - `https://forge.maximumdirect.net/eric/narratio-prompts.git`. + `ssh://git@forge.maximumdirect.net:22222/eric/narratio-prompts.git`. - Feature 0028 selects `/usr/local/etc/scriptorium/prompt-library` as the native checkout default, imported through `prompt-library/promptkit.yml`. Its prompt and schema resources remain together beneath that root. The legacy @@ -221,7 +221,7 @@ application-role releases in one source repository. - The pipeline role checks out the `campaigns` Git repository directly into Narratio's campaign registry root. The upstream repository is - `https://forge.maximumdirect.net/eric/campaigns.git`. + `ssh://git@forge.maximumdirect.net:22222/eric/campaigns.git`. - The default campaign root remains `/usr/local/share/narratio/campaigns`, and the pipeline role passes that same value to the Narratio application role. diff --git a/docs/status.md b/docs/status.md index 104f536..143a494 100644 --- a/docs/status.md +++ b/docs/status.md @@ -7,7 +7,9 @@ Current milestone: Operational D&D pipeline deployment Current focus: [Feature 0030's roadmap](roadmap/features/0030-upstream-release-binaries.md) is approved: install upstream release binaries and migrate canonical repository URLs to `forge.maximumdirect.net`. The [nine-stage implementation plan](roadmap/implementation.md) -is approved and execution is in progress. All required +is approved; Stages 1–6 are complete. The user directed Git operations to SSH +following Forge Git HTTPS failures. Resume Stage 7 with SSH inventory/origin, +dependency and asset URL changes, then rerun pipeline validation. All required release assets are available, including Notarius v0.10.2 on both architectures. Collection 0.2.0 remains published; its consumer adoption is separate pending work. @@ -52,7 +54,7 @@ Collection 0.2.0 remains published; its consumer adoption is separate pending wo | F0027 | Adopt Narratio v4.0.0 | Narratio role and workspace | done | Public role `2a4e82c` passed independent review with no findings and a fresh full offline suite; [completion evidence](roadmap/features/0027-narratio-v4-adoption.md); suite unchanged | | F0028 | Integrate the native suite and compatible D&D assets | Pipeline role, campaigns, prompt library and workspace | done | Public pipeline `63f1dd4`, campaigns `488c2eb` and prompts `d15a630`; review finding resolved; full offline suite and five clean repeats passed; [completion evidence](roadmap/features/0028-coordinated-native-suite-integration.md#review-and-remediation) | | F0029 | Assemble the native suite collection | Collection and workspace | done | Assembly `afa8be3`, followed by release `0.2.0` at `155e05a` with tag-pinned pipeline `773b1fa`; public archive installation, native artifact integration and clean repeat passed; [release evidence](roadmap/features/0029-native-collection-assembly.md#collection-020-release-follow-up) | -| F0030 | Install upstream release binaries | All application roles, pipeline role, collection and workspace | in_progress | Executing the approved [nine-stage implementation plan](roadmap/implementation.md); artifact prerequisites resolved | +| F0030 | Install upstream release binaries | All application roles, pipeline role, collection and workspace | in_progress | Five role suites passed and commits published; SSH transport revision approved, Stage 7 integration must be retried after URL updates; see [implementation plan](roadmap/implementation.md) | | R0001 | Simplify completed standalone-role test suites | workspace and standalone roles | done | Role commits `e08c63c`, `d2d0b9d`, and `cfecf37` passed implementation and independent review | ## Updating This File diff --git a/workspace.yml b/workspace.yml index dd0e1b6..01b814f 100644 --- a/workspace.yml +++ b/workspace.yml @@ -1,94 +1,94 @@ --- name: ansible-workspace-dnd -remote: https://forge.maximumdirect.net/eric/ansible-workspace-dnd.git +remote: ssh://git@forge.maximumdirect.net:22222/eric/ansible-workspace-dnd.git repositories: - name: ansible-collection-dnd path: ansible-collection-dnd - remote: https://forge.maximumdirect.net/eric/ansible-collection-dnd.git + remote: ssh://git@forge.maximumdirect.net:22222/eric/ansible-collection-dnd.git category: ansible-collection purpose: Bundles and distributes the rakestraw.dnd pipeline suite - name: ansible-role-dnd-pipeline path: ansible-role-dnd-pipeline - remote: https://forge.maximumdirect.net/eric/ansible-role-dnd-pipeline.git + remote: ssh://git@forge.maximumdirect.net:22222/eric/ansible-role-dnd-pipeline.git category: ansible-role purpose: Develops the suite-level role exposed as rakestraw.dnd.pipeline - name: ansible-role-narratio path: ansible-role-narratio - remote: https://forge.maximumdirect.net/eric/ansible-role-narratio.git + remote: ssh://git@forge.maximumdirect.net:22222/eric/ansible-role-narratio.git category: ansible-role purpose: Installs and configures Narratio - name: ansible-role-notarius path: ansible-role-notarius - remote: https://forge.maximumdirect.net/eric/ansible-role-notarius.git + remote: ssh://git@forge.maximumdirect.net:22222/eric/ansible-role-notarius.git category: ansible-role purpose: Installs and configures Notarius - name: ansible-role-audita path: ansible-role-audita - remote: https://forge.maximumdirect.net/eric/ansible-role-audita.git + remote: ssh://git@forge.maximumdirect.net:22222/eric/ansible-role-audita.git category: ansible-role purpose: Installs and configures Audita - name: ansible-role-seriatim path: ansible-role-seriatim - remote: https://forge.maximumdirect.net/eric/ansible-role-seriatim.git + remote: ssh://git@forge.maximumdirect.net:22222/eric/ansible-role-seriatim.git category: ansible-role purpose: Installs and configures Seriatim - name: ansible-role-scriptorium path: ansible-role-scriptorium - remote: https://forge.maximumdirect.net/eric/ansible-role-scriptorium.git + remote: ssh://git@forge.maximumdirect.net:22222/eric/ansible-role-scriptorium.git category: ansible-role purpose: Installs and configures Scriptorium - name: rakestraw-ansible path: rakestraw-ansible - remote: https://forge.maximumdirect.net/eric/ansible.git + remote: ssh://git@forge.maximumdirect.net:22222/eric/ansible.git category: reference purpose: Existing deployment repository and pipeline_dnd proof of concept - name: campaigns path: assets/campaigns - remote: https://forge.maximumdirect.net/eric/campaigns.git + remote: ssh://git@forge.maximumdirect.net:22222/eric/campaigns.git category: content purpose: D&D campaign registry content deployed by the pipeline role - name: narratio-prompts path: assets/narratio-prompts - remote: https://forge.maximumdirect.net/eric/narratio-prompts.git + remote: ssh://git@forge.maximumdirect.net:22222/eric/narratio-prompts.git category: content purpose: PromptKit-compatible prompts and schemas deployed for Scriptorium - name: narratio path: ../narratio - remote: https://forge.maximumdirect.net/eric/narratio.git + remote: ssh://git@forge.maximumdirect.net:22222/eric/narratio.git category: application purpose: Narratio source and authoritative application contracts - name: notarius path: ../notarius - remote: https://forge.maximumdirect.net/eric/notarius.git + remote: ssh://git@forge.maximumdirect.net:22222/eric/notarius.git category: application purpose: Notarius source and authoritative application contracts - name: audita path: ../audita - remote: https://forge.maximumdirect.net/eric/audita.git + remote: ssh://git@forge.maximumdirect.net:22222/eric/audita.git category: application purpose: Audita source and authoritative application contracts - name: seriatim path: ../seriatim - remote: https://forge.maximumdirect.net/eric/seriatim.git + remote: ssh://git@forge.maximumdirect.net:22222/eric/seriatim.git category: application purpose: Seriatim source and authoritative application contracts - name: scriptorium path: ../scriptorium - remote: https://forge.maximumdirect.net/eric/scriptorium.git + remote: ssh://git@forge.maximumdirect.net:22222/eric/scriptorium.git category: application purpose: Scriptorium source and authoritative application contracts