diff --git a/secure-delivery/WORK_LOG.md b/secure-delivery/WORK_LOG.md index 5132872..6427c8b 100644 --- a/secure-delivery/WORK_LOG.md +++ b/secure-delivery/WORK_LOG.md @@ -48,3 +48,7 @@ ## Jenkins validation #3 and deployment preparation - Jenkins assignment8-validation #3 succeeded for commit dd7c12c519b14f59d9842ebd6d417e7117d92e94, including tests, dependency audit, expanded repository secret scan, Ansible syntax, image build and HIGH/CRITICAL image scan; report archived. Evidence: https://ci.myfileagent.tech/job/assignment8-validation/3/console . Build context was 7.68 kB after excluding test venv. - Verified agent-to-host private SSH gateway 172.20.0.1 matches the host ED25519 fingerprint SHA256:CXrEv4+pv1jTwBtwxdTGlouS6I4H1Q6TkKbvQrbacu0. Prepared inventory and verified public known_hosts entry; dedicated account and Jenkins SSH credential are not yet configured. Prepared private deployment key and a reviewable administrator setup script, not yet executed. Gitea registry endpoint returns 401 as expected for authentication; registry push/pull has not been verified. + +## Deployment access and DNS verification +- On 2026-11-04, a8deploy account existed. Both staging.myfileagent.tech and app.myfileagent.tech resolved to 142.93.193.110 via Droplet resolver. From assignment8-trusted, SSH using the dedicated private key and pinned host key returned uid 1001; sudo -n id returned root. The test key was removed from the agent after verification. Passwordless sudo grants host-administrator access. No Jenkins SSH credential configured yet. +- Prepared Caddy route and v1 release-record templates; neither route nor application deployment has been applied. Registry endpoint requires authentication; no registry package-write or package-read credential has been verified. diff --git a/secure-delivery/agent/pricing-routes.caddy b/secure-delivery/agent/pricing-routes.caddy new file mode 100644 index 0000000..f42774d --- /dev/null +++ b/secure-delivery/agent/pricing-routes.caddy @@ -0,0 +1,7 @@ +# Add to the existing Caddy configuration; preserve all existing routes. +staging.myfileagent.tech { + reverse_proxy pricing-staging:8000 +} +app.myfileagent.tech { + reverse_proxy pricing-production:8000 +} diff --git a/secure-delivery/releases/v1-production.example.yml b/secure-delivery/releases/v1-production.example.yml new file mode 100644 index 0000000..70d0cb0 --- /dev/null +++ b/secure-delivery/releases/v1-production.example.yml @@ -0,0 +1,8 @@ +# Replace digest and commit with the approved build values. No secrets belong here. +target_env: production +release_image: myfileagent.tech/myfileagent/pricing@sha256:REPLACE_DIGEST +expected_version: v1 +expected_commit: REPLACE_FULL_GIT_COMMIT +expected_total: 30 +public_url: https://app.myfileagent.tech +proxy_network: myfileagent-gitea_gitea-private diff --git a/secure-delivery/releases/v1-staging.example.yml b/secure-delivery/releases/v1-staging.example.yml new file mode 100644 index 0000000..9fa619d --- /dev/null +++ b/secure-delivery/releases/v1-staging.example.yml @@ -0,0 +1,8 @@ +# Replace digest and commit with the approved build values. No secrets belong here. +target_env: staging +release_image: myfileagent.tech/myfileagent/pricing@sha256:REPLACE_DIGEST +expected_version: v1 +expected_commit: REPLACE_FULL_GIT_COMMIT +expected_total: 30 +public_url: https://staging.myfileagent.tech +proxy_network: myfileagent-gitea_gitea-private