Use SSH for workspace Git sources

This commit is contained in:
2026-12-04 19:18:45 +00:00
parent e94927383e
commit b542a9c80b
6 changed files with 97 additions and 40 deletions

View File

@@ -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/<repo>.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 `<app>`:
## 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/<repo>.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-<app>.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.