Compare commits
| Author | SHA1 | Date | |
|---|---|---|---|
|
|
fbda9516fe | ||
|
|
72bf10dcec | ||
|
|
29e580c461 | ||
|
|
1e23001e73 | ||
|
|
6c5342219a | ||
|
|
231d11528a | ||
|
|
6bddbfba5a | ||
|
|
34f26e6948 | ||
|
|
a19fab34e3 | ||
|
|
5b703edc79 | ||
|
|
09731acb03 | ||
|
|
ed0a862657 | ||
|
|
bf28adc7fb |
@@ -0,0 +1,11 @@
|
||||
# Docker/Jenkins shell scripts require Unix line endings on Windows checkouts.
|
||||
delivery/**/*.sh text eol=lf
|
||||
delivery/agent/ssh_config.droplet text eol=lf
|
||||
gitea/droplet-runner/*.sh text eol=lf
|
||||
|
||||
# Preserve spaces emitted by tools in captured evidence.
|
||||
delivery/evidence/*.txt -whitespace
|
||||
|
||||
# Keep captured observer CSV bytes and public runtime hashes reproducible.
|
||||
delivery/evidence/recovery-*.csv -text
|
||||
delivery/evidence/recovery-*.json text eol=lf
|
||||
@@ -95,3 +95,9 @@ secrets.*
|
||||
# Local manual builds replace one deliverable; do not commit generated PDFs.
|
||||
/manual/2026F-SSW-590-DevOps-Group-1.pdf
|
||||
/manual/latex/devopsAssignment.pdf
|
||||
|
||||
# Python test environments and bytecode
|
||||
.venv/
|
||||
.ansible-venv/
|
||||
__pycache__/
|
||||
*.pyc
|
||||
|
||||
@@ -6,10 +6,22 @@ pipeline {
|
||||
steps { checkout scm }
|
||||
}
|
||||
stage('Syntax check') {
|
||||
steps { sh 'python3 -m py_compile pricing.py' }
|
||||
steps {
|
||||
sh 'python3 -m py_compile pricing.py'
|
||||
sh '''python3 -B - <<'PY'
|
||||
import ast
|
||||
from pathlib import Path
|
||||
for source in Path('delivery').rglob('*.py'):
|
||||
ast.parse(source.read_text(), filename=str(source))
|
||||
print('Delivery Python syntax: passed')
|
||||
PY'''
|
||||
}
|
||||
}
|
||||
stage('Test') {
|
||||
steps { sh 'python3 -m unittest discover -s tests -v' }
|
||||
steps {
|
||||
sh 'python3 -m unittest discover -s tests -v'
|
||||
sh 'python3 -B -m unittest discover -s delivery/ci -p "test_controls.py" -v'
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
@@ -1,5 +1,16 @@
|
||||
# Manual compiler and Gitea workflow
|
||||
|
||||
## Current runner placement
|
||||
|
||||
On 14 November 2026 Vincent requested moving the active Actions runner onto
|
||||
The-Ocean. Its historical name/label remain `ssw590-vince-local` / `latex-local`;
|
||||
the same tested compiler image below was transferred with checksum verification.
|
||||
The laptop daemon is stopped. Remote jobs are capped at 512 MiB RAM / 768 MiB
|
||||
RAM+swap and 0.5 CPU. Run them sequentially with Jenkins delivery work.
|
||||
See [remote runner operations](../../gitea/droplet-runner/README.md).
|
||||
The Docker Desktop instructions below remain useful for image reproduction
|
||||
and an explicitly selected fallback, not for starting a second live runner.
|
||||
|
||||
## Local runner preparation
|
||||
|
||||
Build the job image on the runner's Docker Desktop engine from repository root:
|
||||
|
||||
@@ -0,0 +1,4 @@
|
||||
**/__pycache__
|
||||
**/.venv
|
||||
**/*.pyc
|
||||
agent/.env
|
||||
@@ -0,0 +1,178 @@
|
||||
# Billy / Claude handoff: Assignment 8 DNS
|
||||
|
||||
**Completed update, 15 November 2026:** Billy added both A records. Google and
|
||||
Cloudflare resolve them to `147.182.178.136`; Caddy now serves trusted HTTPS and
|
||||
redirects HTTP for both names. The app backends are still absent (HTTP 502).
|
||||
Do not repeat DNS setup. The original handoff below is retained as the dated
|
||||
November 14 preparation record; reviewed application releases remain pending.
|
||||
|
||||
Prepared for Billy Ye at Vincent Sun's request on **14 November 2026**.
|
||||
This file is context and a proposed procedure. Billy must authorize changes
|
||||
in his own session; it does not grant Claude account access or override its
|
||||
active instructions. Billy handles login and MFA privately.
|
||||
|
||||
## Quick start for Claude
|
||||
|
||||
Help Billy add the two A records below to the existing `yebilly.me` DNS zone,
|
||||
verify public resolution, and return a short evidence summary to Vincent.
|
||||
Recheck existing records first. Preserve earlier services and stop after DNS
|
||||
verification. SSH, Docker, Jenkins and application deployment are outside this
|
||||
DNS task. Do not rerun the deployment bootstrap; it is already complete.
|
||||
|
||||
```yaml
|
||||
task: assignment_8_dns_setup
|
||||
scope: two_A_records_and_verification
|
||||
domain: yebilly.me
|
||||
expected_provider: Namecheap
|
||||
droplet_name: The-Ocean
|
||||
droplet_ipv4: 147.182.178.136
|
||||
repository: https://git.yebilly.me/ssw590-group1/vpn-dns-gateway
|
||||
prepared_branch: codex/assignment8-secure-delivery
|
||||
prepared_commit: bf28adc7fb03fe25c5cc939599e34427a61ad2fc
|
||||
records_to_add:
|
||||
- type: A
|
||||
host: staging
|
||||
fqdn: staging.yebilly.me
|
||||
value: 147.182.178.136
|
||||
ttl: Automatic
|
||||
- type: A
|
||||
host: app
|
||||
fqdn: app.yebilly.me
|
||||
value: 147.182.178.136
|
||||
ttl: Automatic
|
||||
success_condition: both_names_resolve_to_the_expected_IPv4_and_existing_records_are_preserved
|
||||
next_owner: Vincent_and_Codex_for_Caddy_TLS_and_reviewed_release_execution
|
||||
```
|
||||
|
||||
## Why these records are needed
|
||||
|
||||
Assignment 8 follows **Chapter 6, Secure Delivery and Rollback**, in instructor
|
||||
manual `dosManual-V1.43.pdf`. It requires distinct staging and production HTTPS
|
||||
hostnames. Both applications will run on the same existing droplet, in separate
|
||||
Docker Compose projects. Caddy selects the private application by hostname:
|
||||
|
||||
| Public hostname | Intended destination behind Caddy |
|
||||
|---|---|
|
||||
| `staging.yebilly.me` | `pricing-staging:8000` |
|
||||
| `app.yebilly.me` | `pricing-production:8000` |
|
||||
|
||||
An A record maps a name to the droplet's IPv4 address. It does not contain a
|
||||
port, URL scheme, or application path. Caddy will handle HTTPS certificates.
|
||||
This task uses the existing domain and droplet; no purchase is part of it.
|
||||
|
||||
Preparation already completed: locked v1 pricing service, Ansible, release and
|
||||
security gates, a trusted Jenkins agent now on The-Ocean (migrated from Vincent's
|
||||
laptop to avoid campus SSH restrictions), dedicated deployment
|
||||
access and scoped credentials. The prerequisite Jenkins job passed. The
|
||||
prepared branch was pushed and its ordinary Jenkins branch check passed.
|
||||
Peer review/merge, assessed releases and recovery exercises remain outstanding.
|
||||
The release job is disabled pending reviewed source. The new Caddy routes and
|
||||
production monitoring additions are prepared in Git but have not been applied.
|
||||
|
||||
## Observed baseline: recheck before making changes
|
||||
|
||||
Public Cloudflare DNS-over-HTTPS queries were checked on
|
||||
**14 November 2026, about 20:35 America/New_York**
|
||||
(15 November, about 01:35 UTC). These are observations, not a guarantee that
|
||||
the zone will remain unchanged when Billy opens it.
|
||||
|
||||
| Query | Observed answer |
|
||||
|---|---|
|
||||
| `yebilly.me` NS | `dns1.registrar-servers.com`, `dns2.registrar-servers.com` |
|
||||
| `staging.yebilly.me` A | NXDOMAIN: name did not exist |
|
||||
| `app.yebilly.me` A | NXDOMAIN: name did not exist |
|
||||
| `git.yebilly.me` A | `147.182.178.136` |
|
||||
| `ci.yebilly.me` A | `147.182.178.136` |
|
||||
| `metrics.yebilly.me` A | `147.182.178.136` |
|
||||
|
||||
The existing services are Gitea (`git`), Jenkins (`ci`) and Grafana (`metrics`).
|
||||
Other zone records may also exist, including the retired Color Buttons name,
|
||||
mail and verification records. Preserve them. The droplet has been resized to
|
||||
2 GiB RAM with its 25 GB plan disk retained; no address change was observed.
|
||||
|
||||
## Namecheap procedure
|
||||
|
||||
1. Billy signs in to the account managing `yebilly.me`.
|
||||
2. Open **Domain List > Manage** beside that domain, then **Advanced DNS**.
|
||||
3. In **Host Records**, add the two rows from the YAML/table. Enter only
|
||||
`staging` or `app` in the Host field. Use **A Record**, the exact IPv4 value,
|
||||
and **Automatic** TTL. Save the two additions.
|
||||
4. Inspect the saved rows and retain a cropped screenshot showing those rows,
|
||||
with account, billing, login and secret information excluded.
|
||||
|
||||
If a requested record already has the correct value, reuse it. If an existing
|
||||
`staging` or `app` record conflicts (including a CNAME/redirect), explain the
|
||||
conflict to Billy before changing it; do not delete unrelated records. This
|
||||
request is for IPv4 A records, not additional AAAA, wildcard or redirect records.
|
||||
|
||||
If Host Records is unavailable or nameservers differ from the baseline, identify
|
||||
the active DNS provider and edit the existing zone there. Keep nameserver
|
||||
delegation unchanged. Namecheap documents this distinction in its host-record
|
||||
guide linked below.
|
||||
|
||||
## Verify and capture evidence
|
||||
|
||||
From PowerShell, record the actual UTC time and check public resolution:
|
||||
|
||||
```powershell
|
||||
[DateTime]::UtcNow.ToString('o')
|
||||
Resolve-DnsName staging.yebilly.me -Type A -Server 1.1.1.1 -DnsOnly
|
||||
Resolve-DnsName app.yebilly.me -Type A -Server 1.1.1.1 -DnsOnly
|
||||
Resolve-DnsName staging.yebilly.me -Type A -Server 8.8.8.8 -DnsOnly
|
||||
Resolve-DnsName app.yebilly.me -Type A -Server 8.8.8.8 -DnsOnly
|
||||
```
|
||||
|
||||
Expected A answer for both names: **147.182.178.136**. A resolver may briefly
|
||||
retain the earlier negative answer; allow caches to expire and repeat. A lookup
|
||||
that times out on a restricted network is inconclusive. Do not report success
|
||||
from the saved dashboard rows alone.
|
||||
|
||||
Recheck the earlier names as well:
|
||||
|
||||
```powershell
|
||||
Resolve-DnsName git.yebilly.me -Type A -Server 1.1.1.1 -DnsOnly
|
||||
Resolve-DnsName ci.yebilly.me -Type A -Server 1.1.1.1 -DnsOnly
|
||||
Resolve-DnsName metrics.yebilly.me -Type A -Server 1.1.1.1 -DnsOnly
|
||||
```
|
||||
|
||||
If direct public-resolver queries are blocked, use an available DNS lookup
|
||||
method and record which resolver/method was actually used. Authoritative checks
|
||||
can help distinguish an unsaved record from resolver caching; document the
|
||||
actual results and any disagreement rather than assuming propagation completed.
|
||||
|
||||
**DNS success is not application success.** HTTPS may still be unavailable,
|
||||
show a certificate problem, or return an upstream error before Vincent applies
|
||||
Caddy routes and deploys the applications. Do not weaken TLS checks or alter
|
||||
firewall rules to make a DNS-only check appear successful.
|
||||
|
||||
## Return to Vincent
|
||||
|
||||
Report:
|
||||
|
||||
- The two saved record types, hostnames, values and actual TTL selection.
|
||||
- Verification UTC time, resolver(s), actual answers and any pending cache result.
|
||||
- Confirmation that existing records were preserved, with the earlier-name checks.
|
||||
- A cropped screenshot or text evidence containing no credentials/account details.
|
||||
- Any blocker, conflicting record, or unverified assumption.
|
||||
|
||||
Then Vincent/Codex can finish Caddy HTTPS setup and the reviewed release tests.
|
||||
Billy's separate code-review task remains: review/approve the preparation PR
|
||||
if satisfied, and later review v2 and the staging failure configuration. DNS
|
||||
completion does not approve code or authorize a production promotion.
|
||||
|
||||
For repository work, read `AGENTS.md`,
|
||||
`manual/latex/devopsAIAgentRequirements.tex` and
|
||||
`manual/latex/devopsAIAgentGuide.tex` first. Useful context is in
|
||||
`delivery/README.md`, `delivery/RUNBOOKS.md`, `delivery/SECURITY.md`,
|
||||
`deploy/Caddyfile` and `delivery/evidence/agent-preflight-1.txt`.
|
||||
|
||||
## Official references and provenance
|
||||
|
||||
- [Namecheap: add an A record](https://www.namecheap.com/support/knowledgebase/article.aspx/319/2237/how-can-i-set-up-an-a-address-record-for-my-domain/).
|
||||
- [Namecheap: host records, provider selection and TTL](https://www.namecheap.com/support/knowledgebase/article.aspx/434/2237/how-do-i-set-up-host-records-for-a-domain/).
|
||||
|
||||
Codex prepared this handoff at Vincent's explicit request, using the repository's
|
||||
prepared configuration, current public DNS observations and those official
|
||||
Namecheap guides. No DNS account was opened or modified during its preparation.
|
||||
The original instructor manual defines the assignment; the names/IP above are
|
||||
the team's selected deployment values.
|
||||
@@ -0,0 +1,80 @@
|
||||
# Assignment 8 evidence
|
||||
|
||||
## Completed Jenkins execution, 15 November Eastern / 16 November UTC
|
||||
|
||||
PRs 24–26 are merged. The actual [test/secret gate demonstrations](evidence/gates-20261115.md)
|
||||
blocked as intended. [Release attempt 3](evidence/release-attempt-3-20261115.md)
|
||||
published v1 and stopped at the Ansible PTY request. After that correction
|
||||
merged, [release attempt 4](evidence/release-attempt-4-20261115.md) passed initial
|
||||
staging checks but its unchanged rerun stopped at Docker's health timeout.
|
||||
Eight isolated diagnostic probes passed with ten seconds instead of three.
|
||||
After review, [builds 5 and 6](evidence/releases-20261115.md) completed v1/v2
|
||||
promotions, zero-change reruns and actual human approvals. Production monitoring
|
||||
is live; one HTTP 502 sample during v2 replacement is preserved. The exact
|
||||
successful records and staging-only fault/revert history were reviewed in PR 27.
|
||||
[Completed recovery evidence](evidence/recovery-20261115.md) records build 7's
|
||||
pre-deployment runner error, human-approved rollback 8, blocked staging fault 9,
|
||||
and original-configuration recovery 10 with changed=0. Final production is
|
||||
healthy v1/total 30 and staging v2/total 36. Original CSVs, hashes, runtime
|
||||
checks and monitoring correlation preserve observed interruptions and limits.
|
||||
[Issue 28](https://git.yebilly.me/ssw590-group1/vpn-dns-gateway/issues/28) was
|
||||
created during finalization with Vincent's authorization; final group review
|
||||
and submission remain.
|
||||
|
||||
## Preparation evidence — historical baseline
|
||||
|
||||
All timestamps below are UTC on 14 November 2026. No assessed application
|
||||
release, image publication, production approval or rollback has occurred yet.
|
||||
|
||||
| Check | Actual result |
|
||||
|---|---|
|
||||
| 19:50 user-run original target baseline | 961 MiB RAM, 126 MiB available, 752 MiB swap used; deploy account absent |
|
||||
| 20:15 post-resize SSH check | 1,967 MiB RAM, 1,008 MiB available, 101 MiB swap used; disk unchanged; seven containers up; zero failed systemd units |
|
||||
| Post-maintenance external HTTPS | Gitea, Jenkins and Grafana login routes each returned HTTP 200 from laptop |
|
||||
| 20:04 local runtime smoke | Gunicorn, UID 10001, read-only root/capability drops, 64 MiB cap; health v1, explicit `uncommitted-preflight` identity, total 30, invalid input HTTP 400 |
|
||||
| 19:55 synthetic secret gate | Blocked; actual scanner detected the generated fixture; exit status 1 |
|
||||
| 20:27 controlled wrong-price test | Three original tests passed; extra expected=-1 assertion failed; exit status 1 |
|
||||
| 20:40 restored local app baseline | Three tests passed; exit status 0 |
|
||||
| 20:32 full runtime image gate | Passed, zero HIGH/CRITICAL findings; full JSON and tool/database metadata retained |
|
||||
| 21:00–21:01 final source/dependency gate | Passed; source scanner and pip-audit exit status 0 |
|
||||
| Linux regression/syntax checks | Existing two tests and 12 delivery-control tests passed; Ansible syntax passed |
|
||||
| Jenkins/Compose validation | Dedicated delivery pipeline validated using installed declarative parser; final agent Compose configuration validated |
|
||||
| Proxy/monitoring candidates | Installed Caddy validation and Prometheus promtool syntax checks passed; candidates were not reloaded or applied |
|
||||
| 20:40:49 Jenkins bootstrap | Exclusive node and folder-scoped credentials created; pricing release job disabled; earlier jobs retained |
|
||||
| 20:42:28 agent connection | WebSocket opened; agent connected; no agent host port published |
|
||||
| 20:46 agent prerequisite build 1 | SUCCESS; real Jenkins credential binding, pinned SSH host key, deploy login, sudo, Python/Docker/Compose prerequisites |
|
||||
|
||||
The final preflight image was local only, tagged
|
||||
`ssw590-pricing:preflight-v1-runtime`. It is not a reviewed source release or
|
||||
published registry RepoDigest. Earlier Debian and installer-containing Alpine
|
||||
image scans were blocked and retained; no security exception was added.
|
||||
|
||||
Raw local reports: ignored `build/evidence/assignment8-local/`. Publicly
|
||||
versioned prerequisite inventory: `evidence/agent-preflight-1.txt`.
|
||||
Jenkins evidence: [build 1](https://ci.yebilly.me/job/secure-delivery/job/agent-preflight/1/)
|
||||
and its [tool inventory artifact](https://ci.yebilly.me/job/secure-delivery/job/agent-preflight/1/artifact/build/preflight/tools-and-target.txt).
|
||||
Jenkins requires existing approved-network access and login as applicable.
|
||||
|
||||
Remaining assessed evidence must come from actual reviewed v1/v2 pipeline
|
||||
runs, not these local checks. See `ISSUE.md` and `RUNBOOKS.md`.
|
||||
|
||||
## Later agent migration
|
||||
|
||||
The agent subsequently moved to The-Ocean at Vincent's direction to remove
|
||||
campus SSH dependence. [Migration record](evidence/agent-migration-20261114.md)
|
||||
distinguishes the actual remote prerequisite build 2 and bounded capacity trial
|
||||
from the initial laptop checks above. UTC dates cross into November 15 while
|
||||
the client's Eastern date is still November 14. At that point the PDF runner
|
||||
was unchanged. It subsequently moved too; see the
|
||||
[manual runner migration record](../gitea/droplet-runner/EVIDENCE.md).
|
||||
At that migration snapshot, assessed releases and recovery were still pending;
|
||||
the completed results are linked above.
|
||||
|
||||
## DNS and TLS readiness
|
||||
|
||||
On 15 November Billy's two DNS records were verified and Caddy's prepared
|
||||
routes applied. Both names have trusted TLS and HTTP 308 redirects; HTTPS
|
||||
returned 502 while pricing backends were absent. See the
|
||||
[dated HTTPS evidence](evidence/https-20261115.md). Application deployment,
|
||||
production monitoring and recovery were pending at that readiness snapshot;
|
||||
their subsequent completed results are linked above.
|
||||
@@ -0,0 +1,34 @@
|
||||
# Implement Assignment 8 secure delivery and rollback
|
||||
|
||||
Use instructor manual 1.43 Chapter 6 and its Startup Pricing Service on the
|
||||
existing Gitea/Jenkins/Caddy/monitoring foundation.
|
||||
|
||||
- [x] Prepare exact dependencies, base digest, trusted agent and Ansible.
|
||||
- [x] Verify deploy SSH, host-key pinning, sudo and target prerequisites.
|
||||
- [x] Prepare gates, pipeline, approval and recovery automation.
|
||||
- [x] Review/merge v1 source; configure staging/app DNS and TLS routes.
|
||||
- [x] Show blocked unit-test and synthetic-secret Jenkins runs, then repair.
|
||||
- [x] Publish v1; deploy staging; prove changed=0; approve production.
|
||||
- [x] Preserve v1 records; review/merge v2; promote the same v2 digest.
|
||||
- [x] Roll production back to matching v1 image/config; measure interruption.
|
||||
- [x] Review staging-only bad command; show failed wait and recovery.
|
||||
- [x] Add production monitoring and correlate actual samples/timestamps.
|
||||
- [ ] Review/merge final traceability, runbooks, history, AI log and PDF; submit.
|
||||
|
||||
Actual execution, 15 November Eastern / 16 November UTC:
|
||||
|
||||
- Reviewed implementation and corrections: PRs [24](https://git.yebilly.me/ssw590-group1/vpn-dns-gateway/pulls/24), [25](https://git.yebilly.me/ssw590-group1/vpn-dns-gateway/pulls/25), [26](https://git.yebilly.me/ssw590-group1/vpn-dns-gateway/pulls/26), and [27](https://git.yebilly.me/ssw590-group1/vpn-dns-gateway/pulls/27).
|
||||
- [Build 5](https://ci.yebilly.me/job/secure-delivery/job/pricing/5/) and [build 6](https://ci.yebilly.me/job/secure-delivery/job/pricing/6/): v1/v2 promotions, exact digests, passing gates, changed=0, and real Vincent approvals.
|
||||
- [Build 8](https://ci.yebilly.me/job/secure-delivery/job/pricing/8/): healthy production rollback passed with original v1 image/configuration, source 34f26e6 and total 30. Vincent approved at 04:23:36 UTC. Nine failed HTTPS samples were observed; zero downtime is not claimed.
|
||||
- [Build 9](https://ci.yebilly.me/job/secure-delivery/job/pricing/9/): the reviewed staging-only port mismatch failed Compose wait and blocked production.
|
||||
- [Build 10](https://ci.yebilly.me/job/secure-delivery/job/pricing/10/): restored the original v2 staging configuration/digest, source 6bddbfb, total 36, then changed=0 on rerun.
|
||||
- Final verified state at 04:32 UTC: production v1, staging v2; both healthy. Six monitoring targets were up. Prometheus's 30-second samples missed the brief rollback interruption that the one-second observer captured. Staging had 169 failed samples during the deliberate fault/recovery.
|
||||
|
||||
This tracking issue was created during finalization, after the implementation
|
||||
PRs and operational exercises; it is not a claimed pre-implementation issue.
|
||||
The final evidence PR should close it after peer review. A first rollback
|
||||
attempt (build 7) stopped before deployment with a runner process-limit error;
|
||||
the idle runner was restarted without changing its limits before build 8.
|
||||
|
||||
Local preparation is not assessed release evidence. Preserve branch protection
|
||||
and earlier services/data; keep credentials out of Git and reports.
|
||||
@@ -0,0 +1,146 @@
|
||||
// A separate trusted delivery job loads this file from protected main.
|
||||
// The existing multibranch PR job keeps its ordinary test-only Jenkinsfile.
|
||||
pipeline {
|
||||
agent { label 'delivery-trusted' }
|
||||
options {
|
||||
skipDefaultCheckout()
|
||||
disableConcurrentBuilds()
|
||||
timeout(time: 60, unit: 'MINUTES')
|
||||
buildDiscarder(logRotator(numToKeepStr: '20'))
|
||||
}
|
||||
parameters {
|
||||
choice(name: 'MODE', choices: ['release', 'blocked-test', 'blocked-secret', 'rollback-production', 'staging-failure', 'recover-staging'], description: 'Reviewed release or recovery operation')
|
||||
string(name: 'SOURCE_COMMIT', defaultValue: '', description: 'Optional full reviewed source commit already on main')
|
||||
string(name: 'RELEASE_RECORD', defaultValue: '', description: 'Reviewed delivery/releases/*.json for rollback or recovery')
|
||||
string(name: 'STAGING_FAILURE_CONFIG', defaultValue: '', description: 'Only for staging-failure. Full reviewed commit of the staging-only bad command template')
|
||||
}
|
||||
environment {
|
||||
PYTHONDONTWRITEBYTECODE = '1'
|
||||
TRIVY_CACHE_DIR = '/home/jenkins/agent/.cache/trivy'
|
||||
}
|
||||
stages {
|
||||
stage('Reviewed checkout') {
|
||||
steps {
|
||||
deleteDir()
|
||||
checkout scm
|
||||
script {
|
||||
if (params.SOURCE_COMMIT) {
|
||||
if (!(params.SOURCE_COMMIT ==~ /[0-9a-f]{40}/)) {
|
||||
error('SOURCE_COMMIT must be a full Git commit')
|
||||
}
|
||||
withEnv(["RELEASE_SOURCE=${params.SOURCE_COMMIT}"]) {
|
||||
sh 'git merge-base --is-ancestor "$RELEASE_SOURCE" origin/main && git checkout --detach "$RELEASE_SOURCE"'
|
||||
}
|
||||
}
|
||||
}
|
||||
sh 'git merge-base --is-ancestor HEAD origin/main'
|
||||
sh 'mkdir -p build/delivery/reports && git rev-parse HEAD > build/delivery/reports/source-commit.txt'
|
||||
}
|
||||
}
|
||||
stage('Unit tests') {
|
||||
steps {
|
||||
sh 'python3 -B -m unittest discover -s delivery/ci -p "test_controls.py" -v'
|
||||
script {
|
||||
withEnv(["TEST_FAILURE=${params.MODE == 'blocked-test'}"]) {
|
||||
sh 'sh delivery/ci/test-app.sh'
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
stage('Source security gates') {
|
||||
steps {
|
||||
script {
|
||||
def fixture = params.MODE == 'blocked-secret' ? ' --fixture' : ''
|
||||
sh "python3 delivery/ci/security.py source${fixture}"
|
||||
}
|
||||
}
|
||||
}
|
||||
stage('Build, scan, publish') {
|
||||
when { expression { params.MODE == 'release' } }
|
||||
steps {
|
||||
withCredentials([usernamePassword(credentialsId: 'delivery-registry-write', usernameVariable: 'REGISTRY_USER', passwordVariable: 'REGISTRY_TOKEN')]) {
|
||||
sh 'sh delivery/ci/publish.sh'
|
||||
}
|
||||
}
|
||||
}
|
||||
stage('Select release record') {
|
||||
steps {
|
||||
script {
|
||||
if (params.MODE == 'release') {
|
||||
env.SELECTED_RECORD = sh(script: "find build/delivery/releases -name '*-staging.json'", returnStdout: true).trim()
|
||||
} else {
|
||||
if (!(params.RELEASE_RECORD ==~ /delivery\/releases\/[a-zA-Z0-9._-]+\.json/)) {
|
||||
error('Choose a committed delivery/releases/*.json record')
|
||||
}
|
||||
env.SELECTED_RECORD = params.RELEASE_RECORD
|
||||
if (params.MODE == 'staging-failure') {
|
||||
if (!(params.STAGING_FAILURE_CONFIG ==~ /[0-9a-f]{40}/)) {
|
||||
error('Choose the full reviewed staging failure configuration commit')
|
||||
}
|
||||
withEnv(["FAILURE_CONFIG=${params.STAGING_FAILURE_CONFIG}"]) {
|
||||
sh '''mkdir -p build/delivery/releases
|
||||
python3 - <<'PY'
|
||||
import json, os
|
||||
from pathlib import Path
|
||||
record = json.loads(Path(os.environ['SELECTED_RECORD']).read_text())
|
||||
assert record['target_env'] == 'staging', 'Failure exercise requires staging'
|
||||
record['configuration_commit'] = os.environ['FAILURE_CONFIG']
|
||||
Path('build/delivery/releases/failure-staging.json').write_text(json.dumps(record, indent=2))
|
||||
PY'''
|
||||
}
|
||||
env.SELECTED_RECORD = 'build/delivery/releases/failure-staging.json'
|
||||
}
|
||||
}
|
||||
}
|
||||
sh 'python3 delivery/ci/release.py verify "$SELECTED_RECORD"'
|
||||
}
|
||||
}
|
||||
stage('Staging deploy and unchanged rerun') {
|
||||
when { expression { params.MODE == 'release' || params.MODE == 'recover-staging' || params.MODE == 'staging-failure' } }
|
||||
steps {
|
||||
withCredentials([
|
||||
sshUserPrivateKey(credentialsId: 'delivery-deploy-ssh', keyFileVariable: 'DEPLOY_KEY'),
|
||||
file(credentialsId: 'delivery-known-hosts', variable: 'DEPLOY_KNOWN_HOSTS')
|
||||
]) {
|
||||
sh 'sh delivery/ci/deploy.sh "$SELECTED_RECORD" staging'
|
||||
sh 'sh delivery/ci/deploy.sh "$SELECTED_RECORD" staging rerun'
|
||||
}
|
||||
}
|
||||
}
|
||||
stage('Production approval') {
|
||||
when { expression { params.MODE == 'release' || params.MODE == 'rollback-production' } }
|
||||
steps {
|
||||
archiveArtifacts(artifacts: 'build/delivery/reports/**,build/delivery/releases/**', allowEmptyArchive: false)
|
||||
script {
|
||||
if (params.MODE == 'release') {
|
||||
env.SELECTED_RECORD = env.SELECTED_RECORD.replace('-staging.json', '-production.json')
|
||||
}
|
||||
sh 'python3 delivery/ci/release.py verify "$SELECTED_RECORD" --environment production'
|
||||
def record = readFile(env.SELECTED_RECORD)
|
||||
def approver
|
||||
timeout(time: 20, unit: 'MINUTES') {
|
||||
approver = input(message: "Approve production? Source, digest and target below. Review archived scan reports and staging console results.\n${record}", ok: 'Approve production', submitter: 'billy,vsun1', submitterParameter: 'APPROVER')
|
||||
}
|
||||
def approvedAt = sh(script: 'date -u +%Y-%m-%dT%H:%M:%SZ', returnStdout: true).trim()
|
||||
writeFile(file: 'build/delivery/reports/production-approval.txt', text: "Approver=${approver}\nDecision=approved\nUTC=${approvedAt}\n${record}\n")
|
||||
}
|
||||
}
|
||||
}
|
||||
stage('Production deploy and verification') {
|
||||
when { expression { params.MODE == 'release' || params.MODE == 'rollback-production' } }
|
||||
steps {
|
||||
withCredentials([
|
||||
sshUserPrivateKey(credentialsId: 'delivery-deploy-ssh', keyFileVariable: 'DEPLOY_KEY'),
|
||||
file(credentialsId: 'delivery-known-hosts', variable: 'DEPLOY_KNOWN_HOSTS')
|
||||
]) {
|
||||
sh 'sh delivery/ci/deploy.sh "$SELECTED_RECORD" production'
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
post {
|
||||
always {
|
||||
archiveArtifacts(artifacts: 'build/delivery/reports/**,build/delivery/releases/**', excludes: '**/test-venv/**', allowEmptyArchive: true)
|
||||
}
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,26 @@
|
||||
# Record completed rollback and staging recovery (closes #28)
|
||||
|
||||
Record build 8's human-approved production rollback to the original v1
|
||||
image/configuration, build 9's staging bind-mismatch block, and build 10's
|
||||
restored v2 staging deployment with changed=0 on rerun. Final production is
|
||||
healthy v1/total 30 and staging v2/total 36. No app, pipeline, deployment-template,
|
||||
credential or resource/security-limit change is included.
|
||||
|
||||
Preserve actual decisions, approval, timings, report hashes, runtime checks and
|
||||
original HTTPS CSVs. Nine production requests failed during rollback although
|
||||
the 30-second probe missed it; staging recorded 169 failures during the
|
||||
deliberate fault/recovery. Retain build 7's pre-deployment process-limit error
|
||||
and unchanged-limit runner restart. Document sampling and single-Droplet limits.
|
||||
|
||||
Update the manual, diagram, inventory, source/access links, runbooks, history
|
||||
and AI log. Issue 28 was created during finalization with Vincent's approval;
|
||||
it is not represented as a pre-implementation issue. Preserve CSV bytes and
|
||||
JSON line endings for reproducible evidence hashes.
|
||||
|
||||
Validation: actual Jenkins 8 SUCCESS, 9 expected FAILURE before production,
|
||||
10 SUCCESS; 12 control/3 app tests and source/dependency gates in each;
|
||||
matching historical selectors; final HTTPS health/source/price/400 checks and
|
||||
six monitoring targets up. Full manual build and affected-page visual review.
|
||||
Existing coursework, earlier services and grading evidence retained.
|
||||
|
||||
Closes #28.
|
||||
@@ -0,0 +1,133 @@
|
||||
# Secure Delivery and Rollback — Assignment 8
|
||||
|
||||
The application is adapted from the instructor's Startup Pricing Service
|
||||
v1 in `Examples.zip`, `Examples/dosSecureDelivery/v1/`. The deployment
|
||||
starters come from that bundle's `ansible/` directory. The task follows
|
||||
Chapter 6 of instructor manual version 1.43.
|
||||
|
||||
`app/` contains the Flask/Gunicorn service, nine exact direct/transitive
|
||||
dependencies, and a pinned Python 3.13 Alpine base digest for Linux/amd64.
|
||||
The inventory selects The-Ocean's dedicated deploy account. The example
|
||||
release record remains explicitly an example; real registry digests are
|
||||
generated by Jenkins from reviewed source.
|
||||
|
||||
Current execution status, 15 November Eastern / 16 November UTC: PRs 24–27
|
||||
are merged, preserving the separate v1/v2 commits. Real Jenkins test/secret
|
||||
demonstrations blocked as intended. Builds 5 and 6 then completed both releases,
|
||||
with zero-change staging reruns, passing gates and actual human production
|
||||
approvals. PR 27 reviewed the successful records and fault/revert history.
|
||||
Build 8 passed production rollback to v1; build 9 blocked the staging fault;
|
||||
build 10 restored staging v2 with changed=0. Production is v1/total 30 and
|
||||
staging v2/total 36, both healthy; production monitoring is live.
|
||||
See [releases](evidence/releases-20261115.md) and
|
||||
[completed recoveries](evidence/recovery-20261115.md), including interruption,
|
||||
sampling limits and build 7's pre-deployment runner error. Final review/merge
|
||||
and submission remain.
|
||||
|
||||
Run the tests from `app/` after installing its requirements into the selected
|
||||
Linux test environment. The expected v1 result for three units is USD 30.
|
||||
The reviewed v2 source/test change returns USD 36. PR 26 preserved the separate
|
||||
v1 and v2 SHAs, selected explicitly by builds 5 and 6 and baked into each image.
|
||||
|
||||
Deployment work uses a dedicated trusted Jenkins agent, immutable images
|
||||
in the existing Gitea registry, and separate Ansible-managed staging and
|
||||
production Compose projects. The agent requires Docker build capability,
|
||||
Python, Ansible, the Docker collection, and the selected security scanners.
|
||||
Registry publication, staging deployment, approval, production promotion,
|
||||
and both recovery exercises require dated execution evidence.
|
||||
|
||||
## Attribution and preparation record
|
||||
|
||||
On 14 November 2026 Vincent asked Codex to review the assignment and begin
|
||||
preparation while he started Docker Desktop. Codex checked the repository's
|
||||
AI requirements and usage guide, read Chapter 6 and the example sources,
|
||||
verified remote main `8beefde`, and created branch
|
||||
`codex/assignment8-secure-delivery`. It copied the v1 and Ansible starters
|
||||
without changing their contents and checked Python syntax. This preparation
|
||||
record will be consolidated into the manual's AI assistance log when the
|
||||
assignment chapter is authored. The instructor retains authorship of the
|
||||
starter application and playbook.
|
||||
|
||||
## Verified preparation, 14 November 2026
|
||||
|
||||
The existing two pricing tests, three new Flask tests and twelve release/control
|
||||
tests passed. The deliberate wrong-price assertion failed as intended; the
|
||||
synthetic secret fixture blocked its gate. Pip-audit passed for the nine locked
|
||||
application dependencies. The full Trivy runtime-image gate reported no HIGH
|
||||
or CRITICAL findings. Earlier failed scans remain in ignored local evidence;
|
||||
no scanner exception was introduced. A non-root Gunicorn container passed
|
||||
health, identity, pricing and invalid-input checks with a 64 MiB memory cap.
|
||||
|
||||
The droplet now has 2 GiB RAM and its original 25 GB plan disk. Vincent resized
|
||||
it and installed package updates. The existing seven service containers and
|
||||
their HTTPS routes were verified after maintenance.
|
||||
|
||||
The trusted node `ssw590-vince-delivery` now runs on The-Ocean, with one
|
||||
exclusive executor and label `delivery-trusted`. Its name is retained from
|
||||
the initial laptop installation. The laptop copy is stopped. The remote
|
||||
agent uses private HTTP/WebSocket to `jenkins:8080`; its SSH configuration
|
||||
routes the existing deployment inventory address through Docker's host gateway,
|
||||
retaining `HostKeyAlias 147.182.178.136` and the pinned Jenkins known-hosts file.
|
||||
No campus SSH connection is needed to run a delivery job from the browser.
|
||||
[Agent prerequisite build 1](https://ci.yebilly.me/job/secure-delivery/job/agent-preflight/1/)
|
||||
passed using the dedicated deploy key, pinned host key and root sudo. Its
|
||||
non-secret tool inventory is versioned in `evidence/agent-preflight-1.txt`.
|
||||
The `secure-delivery/pricing` job loads `delivery/Jenkinsfile` from protected
|
||||
main and was enabled after PR 24 merged. Release credentials are scoped
|
||||
to that Jenkins folder; the PR job does not bind them or the Docker socket.
|
||||
|
||||
The original inventory above is historical. [Remote prerequisite build 2](https://ci.yebilly.me/job/secure-delivery/job/agent-preflight/2/)
|
||||
passed after migration; `evidence/agent-preflight-2.txt` records the tools and
|
||||
target. A separate bounded capacity trial passed control/app tests, source and
|
||||
dependency checks, a limited image build, image scan and temporary HTTP smoke.
|
||||
It used a preparation snapshot, not a reviewed release, and published nothing.
|
||||
|
||||
The deployment account has root-only passwordless sudo: effective host
|
||||
administration privileges, restricted to reviewed delivery code. Distinct
|
||||
package-write and package-read tokens under `vsun1` are stored in Jenkins and
|
||||
root's target Docker configuration respectively. No values are in Git.
|
||||
Remote agent identity and workspace live in named Docker volumes outside Git.
|
||||
The agent has administrative access to the same Docker host as Jenkins and
|
||||
Gitea; a container is not a security boundary against malicious trusted jobs.
|
||||
Use only reviewed delivery code. `agent/compose.droplet.yaml` caps the agent
|
||||
at 512 MiB RAM / 768 MiB RAM+swap and 0.5 CPU; a dedicated pinned BuildKit
|
||||
builder has 256 MiB / 384 MiB and 0.5 CPU. Builds select that builder explicitly.
|
||||
Agent and builder restart unless stopped. `bootstrap/start-droplet-agent.sh`
|
||||
is the root-operated installation/reconnect helper in
|
||||
`/opt/ssw590-delivery-agent`; it detects the Docker socket group (987 on this host).
|
||||
No public agent, Docker API or app port is added.
|
||||
|
||||
`bootstrap/start-agent.ps1` refuses to start the laptop copy by default.
|
||||
For an intentional fallback, first stop the remote agent and builder, then use
|
||||
`-AllowLaptopFallback`. Never connect both copies of the same node. Preserve
|
||||
their volumes. The Gitea Actions manual-build runner subsequently moved to
|
||||
The-Ocean too; see `../gitea/droplet-runner/README.md`. Neither active runner
|
||||
now depends on Docker Desktop. Run manual builds and delivery releases sequentially.
|
||||
See `RUNBOOKS.md`.
|
||||
|
||||
Ansible syntax, agent Compose configuration, and the installed Jenkins
|
||||
controller's declarative parser checks passed. Those were preparation checks;
|
||||
the subsequent assessed releases and both recovery cases are linked above.
|
||||
|
||||
## Remaining checkpoints
|
||||
|
||||
PRs 24–27 preserve the implementation, corrections, separate v1/v2 source
|
||||
commits and recovery configuration history. The technical demonstrations are
|
||||
complete. [Issue 28](https://git.yebilly.me/ssw590-group1/vpn-dns-gateway/issues/28)
|
||||
was created with Vincent's authorization during finalization, after execution;
|
||||
the final evidence PR should close it following Billy's review. Vincent handles
|
||||
commits, pushes and PDF submission. No further intentional failure is needed.
|
||||
Main and live staging have the good template. Keep branch protection and
|
||||
earlier services. Both names retain trusted HTTPS and redirects; the initial
|
||||
TLS snapshot remains `evidence/https-20261115.md`.
|
||||
Use `RUNBOOKS.md` for later authorized operations.
|
||||
Keep Jenkins and the remote delivery node available. Production approval requires an authorized
|
||||
human; an agent must not approve unattended.
|
||||
|
||||
`SECURITY.md` defines the gate policy. `bootstrap/` makes administrator setup
|
||||
reviewable; its one-time script refuses to overwrite existing deployment state.
|
||||
Raw local reports remain under ignored `build/evidence/assignment8-local/`.
|
||||
The manual records actual outcomes, access instructions, limitations and AI
|
||||
assistance. Raw assessed reports are in ignored
|
||||
`build/evidence/assignment8-execution/` and Jenkins artifacts; non-secret
|
||||
summaries, hashes and original observer CSVs are versioned under `evidence/`.
|
||||
@@ -0,0 +1,186 @@
|
||||
# Release, recovery and cleanup
|
||||
|
||||
These are repeatable instructions. Completed results are recorded in
|
||||
`evidence/releases-20261115.md` and `evidence/recovery-20261115.md`.
|
||||
|
||||
Current status, 15 November 2026 Eastern / 16 November UTC: Billy's DNS records resolve correctly and the
|
||||
two Caddy routes are active with trusted certificates and HTTP-to-HTTPS redirects.
|
||||
The one-time HTTPS helper has already run; use the normal validate/reload
|
||||
procedure for later changes. PRs 24–27 are merged. Actual builds 5/6 passed
|
||||
v1/v2 promotions, zero-change reruns and real vsun1 approvals. Both environments
|
||||
passed both promotions. Build 8 restored production v1 with human approval;
|
||||
build 9 blocked the reviewed staging fault; build 10 restored staging v2 and
|
||||
passed changed=0. Production is v1/total 30, staging v2/total 36. The production
|
||||
probe/panel is live. Actual interruption and sampling limits are preserved.
|
||||
The successful records and fault/revert are reviewed main ancestors; no repeat
|
||||
exercise is required for the completed evidence.
|
||||
|
||||
## Authority and preparation
|
||||
|
||||
Billy reviews code; Vincent commits/pushes. Jenkins users `billy` or `vsun1`
|
||||
may approve production interactively; administrators retain override authority.
|
||||
The Droplet delivery agent must be online and source/configuration commits reviewed and
|
||||
merged into protected main. Do not run untrusted PR/fork code with its Docker
|
||||
socket or the delivery folder's credentials. Exclusive scheduling alone does
|
||||
not prevent someone authorized to alter jobs from selecting the node.
|
||||
|
||||
Confirm A records `staging` and `app` point to The-Ocean. Validate and reload
|
||||
the prepared additions to `/root/gitea/Caddyfile`, preserving the earlier file,
|
||||
allowlist environment and volumes. Publish no application host port. The
|
||||
applications join the existing `gitea_web` network with different aliases.
|
||||
Enable `secure-delivery/pricing` after reviewed source reaches main.
|
||||
|
||||
The installed-binary validation commands are:
|
||||
|
||||
```text
|
||||
docker exec gitea-caddy-1 caddy validate --config /etc/caddy/Caddyfile --adapter caddyfile
|
||||
docker exec gitea-caddy-1 caddy reload --config /etc/caddy/Caddyfile --adapter caddyfile
|
||||
docker exec monitoring-prometheus-1 promtool check config /etc/prometheus/prometheus.yml
|
||||
```
|
||||
|
||||
Preserve bind-mounted file inodes when copying new contents. Monitoring was
|
||||
applied only after healthy v1 production, using the guarded one-time
|
||||
`bootstrap/enable-production-monitoring.py`. It compares prior probes/panels,
|
||||
validates with promtool, backs up and reloads Prometheus via SIGHUP. Do not
|
||||
rerun its one-time application over the already changed state. The protected
|
||||
backup is `/root/ssw590-delivery-bootstrap/monitoring-20261116/`. Actual targets,
|
||||
reload metric and the provisioned Grafana panel were verified separately.
|
||||
|
||||
## v1 and v2
|
||||
|
||||
1. Run MODE `blocked-test`: the wrong-price fixture must fail and prevent
|
||||
publication/deployment. Run MODE `blocked-secret`: the generated synthetic
|
||||
fixture must block the scanner gate. Fixtures exist only during those runs.
|
||||
2. Run MODE `release` with the full reviewed v1 SOURCE_COMMIT if needed. Tests,
|
||||
dependency/secret checks and image gates must pass. The commit-tagged image
|
||||
is built once, scanned, pushed/pulled, and selected by exact registry digest.
|
||||
Existing commit tags are reused, not overwritten. Full reports are archived.
|
||||
3. Staging checks health, version, source SHA and total 30. Its unchanged rerun
|
||||
must report changed=0; the pipeline blocks otherwise.
|
||||
4. Review the presented release metadata, archived scans and staging results.
|
||||
An authorized human approves within 20 minutes. Rejection/timeout stops
|
||||
production. The actual approval identity/UTC is archived. Production uses
|
||||
the same digest and verifies all three endpoints; it does not rebuild.
|
||||
5. Save both generated v1 JSON records from Jenkins into `delivery/releases/`
|
||||
and review/commit them before recovery. Never invent a digest or commit SHA.
|
||||
6. Apply the supplied v2 application/test changes in a separate reviewed commit:
|
||||
VERSION=v2, UNIT_PRICE=12, expected total=36. Repeat the complete release and
|
||||
real approval. Preserve v1 images/configuration/records; save v2 records.
|
||||
|
||||
The v1 health correction and v2 source/test change may be reviewed together
|
||||
in one PR while remaining separate commits. Do not squash them: the delivery
|
||||
job requires both selected source commits to remain ancestors of protected
|
||||
main. Start with the full v1 health-fix SHA, then use the full v2 SHA only after
|
||||
v1 production verification. The actual successful records were reviewed in PR 27;
|
||||
review any replacement records before later rollback. Never substitute a failed
|
||||
attempt's generated record for that evidence.
|
||||
|
||||
## Healthy production rollback
|
||||
|
||||
Record the detection/decision UTC and reason. Before approval, start the HTTPS
|
||||
observer on an available client or the remote agent, for example:
|
||||
|
||||
```text
|
||||
python delivery/ci/observe.py --url https://app.yebilly.me --seconds 600 --output build/evidence/assignment8/rollback-health.csv
|
||||
```
|
||||
|
||||
Run MODE `rollback-production` with committed
|
||||
`delivery/releases/v1-production.json`. SOURCE_COMMIT can stay on main: the
|
||||
record selects the exact historical image and configuration. Review/approve
|
||||
the input. Ansible restores playbook/template using `git archive` of the
|
||||
configuration commit, then verifies v1, its original SHA and total 30.
|
||||
Archive decision, approval, deployment start/completion/elapsed time and the
|
||||
observer CSV. Report failed samples and gaps; no failed samples does not prove
|
||||
zero interruption between requests. Correlate the 30-second monitoring samples.
|
||||
|
||||
## Failed staging deployment and recovery
|
||||
|
||||
After v2 succeeds, add this staging-only override to the app service in
|
||||
`ansible/templates/compose.yaml.j2` in a separate reviewed configuration commit:
|
||||
|
||||
```jinja2
|
||||
{% if target_env == 'staging' %}
|
||||
command: ["gunicorn", "--bind", "0.0.0.0:8001", "--workers", "1", "--worker-tmp-dir", "/tmp", "app:app"]
|
||||
{% endif %}
|
||||
```
|
||||
|
||||
The image's healthcheck still probes 8000. Select MODE `staging-failure`, the
|
||||
committed good v2 staging record, and full STAGING_FAILURE_CONFIG SHA. Compose
|
||||
wait must fail within its 90-second bound and stop Jenkins before production.
|
||||
Do not use MODE `release` to build an image for this configuration exercise.
|
||||
Restore/review the correct template, then use MODE `recover-staging` with the
|
||||
original good v2 staging record and matching configuration commit. Verify
|
||||
health, exact source SHA, total 36 and changed=0. Retain failure, restoration,
|
||||
recovery reports and observer timing. Do not alter earlier infrastructure to
|
||||
manufacture a failure.
|
||||
|
||||
## Monitoring and limits
|
||||
|
||||
After production is healthy, add `https://app.yebilly.me/health` to the existing
|
||||
Prometheus `https` job and display it in Grafana. Keep Gitea/Jenkins probes and
|
||||
host metrics. Validate configuration before reload. Record actual samples and
|
||||
alerts around releases/recovery; a short failure can fall between scrapes or
|
||||
below the alert duration. HTTP status cannot validate the expected price.
|
||||
|
||||
Each stateless app is capped at 64 MiB RAM, 96 MiB RAM+swap, 0.25 CPU and 64
|
||||
PIDs, with a read-only root filesystem, 16 MiB /tmp tmpfs, UID 10001 and all
|
||||
capabilities dropped. The remote agent is capped at 512 MiB RAM / 768 MiB
|
||||
RAM+swap and 0.5 CPU; its pinned BuildKit builder at 256 MiB / 384 MiB and
|
||||
0.5 CPU. The preparation trial passed but used swap and is not a full release
|
||||
load test. Keep one exclusive executor and serialized delivery. One droplet
|
||||
and a shared proxy network provide neither high availability nor strong lateral
|
||||
isolation. A real database migration or external payment can invalidate image
|
||||
rollback; use compatible expand/migrate/contract changes and tested backups.
|
||||
|
||||
## After grading, only when instructed
|
||||
|
||||
Archive required evidence first. Remove only the two pricing Compose projects,
|
||||
their routes, monitoring additions and test DNS names. Revoke the two named
|
||||
Assignment 8 package tokens, then remove the deploy key/sudo grant and its
|
||||
Jenkins folder/node when no longer needed. Preserve required job history before
|
||||
removing configuration. Stop the remote agent and dedicated builder; remove only their identity/workspace
|
||||
volumes after approval. Preserve Gitea, Jenkins home, proxy storage, monitoring
|
||||
volumes and earlier assignments. Never system-prune or use `down -v` here.
|
||||
|
||||
## Bootstrap recovery
|
||||
|
||||
The protected `/root/ssw590-delivery-bootstrap/` directory contains metadata,
|
||||
a consistent Jenkins-home archive and a Gitea SQLite backup taken before token
|
||||
creation. Metadata records token names, not values. Transient private inputs
|
||||
are erased after Jenkins encrypts them. If setup fails partway, inspect its
|
||||
marker/logs and existing state rather than rerunning or rotating credentials.
|
||||
Do not restore entire volumes/databases over later work without a reviewed plan.
|
||||
|
||||
## Agent placement and campus demonstration
|
||||
|
||||
The node name `ssw590-vince-delivery` is historical; it now runs on The-Ocean.
|
||||
Deployment SSH goes to `host.docker.internal` through the mounted SSH config,
|
||||
with the original public-IP host-key alias and strict verification. The Jenkins
|
||||
connection is private HTTP/WebSocket on `gitea_web`; public browser access
|
||||
continues through Caddy HTTPS and its existing allowlist. No campus SSH is
|
||||
needed for this delivery path. Rehearse campus browser access before presenting.
|
||||
The Gitea Actions PDF runner now also runs on The-Ocean. Its existing label
|
||||
`latex-local` is historical. Both laptop copies are stopped; run manual builds
|
||||
and delivery releases sequentially. See `../gitea/droplet-runner/README.md`.
|
||||
|
||||
To stop the remote agent from an authorized administrator shell:
|
||||
|
||||
```sh
|
||||
cd /opt/ssw590-delivery-agent
|
||||
docker compose -f compose.droplet.yaml stop
|
||||
docker stop buildx_buildkit_ssw590-delivery-limited0
|
||||
```
|
||||
|
||||
To reconnect, run `bash /opt/ssw590-delivery-agent/start-droplet-agent.sh`.
|
||||
It reuses protected identity and workspace volumes; do not rerun the original
|
||||
host/account bootstrap. Agent recreation reuses the node identity. The verified
|
||||
tool image was transferred from Docker Desktop and checked by archive SHA-256
|
||||
and image ID before loading. It can be rebuilt from `agent/Dockerfile` on a
|
||||
build-capable machine and transferred again if required.
|
||||
|
||||
For a laptop fallback, stop the remote copy first, load the administrator key
|
||||
into Windows ssh-agent, then run
|
||||
`./delivery/bootstrap/start-agent.ps1 -AllowLaptopFallback`.
|
||||
Stop the laptop copy before starting the remote one again.
|
||||
No new cloud instance or plan change was made; existing Droplet billing applies.
|
||||
VS maintains this agent and BY retains server administration ownership.
|
||||
@@ -0,0 +1,39 @@
|
||||
# Release security policy
|
||||
|
||||
Policy selected before the assessed scans on 14 November 2026.
|
||||
|
||||
- Block every detected repository secret. Use Trivy's built-in rules together
|
||||
with the course synthetic-fixture rule in `trivy-secret.yaml`.
|
||||
- Block HIGH and CRITICAL image vulnerabilities, including issues without a
|
||||
published fix. Retain the full report, including lower severities, for review.
|
||||
- Block every Python dependency advisory reported by pip-audit. Review direct
|
||||
and transitive dependencies and update the exact lock before rebuilding.
|
||||
- A scanner execution error, unavailable advisory service, unavailable
|
||||
vulnerability database, malformed report, or missing report fails the gate.
|
||||
- No exceptions are currently approved. An exception requires instructor
|
||||
acceptance, an advisory identifier, owner, rationale, compensating controls,
|
||||
and expiry recorded with the release. Findings must never be silently ignored.
|
||||
- For a suspected false positive, retain the report and record the evidence
|
||||
used for triage. Keep the release blocked until the finding is resolved or
|
||||
an instructor-approved exception is recorded.
|
||||
|
||||
Each release archives UTC scan times, tool versions, Trivy database metadata,
|
||||
commands, exit codes, reports, source commit, and the selected image digest.
|
||||
Rebuild and rescan after changing a dependency or base image.
|
||||
|
||||
The synthetic fixture is generated only for a deliberate blocked-gate run.
|
||||
Its label identifies course test data and has no credential authority. Remove
|
||||
the fixture and repeat the gate before a release can proceed.
|
||||
|
||||
The deployment agent now has administrative Docker access on The-Ocean,
|
||||
including the host running the controller, registry and monitoring, as well as
|
||||
deployment privileges. Co-location reduces isolation: the agent's container
|
||||
and resource caps do not prevent a malicious Docker-authorized job from
|
||||
accessing other containers or host files. This is a documented course-lab
|
||||
trade-off to avoid campus SSH restrictions, not a hardened production design.
|
||||
Run reviewed delivery code on
|
||||
this agent. Pull-request jobs must not receive its Docker socket or release
|
||||
credentials. The remote agent connects over private HTTP/WebSocket on the
|
||||
existing Docker network; browser access remains HTTPS through Caddy. Strict
|
||||
SSH verification retains the public-IP host-key alias while transport stays
|
||||
on Docker's host gateway. No firewall, TLS, approval or credential scope was relaxed.
|
||||
@@ -0,0 +1,25 @@
|
||||
FROM docker:29-cli@sha256:5a7af0dcb0e46c803efe9b45371dd21cb500e5b4453250394ac6f06d49b6e6f1 AS dockercli
|
||||
FROM aquasec/trivy:0.76.2@sha256:8f6bb947dbc528902e11f2f5be52f7b519f6a39d5d148f41166f2040499768fb AS scanner
|
||||
FROM jenkins/inbound-agent:jdk21@sha256:25a3704f7de4d3d0becc441f5683a227556658df1473865ee94c5232355678ab
|
||||
|
||||
USER root
|
||||
RUN apt-get update \
|
||||
&& apt-get install -y --no-install-recommends python3 python3-venv git openssh-client ca-certificates curl \
|
||||
&& rm -rf /var/lib/apt/lists/*
|
||||
COPY --from=dockercli /usr/local/bin/docker /usr/local/bin/docker
|
||||
COPY --from=dockercli /usr/local/libexec/docker/cli-plugins/ /usr/local/libexec/docker/cli-plugins/
|
||||
COPY --from=scanner /usr/local/bin/trivy /usr/local/bin/trivy
|
||||
COPY agent/requirements.txt /tmp/requirements.txt
|
||||
RUN python3 -m venv /opt/delivery-tools \
|
||||
&& /opt/delivery-tools/bin/pip install --no-cache-dir -r /tmp/requirements.txt
|
||||
ENV PATH="/opt/delivery-tools/bin:${PATH}" \
|
||||
ANSIBLE_COLLECTIONS_PATH=/opt/ansible-collections \
|
||||
PYTHONDONTWRITEBYTECODE=1 \
|
||||
PIP_DISABLE_PIP_VERSION_CHECK=1
|
||||
COPY ansible/requirements.yml /tmp/collections.yml
|
||||
RUN ansible-galaxy collection install -r /tmp/collections.yml -p /opt/ansible-collections \
|
||||
&& chmod -R a+rX /opt/ansible-collections \
|
||||
&& mkdir -p /opt/delivery-tools/inventory \
|
||||
&& dpkg-query -W > /opt/delivery-tools/inventory/debian-packages.txt \
|
||||
&& pip freeze > /opt/delivery-tools/inventory/python-packages.txt
|
||||
USER jenkins
|
||||
@@ -0,0 +1,54 @@
|
||||
name: ssw590-delivery
|
||||
services:
|
||||
agent:
|
||||
image: ssw590-delivery-agent:20261114
|
||||
restart: unless-stopped
|
||||
entrypoint: ["java", "-jar", "/usr/share/jenkins/agent.jar"]
|
||||
command:
|
||||
- -url
|
||||
- http://jenkins:8080/
|
||||
- -name
|
||||
- ssw590-vince-delivery
|
||||
- -secret
|
||||
- "@/run/delivery-identity/agent-secret"
|
||||
- -webSocket
|
||||
- -workDir
|
||||
- /home/jenkins/agent
|
||||
environment:
|
||||
JAVA_TOOL_OPTIONS: "-Xms32m -Xmx96m -XX:+UseSerialGC -XX:MaxMetaspaceSize=96m"
|
||||
GOMEMLIMIT: 192MiB
|
||||
TRIVY_PARALLEL: "1"
|
||||
BUILDX_CONFIG: /home/jenkins/agent/.buildx
|
||||
DELIVERY_BUILDER: ssw590-delivery-limited
|
||||
# Docker membership is host administration, including controller access.
|
||||
# Only reviewed delivery jobs may select this exclusive one-executor node.
|
||||
group_add: ["${DOCKER_GID:?set to the host Docker socket group}"]
|
||||
extra_hosts:
|
||||
- "host.docker.internal:host-gateway"
|
||||
networks: [web]
|
||||
volumes:
|
||||
- workspace:/home/jenkins/agent
|
||||
- /var/run/docker.sock:/var/run/docker.sock
|
||||
- identity:/run/delivery-identity:ro
|
||||
- ./ssh_config.droplet:/etc/ssh/ssh_config.d/90-delivery-target.conf:ro
|
||||
mem_limit: 512m
|
||||
memswap_limit: 768m
|
||||
cpus: 0.5
|
||||
pids_limit: 128
|
||||
security_opt: ["no-new-privileges:true"]
|
||||
cap_drop: ["ALL"]
|
||||
logging:
|
||||
driver: json-file
|
||||
options:
|
||||
max-size: 10m
|
||||
max-file: "3"
|
||||
networks:
|
||||
web:
|
||||
external: true
|
||||
name: gitea_web
|
||||
volumes:
|
||||
identity:
|
||||
external: true
|
||||
name: ssw590-delivery-identity
|
||||
workspace:
|
||||
name: ssw590-delivery-workspace
|
||||
@@ -0,0 +1,33 @@
|
||||
name: ssw590-delivery
|
||||
services:
|
||||
agent:
|
||||
image: ssw590-delivery-agent:20261114
|
||||
restart: "no"
|
||||
entrypoint: ["java", "-jar", "/usr/share/jenkins/agent.jar"]
|
||||
command:
|
||||
- -url
|
||||
- https://ci.yebilly.me/
|
||||
- -name
|
||||
- ssw590-vince-delivery
|
||||
- -secret
|
||||
- "@/run/delivery-identity/agent-secret"
|
||||
- -webSocket
|
||||
- -workDir
|
||||
- /home/jenkins/agent
|
||||
# Docker's Linux VM socket is owned by group 0. Membership grants Docker
|
||||
# administration privileges. Use this node exclusively for trusted jobs.
|
||||
group_add: ["0"]
|
||||
volumes:
|
||||
- workspace:/home/jenkins/agent
|
||||
- /var/run/docker.sock:/var/run/docker.sock
|
||||
- identity:/run/delivery-identity:ro
|
||||
mem_limit: 2g
|
||||
cpus: 2
|
||||
security_opt: ["no-new-privileges:true"]
|
||||
cap_drop: ["ALL"]
|
||||
volumes:
|
||||
identity:
|
||||
external: true
|
||||
name: ssw590-delivery-identity
|
||||
workspace:
|
||||
name: ssw590-delivery-workspace
|
||||
@@ -0,0 +1,2 @@
|
||||
ansible-core==2.21.6
|
||||
pip-audit==2.10.1
|
||||
@@ -0,0 +1,35 @@
|
||||
ansible-core==2.21.6
|
||||
boolean.py==5.0
|
||||
CacheControl==0.14.4
|
||||
certifi==2026.10.23
|
||||
cffi==2.1.1
|
||||
charset-normalizer==3.5.2
|
||||
cryptography==50.0.2
|
||||
cyclonedx-python-lib==11.12.0
|
||||
defusedxml==0.7.1
|
||||
filelock==4.2.10
|
||||
idna==3.20
|
||||
Jinja2==3.1.6
|
||||
license-expression==30.4.4
|
||||
markdown-it-py==4.3.0
|
||||
MarkupSafe==3.0.4
|
||||
mdurl==0.1.2
|
||||
msgpack==1.2.4
|
||||
packageurl-python==0.17.6
|
||||
packaging==26.3
|
||||
pip-requirements-parser==32.0.1
|
||||
pip_api==0.0.35
|
||||
pip_audit==2.10.1
|
||||
platformdirs==4.14.5
|
||||
py-serializable==2.2.0
|
||||
pycparser==3.12
|
||||
Pygments==2.21.0
|
||||
pyparsing==3.3.3
|
||||
PyYAML==6.0.3
|
||||
requests==2.34.2
|
||||
resolvelib==1.2.1
|
||||
rich==15.0.0
|
||||
sortedcontainers==2.4.0
|
||||
tomli==2.5.0
|
||||
tomli_w==1.2.0
|
||||
urllib3==2.8.0
|
||||
@@ -0,0 +1,26 @@
|
||||
#!/bin/sh
|
||||
set -eu
|
||||
python -m venv /tmp/tools
|
||||
/tmp/tools/bin/python -m pip install --disable-pip-version-check -r /workspace/delivery/agent/requirements.in
|
||||
/tmp/tools/bin/python -m pip freeze > /workspace/delivery/agent/requirements.txt
|
||||
/tmp/tools/bin/ansible-galaxy collection install -r /workspace/delivery/ansible/requirements.yml -p /tmp/collections
|
||||
/tmp/tools/bin/ansible-galaxy collection list -p /tmp/collections --format json > /tmp/collections.json
|
||||
/tmp/tools/bin/python - <<'PY'
|
||||
import json
|
||||
from pathlib import Path
|
||||
data = json.loads(Path('/tmp/collections.json').read_text())
|
||||
versions = {
|
||||
name: metadata['version']
|
||||
for collections in data.values()
|
||||
for name, metadata in collections.items()
|
||||
if name.startswith('community.')
|
||||
}
|
||||
assert 'community.docker' in versions, versions
|
||||
Path('/workspace/delivery/ansible/requirements.yml').write_text(
|
||||
'collections:\n' + ''.join(
|
||||
f' - name: {name}\n version: "{version}"\n'
|
||||
for name, version in sorted(versions.items())
|
||||
)
|
||||
)
|
||||
print(f'Pinned collections: {versions}')
|
||||
PY
|
||||
@@ -0,0 +1,6 @@
|
||||
# On The-Ocean only: keep the inventory and pinned public-key identity, but
|
||||
# send deployment SSH to this Docker host's gateway, never across campus Wi-Fi.
|
||||
Host 147.182.178.136
|
||||
HostName host.docker.internal
|
||||
HostKeyAlias 147.182.178.136
|
||||
ConnectTimeout 10
|
||||
@@ -0,0 +1,74 @@
|
||||
- name: Deploy a selected immutable pricing release
|
||||
hosts: delivery
|
||||
become: true
|
||||
vars:
|
||||
project_dir: "/opt/startup/pricing-{{ target_env }}"
|
||||
tasks:
|
||||
- name: Validate release selection
|
||||
ansible.builtin.assert:
|
||||
that:
|
||||
- target_env in ['staging', 'production']
|
||||
- "'@sha256:' in release_image"
|
||||
- expected_version in ['v1', 'v2']
|
||||
- expected_total | int > 0
|
||||
- public_url.startswith('https://')
|
||||
- proxy_network | length > 0
|
||||
- expected_commit is match('^[0-9a-f]{40}$')
|
||||
- configuration_commit is match('^[0-9a-f]{40}$')
|
||||
- release_image is match('^git[.]yebilly[.]me/ssw590-group1/pricing@sha256:[0-9a-f]{64}$')
|
||||
- proxy_network == 'gitea_web'
|
||||
- public_url == ('https://staging.yebilly.me' if target_env == 'staging' else 'https://app.yebilly.me')
|
||||
- expected_total | int == (30 if expected_version == 'v1' else 36)
|
||||
- name: Create deployment directory
|
||||
ansible.builtin.file:
|
||||
path: "{{ project_dir }}"
|
||||
state: directory
|
||||
mode: '0750'
|
||||
- name: Render selected Compose configuration
|
||||
ansible.builtin.template:
|
||||
src: compose.yaml.j2
|
||||
dest: "{{ project_dir }}/compose.yaml"
|
||||
mode: '0640'
|
||||
- name: Converge application without rebuilding
|
||||
community.docker.docker_compose_v2:
|
||||
project_src: "{{ project_dir }}"
|
||||
project_name: "pricing-{{ target_env }}"
|
||||
state: present
|
||||
build: never
|
||||
pull: missing
|
||||
wait: true
|
||||
wait_timeout: 90
|
||||
- name: Verify health through public TLS endpoint
|
||||
ansible.builtin.uri:
|
||||
url: "{{ public_url }}/health"
|
||||
return_content: true
|
||||
validate_certs: true
|
||||
register: health
|
||||
until: health.status == 200 and health.json.status == 'ok'
|
||||
retries: 12
|
||||
delay: 5
|
||||
changed_when: false
|
||||
- name: Read release identity
|
||||
ansible.builtin.uri:
|
||||
url: "{{ public_url }}/"
|
||||
return_content: true
|
||||
register: identity
|
||||
changed_when: false
|
||||
- name: Exercise business behavior
|
||||
ansible.builtin.uri:
|
||||
url: "{{ public_url }}/price?quantity=3"
|
||||
return_content: true
|
||||
register: price
|
||||
changed_when: false
|
||||
- name: Check release identity and calculation
|
||||
ansible.builtin.assert:
|
||||
that:
|
||||
- identity.json.version == expected_version
|
||||
- health.json.version == expected_version
|
||||
- identity.json.commit == expected_commit
|
||||
- price.json.total | int == expected_total | int
|
||||
- name: Preserve the selected non-secret release metadata
|
||||
ansible.builtin.copy:
|
||||
dest: "{{ project_dir }}/release.json"
|
||||
mode: '0640'
|
||||
content: "{{ {'release_image': release_image, 'source_commit': expected_commit, 'configuration_commit': configuration_commit, 'version': expected_version, 'expected_total': expected_total, 'public_url': public_url} | to_nice_json }}\n"
|
||||
@@ -0,0 +1,7 @@
|
||||
[delivery]
|
||||
# The SSH host key must be verified and supplied by the trusted delivery job.
|
||||
startup ansible_host=147.182.178.136 ansible_user=deploy ansible_python_interpreter=/usr/bin/python3
|
||||
|
||||
[delivery:vars]
|
||||
# The dedicated deploy key forbids PTY allocation; sudo is noninteractive.
|
||||
ansible_ssh_use_tty=false
|
||||
@@ -0,0 +1,9 @@
|
||||
# Copy to a release-specific file and replace EVERY placeholder.
|
||||
target_env: staging
|
||||
release_image: git.yebilly.me/ssw590-group1/pricing@sha256:REPLACE_DIGEST
|
||||
expected_version: v1
|
||||
expected_commit: REPLACE_FULL_GIT_COMMIT
|
||||
configuration_commit: REPLACE_FULL_REVIEWED_CONFIGURATION_COMMIT
|
||||
expected_total: 30
|
||||
public_url: https://staging.yebilly.me
|
||||
proxy_network: gitea_web
|
||||
@@ -0,0 +1,5 @@
|
||||
collections:
|
||||
- name: community.docker
|
||||
version: "5.4.0"
|
||||
- name: community.library_inventory_filtering_v1
|
||||
version: "1.1.5"
|
||||
@@ -0,0 +1,23 @@
|
||||
services:
|
||||
app:
|
||||
image: "{{ release_image }}"
|
||||
restart: unless-stopped
|
||||
read_only: true
|
||||
tmpfs:
|
||||
- /tmp:size=16m,mode=1777
|
||||
cap_drop:
|
||||
- ALL
|
||||
security_opt:
|
||||
- no-new-privileges:true
|
||||
mem_limit: 64m
|
||||
memswap_limit: 96m
|
||||
cpus: 0.25
|
||||
pids_limit: 64
|
||||
networks:
|
||||
edge:
|
||||
aliases:
|
||||
- "pricing-{{ target_env }}"
|
||||
networks:
|
||||
edge:
|
||||
external: true
|
||||
name: "{{ proxy_network }}"
|
||||
@@ -0,0 +1,4 @@
|
||||
__pycache__
|
||||
.venv
|
||||
.git
|
||||
*.pyc
|
||||
@@ -0,0 +1,14 @@
|
||||
FROM python:3.13-alpine@sha256:9ef1a599f863231c3d91e941389bfdc4a2d6070557243d54df1a4e57015b960e
|
||||
ARG APP_COMMIT=development
|
||||
ENV APP_COMMIT=$APP_COMMIT PYTHONDONTWRITEBYTECODE=1 PYTHONUNBUFFERED=1
|
||||
WORKDIR /app
|
||||
COPY requirements.txt .
|
||||
RUN pip install --no-cache-dir -r requirements.txt \
|
||||
&& python -m pip uninstall -y pip \
|
||||
&& rm -rf /usr/local/lib/python3.13/ensurepip
|
||||
COPY app.py .
|
||||
USER 10001:10001
|
||||
EXPOSE 8000
|
||||
# Allow Python startup under the 0.25 CPU cap; the HTTP timeout remains 2s.
|
||||
HEALTHCHECK --interval=10s --timeout=10s --start-period=10s --retries=3 CMD python -c "import urllib.request; urllib.request.urlopen('http://127.0.0.1:8000/health', timeout=2)"
|
||||
CMD ["gunicorn", "--bind", "0.0.0.0:8000", "--workers", "1", "--worker-tmp-dir", "/tmp", "app:app"]
|
||||
@@ -0,0 +1,33 @@
|
||||
import os
|
||||
from flask import Flask, jsonify, request
|
||||
|
||||
app = Flask(__name__)
|
||||
VERSION = "v2"
|
||||
UNIT_PRICE = 12
|
||||
COMMIT = os.environ.get("APP_COMMIT", "development")
|
||||
|
||||
|
||||
def total_price(quantity):
|
||||
if quantity < 1 or quantity > 1000:
|
||||
raise ValueError("quantity must be between 1 and 1000")
|
||||
return UNIT_PRICE * quantity
|
||||
|
||||
|
||||
@app.get("/")
|
||||
def index():
|
||||
return jsonify(service="Startup Pricing", version=VERSION, commit=COMMIT)
|
||||
|
||||
|
||||
@app.get("/health")
|
||||
def health():
|
||||
return jsonify(status="ok", version=VERSION)
|
||||
|
||||
|
||||
@app.get("/price")
|
||||
def price():
|
||||
try:
|
||||
quantity = int(request.args.get("quantity", "1"))
|
||||
total = total_price(quantity)
|
||||
except ValueError as error:
|
||||
return jsonify(error=str(error)), 400
|
||||
return jsonify(quantity=quantity, total=total, currency="USD")
|
||||
@@ -0,0 +1,3 @@
|
||||
# Instructor compatibility ranges. requirements.txt locks the assessed versions.
|
||||
Flask>=3.1,<3.2
|
||||
gunicorn>=23,<24
|
||||
@@ -0,0 +1,9 @@
|
||||
blinker==1.9.0
|
||||
click==8.5.1
|
||||
Flask==3.1.3
|
||||
gunicorn==23.0.0
|
||||
itsdangerous==2.2.0
|
||||
Jinja2==3.1.6
|
||||
MarkupSafe==3.0.4
|
||||
packaging==26.3
|
||||
Werkzeug==3.1.9
|
||||
@@ -0,0 +1,25 @@
|
||||
import unittest
|
||||
from app import app, total_price
|
||||
|
||||
|
||||
class PricingTests(unittest.TestCase):
|
||||
def setUp(self):
|
||||
self.client = app.test_client()
|
||||
|
||||
def test_price(self):
|
||||
self.assertEqual(total_price(3), 36)
|
||||
response = self.client.get("/price?quantity=3")
|
||||
self.assertEqual(response.status_code, 200)
|
||||
self.assertEqual(response.json["total"], 36)
|
||||
|
||||
def test_invalid_quantity(self):
|
||||
for value in ["0", "-1", "1001", "abc", "1.5"]:
|
||||
self.assertEqual(self.client.get("/price?quantity=" + value).status_code, 400)
|
||||
|
||||
def test_release_identity(self):
|
||||
self.assertEqual(self.client.get("/").json["version"], "v2")
|
||||
self.assertEqual(self.client.get("/health").json["status"], "ok")
|
||||
|
||||
|
||||
if __name__ == "__main__":
|
||||
unittest.main()
|
||||
@@ -0,0 +1,57 @@
|
||||
#!/bin/sh
|
||||
# Run inside the idle trusted agent from a non-secret preparation snapshot.
|
||||
# This is a capacity/tool trial, never a reviewed release or registry push.
|
||||
set -eu
|
||||
export TRIVY_CACHE_DIR=/home/jenkins/agent/.cache/trivy
|
||||
mkdir -p build/delivery/reports
|
||||
date -u
|
||||
python3 -B -m unittest discover -s delivery/ci -p 'test_controls.py' -v
|
||||
sh delivery/ci/test-app.sh
|
||||
python3 delivery/ci/security.py source
|
||||
: "${DELIVERY_BUILDER:?use the limited remote builder}"
|
||||
docker buildx build --builder "$DELIVERY_BUILDER" --load --platform linux/amd64 \
|
||||
--build-arg APP_COMMIT=uncommitted-remote-preflight \
|
||||
-t ssw590-pricing:remote-preflight-v1 delivery/app
|
||||
python3 delivery/ci/security.py image --image ssw590-pricing:remote-preflight-v1
|
||||
name=ssw590-delivery-capacity-smoke
|
||||
cleanup() { docker rm -f "$name" >/dev/null 2>&1 || true; }
|
||||
# Refuse to replace any existing container, even one from an interrupted trial.
|
||||
if docker container inspect "$name" >/dev/null 2>&1; then
|
||||
echo 'Inspect the existing trial container before retrying' >&2
|
||||
exit 1
|
||||
fi
|
||||
trap cleanup EXIT
|
||||
docker run -d --name "$name" --network gitea_web --read-only \
|
||||
--tmpfs /tmp:rw,nosuid,noexec,size=16m --memory 64m --memory-swap 96m \
|
||||
--cpus .25 --pids-limit 64 --cap-drop ALL --security-opt no-new-privileges \
|
||||
ssw590-pricing:remote-preflight-v1
|
||||
python3 - <<'PY'
|
||||
import json, time, urllib.request, urllib.error
|
||||
url = 'http://ssw590-delivery-capacity-smoke:8000'
|
||||
for attempt in range(30):
|
||||
try:
|
||||
with urllib.request.urlopen(url + '/health', timeout=2) as response:
|
||||
health = json.load(response)
|
||||
break
|
||||
except (OSError, ValueError):
|
||||
time.sleep(1)
|
||||
else:
|
||||
raise RuntimeError('Application failed to start')
|
||||
def get(path):
|
||||
with urllib.request.urlopen(url + path, timeout=5) as response:
|
||||
return json.load(response)
|
||||
identity, price = get('/'), get('/price?quantity=3')
|
||||
assert health['status'] == 'ok' and health['version'] == 'v1', health
|
||||
assert identity['commit'] == 'uncommitted-remote-preflight', identity
|
||||
assert price['total'] == 30, price
|
||||
try:
|
||||
get('/price?quantity=-1')
|
||||
raise AssertionError('Invalid quantity accepted')
|
||||
except urllib.error.HTTPError as error:
|
||||
assert error.code == 400, error.code
|
||||
print(json.dumps({'health': health, 'identity': identity, 'price': price,
|
||||
'invalid_quantity_status': 400}, indent=2))
|
||||
PY
|
||||
docker inspect "$name" --format 'smoke OOMKilled={{.State.OOMKilled}} memory={{.HostConfig.Memory}}'
|
||||
date -u
|
||||
echo 'PASS: remote capacity preparation; no image published or assessed environment deployed'
|
||||
@@ -0,0 +1,79 @@
|
||||
// One-time bootstrap loaded from Jenkins home after an authorized host setup.
|
||||
// Never print secret values. Scope release credentials to the delivery folder.
|
||||
import jenkins.model.Jenkins
|
||||
import hudson.model.Node
|
||||
import hudson.slaves.DumbSlave
|
||||
import hudson.slaves.JNLPLauncher
|
||||
import hudson.slaves.RetentionStrategy
|
||||
import com.cloudbees.hudson.plugins.folder.Folder
|
||||
import com.cloudbees.plugins.credentials.CredentialsProvider
|
||||
import com.cloudbees.plugins.credentials.CredentialsScope
|
||||
import com.cloudbees.plugins.credentials.SecretBytes
|
||||
import com.cloudbees.plugins.credentials.domains.Domain
|
||||
import com.cloudbees.plugins.credentials.impl.UsernamePasswordCredentialsImpl
|
||||
import com.cloudbees.jenkins.plugins.sshcredentials.impl.BasicSSHUserPrivateKey
|
||||
import org.jenkinsci.plugins.plaincredentials.impl.FileCredentialsImpl
|
||||
import org.jenkinsci.plugins.workflow.job.WorkflowJob
|
||||
import org.jenkinsci.plugins.workflow.cps.CpsScmFlowDefinition
|
||||
import hudson.plugins.git.GitSCM
|
||||
import hudson.plugins.git.UserRemoteConfig
|
||||
import hudson.plugins.git.BranchSpec
|
||||
import groovy.json.JsonOutput
|
||||
|
||||
def j = Jenkins.get()
|
||||
def inputs = new File(j.rootDir, 'delivery-bootstrap')
|
||||
def done = new File(inputs, 'configured.json')
|
||||
if (done.exists()) return
|
||||
assert j.getItem('secure-delivery') == null : 'Existing folder requires review'
|
||||
assert j.getNode('ssw590-vince-delivery') == null : 'Existing node requires review'
|
||||
def folder = j.createProject(Folder, 'secure-delivery')
|
||||
folder.description = 'Assignment 8: reviewed releases only; folder-scoped deployment credentials.'
|
||||
folder.save()
|
||||
def store = CredentialsProvider.lookupStores(folder).find { it.context == folder }
|
||||
assert store != null : 'Folder credential store unavailable'
|
||||
def scope = CredentialsScope.GLOBAL
|
||||
def credential = new UsernamePasswordCredentialsImpl(scope, 'delivery-registry-write',
|
||||
'Assignment 8 package-write only; vsun1; revoke after grading', 'vsun1',
|
||||
new File(inputs, 'registry-write').text.trim())
|
||||
assert store.addCredentials(Domain.global(), credential)
|
||||
def key = new BasicSSHUserPrivateKey(scope, 'delivery-deploy-ssh', 'deploy',
|
||||
new BasicSSHUserPrivateKey.DirectEntryPrivateKeySource(new File(inputs, 'deploy_ed25519').text),
|
||||
'', 'Assignment 8 deploy account; root sudo; reviewed releases only')
|
||||
assert store.addCredentials(Domain.global(), key)
|
||||
def knownHosts = new FileCredentialsImpl(scope, 'delivery-known-hosts',
|
||||
'The-Ocean ED25519 host key verified through existing pinned administrator SSH',
|
||||
'known_hosts', SecretBytes.fromBytes(new File(inputs, 'known_hosts').bytes))
|
||||
assert store.addCredentials(Domain.global(), knownHosts)
|
||||
def launcher = new JNLPLauncher()
|
||||
launcher.setWebSocket(true)
|
||||
def node = new DumbSlave('ssw590-vince-delivery', 'Trusted The-Ocean Docker/Ansible delivery agent (legacy node name)',
|
||||
'/home/jenkins/agent', '1', Node.Mode.EXCLUSIVE, 'delivery-trusted', launcher,
|
||||
new RetentionStrategy.Always(), [])
|
||||
j.addNode(node)
|
||||
def secret = new File(inputs, 'agent-secret')
|
||||
secret.text = node.toComputer().getJnlpMac() + '\n'
|
||||
secret.setReadable(false, false)
|
||||
secret.setWritable(false, false)
|
||||
secret.setReadable(true, true)
|
||||
secret.setWritable(true, true)
|
||||
def job = folder.createProject(WorkflowJob, 'pricing')
|
||||
def scm = new GitSCM(
|
||||
[new UserRemoteConfig('https://git.yebilly.me/ssw590-group1/vpn-dns-gateway.git', null, null, 'gitea-jenkins-bot')],
|
||||
[new BranchSpec('*/main')], false, [], null, null, [])
|
||||
def definition = new CpsScmFlowDefinition(scm, 'delivery/Jenkinsfile')
|
||||
definition.lightweight = true
|
||||
job.definition = definition
|
||||
job.description = 'Reviewed protected-main code only. Enable after the Assignment 8 source is reviewed and merged.'
|
||||
job.disabled = true
|
||||
job.save()
|
||||
done.text = JsonOutput.prettyPrint(JsonOutput.toJson([
|
||||
configured_at: new Date().format("yyyy-MM-dd'T'HH:mm:ssXXX", TimeZone.getTimeZone('UTC')),
|
||||
node: node.nodeName, label: 'delivery-trusted', executors: 1, exclusive: true,
|
||||
job: job.fullName, disabled: true, credential_scope: folder.fullName,
|
||||
credential_ids: ['delivery-registry-write', 'delivery-deploy-ssh', 'delivery-known-hosts']
|
||||
])) + '\n'
|
||||
['registry-write', 'deploy_ed25519', 'known_hosts'].each { name ->
|
||||
assert new File(inputs, name).delete() : "Could not remove transient bootstrap input ${name}"
|
||||
}
|
||||
assert new File(j.rootDir, 'init.groovy.d/ssw590-delivery.groovy').delete()
|
||||
println('Assignment 8 delivery configuration complete; secret values were not printed; job is disabled.')
|
||||
@@ -0,0 +1,72 @@
|
||||
"""Apply only the prepared Assignment 8 proxy additions, preserving the bind inode."""
|
||||
import argparse
|
||||
import hashlib
|
||||
import json
|
||||
import os
|
||||
import shutil
|
||||
import socket
|
||||
import subprocess
|
||||
from datetime import datetime, timezone
|
||||
from pathlib import Path
|
||||
|
||||
parser = argparse.ArgumentParser()
|
||||
parser.add_argument('--candidate', required=True, type=Path)
|
||||
parser.add_argument('--backup', required=True, type=Path)
|
||||
parser.add_argument('--apply', action='store_true')
|
||||
args = parser.parse_args()
|
||||
live = Path('/root/gitea/Caddyfile')
|
||||
marker = '# Assignment 8: apply after both DNS names resolve to The-Ocean.'
|
||||
candidate = args.candidate.read_text()
|
||||
before = live.read_bytes()
|
||||
prefix, additions = candidate.split(marker, 1)
|
||||
expected = '''# Assignment 8: apply after both DNS names resolve to The-Ocean. Containers
|
||||
# publish no host ports; the existing proxy reaches their private aliases.
|
||||
staging.yebilly.me {
|
||||
\treverse_proxy pricing-staging:8000
|
||||
}
|
||||
|
||||
app.yebilly.me {
|
||||
\treverse_proxy pricing-production:8000
|
||||
}'''
|
||||
assert (marker + additions).strip() == expected, 'Unexpected proxy additions'
|
||||
assert prefix.strip() == before.decode().replace('\r\n', '\n').strip(), 'Live earlier routes differ; inspect instead of overwriting'
|
||||
for host in ('staging.yebilly.me', 'app.yebilly.me'):
|
||||
addresses = {item[4][0] for item in socket.getaddrinfo(host, 443, socket.AF_INET)}
|
||||
assert addresses == {'147.182.178.136'}, (host, addresses)
|
||||
temp = '/tmp/ssw590-assignment8-https.Caddyfile'
|
||||
subprocess.run(['docker', 'cp', str(args.candidate), 'gitea-caddy-1:' + temp], check=True)
|
||||
try:
|
||||
subprocess.run(['docker', 'exec', 'gitea-caddy-1', 'caddy', 'validate', '--config', temp, '--adapter', 'caddyfile'], check=True)
|
||||
if not args.apply:
|
||||
print('Candidate validated; no active configuration changed.')
|
||||
raise SystemExit(0)
|
||||
args.backup.mkdir(mode=0o700, parents=True, exist_ok=True)
|
||||
backup = args.backup / 'Caddyfile.before'
|
||||
assert not backup.exists(), 'Existing backup: inspect state before retrying'
|
||||
shutil.copy2(live, backup)
|
||||
prior_stat = live.stat()
|
||||
try:
|
||||
with live.open('wb') as stream:
|
||||
stream.write(candidate.encode())
|
||||
stream.flush()
|
||||
os.fsync(stream.fileno())
|
||||
assert live.stat().st_ino == prior_stat.st_ino, 'Bind-mounted inode changed'
|
||||
subprocess.run(['docker', 'exec', 'gitea-caddy-1', 'caddy', 'reload', '--config', '/etc/caddy/Caddyfile', '--adapter', 'caddyfile'], check=True)
|
||||
except Exception:
|
||||
with live.open('wb') as stream:
|
||||
stream.write(before)
|
||||
stream.flush()
|
||||
os.fsync(stream.fileno())
|
||||
subprocess.run(['docker', 'exec', 'gitea-caddy-1', 'caddy', 'reload', '--config', '/etc/caddy/Caddyfile', '--adapter', 'caddyfile'], check=True)
|
||||
raise
|
||||
report = {'applied_at': datetime.now(timezone.utc).isoformat(),
|
||||
'before_sha256': hashlib.sha256(before).hexdigest(),
|
||||
'after_sha256': hashlib.sha256(live.read_bytes()).hexdigest(),
|
||||
'inode_preserved': live.stat().st_ino == prior_stat.st_ino,
|
||||
'prior_routes_preserved': True, 'applications_deployed': False,
|
||||
'new_hosts': ['staging.yebilly.me', 'app.yebilly.me'],
|
||||
'backup': str(backup), 'result': 'reloaded; certificate verification pending'}
|
||||
(args.backup / 'applied.json').write_text(json.dumps(report, indent=2))
|
||||
print(json.dumps(report, indent=2))
|
||||
finally:
|
||||
subprocess.run(['docker', 'exec', 'gitea-caddy-1', 'rm', '-f', temp], check=True)
|
||||
@@ -0,0 +1,79 @@
|
||||
"""Apply the reviewed production probe/panel only after production is healthy."""
|
||||
import argparse
|
||||
from datetime import datetime, timezone
|
||||
import hashlib
|
||||
import json
|
||||
import os
|
||||
from pathlib import Path
|
||||
import shutil
|
||||
import subprocess
|
||||
import urllib.request
|
||||
|
||||
parser = argparse.ArgumentParser()
|
||||
parser.add_argument('--prometheus', required=True, type=Path)
|
||||
parser.add_argument('--dashboard', required=True, type=Path)
|
||||
parser.add_argument('--backup', required=True, type=Path)
|
||||
parser.add_argument('--apply', action='store_true')
|
||||
args = parser.parse_args()
|
||||
live_prom = Path('/root/monitoring/prometheus/prometheus.yml')
|
||||
live_dashboard = Path('/root/monitoring/grafana/dashboards/sre.json')
|
||||
before = {live_prom:live_prom.read_bytes(), live_dashboard:live_dashboard.read_bytes()}
|
||||
candidate_prom = args.prometheus.read_text().replace('\r\n','\n')
|
||||
candidate_dashboard = args.dashboard.read_bytes()
|
||||
addition = ' # Apply this addition only after Assignment 8 production is healthy.\n - https://app.yebilly.me/health\n'
|
||||
assert candidate_prom.count(addition) == 1, 'Unexpected production probe'
|
||||
assert candidate_prom.replace(addition,'').strip() == before[live_prom].decode().replace('\r\n','\n').strip(), 'Existing probes differ; inspect before changing'
|
||||
old = json.loads(before[live_dashboard])
|
||||
new = json.loads(candidate_dashboard)
|
||||
assert old['uid'] == new['uid'] == 'group1-sre'
|
||||
assert old['version'] == 1 and new['version'] == 2
|
||||
panel = new['panels'][-1]
|
||||
assert panel['id'] == 8 and panel['type'] == 'timeseries'
|
||||
assert panel['targets'][0]['expr'] == 'probe_success{job="https",instance="https://app.yebilly.me/health"}'
|
||||
comparison = dict(new, version=old['version'], panels=new['panels'][:-1])
|
||||
assert comparison == old, 'Existing dashboard differs; inspect before changing'
|
||||
with urllib.request.urlopen('https://app.yebilly.me/health',timeout=10) as response:
|
||||
health = json.load(response)
|
||||
assert response.status == 200 and health['status'] == 'ok' and health['version'] in {'v1','v2'}, 'Production must be healthy first'
|
||||
|
||||
stamp = datetime.now(timezone.utc).strftime('%Y%m%dT%H%M%S%fZ')
|
||||
temporary = '/tmp/ssw590-production-probe-' + stamp + '.yml'
|
||||
subprocess.run(['docker','cp',str(args.prometheus),'monitoring-prometheus-1:'+temporary],check=True,capture_output=True)
|
||||
try:
|
||||
validation = subprocess.check_output(['docker','exec','monitoring-prometheus-1','promtool','check','config',temporary],text=True)
|
||||
if not args.apply:
|
||||
print(validation + 'Validated only; no active file changed.')
|
||||
raise SystemExit(0)
|
||||
args.backup.mkdir(parents=True,mode=0o700,exist_ok=False)
|
||||
for path in before:
|
||||
shutil.copy2(path,args.backup / (path.name + '.before'))
|
||||
inodes = {p:p.stat().st_ino for p in before}
|
||||
|
||||
def write(path,content):
|
||||
with path.open('wb') as stream:
|
||||
stream.write(content)
|
||||
stream.flush()
|
||||
os.fsync(stream.fileno())
|
||||
assert path.stat().st_ino == inodes[path], 'Bind inode changed'
|
||||
|
||||
try:
|
||||
write(live_prom,candidate_prom.encode())
|
||||
write(live_dashboard,candidate_dashboard)
|
||||
subprocess.run(['docker','kill','--signal','HUP','monitoring-prometheus-1'],check=True,capture_output=True)
|
||||
except Exception:
|
||||
for path,content in before.items():
|
||||
write(path,content)
|
||||
subprocess.run(['docker','kill','--signal','HUP','monitoring-prometheus-1'],check=True,capture_output=True)
|
||||
raise
|
||||
report = {'applied_at':datetime.now(timezone.utc).isoformat(),'production_health':health,
|
||||
'validation':validation,'prior_probes_and_panels_preserved':True,
|
||||
'files':[{'path':str(p),'before_sha256':hashlib.sha256(before[p]).hexdigest(),
|
||||
'after_sha256':hashlib.sha256(p.read_bytes()).hexdigest(),
|
||||
'inode_preserved':p.stat().st_ino == inodes[p]} for p in before],
|
||||
'backup':str(args.backup),'reload':'Prometheus SIGHUP; Grafana file provisioning',
|
||||
'result':'applied; runtime probe and panel verification still required'}
|
||||
(args.backup / 'applied.json').write_text(json.dumps(report,indent=2))
|
||||
print(json.dumps(report,indent=2))
|
||||
finally:
|
||||
# docker cp creates a root-owned file; the Prometheus service runs as nobody.
|
||||
subprocess.run(['docker','exec','--user','0','monitoring-prometheus-1','rm','-f',temporary],check=True,capture_output=True)
|
||||
@@ -0,0 +1,42 @@
|
||||
// Administrator preparation only: no checkout, image publication or deployment.
|
||||
pipeline {
|
||||
agent { label 'delivery-trusted' }
|
||||
options { disableConcurrentBuilds(); timeout(time: 5, unit: 'MINUTES') }
|
||||
stages {
|
||||
stage('Tool and target prerequisites') {
|
||||
steps {
|
||||
withCredentials([
|
||||
sshUserPrivateKey(credentialsId: 'delivery-deploy-ssh', keyFileVariable: 'DEPLOY_KEY'),
|
||||
file(credentialsId: 'delivery-known-hosts', variable: 'DEPLOY_KNOWN_HOSTS')
|
||||
]) {
|
||||
sh '''set -eu
|
||||
set +x
|
||||
mkdir -p build/preflight
|
||||
{
|
||||
date -u
|
||||
id
|
||||
python3 --version
|
||||
ansible --version
|
||||
ansible-galaxy collection list
|
||||
docker --version
|
||||
docker compose version
|
||||
trivy --version
|
||||
pip-audit --version
|
||||
ssh -i "$DEPLOY_KEY" -o BatchMode=yes -o IdentitiesOnly=yes -o StrictHostKeyChecking=yes -o "UserKnownHostsFile=$DEPLOY_KNOWN_HOSTS" deploy@147.182.178.136 'id; sudo -n true; python3 --version; sudo -n docker --version; sudo -n docker compose version; free -m; nproc; df -h /'
|
||||
# Exercise Ansible's own SSH/become path as well as plain SSH. Its default
|
||||
# PTY request is incompatible with the intentionally restricted deploy key.
|
||||
export ANSIBLE_HOST_KEY_CHECKING=True
|
||||
export ANSIBLE_PRIVATE_KEY_FILE="$DEPLOY_KEY"
|
||||
export ANSIBLE_SSH_ARGS="-o BatchMode=yes -o IdentitiesOnly=yes -o StrictHostKeyChecking=yes -o UserKnownHostsFile=$DEPLOY_KNOWN_HOSTS"
|
||||
ansible all -i '147.182.178.136,' -u deploy --become \
|
||||
-e '{"ansible_ssh_use_tty":false,"ansible_python_interpreter":"/usr/bin/python3"}' \
|
||||
-m ansible.builtin.command -a 'id -u'
|
||||
} > build/preflight/tools-and-target.txt
|
||||
cat build/preflight/tools-and-target.txt
|
||||
'''
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
post { always { archiveArtifacts(artifacts: 'build/preflight/**', allowEmptyArchive: true) } }
|
||||
}
|
||||
@@ -0,0 +1,129 @@
|
||||
"""One-time administrator bootstrap; run only on the authorized droplet.
|
||||
|
||||
Secrets stay in protected host/Jenkins storage and are never printed. This
|
||||
does not deploy an application, enable the release job, commit, or push.
|
||||
"""
|
||||
|
||||
import argparse
|
||||
import json
|
||||
import os
|
||||
from pathlib import Path
|
||||
import shutil
|
||||
import sqlite3
|
||||
import subprocess
|
||||
from datetime import datetime, timezone
|
||||
|
||||
HOME = Path('/var/lib/docker/volumes/gitea_jenkins-home/_data')
|
||||
STATE = Path('/root/ssw590-delivery-bootstrap')
|
||||
SCRIPTS = Path(__file__).resolve().parent
|
||||
|
||||
|
||||
def run(args, **kwargs):
|
||||
return subprocess.run(args, check=True, **kwargs)
|
||||
|
||||
|
||||
def private_file(path, content, owner=None):
|
||||
path.write_text(content)
|
||||
path.chmod(0o600)
|
||||
if owner is not None:
|
||||
os.chown(path, owner, owner)
|
||||
|
||||
|
||||
def registry_token(name, scope):
|
||||
result = subprocess.run([
|
||||
'docker', 'exec', '-u', 'git', 'gitea-gitea-1', 'gitea',
|
||||
'--config', '/data/gitea/conf/app.ini', 'admin', 'user',
|
||||
'generate-access-token', '--username', 'vsun1', '--token-name', name,
|
||||
'--scopes', scope, '--raw',
|
||||
], text=True, capture_output=True)
|
||||
value = result.stdout.strip()
|
||||
if result.returncode or len(value) != 40 or not all(c in '0123456789abcdef' for c in value):
|
||||
raise RuntimeError('Token creation did not return the expected format; no secret output emitted')
|
||||
return value
|
||||
|
||||
|
||||
def main():
|
||||
parser = argparse.ArgumentParser()
|
||||
parser.add_argument('--apply', action='store_true')
|
||||
args = parser.parse_args()
|
||||
if not args.apply:
|
||||
print('Plan: back up Jenkins/Gitea; create deploy SSH/sudo access; create package-only tokens;')
|
||||
print('configure folder-scoped Jenkins credentials, an exclusive agent and a DISABLED release job; restart Jenkins.')
|
||||
return
|
||||
if os.geteuid() != 0 or not HOME.is_dir():
|
||||
raise RuntimeError('Run as root on the existing The-Ocean droplet')
|
||||
if STATE.exists() or (HOME / 'delivery-bootstrap').exists():
|
||||
raise RuntimeError('Bootstrap state already exists: inspect it rather than rotating or overwriting access')
|
||||
if subprocess.run(['id', 'deploy'], stdout=subprocess.DEVNULL, stderr=subprocess.DEVNULL).returncode == 0:
|
||||
raise RuntimeError('An existing deploy account requires review before modification')
|
||||
run(['docker', 'exec', 'gitea-jenkins-1', 'test', '-e', '/var/jenkins_home/plugins/cloudbees-folder.jpi'])
|
||||
STATE.mkdir(mode=0o700)
|
||||
stamp = datetime.now(timezone.utc).strftime('%Y%m%dT%H%M%SZ')
|
||||
backup = STATE / ('backup-' + stamp)
|
||||
backup.mkdir(mode=0o700)
|
||||
database = Path('/var/lib/docker/volumes/gitea_gitea-data/_data/gitea/gitea.db')
|
||||
with sqlite3.connect(f'file:{database}?mode=ro', uri=True) as source:
|
||||
with sqlite3.connect(backup / 'gitea.db') as target:
|
||||
source.backup(target)
|
||||
(backup / 'gitea.db').chmod(0o600)
|
||||
run(['docker', 'stop', 'gitea-jenkins-1'], stdout=subprocess.DEVNULL)
|
||||
try:
|
||||
run(['tar', '-czf', str(backup / 'jenkins-home.tgz'), '-C', str(HOME), '.'])
|
||||
finally:
|
||||
run(['docker', 'start', 'gitea-jenkins-1'], stdout=subprocess.DEVNULL)
|
||||
(backup / 'jenkins-home.tgz').chmod(0o600)
|
||||
if Path('/root/.docker/config.json').exists():
|
||||
shutil.copy2('/root/.docker/config.json', backup / 'docker-config.json')
|
||||
(backup / 'docker-config.json').chmod(0o600)
|
||||
key = STATE / 'deploy_ed25519'
|
||||
run(['ssh-keygen', '-q', '-t', 'ed25519', '-N', '', '-C', 'ssw590-jenkins-delivery', '-f', str(key)])
|
||||
run(['useradd', '--create-home', '--shell', '/bin/bash', '--comment', 'SSW590 trusted Ansible deployment', 'deploy'])
|
||||
sshdir = Path('/home/deploy/.ssh')
|
||||
sshdir.mkdir(mode=0o700)
|
||||
run(['chown', 'deploy:deploy', str(sshdir)])
|
||||
public_key = key.with_suffix('.pub').read_text().strip()
|
||||
private_file(sshdir / 'authorized_keys', 'restrict ' + public_key + '\n')
|
||||
run(['chown', 'deploy:deploy', str(sshdir / 'authorized_keys')])
|
||||
sudoers = Path('/etc/sudoers.d/ssw590-delivery')
|
||||
private_file(sudoers, '# Trusted Ansible release account: effective host administrator.\ndeploy ALL=(root) NOPASSWD: ALL\n')
|
||||
sudoers.chmod(0o440)
|
||||
run(['visudo', '-cf', str(sudoers)])
|
||||
write_token = registry_token('ssw590-delivery-agent-' + stamp, 'write:package')
|
||||
read_token = registry_token('ssw590-delivery-target-' + stamp, 'read:package')
|
||||
result = subprocess.run([
|
||||
'docker', 'login', '--username', 'vsun1', '--password-stdin', 'git.yebilly.me'
|
||||
], input=read_token + '\n', text=True, capture_output=True)
|
||||
if result.returncode:
|
||||
raise RuntimeError('Target registry login failed; no secret output emitted')
|
||||
inputs = HOME / 'delivery-bootstrap'
|
||||
inputs.mkdir(mode=0o700)
|
||||
os.chown(inputs, 1000, 1000)
|
||||
private_file(inputs / 'deploy_ed25519', key.read_text(), 1000)
|
||||
private_file(inputs / 'registry-write', write_token, 1000)
|
||||
public_host_key = Path('/etc/ssh/ssh_host_ed25519_key.pub').read_text().split()
|
||||
private_file(inputs / 'known_hosts', '147.182.178.136 ' + ' '.join(public_host_key[:2]) + '\n', 1000)
|
||||
init = HOME / 'init.groovy.d'
|
||||
init.mkdir(exist_ok=True)
|
||||
os.chown(init, 1000, 1000)
|
||||
script = init / 'ssw590-delivery.groovy'
|
||||
shutil.copyfile(SCRIPTS / 'configure_jenkins.groovy', script)
|
||||
script.chmod(0o600)
|
||||
os.chown(script, 1000, 1000)
|
||||
private_file(STATE / 'metadata.json', json.dumps({
|
||||
'started': stamp, 'registry_user': 'vsun1',
|
||||
'agent_token_name': 'ssw590-delivery-agent-' + stamp,
|
||||
'target_token_name': 'ssw590-delivery-target-' + stamp,
|
||||
'agent_scope': 'write:package', 'target_scope': 'read:package',
|
||||
'backup_directory': str(backup),
|
||||
'deploy_sudo_scope': 'root commands without a password; trusted code only',
|
||||
}, indent=2))
|
||||
run(['docker', 'restart', 'gitea-jenkins-1'], stdout=subprocess.DEVNULL)
|
||||
# The private key is now the Jenkins bootstrap input; remove the duplicate.
|
||||
key.unlink()
|
||||
key.with_suffix('.pub').unlink()
|
||||
print('Host bootstrap applied. Jenkins is restarting; verify its completion marker before starting the agent.')
|
||||
print('Existing Gitea, proxy and monitoring configuration was preserved. Release job remains disabled.')
|
||||
|
||||
|
||||
if __name__ == '__main__':
|
||||
main()
|
||||
@@ -0,0 +1,28 @@
|
||||
param(
|
||||
[switch]$AllowLaptopFallback,
|
||||
[string]$Droplet = '147.182.178.136',
|
||||
[string]$IdentityFile = (Join-Path $env:USERPROFILE '.ssh/digitalocean')
|
||||
)
|
||||
$ErrorActionPreference = 'Stop'
|
||||
$PSNativeCommandUseErrorActionPreference = $true
|
||||
if (-not $AllowLaptopFallback) {
|
||||
throw 'The delivery node now runs on The-Ocean. Start a laptop fallback only after stopping the remote copy, then pass -AllowLaptopFallback. Never connect both copies of the same node.'
|
||||
}
|
||||
$repoPath = (Resolve-Path (Join-Path $PSScriptRoot '../..')).Path
|
||||
$sshArguments = @('-i', $IdentityFile, '-o', 'IdentitiesOnly=yes', '-o', 'BatchMode=yes',
|
||||
'-o', 'StrictHostKeyChecking=yes', '-o', 'ConnectTimeout=10', "root@$Droplet")
|
||||
& ssh @sshArguments 'docker exec -u jenkins gitea-jenkins-1 test -f /var/jenkins_home/delivery-bootstrap/configured.json'
|
||||
& docker volume create ssw590-delivery-identity | Out-Null
|
||||
# The generated identity flows directly from pinned administrator SSH into a
|
||||
# protected Docker volume. No secret enters command arguments, output or Git.
|
||||
& ssh @sshArguments 'docker exec -u jenkins gitea-jenkins-1 cat /var/jenkins_home/delivery-bootstrap/agent-secret' |
|
||||
& docker run --rm -i --network none --user 0:0 --entrypoint sh `
|
||||
--mount 'type=volume,source=ssw590-delivery-identity,target=/identity' `
|
||||
ssw590-delivery-agent:20261114 -c 'set -eu; umask 077; cat > /identity/agent-secret; test -s /identity/agent-secret; chown 1000:1000 /identity /identity/agent-secret; chmod 700 /identity; chmod 400 /identity/agent-secret'
|
||||
Push-Location $repoPath
|
||||
try {
|
||||
& docker compose -f delivery/agent/compose.yaml up -d
|
||||
& docker compose -f delivery/agent/compose.yaml ps
|
||||
} finally {
|
||||
Pop-Location
|
||||
}
|
||||
@@ -0,0 +1,32 @@
|
||||
#!/bin/bash
|
||||
# Run as root from /opt/ssw590-delivery-agent after stopping the laptop copy.
|
||||
# Copy compose.droplet.yaml and ssh_config.droplet here first; load the verified
|
||||
# agent image. Never copy any identity file into this directory or into Git.
|
||||
set -euo pipefail
|
||||
test "$(id -u)" = 0
|
||||
cd /opt/ssw590-delivery-agent
|
||||
export DOCKER_GID
|
||||
DOCKER_GID=$(stat -c '%g' /var/run/docker.sock)
|
||||
# Numeric group only, not a credential. Keep it available for later Compose use.
|
||||
printf 'DOCKER_GID=%s\n' "$DOCKER_GID" > .env
|
||||
chmod 644 .env
|
||||
docker image inspect ssw590-delivery-agent:20261114 >/dev/null
|
||||
docker compose -f compose.droplet.yaml config --quiet
|
||||
docker exec -u jenkins gitea-jenkins-1 test -s /var/jenkins_home/delivery-bootstrap/agent-secret
|
||||
docker volume create ssw590-delivery-identity >/dev/null
|
||||
docker exec -u jenkins gitea-jenkins-1 cat /var/jenkins_home/delivery-bootstrap/agent-secret |
|
||||
docker run --rm -i --network none --user 0:0 --entrypoint sh \
|
||||
--mount type=volume,source=ssw590-delivery-identity,target=/identity \
|
||||
ssw590-delivery-agent:20261114 -c \
|
||||
'set -eu; umask 077; cat > /identity/agent-secret; test -s /identity/agent-secret; chown 1000:1000 /identity /identity/agent-secret; chmod 700 /identity; chmod 400 /identity/agent-secret'
|
||||
docker compose -f compose.droplet.yaml up -d --pull never
|
||||
agent=ssw590-delivery-agent-1
|
||||
# BuildKit's own container must be limited too: the socket mount does not make
|
||||
# child build containers inherit the agent's resource caps.
|
||||
if ! docker exec "$agent" docker buildx inspect ssw590-delivery-limited >/dev/null 2>&1; then
|
||||
docker exec "$agent" docker buildx create --name ssw590-delivery-limited \
|
||||
--driver docker-container \
|
||||
--driver-opt image=moby/buildkit@sha256:c5f8862f52499773af85bc07695b2379ef08e8002352b0df2c4864c91d78dabe,memory=256m,memory-swap=384m,cpu-period=100000,cpu-quota=50000,restart-policy=unless-stopped
|
||||
fi
|
||||
docker exec "$agent" docker buildx inspect ssw590-delivery-limited --bootstrap
|
||||
docker compose -f compose.droplet.yaml ps
|
||||
@@ -0,0 +1,41 @@
|
||||
"""Read-only, non-secret runtime checks; run as root on The-Ocean."""
|
||||
import json
|
||||
import subprocess
|
||||
from datetime import datetime, timezone
|
||||
from pathlib import Path
|
||||
|
||||
|
||||
def run(*args):
|
||||
return subprocess.check_output(args, text=True).strip()
|
||||
|
||||
|
||||
report = {"observed_at": datetime.now(timezone.utc).isoformat(), "containers": []}
|
||||
names = ["ssw590-delivery-agent-1", "buildx_buildkit_ssw590-delivery-limited0"]
|
||||
for name in names:
|
||||
info = json.loads(run("docker", "inspect", name))[0]
|
||||
config, state = info["HostConfig"], info["State"]
|
||||
events = Path("/sys/fs/cgroup/system.slice", "docker-" + info["Id"] + ".scope", "memory.events")
|
||||
report["containers"].append({
|
||||
"name": name, "running": state["Running"], "oom_killed": state["OOMKilled"],
|
||||
"restart_count": info["RestartCount"], "restart_policy": config["RestartPolicy"]["Name"],
|
||||
"memory_bytes": config["Memory"], "memory_swap_bytes": config["MemorySwap"],
|
||||
"nano_cpus": config["NanoCpus"], "cpu_quota": config["CpuQuota"],
|
||||
"cpu_period": config["CpuPeriod"], "port_bindings": config["PortBindings"],
|
||||
"memory_events": events.read_text().strip() if events.exists() else "unavailable",
|
||||
})
|
||||
assert state["Running"] and not state["OOMKilled"], name
|
||||
report["private_http"] = {}
|
||||
for url in ["http://jenkins:8080/login", "http://gitea:3000/", "http://monitoring-grafana-1:3000/login"]:
|
||||
code = run("docker", "exec", names[0], "curl", "--silent", "--show-error", "--max-time", "15",
|
||||
"-o", "/dev/null", "-w", "%{http_code}", url)
|
||||
report["private_http"][url] = code
|
||||
assert code == "200", (url, code)
|
||||
ssh = run("docker", "exec", names[0], "ssh", "-G", "147.182.178.136")
|
||||
report["deployment_ssh_route"] = [line for line in ssh.splitlines() if line.startswith(("hostname ", "hostkeyalias "))]
|
||||
assert "hostname host.docker.internal" in ssh.splitlines()
|
||||
assert "hostkeyalias 147.182.178.136" in ssh.splitlines()
|
||||
report["memory"] = run("free", "-m")
|
||||
report["disk"] = run("df", "-h", "/")
|
||||
report["running_containers"] = run("docker", "ps", "--format", "{{.Names}} {{.Status}}")
|
||||
report["result"] = "passed"
|
||||
print(json.dumps(report, indent=2))
|
||||
@@ -0,0 +1,25 @@
|
||||
#!/bin/sh
|
||||
set -eu
|
||||
record=$1
|
||||
environment=$2
|
||||
operation=${3:-deploy}
|
||||
case "$record" in
|
||||
build/delivery/releases/*.json|delivery/releases/*.json) ;;
|
||||
*) echo 'Release record must be in the release metadata directory' >&2; exit 1 ;;
|
||||
esac
|
||||
python3 delivery/ci/release.py verify "$record" --environment "$environment"
|
||||
config=$(python3 -c 'import json,sys; print(json.load(open(sys.argv[1]))["configuration_commit"])' "$record")
|
||||
scratch=$(mktemp -d)
|
||||
trap 'rm -rf "$scratch"' EXIT
|
||||
# Recover both playbook and template from the configuration recorded with this image.
|
||||
git archive "$config" delivery/ansible | tar -x -C "$scratch"
|
||||
: "${DEPLOY_KEY:?bind the deployment SSH key as a Jenkins file credential}"
|
||||
: "${DEPLOY_KNOWN_HOSTS:?bind the verified known_hosts as a Jenkins file credential}"
|
||||
export ANSIBLE_HOST_KEY_CHECKING=True
|
||||
export ANSIBLE_SSH_ARGS="-o BatchMode=yes -o IdentitiesOnly=yes -o StrictHostKeyChecking=yes -o UserKnownHostsFile=$DEPLOY_KNOWN_HOSTS"
|
||||
export ANSIBLE_PRIVATE_KEY_FILE="$DEPLOY_KEY"
|
||||
ansible-playbook -i "$scratch/delivery/ansible/inventory.ini" \
|
||||
"$scratch/delivery/ansible/deploy.yml" --syntax-check -e "@$record"
|
||||
python3 delivery/ci/run-ansible.py "$record" "$operation" \
|
||||
-i "$scratch/delivery/ansible/inventory.ini" \
|
||||
"$scratch/delivery/ansible/deploy.yml" -e "@$record"
|
||||
@@ -0,0 +1,48 @@
|
||||
"""Sample public HTTPS health during release/recovery; failures are evidence."""
|
||||
|
||||
import argparse
|
||||
import csv
|
||||
from datetime import datetime, timezone
|
||||
import json
|
||||
from pathlib import Path
|
||||
import time
|
||||
import urllib.error
|
||||
import urllib.request
|
||||
|
||||
|
||||
def main():
|
||||
parser = argparse.ArgumentParser()
|
||||
parser.add_argument('--url', choices=['https://app.yebilly.me', 'https://staging.yebilly.me'], required=True)
|
||||
parser.add_argument('--seconds', type=int, default=600)
|
||||
parser.add_argument('--interval', type=float, default=1)
|
||||
parser.add_argument('--output', required=True)
|
||||
args = parser.parse_args()
|
||||
if not 1 <= args.seconds <= 1800 or args.interval < 0.5:
|
||||
parser.error('Use 1-1800 seconds and at least 0.5 seconds between samples')
|
||||
output = Path(args.output)
|
||||
output.parent.mkdir(parents=True, exist_ok=True)
|
||||
deadline = time.monotonic() + args.seconds
|
||||
with output.open('w', newline='') as stream:
|
||||
writer = csv.writer(stream)
|
||||
writer.writerow(['started_utc', 'elapsed_seconds', 'http_status', 'status', 'version', 'error'])
|
||||
while time.monotonic() < deadline:
|
||||
started = datetime.now(timezone.utc).isoformat()
|
||||
clock = time.monotonic()
|
||||
code, status, version, error = '', '', '', ''
|
||||
try:
|
||||
with urllib.request.urlopen(args.url + '/health', timeout=2) as response:
|
||||
code = response.status
|
||||
body = json.load(response)
|
||||
status, version = body.get('status', ''), body.get('version', '')
|
||||
except urllib.error.HTTPError as failure:
|
||||
code, error = failure.code, type(failure).__name__
|
||||
except (OSError, ValueError, urllib.error.URLError) as failure:
|
||||
error = type(failure).__name__
|
||||
writer.writerow([started, round(time.monotonic() - clock, 3), code, status, version, error])
|
||||
stream.flush()
|
||||
time.sleep(max(0, args.interval - (time.monotonic() - clock)))
|
||||
print(f'Saved samples to {output}; inspect failed samples and gaps, not just the exit status')
|
||||
|
||||
|
||||
if __name__ == '__main__':
|
||||
main()
|
||||
@@ -0,0 +1,35 @@
|
||||
#!/bin/sh
|
||||
set -eu
|
||||
set +x
|
||||
: "${REGISTRY_USER:?bind registry credentials}"
|
||||
: "${REGISTRY_TOKEN:?bind registry credentials}"
|
||||
image=git.yebilly.me/ssw590-group1/pricing
|
||||
commit=$(git rev-parse HEAD)
|
||||
reports=build/delivery/reports
|
||||
mkdir -p "$reports" build/delivery/releases
|
||||
export DOCKER_CONFIG
|
||||
DOCKER_CONFIG=$(mktemp -d)
|
||||
trap 'rm -rf "$DOCKER_CONFIG"' EXIT
|
||||
printf '%s' "$REGISTRY_TOKEN" | docker login --username "$REGISTRY_USER" --password-stdin git.yebilly.me
|
||||
# Never overwrite a source-commit tag during a retry.
|
||||
if docker manifest inspect "$image:$commit" > "$reports/existing-manifest.json" 2> "$reports/manifest-check.log"; then
|
||||
docker pull "$image:$commit"
|
||||
else
|
||||
if ! grep -Eqi 'manifest unknown|no such manifest|not found' "$reports/manifest-check.log"; then
|
||||
cat "$reports/manifest-check.log" >&2
|
||||
exit 1
|
||||
fi
|
||||
if [ -n "${DELIVERY_BUILDER:-}" ]; then
|
||||
docker buildx build --builder "$DELIVERY_BUILDER" --load --platform linux/amd64 \
|
||||
--build-arg "APP_COMMIT=$commit" -t "$image:$commit" delivery/app
|
||||
else
|
||||
docker build --platform linux/amd64 --build-arg "APP_COMMIT=$commit" -t "$image:$commit" delivery/app
|
||||
fi
|
||||
python3 delivery/ci/security.py image --image "$image:$commit" --reports "$reports/image-gate"
|
||||
docker push "$image:$commit"
|
||||
docker pull "$image:$commit"
|
||||
fi
|
||||
digest=$(docker image inspect "$image:$commit" --format '{{index .RepoDigests 0}}')
|
||||
python3 delivery/ci/security.py image --image "$digest" --reports "$reports/published-image-gate"
|
||||
printf '%s\n' "$digest" > "$reports/published-digest.txt"
|
||||
python3 delivery/ci/release.py create --image "$digest" --build-url "$BUILD_URL" --output build/delivery/releases
|
||||
@@ -0,0 +1,77 @@
|
||||
"""Create and verify non-secret release records used by Ansible."""
|
||||
|
||||
import argparse
|
||||
import ast
|
||||
import json
|
||||
import re
|
||||
import subprocess
|
||||
from datetime import datetime, timezone
|
||||
from pathlib import Path
|
||||
|
||||
URLS = {"staging": "https://staging.yebilly.me", "production": "https://app.yebilly.me"}
|
||||
IMAGE = re.compile(r"git\.yebilly\.me/ssw590-group1/pricing@sha256:[0-9a-f]{64}")
|
||||
COMMIT = re.compile(r"[0-9a-f]{40}")
|
||||
|
||||
|
||||
def verify(record):
|
||||
required = {"release_image", "expected_commit", "configuration_commit",
|
||||
"expected_version", "expected_total", "proxy_network", "target_env", "public_url"}
|
||||
if not required <= record.keys() or record.keys() - required - {"build_url", "created_at"}:
|
||||
raise ValueError("Missing or unexpected release fields")
|
||||
if not IMAGE.fullmatch(record["release_image"]):
|
||||
raise ValueError("Release requires the team registry image and exact digest")
|
||||
for name in ("expected_commit", "configuration_commit"):
|
||||
value = record[name]
|
||||
if not COMMIT.fullmatch(value):
|
||||
raise ValueError(f"Invalid {name}")
|
||||
subprocess.run(["git", "merge-base", "--is-ancestor", value, "origin/main"], check=True)
|
||||
version = record["expected_version"]
|
||||
if version not in {"v1", "v2"}:
|
||||
raise ValueError("Unsupported application release")
|
||||
if record["expected_total"] != {"v1": 30, "v2": 36}[version]:
|
||||
raise ValueError("Unexpected business result")
|
||||
environment = record["target_env"]
|
||||
if record["public_url"] != URLS[environment] or record["proxy_network"] != "gitea_web":
|
||||
raise ValueError("Unexpected deployment target")
|
||||
|
||||
|
||||
def main():
|
||||
parser = argparse.ArgumentParser()
|
||||
commands = parser.add_subparsers(dest="action", required=True)
|
||||
create = commands.add_parser("create")
|
||||
create.add_argument("--image", required=True)
|
||||
create.add_argument("--build-url", required=True)
|
||||
create.add_argument("--output", required=True)
|
||||
check = commands.add_parser("verify")
|
||||
check.add_argument("record")
|
||||
check.add_argument("--environment", choices=["staging", "production"])
|
||||
args = parser.parse_args()
|
||||
if args.action == "verify":
|
||||
record = json.loads(Path(args.record).read_text())
|
||||
verify(record)
|
||||
if args.environment and record["target_env"] != args.environment:
|
||||
raise ValueError("Release environment does not match the authorized pipeline stage")
|
||||
return
|
||||
values = {}
|
||||
for node in ast.parse(Path("delivery/app/app.py").read_text()).body:
|
||||
if isinstance(node, ast.Assign):
|
||||
for target in node.targets:
|
||||
if isinstance(target, ast.Name) and target.id in {"VERSION", "UNIT_PRICE"}:
|
||||
values[target.id] = ast.literal_eval(node.value)
|
||||
commit = subprocess.check_output(["git", "rev-parse", "HEAD"], text=True).strip()
|
||||
record = {
|
||||
"release_image": args.image, "expected_commit": commit,
|
||||
"configuration_commit": commit, "expected_version": values["VERSION"],
|
||||
"expected_total": values["UNIT_PRICE"] * 3, "proxy_network": "gitea_web",
|
||||
"build_url": args.build_url, "created_at": datetime.now(timezone.utc).isoformat(),
|
||||
}
|
||||
output = Path(args.output)
|
||||
output.mkdir(parents=True, exist_ok=True)
|
||||
for environment, url in URLS.items():
|
||||
target = dict(record, target_env=environment, public_url=url)
|
||||
verify(target)
|
||||
(output / f"{values['VERSION']}-{environment}.json").write_text(json.dumps(target, indent=2))
|
||||
|
||||
|
||||
if __name__ == "__main__":
|
||||
main()
|
||||
@@ -0,0 +1,62 @@
|
||||
"""Archive deployment timing/recaps and enforce the unchanged-rerun gate."""
|
||||
|
||||
import json
|
||||
import os
|
||||
import re
|
||||
import subprocess
|
||||
import sys
|
||||
import time
|
||||
from datetime import datetime, timezone
|
||||
from pathlib import Path
|
||||
|
||||
|
||||
def main():
|
||||
record = json.loads(Path(sys.argv[1]).read_text())
|
||||
operation = sys.argv[2]
|
||||
if operation not in {"deploy", "rerun"}:
|
||||
raise ValueError("Unknown deployment operation")
|
||||
reports = Path("build/delivery/reports")
|
||||
reports.mkdir(parents=True, exist_ok=True)
|
||||
stem = f"ansible-{record['target_env']}-{operation}"
|
||||
started = datetime.now(timezone.utc).isoformat()
|
||||
clock = time.monotonic()
|
||||
process = subprocess.Popen(
|
||||
["ansible-playbook", *sys.argv[3:]], text=True,
|
||||
stdout=subprocess.PIPE, stderr=subprocess.STDOUT,
|
||||
env=dict(os.environ, ANSIBLE_NOCOLOR="1"),
|
||||
)
|
||||
lines = []
|
||||
with (reports / f"{stem}.txt").open("w") as log:
|
||||
for line in process.stdout:
|
||||
print(line, end="", flush=True)
|
||||
log.write(line)
|
||||
lines.append(line)
|
||||
status = process.wait()
|
||||
recaps = []
|
||||
for line in lines:
|
||||
match = re.match(r"^(\S+)\s+:\s+ok=(\d+)\s+changed=(\d+)\s+unreachable=(\d+)\s+failed=(\d+)", line)
|
||||
if match:
|
||||
recaps.append(dict(zip(
|
||||
["host", "ok", "changed", "unreachable", "failed"],
|
||||
[match[1], *map(int, match.groups()[1:])],
|
||||
)))
|
||||
passed = status == 0 and bool(recaps) and all(
|
||||
row["failed"] == 0 and row["unreachable"] == 0
|
||||
and (operation != "rerun" or row["changed"] == 0)
|
||||
for row in recaps
|
||||
)
|
||||
report = {
|
||||
"started": started, "completed": datetime.now(timezone.utc).isoformat(),
|
||||
"elapsed_seconds": round(time.monotonic() - clock, 3),
|
||||
"operation": operation, "release": record,
|
||||
"ansible_exit_code": status, "recaps": recaps,
|
||||
"result": "passed" if passed else "blocked",
|
||||
}
|
||||
(reports / f"{stem}.json").write_text(json.dumps(report, indent=2))
|
||||
if not passed:
|
||||
print("Deployment gate blocked: inspect the archived Ansible recap", file=sys.stderr)
|
||||
return 0 if passed else 1
|
||||
|
||||
|
||||
if __name__ == "__main__":
|
||||
raise SystemExit(main())
|
||||
@@ -0,0 +1,127 @@
|
||||
"""Run release gates and preserve reports, tool versions, and process exit codes."""
|
||||
|
||||
import argparse
|
||||
import json
|
||||
import subprocess
|
||||
import tempfile
|
||||
from datetime import datetime, timezone
|
||||
from pathlib import Path
|
||||
|
||||
|
||||
def now():
|
||||
return datetime.now(timezone.utc).isoformat()
|
||||
|
||||
|
||||
def check_report(report, kind):
|
||||
if kind == "dependencies":
|
||||
dependencies = report["dependencies"]
|
||||
if not dependencies:
|
||||
raise ValueError("Dependency audit returned no packages")
|
||||
return [v for package in dependencies for v in package["vulns"]]
|
||||
if report["SchemaVersion"] != 2 or "ArtifactName" not in report:
|
||||
raise ValueError("Unrecognized Trivy report")
|
||||
results = report["Results"]
|
||||
if not isinstance(results, list):
|
||||
raise ValueError("Trivy Results must be a list")
|
||||
if kind == "image" and not results:
|
||||
raise ValueError("Image scan returned no analyzed targets")
|
||||
if kind == "secrets":
|
||||
return [secret for result in results for secret in result.get("Secrets", [])]
|
||||
return [
|
||||
vulnerability
|
||||
for result in results
|
||||
for vulnerability in result.get("Vulnerabilities", [])
|
||||
if vulnerability["Severity"] in {"HIGH", "CRITICAL"}
|
||||
]
|
||||
|
||||
|
||||
def redact_secret_matches(report):
|
||||
for result in report.get("Results", []):
|
||||
for secret in result.get("Secrets", []):
|
||||
secret["Match"] = "[REDACTED]"
|
||||
for line in secret.get("Code", {}).get("Lines", []):
|
||||
line["Content"] = "[REDACTED]"
|
||||
|
||||
|
||||
def main():
|
||||
parser = argparse.ArgumentParser()
|
||||
parser.add_argument("phase", choices=["source", "image"])
|
||||
parser.add_argument("--image")
|
||||
parser.add_argument("--fixture", action="store_true")
|
||||
parser.add_argument("--reports", default="build/delivery/reports")
|
||||
args = parser.parse_args()
|
||||
reports = Path(args.reports).resolve()
|
||||
reports.mkdir(parents=True, exist_ok=True)
|
||||
execution = {"started": now(), "phase": args.phase, "steps": []}
|
||||
|
||||
def run(command, label, accepted=(0,)):
|
||||
result = subprocess.run(command, text=True, capture_output=True)
|
||||
(reports / f"{label}.log").write_text(result.stdout + result.stderr)
|
||||
execution["steps"].append({
|
||||
"label": label, "command": command, "completed": now(),
|
||||
"exit_code": result.returncode,
|
||||
})
|
||||
if result.returncode not in accepted:
|
||||
raise RuntimeError(f"{label} failed with exit code {result.returncode}")
|
||||
return result
|
||||
|
||||
def scan_secrets(target, label):
|
||||
output = reports / f"{label}.json"
|
||||
run([
|
||||
"trivy", "fs", "--scanners", "secret", "--secret-config",
|
||||
"delivery/trivy-secret.yaml", "--format", "json", "--output", str(output),
|
||||
"--skip-dirs", ".git", "--skip-dirs", "build", "--skip-dirs", "work",
|
||||
"--skip-dirs", ".venv", str(target),
|
||||
], label)
|
||||
report = json.loads(output.read_text())
|
||||
redact_secret_matches(report)
|
||||
output.write_text(json.dumps(report, indent=2))
|
||||
if check_report(report, "secrets"):
|
||||
raise RuntimeError(f"{label}: detected secrets block delivery")
|
||||
|
||||
try:
|
||||
run(["trivy", "--version"], "trivy-version")
|
||||
run(["pip-audit", "--version"], "pip-audit-version")
|
||||
if args.phase == "source":
|
||||
scan_secrets(".", "source-secrets")
|
||||
output = reports / "dependencies.json"
|
||||
result = run([
|
||||
"pip-audit", "-r", "delivery/app/requirements.txt", "--no-deps",
|
||||
"--disable-pip", "--format", "json", "--output", str(output),
|
||||
], "dependencies", accepted=(0, 1))
|
||||
findings = check_report(json.loads(output.read_text()), "dependencies")
|
||||
if result.returncode or findings:
|
||||
raise RuntimeError("Dependency findings or audit errors block delivery")
|
||||
if args.fixture:
|
||||
with tempfile.TemporaryDirectory(prefix="ssw590-scan-") as directory:
|
||||
# Construct the nonfunctional course fixture only in the test run.
|
||||
value = "SSW590_SYNTHETIC_SECRET_" + "0" * 16
|
||||
Path(directory, "fixture.txt").write_text(value)
|
||||
scan_secrets(directory, "synthetic-secret")
|
||||
raise RuntimeError("Synthetic fixture was not detected")
|
||||
else:
|
||||
if not args.image:
|
||||
raise ValueError("--image is required for the image gate")
|
||||
output = reports / "image.json"
|
||||
run([
|
||||
"trivy", "image", "--scanners", "vuln", "--format", "json",
|
||||
"--output", str(output), args.image,
|
||||
], "image")
|
||||
run(["trivy", "--version"], "trivy-database-version")
|
||||
if check_report(json.loads(output.read_text()), "image"):
|
||||
raise RuntimeError("HIGH/CRITICAL image findings block delivery")
|
||||
execution["result"] = "passed"
|
||||
print(f"{args.phase} gate passed")
|
||||
except (OSError, ValueError, KeyError, TypeError, RuntimeError) as error:
|
||||
execution["result"] = "blocked"
|
||||
execution["reason"] = str(error)
|
||||
print(f"{args.phase} gate blocked: {error}")
|
||||
return 1
|
||||
finally:
|
||||
execution["completed"] = now()
|
||||
(reports / f"{args.phase}-execution.json").write_text(json.dumps(execution, indent=2))
|
||||
return 0
|
||||
|
||||
|
||||
if __name__ == "__main__":
|
||||
raise SystemExit(main())
|
||||
@@ -0,0 +1,43 @@
|
||||
#!/bin/sh
|
||||
set -eu
|
||||
reports=${REPORTS_DIR:-build/delivery/reports}
|
||||
mkdir -p "$reports"
|
||||
reports=$(cd "$reports" && pwd)
|
||||
test_dir=$(mktemp -d)
|
||||
trap 'rm -rf "$test_dir"' EXIT
|
||||
python3 -m venv "$test_dir/venv"
|
||||
test_python="$test_dir/venv/bin/python"
|
||||
"$test_python" -m pip install -r delivery/app/requirements.txt
|
||||
cp delivery/app/app.py delivery/app/test_app.py "$test_dir/"
|
||||
if [ "${TEST_FAILURE:-false}" = true ]; then
|
||||
cat > "$test_dir/test_gate_fixture.py" <<'PY'
|
||||
import unittest
|
||||
from app import app
|
||||
|
||||
class ControlledWrongPrice(unittest.TestCase):
|
||||
def test_deliberately_wrong_expected_price(self):
|
||||
response = app.test_client().get('/price?quantity=3')
|
||||
self.assertEqual(response.json['total'], -1, 'Controlled test must block delivery')
|
||||
PY
|
||||
fi
|
||||
cd "$test_dir"
|
||||
"$test_python" -B - "$reports" <<'PY'
|
||||
import json
|
||||
import subprocess
|
||||
import sys
|
||||
from datetime import datetime, timezone
|
||||
from pathlib import Path
|
||||
|
||||
started = datetime.now(timezone.utc).isoformat()
|
||||
result = subprocess.run([sys.executable, '-B', '-m', 'unittest', '-v'], text=True, capture_output=True)
|
||||
output = result.stdout + result.stderr
|
||||
print(output, end='')
|
||||
reports = Path(sys.argv[1])
|
||||
(reports / 'unit-tests.txt').write_text(output)
|
||||
(reports / 'unit-tests.json').write_text(json.dumps({
|
||||
'started': started, 'completed': datetime.now(timezone.utc).isoformat(),
|
||||
'exit_code': result.returncode,
|
||||
'result': 'passed' if result.returncode == 0 else 'blocked',
|
||||
}, indent=2))
|
||||
raise SystemExit(result.returncode)
|
||||
PY
|
||||
@@ -0,0 +1,112 @@
|
||||
"""Regression checks for fail-closed release and scan boundaries."""
|
||||
|
||||
import importlib.util
|
||||
import io
|
||||
import json
|
||||
import os
|
||||
from pathlib import Path
|
||||
import sys
|
||||
import tempfile
|
||||
import unittest
|
||||
from unittest.mock import patch
|
||||
|
||||
import release
|
||||
import security
|
||||
|
||||
spec = importlib.util.spec_from_file_location('run_ansible', Path(__file__).with_name('run-ansible.py'))
|
||||
run_ansible = importlib.util.module_from_spec(spec)
|
||||
spec.loader.exec_module(run_ansible)
|
||||
|
||||
|
||||
class SecurityGateTests(unittest.TestCase):
|
||||
def test_empty_dependency_audit_is_not_clean_evidence(self):
|
||||
with self.assertRaises(ValueError):
|
||||
security.check_report({"dependencies": []}, "dependencies")
|
||||
|
||||
def test_incomplete_or_unrecognized_scan_is_rejected(self):
|
||||
for report in [{}, {"SchemaVersion": 2, "ArtifactName": "."},
|
||||
{"SchemaVersion": 3, "ArtifactName": ".", "Results": []}]:
|
||||
with self.subTest(report=report), self.assertRaises((ValueError, KeyError)):
|
||||
security.check_report(report, "secrets")
|
||||
|
||||
def test_high_findings_and_secrets_block(self):
|
||||
report = {"SchemaVersion": 2, "ArtifactName": "image", "Results": [{
|
||||
"Vulnerabilities": [{"Severity": "LOW"}, {"Severity": "HIGH"}, {"Severity": "CRITICAL"}],
|
||||
"Secrets": [{"Severity": "LOW", "Match": "test-data"}],
|
||||
}]}
|
||||
self.assertEqual(len(security.check_report(report, "image")), 2)
|
||||
self.assertEqual(len(security.check_report(report, "secrets")), 1)
|
||||
security.redact_secret_matches(report)
|
||||
self.assertEqual(report["Results"][0]["Secrets"][0]["Match"], "[REDACTED]")
|
||||
|
||||
def test_image_without_analyzed_targets_is_rejected(self):
|
||||
with self.assertRaises(ValueError):
|
||||
security.check_report({"SchemaVersion": 2, "ArtifactName": "image", "Results": []}, "image")
|
||||
|
||||
|
||||
class ReleaseBoundaryTests(unittest.TestCase):
|
||||
def setUp(self):
|
||||
self.record = {
|
||||
"release_image": "git.yebilly.me/ssw590-group1/pricing@sha256:" + "a" * 64,
|
||||
"expected_commit": "b" * 40, "configuration_commit": "c" * 40,
|
||||
"expected_version": "v1", "expected_total": 30,
|
||||
"proxy_network": "gitea_web", "target_env": "staging",
|
||||
"public_url": "https://staging.yebilly.me",
|
||||
}
|
||||
|
||||
@patch("release.subprocess.run")
|
||||
def test_both_commits_must_be_reviewed_main_ancestors(self, run):
|
||||
release.verify(self.record)
|
||||
self.assertEqual([call.args[0][-2] for call in run.call_args_list], ["b" * 40, "c" * 40])
|
||||
self.assertTrue(all(call.kwargs["check"] for call in run.call_args_list))
|
||||
|
||||
@patch("release.subprocess.run")
|
||||
def test_cross_environment_url_is_rejected(self, run):
|
||||
self.record["public_url"] = "https://app.yebilly.me"
|
||||
with self.assertRaises(ValueError):
|
||||
release.verify(self.record)
|
||||
|
||||
|
||||
def test_mutable_tag_or_other_registry_is_rejected(self):
|
||||
for image in ["git.yebilly.me/ssw590-group1/pricing:latest", "example.com/pricing@sha256:" + "a" * 64]:
|
||||
self.record["release_image"] = image
|
||||
with self.assertRaises(ValueError):
|
||||
release.verify(self.record)
|
||||
|
||||
def test_unexpected_ansible_variables_are_rejected(self):
|
||||
self.record["ansible_host"] = "unapproved-host"
|
||||
with self.assertRaises(ValueError):
|
||||
release.verify(self.record)
|
||||
|
||||
|
||||
class UnchangedRerunTests(unittest.TestCase):
|
||||
def check_recap(self, text, exit_code=0):
|
||||
original = Path.cwd()
|
||||
with tempfile.TemporaryDirectory() as directory:
|
||||
try:
|
||||
os.chdir(directory)
|
||||
Path('release.json').write_text(json.dumps({'target_env': 'staging'}))
|
||||
with patch('sys.argv', ['run-ansible.py', 'release.json', 'rerun', 'playbook.yml']), \
|
||||
patch.object(run_ansible.subprocess, 'Popen') as launch, \
|
||||
patch('sys.stdout', new_callable=io.StringIO), \
|
||||
patch('sys.stderr', new_callable=io.StringIO):
|
||||
launch.return_value.stdout = io.StringIO(text)
|
||||
launch.return_value.wait.return_value = exit_code
|
||||
return run_ansible.main()
|
||||
finally:
|
||||
os.chdir(original)
|
||||
|
||||
def test_unchanged_success_passes(self):
|
||||
self.assertEqual(self.check_recap('startup : ok=9 changed=0 unreachable=0 failed=0 skipped=0\n'), 0)
|
||||
|
||||
def test_success_with_unnecessary_changes_blocks(self):
|
||||
self.assertEqual(self.check_recap('startup : ok=9 changed=1 unreachable=0 failed=0 skipped=0\n'), 1)
|
||||
|
||||
def test_missing_recap_is_not_a_success(self):
|
||||
self.assertEqual(self.check_recap('No deployment results\n'), 1)
|
||||
|
||||
def test_ansible_error_blocks_even_with_good_looking_recap(self):
|
||||
self.assertEqual(self.check_recap('startup : ok=9 changed=0 unreachable=0 failed=0\n', 1), 1)
|
||||
|
||||
if __name__ == "__main__":
|
||||
unittest.main()
|
||||
@@ -0,0 +1,64 @@
|
||||
# Delivery agent migration — preparation evidence
|
||||
|
||||
Vincent selected The-Ocean instead of the laptop to avoid the previously
|
||||
observed campus SSH restriction. This work occurred on November 14 Eastern;
|
||||
the host's UTC timestamps below fall on November 15, 2026.
|
||||
|
||||
- Existing host: 1 CPU, 1,967 MiB RAM, original 25 GB plan disk, 2 GiB swap.
|
||||
At 03:29 UTC, 811 MiB RAM was available and swap used was 129 MiB.
|
||||
- Transferred the existing agent image, without rebuilding its toolchain:
|
||||
`sha256:0752666650a3afe7b61854c1df4dca21f4ef381fab1f4fb9b042adaa203c58a8`.
|
||||
Transfer archive SHA-256 matched on both machines:
|
||||
`f987fdb285757aabe91fffd21a3a58da00bec975efcce7ee8ef3f127b27d0696`.
|
||||
- Stopped the laptop container before connecting its replacement. Existing
|
||||
node name `ssw590-vince-delivery`, label `delivery-trusted`, one exclusive
|
||||
executor, folder credentials and disabled pricing job were retained.
|
||||
- Remote agent: 512 MiB RAM / 768 MiB RAM+swap, 0.5 CPU, 96 MiB JVM heap,
|
||||
no published port, existing `gitea_web` network, private WebSocket connection.
|
||||
Socket group detected as 987; initial group-0 mismatch was corrected.
|
||||
- Builder: BuildKit v0.34.2 image pinned by index digest in the start helper;
|
||||
256 MiB RAM / 384 MiB RAM+swap, CPU quota 50000/100000, no published port.
|
||||
The pipeline explicitly selects this builder when `DELIVERY_BUILDER` is set.
|
||||
- Deployment SSH: `ssh -G` reports `hostname host.docker.internal` and
|
||||
`hostkeyalias 147.182.178.136`. The existing Jenkins known-hosts credential
|
||||
remains authoritative; host verification was not bypassed.
|
||||
- [Jenkins prerequisite build 2](https://ci.yebilly.me/job/secure-delivery/job/agent-preflight/2/)
|
||||
passed at 03:47 UTC, including real credential binding, deploy login, pinned
|
||||
host key and sudo. See [inventory](agent-preflight-2.txt).
|
||||
- 03:50:16–03:51:43 UTC: the separate capacity preparation trial passed 12
|
||||
control tests and 3 app tests, source-secret/dependency gates, capped image
|
||||
build, full image gate (zero HIGH/CRITICAL), and a temporary 64 MiB app smoke.
|
||||
Health v1, identity `uncommitted-remote-preflight`, total 30 for quantity 3,
|
||||
and HTTP 400 for invalid quantity were verified. The smoke container was
|
||||
removed. No image was pushed and no assessed environment was deployed.
|
||||
- The trial used a non-secret local snapshot of `delivery/app`, `delivery/ci`,
|
||||
the scanner rule and the trial script, not a reviewed full repository checkout.
|
||||
Snapshot archive SHA-256:
|
||||
`2cd5d23062ff9904b48a23dfd5d9f2b9c67929cb86db006e7b2677060da3afa0`.
|
||||
Gate reports retain actual timestamps and tool/database metadata.
|
||||
- Observed available RAM exceeded 700 MiB; swap used increased from 263 to
|
||||
372 MiB during the sampled trial. At 03:54 UTC, 861 MiB was available, swap
|
||||
used was 370 MiB and root disk was 56% used (11 GiB available, rounded by df).
|
||||
Agent cgroup memory-limit events were nonzero; agent and builder `oom` and
|
||||
`oom_kill` counters were zero, and both reported `OOMKilled=false`.
|
||||
- Gitea, Jenkins login and Grafana login returned HTTP 200 through private
|
||||
Docker routes after the trial. Seven previous containers remained running.
|
||||
- Restarted only the agent; logs recorded a fresh WebSocket connection and
|
||||
`Connected` at 03:57:57 UTC. `unless-stopped` is configured for both agent and
|
||||
builder; an entire-host reboot was not performed as part of this migration.
|
||||
|
||||
Raw reports, partial resource-output capture, runtime JSON and screenshot:
|
||||
ignored `build/evidence/assignment8-agent-migration/`. Protected server reports:
|
||||
`/root/ssw590-delivery-bootstrap/agent-migration/`. The short trial used swap
|
||||
and does not prove full release, recovery or campus presentation performance.
|
||||
|
||||
No firewall rule, credential scope, TLS verification, peer-review requirement
|
||||
or human production approval changed. Co-located Docker authority gives trusted
|
||||
jobs administrative access to the shared host; this is an explicit course-lab
|
||||
trade-off. The older Gitea Actions PDF runner remains on the laptop. No new
|
||||
instance or cloud plan change was made. Migration changes are uncommitted;
|
||||
DNS, reviewed releases, production approvals and recovery exercises remain pending.
|
||||
|
||||
Subsequently Vincent requested moving that Actions runner too. The statement
|
||||
above describes the end of the delivery-agent migration, not current placement.
|
||||
See the [later runner record](../../gitea/droplet-runner/EVIDENCE.md).
|
||||
@@ -0,0 +1,32 @@
|
||||
Sat Nov 14 20:46:17 UTC 2026
|
||||
uid=1000(jenkins) gid=1000(jenkins) groups=1000(jenkins),0(root)
|
||||
Python 3.13.5
|
||||
ansible [core 2.21.6]
|
||||
config file = None
|
||||
configured module search path = ['/home/jenkins/.ansible/plugins/modules', '/usr/share/ansible/plugins/modules']
|
||||
ansible python module location = /opt/delivery-tools/lib/python3.13/site-packages/ansible
|
||||
ansible collection location = /opt/ansible-collections
|
||||
executable location = /opt/delivery-tools/bin/ansible
|
||||
python version = 3.13.5 (main, Aug 10 2026, 12:06:59) [GCC 14.2.0] (/opt/delivery-tools/bin/python3)
|
||||
jinja version = 3.1.6
|
||||
pyyaml version = 6.0.3 (with libyaml v0.2.5)
|
||||
|
||||
# /opt/ansible-collections/ansible_collections
|
||||
Collection Version
|
||||
---------------------------------------- -------
|
||||
community.docker 5.4.0
|
||||
community.library_inventory_filtering_v1 1.1.5
|
||||
Docker version 29.9.3, build 5457199
|
||||
Docker Compose version v5.7.1
|
||||
Version: 0.76.2
|
||||
pip-audit 2.10.1
|
||||
uid=1000(deploy) gid=1000(deploy) groups=1000(deploy)
|
||||
Python 3.12.3
|
||||
Docker version 29.9.3, build 5457199
|
||||
Docker Compose version v5.7.1
|
||||
total used free shared buff/cache available
|
||||
Mem: 1967 1089 85 4 955 878
|
||||
Swap: 2047 102 1945
|
||||
1
|
||||
Filesystem Size Used Avail Use% Mounted on
|
||||
/dev/vda1 24G 9.5G 14G 41% /
|
||||
@@ -0,0 +1,32 @@
|
||||
Sun Nov 15 03:47:13 UTC 2026
|
||||
uid=1000(jenkins) gid=1000(jenkins) groups=1000(jenkins),987
|
||||
Python 3.13.5
|
||||
ansible [core 2.21.6]
|
||||
config file = None
|
||||
configured module search path = ['/home/jenkins/.ansible/plugins/modules', '/usr/share/ansible/plugins/modules']
|
||||
ansible python module location = /opt/delivery-tools/lib/python3.13/site-packages/ansible
|
||||
ansible collection location = /opt/ansible-collections
|
||||
executable location = /opt/delivery-tools/bin/ansible
|
||||
python version = 3.13.5 (main, Aug 10 2026, 12:06:59) [GCC 14.2.0] (/opt/delivery-tools/bin/python3)
|
||||
jinja version = 3.1.6
|
||||
pyyaml version = 6.0.3 (with libyaml v0.2.5)
|
||||
|
||||
# /opt/ansible-collections/ansible_collections
|
||||
Collection Version
|
||||
---------------------------------------- -------
|
||||
community.docker 5.4.0
|
||||
community.library_inventory_filtering_v1 1.1.5
|
||||
Docker version 29.9.3, build 5457199
|
||||
Docker Compose version v5.7.1
|
||||
Version: 0.76.2
|
||||
pip-audit 2.10.1
|
||||
uid=1000(deploy) gid=1000(deploy) groups=1000(deploy)
|
||||
Python 3.12.3
|
||||
Docker version 29.9.3, build 5457199
|
||||
Docker Compose version v5.7.1
|
||||
total used free shared buff/cache available
|
||||
Mem: 1967 1205 106 3 832 762
|
||||
Swap: 2047 265 1782
|
||||
1
|
||||
Filesystem Size Used Avail Use% Mounted on
|
||||
/dev/vda1 24G 12G 13G 49% /
|
||||
@@ -0,0 +1,35 @@
|
||||
Sun Nov 15 22:50:10 UTC 2026
|
||||
uid=1000(jenkins) gid=1000(jenkins) groups=1000(jenkins),987
|
||||
Python 3.13.5
|
||||
ansible [core 2.21.6]
|
||||
config file = None
|
||||
configured module search path = ['/home/jenkins/.ansible/plugins/modules', '/usr/share/ansible/plugins/modules']
|
||||
ansible python module location = /opt/delivery-tools/lib/python3.13/site-packages/ansible
|
||||
ansible collection location = /opt/ansible-collections
|
||||
executable location = /opt/delivery-tools/bin/ansible
|
||||
python version = 3.13.5 (main, Aug 10 2026, 12:06:59) [GCC 14.2.0] (/opt/delivery-tools/bin/python3)
|
||||
jinja version = 3.1.6
|
||||
pyyaml version = 6.0.3 (with libyaml v0.2.5)
|
||||
|
||||
# /opt/ansible-collections/ansible_collections
|
||||
Collection Version
|
||||
---------------------------------------- -------
|
||||
community.docker 5.4.0
|
||||
community.library_inventory_filtering_v1 1.1.5
|
||||
Docker version 29.9.3, build 5457199
|
||||
Docker Compose version v5.7.1
|
||||
Version: 0.76.2
|
||||
pip-audit 2.10.1
|
||||
uid=1000(deploy) gid=1000(deploy) groups=1000(deploy)
|
||||
Python 3.12.3
|
||||
Docker version 29.9.3, build 5457199
|
||||
Docker Compose version v5.7.1
|
||||
total used free shared buff/cache available
|
||||
Mem: 1967 1239 86 3 817 728
|
||||
Swap: 2047 413 1634
|
||||
1
|
||||
Filesystem Size Used Avail Use% Mounted on
|
||||
/dev/vda1 24G 15G 9.2G 61% /
|
||||
147.182.178.136 | CHANGED | rc=0 >>
|
||||
0
|
||||
|
||||
@@ -0,0 +1,31 @@
|
||||
# Assessed Jenkins gate demonstrations — 15 November 2026
|
||||
|
||||
Reviewed source: `09731acb0370566471dd4e401e59bafe55e927dc`, the merge of
|
||||
[PR 24](https://git.yebilly.me/ssw590-group1/vpn-dns-gateway/pulls/24).
|
||||
Billy (`bill`) approved the latest preparation head `ed0a862` at 21:06 UTC;
|
||||
Vincent merged it at 21:59 UTC. The merge-triggered manual workflow
|
||||
[run 13](https://git.yebilly.me/ssw590-group1/vpn-dns-gateway/actions/runs/13)
|
||||
passed in 2m25s before the delivery demonstrations began.
|
||||
|
||||
| Jenkins pricing run | Mode | Actual result |
|
||||
|---|---|---|
|
||||
| [1](https://ci.yebilly.me/job/secure-delivery/job/pricing/1/) | `blocked-test` | FAILURE as intended, 54.202 seconds. Twelve control tests and three normal Flask tests passed; the additional expected-total=-1 assertion failed against the real v1 total 30. All later security, publication, deployment and approval stages were skipped. |
|
||||
| [2](https://ci.yebilly.me/job/secure-delivery/job/pricing/2/) | `blocked-secret` | FAILURE as intended, 31.375 seconds. Twelve control tests and three Flask tests passed. Clean-source scanning and all nine locked dependency audits passed; the generated synthetic-secret fixture was detected, blocking publication, deployment and approval. |
|
||||
|
||||
Run 1 began at 22:11:34.732 UTC. Run 2 began at 22:12:51.073 UTC;
|
||||
its source gate ran from 22:13:14.233 to 22:13:20.115 UTC. The scanner itself
|
||||
returned zero after writing a valid report; the gate wrapper returned one
|
||||
because that report contained a finding. This is expected policy enforcement,
|
||||
not a scanner execution error. The synthetic fixture is nonfunctional and
|
||||
generated only in a temporary directory; captured match/code fields are redacted.
|
||||
|
||||
Jenkins archives the test and gate reports for each run. Exact local copies,
|
||||
selected build metadata and console logs are retained in ignored
|
||||
`build/evidence/assignment8-execution/jenkins-{1,2}/`. These two negative
|
||||
demonstrations do not establish a successful release or production approval.
|
||||
|
||||
The job was enabled only after the merge. A bootstrap MODE choice parameter
|
||||
allowed the first run to select `blocked-test`; the reviewed Jenkinsfile then
|
||||
installed its normal four parameter definitions and retained its approval,
|
||||
timeout, concurrency and ancestry checks. Existing credentials and access
|
||||
permissions were unchanged.
|
||||
@@ -0,0 +1,133 @@
|
||||
{
|
||||
"started": "2026-11-16T02:06:37.133690+00:00",
|
||||
"image": "git.yebilly.me/ssw590-group1/pricing@sha256:63e2e3d49a5119b1064868b0b15b39a1719a60a632ff0ecdc3f676fcdc55de3b",
|
||||
"existing_staging_health": {
|
||||
"Status": "healthy",
|
||||
"FailingStreak": 0,
|
||||
"Log": [
|
||||
{
|
||||
"Start": "2026-11-16T02:05:39.379167981Z",
|
||||
"End": "2026-11-16T02:05:42.481797619Z",
|
||||
"ExitCode": -1,
|
||||
"Output": "Health check exceeded timeout (3s)"
|
||||
},
|
||||
{
|
||||
"Start": "2026-11-16T02:05:52.483085766Z",
|
||||
"End": "2026-11-16T02:05:55.560331159Z",
|
||||
"ExitCode": 0,
|
||||
"Output": ""
|
||||
},
|
||||
{
|
||||
"Start": "2026-11-16T02:06:05.56119162Z",
|
||||
"End": "2026-11-16T02:06:08.689713122Z",
|
||||
"ExitCode": -1,
|
||||
"Output": "Health check exceeded timeout (3s)"
|
||||
},
|
||||
{
|
||||
"Start": "2026-11-16T02:06:18.690913613Z",
|
||||
"End": "2026-11-16T02:06:21.782465826Z",
|
||||
"ExitCode": 0,
|
||||
"Output": ""
|
||||
},
|
||||
{
|
||||
"Start": "2026-11-16T02:06:31.784224739Z",
|
||||
"End": "2026-11-16T02:06:34.780482181Z",
|
||||
"ExitCode": 0,
|
||||
"Output": ""
|
||||
}
|
||||
]
|
||||
},
|
||||
"existing_staging_memory_events": "low 0\nhigh 0\nmax 29\noom 0\noom_kill 0\noom_group_kill 0",
|
||||
"candidate_timeout_seconds": 10,
|
||||
"samples": [
|
||||
{
|
||||
"Start": "2026-11-16T02:06:42.778495877Z",
|
||||
"End": "2026-11-16T02:06:48.438554619Z",
|
||||
"ExitCode": 0,
|
||||
"Output": ""
|
||||
},
|
||||
{
|
||||
"Start": "2026-11-16T02:06:58.439880386Z",
|
||||
"End": "2026-11-16T02:07:01.623272338Z",
|
||||
"ExitCode": 0,
|
||||
"Output": ""
|
||||
},
|
||||
{
|
||||
"Start": "2026-11-16T02:07:11.624979767Z",
|
||||
"End": "2026-11-16T02:07:14.734453351Z",
|
||||
"ExitCode": 0,
|
||||
"Output": ""
|
||||
},
|
||||
{
|
||||
"Start": "2026-11-16T02:07:24.735921433Z",
|
||||
"End": "2026-11-16T02:07:27.640717567Z",
|
||||
"ExitCode": 0,
|
||||
"Output": ""
|
||||
},
|
||||
{
|
||||
"Start": "2026-11-16T02:07:37.641388311Z",
|
||||
"End": "2026-11-16T02:07:40.639898244Z",
|
||||
"ExitCode": 0,
|
||||
"Output": ""
|
||||
},
|
||||
{
|
||||
"Start": "2026-11-16T02:07:50.64115933Z",
|
||||
"End": "2026-11-16T02:07:53.824315905Z",
|
||||
"ExitCode": 0,
|
||||
"Output": ""
|
||||
},
|
||||
{
|
||||
"Start": "2026-11-16T02:08:03.825342377Z",
|
||||
"End": "2026-11-16T02:08:07.523556252Z",
|
||||
"ExitCode": 0,
|
||||
"Output": ""
|
||||
},
|
||||
{
|
||||
"Start": "2026-11-16T02:08:17.525594582Z",
|
||||
"End": "2026-11-16T02:08:20.342264608Z",
|
||||
"ExitCode": 0,
|
||||
"Output": ""
|
||||
}
|
||||
],
|
||||
"final_health": {
|
||||
"Status": "healthy",
|
||||
"FailingStreak": 0,
|
||||
"Log": [
|
||||
{
|
||||
"Start": "2026-11-16T02:07:24.735921433Z",
|
||||
"End": "2026-11-16T02:07:27.640717567Z",
|
||||
"ExitCode": 0,
|
||||
"Output": ""
|
||||
},
|
||||
{
|
||||
"Start": "2026-11-16T02:07:37.641388311Z",
|
||||
"End": "2026-11-16T02:07:40.639898244Z",
|
||||
"ExitCode": 0,
|
||||
"Output": ""
|
||||
},
|
||||
{
|
||||
"Start": "2026-11-16T02:07:50.64115933Z",
|
||||
"End": "2026-11-16T02:07:53.824315905Z",
|
||||
"ExitCode": 0,
|
||||
"Output": ""
|
||||
},
|
||||
{
|
||||
"Start": "2026-11-16T02:08:03.825342377Z",
|
||||
"End": "2026-11-16T02:08:07.523556252Z",
|
||||
"ExitCode": 0,
|
||||
"Output": ""
|
||||
},
|
||||
{
|
||||
"Start": "2026-11-16T02:08:17.525594582Z",
|
||||
"End": "2026-11-16T02:08:20.342264608Z",
|
||||
"ExitCode": 0,
|
||||
"Output": ""
|
||||
}
|
||||
]
|
||||
},
|
||||
"memory_events": "low 0\nhigh 0\nmax 0\noom 0\noom_kill 0\noom_group_kill 0",
|
||||
"cpu_stat": "usage_usec 8426586\nuser_usec 6475439\nsystem_usec 1951147\ncore_sched.force_idle_usec 0\nnr_periods 372\nnr_throttled 327\nthrottled_usec 23409965\nnr_bursts 0\nburst_usec 0",
|
||||
"passed": true,
|
||||
"completed": "2026-11-16T02:08:24.345181+00:00",
|
||||
"temporary_container_removed": true
|
||||
}
|
||||
@@ -0,0 +1,51 @@
|
||||
"""Administrator-only diagnostic; never deploys a pricing environment."""
|
||||
import json
|
||||
import subprocess
|
||||
import time
|
||||
from datetime import datetime, timezone
|
||||
|
||||
IMAGE = 'git.yebilly.me/ssw590-group1/pricing@sha256:63e2e3d49a5119b1064868b0b15b39a1719a60a632ff0ecdc3f676fcdc55de3b'
|
||||
NAME = 'ssw590-pricing-health-trial'
|
||||
|
||||
def command(*args):
|
||||
return subprocess.check_output(args, text=True).strip()
|
||||
|
||||
def health(container):
|
||||
return json.loads(command('docker', 'inspect', '--format', '{{json .State.Health}}', container))
|
||||
|
||||
def now():
|
||||
return datetime.now(timezone.utc).isoformat()
|
||||
|
||||
existing = subprocess.run(['docker','container','inspect',NAME],capture_output=True)
|
||||
assert existing.returncode != 0, 'Existing diagnostic container must be reviewed'
|
||||
report = {'started':now(), 'image':IMAGE, 'existing_staging_health':health('pricing-staging-app-1'),
|
||||
'existing_staging_memory_events':command('docker','exec','pricing-staging-app-1','cat','/sys/fs/cgroup/memory.events'),
|
||||
'candidate_timeout_seconds':10, 'samples':[]}
|
||||
container = command('docker','run','-d','--pull','never','--name',NAME,
|
||||
'--network','none','--read-only','--tmpfs','/tmp:size=16m,mode=1777',
|
||||
'--cap-drop','ALL','--security-opt','no-new-privileges:true','--user','10001:10001',
|
||||
'--memory','64m','--memory-swap','96m','--cpus','0.25','--pids-limit','64',
|
||||
'--health-timeout','10s',IMAGE)
|
||||
assert len(container) == 64 and all(c in '0123456789abcdef' for c in container)
|
||||
seen = set()
|
||||
try:
|
||||
deadline = time.monotonic() + 170
|
||||
while time.monotonic() < deadline:
|
||||
state = health(container)
|
||||
for sample in state.get('Log',[]):
|
||||
if sample['Start'] not in seen:
|
||||
seen.add(sample['Start'])
|
||||
report['samples'].append(sample)
|
||||
if len(report['samples']) >= 8:
|
||||
break
|
||||
time.sleep(5)
|
||||
report['final_health'] = health(container)
|
||||
report['memory_events'] = command('docker','exec',container,'cat','/sys/fs/cgroup/memory.events')
|
||||
report['cpu_stat'] = command('docker','exec',container,'cat','/sys/fs/cgroup/cpu.stat')
|
||||
report['passed'] = len(report['samples']) >= 8 and all(s['ExitCode'] == 0 for s in report['samples']) and report['final_health']['Status'] == 'healthy'
|
||||
finally:
|
||||
subprocess.run(['docker','rm','-f',container],check=True,capture_output=True)
|
||||
report['completed'] = now()
|
||||
report['temporary_container_removed'] = True
|
||||
print(json.dumps(report,indent=2))
|
||||
assert report['passed'], 'Health trial did not pass'
|
||||
@@ -0,0 +1,36 @@
|
||||
# DNS and HTTPS readiness — 15 November 2026
|
||||
|
||||
Billy added A records for `staging.yebilly.me` and `app.yebilly.me` pointing to
|
||||
`147.182.178.136`. At 06:14 UTC, Google and Cloudflare DNS-over-HTTPS both returned
|
||||
that A record and no AAAA answer for each name. No DNS account was accessed or
|
||||
changed by Codex.
|
||||
|
||||
At 06:09:34 UTC, the prepared `deploy/Caddyfile` additions were validated with
|
||||
installed Caddy 2.11.4, backed up and gracefully reloaded. The helper checked
|
||||
that earlier routes matched before changing anything and preserved the existing
|
||||
bind-mounted inode. The first comparison stopped because of CRLF versus LF;
|
||||
normalizing only that comparison allowed the matching routes to pass.
|
||||
|
||||
- Before SHA-256: `0197f100c5a1f2a21c6a293964fada27f61fe6f4ddf0b0c6d1ed6455f2cfbcc5`.
|
||||
- After SHA-256: `7adbd9469b1e0ebcb8d6b62c8576eb4fb8b51efc70409607f604f453f8ac8187`.
|
||||
- Backup: `/root/ssw590-delivery-bootstrap/https-20261115/Caddyfile.before`.
|
||||
- Existing Gitea/Jenkins/Grafana routes, allowlist placeholders, volumes and
|
||||
certificate storage were preserved. No firewall or published port changed.
|
||||
|
||||
Normal Windows curl and Ubuntu Python TLS checks passed without insecure mode.
|
||||
Both hostnames negotiated TLS 1.3 with trusted hostname-matching certificates.
|
||||
HTTP returned 308 with the corresponding HTTPS Location. HTTPS returned 502:
|
||||
the staging/production pricing containers do not exist yet. This proves DNS,
|
||||
TLS and redirects, not app health or a completed release.
|
||||
|
||||
All ten prior service/agent/builder containers remained running. Gitea, Jenkins
|
||||
login and Grafana login returned private HTTP 200 after the reload. Production
|
||||
monitoring was not enabled while the pricing service was absent.
|
||||
|
||||
Actual DNS answers, certificate issuer/SAN/validity/fingerprints and HTTP results
|
||||
are in ignored `build/evidence/assignment8-https/verification.json`; application
|
||||
and existing-service checks remain separate. No reviewed release, registry
|
||||
publication, promotion, rollback, password reset or account-permission change
|
||||
was performed during this work. The source changes remain uncommitted.
|
||||
|
||||
Caddy behavior: [Automatic HTTPS](https://caddyserver.com/docs/automatic-https).
|
||||
@@ -0,0 +1,26 @@
|
||||
{
|
||||
"applied_at": "2026-11-16T03:08:11.087796+00:00",
|
||||
"production_health": {
|
||||
"status": "ok",
|
||||
"version": "v1"
|
||||
},
|
||||
"validation": "Checking /tmp/ssw590-production-probe-20261116T030810544427Z.yml\n SUCCESS: /tmp/ssw590-production-probe-20261116T030810544427Z.yml is valid prometheus config file syntax\n\n",
|
||||
"prior_probes_and_panels_preserved": true,
|
||||
"files": [
|
||||
{
|
||||
"path": "/root/monitoring/prometheus/prometheus.yml",
|
||||
"before_sha256": "fe1d0f479d947e20ea7ebfec164689fe69ea9539ba0289adc2b7d26b8ffe62d6",
|
||||
"after_sha256": "e35bc7fb3d09f7b3442324a2af147d8f1319ae1f0631ba81ed7577bb63826edd",
|
||||
"inode_preserved": true
|
||||
},
|
||||
{
|
||||
"path": "/root/monitoring/grafana/dashboards/sre.json",
|
||||
"before_sha256": "c21fadca47ee624001133a82b788e728d08168664302666ed103113f3bec5f13",
|
||||
"after_sha256": "08f99b845e5d56b81f54bf1b386aa50a54a88296ce5caf9496c5bfbf62929ed1",
|
||||
"inode_preserved": true
|
||||
}
|
||||
],
|
||||
"backup": "/root/ssw590-delivery-bootstrap/monitoring-20261116",
|
||||
"reload": "Prometheus SIGHUP; Grafana file provisioning",
|
||||
"result": "applied; runtime probe and panel verification still required"
|
||||
}
|
||||
@@ -0,0 +1,218 @@
|
||||
{
|
||||
"observed_at": "2026-11-16T03:14:11.206493+00:00",
|
||||
"queries": {
|
||||
"probe_success{job=\"https\"}": [
|
||||
{
|
||||
"metric": {
|
||||
"__name__": "probe_success",
|
||||
"instance": "https://ci.yebilly.me/login",
|
||||
"job": "https"
|
||||
},
|
||||
"value": [
|
||||
1794798851.242,
|
||||
"1"
|
||||
]
|
||||
},
|
||||
{
|
||||
"metric": {
|
||||
"__name__": "probe_success",
|
||||
"instance": "https://git.yebilly.me/user/login",
|
||||
"job": "https"
|
||||
},
|
||||
"value": [
|
||||
1794798851.242,
|
||||
"1"
|
||||
]
|
||||
},
|
||||
{
|
||||
"metric": {
|
||||
"__name__": "probe_success",
|
||||
"instance": "https://app.yebilly.me/health",
|
||||
"job": "https"
|
||||
},
|
||||
"value": [
|
||||
1794798851.242,
|
||||
"1"
|
||||
]
|
||||
}
|
||||
],
|
||||
"prometheus_config_last_reload_successful": [
|
||||
{
|
||||
"metric": {
|
||||
"__name__": "prometheus_config_last_reload_successful",
|
||||
"instance": "prometheus:9090",
|
||||
"job": "prometheus"
|
||||
},
|
||||
"value": [
|
||||
1794798851.244,
|
||||
"1"
|
||||
]
|
||||
}
|
||||
],
|
||||
"up": [
|
||||
{
|
||||
"metric": {
|
||||
"__name__": "up",
|
||||
"instance": "blackbox-exporter:9115",
|
||||
"job": "blackbox"
|
||||
},
|
||||
"value": [
|
||||
1794798851.245,
|
||||
"1"
|
||||
]
|
||||
},
|
||||
{
|
||||
"metric": {
|
||||
"__name__": "up",
|
||||
"instance": "prometheus:9090",
|
||||
"job": "prometheus"
|
||||
},
|
||||
"value": [
|
||||
1794798851.245,
|
||||
"1"
|
||||
]
|
||||
},
|
||||
{
|
||||
"metric": {
|
||||
"__name__": "up",
|
||||
"instance": "https://ci.yebilly.me/login",
|
||||
"job": "https"
|
||||
},
|
||||
"value": [
|
||||
1794798851.245,
|
||||
"1"
|
||||
]
|
||||
},
|
||||
{
|
||||
"metric": {
|
||||
"__name__": "up",
|
||||
"instance": "https://git.yebilly.me/user/login",
|
||||
"job": "https"
|
||||
},
|
||||
"value": [
|
||||
1794798851.245,
|
||||
"1"
|
||||
]
|
||||
},
|
||||
{
|
||||
"metric": {
|
||||
"__name__": "up",
|
||||
"instance": "node-exporter:9100",
|
||||
"job": "node"
|
||||
},
|
||||
"value": [
|
||||
1794798851.245,
|
||||
"1"
|
||||
]
|
||||
},
|
||||
{
|
||||
"metric": {
|
||||
"__name__": "up",
|
||||
"instance": "https://app.yebilly.me/health",
|
||||
"job": "https"
|
||||
},
|
||||
"value": [
|
||||
1794798851.245,
|
||||
"1"
|
||||
]
|
||||
}
|
||||
]
|
||||
},
|
||||
"targets": [
|
||||
{
|
||||
"labels": {
|
||||
"instance": "blackbox-exporter:9115",
|
||||
"job": "blackbox"
|
||||
},
|
||||
"health": "up",
|
||||
"lastError": "",
|
||||
"lastScrape": "2026-11-16T03:13:46.738098436Z"
|
||||
},
|
||||
{
|
||||
"labels": {
|
||||
"instance": "https://git.yebilly.me/user/login",
|
||||
"job": "https"
|
||||
},
|
||||
"health": "up",
|
||||
"lastError": "",
|
||||
"lastScrape": "2026-11-16T03:14:02.878212313Z"
|
||||
},
|
||||
{
|
||||
"labels": {
|
||||
"instance": "https://ci.yebilly.me/login",
|
||||
"job": "https"
|
||||
},
|
||||
"health": "up",
|
||||
"lastError": "",
|
||||
"lastScrape": "2026-11-16T03:13:50.769303819Z"
|
||||
},
|
||||
{
|
||||
"labels": {
|
||||
"instance": "https://app.yebilly.me/health",
|
||||
"job": "https"
|
||||
},
|
||||
"health": "up",
|
||||
"lastError": "",
|
||||
"lastScrape": "2026-11-16T03:13:54.602557327Z"
|
||||
},
|
||||
{
|
||||
"labels": {
|
||||
"instance": "node-exporter:9100",
|
||||
"job": "node"
|
||||
},
|
||||
"health": "up",
|
||||
"lastError": "",
|
||||
"lastScrape": "2026-11-16T03:14:06.522911829Z"
|
||||
},
|
||||
{
|
||||
"labels": {
|
||||
"instance": "prometheus:9090",
|
||||
"job": "prometheus"
|
||||
},
|
||||
"health": "up",
|
||||
"lastError": "",
|
||||
"lastScrape": "2026-11-16T03:13:47.742950331Z"
|
||||
}
|
||||
],
|
||||
"dashboard_provisioning_source": {
|
||||
"uid": "group1-sre",
|
||||
"title": "Group 1 SRE",
|
||||
"panels": [
|
||||
{
|
||||
"id": 1,
|
||||
"title": "Droplet CPU utilization (%)"
|
||||
},
|
||||
{
|
||||
"id": 2,
|
||||
"title": "Available memory (bytes)"
|
||||
},
|
||||
{
|
||||
"id": 3,
|
||||
"title": "Root filesystem available (%)"
|
||||
},
|
||||
{
|
||||
"id": 4,
|
||||
"title": "Gitea HTTPS availability (probe_success)"
|
||||
},
|
||||
{
|
||||
"id": 5,
|
||||
"title": "Jenkins HTTPS availability (probe_success)"
|
||||
},
|
||||
{
|
||||
"id": 6,
|
||||
"title": "HTTPS probe duration (s)"
|
||||
},
|
||||
{
|
||||
"id": 7,
|
||||
"title": "Scrape health (up)"
|
||||
},
|
||||
{
|
||||
"id": 8,
|
||||
"title": "Pricing production HTTPS availability (probe_success)"
|
||||
}
|
||||
]
|
||||
},
|
||||
"production_probe_up": true,
|
||||
"pricing_panel_configured": true,
|
||||
"runtime_panel_verification": "Separate Grafana UI verification required"
|
||||
}
|
||||
@@ -0,0 +1,615 @@
|
||||
{
|
||||
"review": {
|
||||
"pr": 27,
|
||||
"url": "https://git.yebilly.me/ssw590-group1/vpn-dns-gateway/pulls/27",
|
||||
"reviewer": "bill",
|
||||
"approved_utc": "2026-11-16T04:12:09Z",
|
||||
"merged_by": "vsun1",
|
||||
"merged_utc": "2026-11-16T04:14:30Z",
|
||||
"main_commit": "72bf10dcecc8db65dce4750c05bf841bea9b0834",
|
||||
"manual_workflow": 16,
|
||||
"manual_result": "SUCCESS",
|
||||
"manual_elapsed_seconds": 137
|
||||
},
|
||||
"staging_fault_commit": "1e23001e7303d14630cfa97c8de36f31f30b81a0",
|
||||
"staging_revert_commit": "29e580c4613f00a02f44bce0dbcee2fd8fdc83ae",
|
||||
"tracking_issue": {
|
||||
"number": 28,
|
||||
"url": "https://git.yebilly.me/ssw590-group1/vpn-dns-gateway/issues/28",
|
||||
"created_utc": "2026-11-16T04:33:40Z",
|
||||
"timing": "Created with Vincent authorization during finalization, after implementation and exercises"
|
||||
},
|
||||
"decisions": {
|
||||
"production": {
|
||||
"decision_utc": "2026-11-16T04:17:46.307026+00:00",
|
||||
"environment": "production",
|
||||
"reason": "Planned healthy v2-to-v1 production rollback exercise; no incident claimed",
|
||||
"reviewed_main": "72bf10dcecc8db65dce4750c05bf841bea9b0834",
|
||||
"before": {
|
||||
"/health": {
|
||||
"http_status": 200,
|
||||
"body": {
|
||||
"status": "ok",
|
||||
"version": "v2"
|
||||
}
|
||||
},
|
||||
"/": {
|
||||
"http_status": 200,
|
||||
"body": {
|
||||
"commit": "6bddbfba5a36e0e397537678ffb197e101fb0670",
|
||||
"service": "Startup Pricing",
|
||||
"version": "v2"
|
||||
}
|
||||
},
|
||||
"/price?quantity=3": {
|
||||
"http_status": 200,
|
||||
"body": {
|
||||
"currency": "USD",
|
||||
"quantity": 3,
|
||||
"total": 36
|
||||
}
|
||||
}
|
||||
},
|
||||
"observer_seconds": 1800,
|
||||
"observer_interval_seconds": 1,
|
||||
"observer_pid": 99107
|
||||
},
|
||||
"staging": {
|
||||
"decision_utc": "2026-11-16T04:25:23.939561+00:00",
|
||||
"environment": "staging",
|
||||
"reason": "Planned isolated staging bind mismatch and recovery exercise",
|
||||
"reviewed_main": "72bf10dcecc8db65dce4750c05bf841bea9b0834",
|
||||
"before": {
|
||||
"/health": {
|
||||
"http_status": 200,
|
||||
"body": {
|
||||
"status": "ok",
|
||||
"version": "v2"
|
||||
}
|
||||
},
|
||||
"/": {
|
||||
"http_status": 200,
|
||||
"body": {
|
||||
"commit": "6bddbfba5a36e0e397537678ffb197e101fb0670",
|
||||
"service": "Startup Pricing",
|
||||
"version": "v2"
|
||||
}
|
||||
},
|
||||
"/price?quantity=3": {
|
||||
"http_status": 200,
|
||||
"body": {
|
||||
"currency": "USD",
|
||||
"quantity": 3,
|
||||
"total": 36
|
||||
}
|
||||
}
|
||||
},
|
||||
"observer_seconds": 1800,
|
||||
"observer_interval_seconds": 1,
|
||||
"observer_pid": 105221
|
||||
}
|
||||
},
|
||||
"builds": [
|
||||
{
|
||||
"result": "FAILURE",
|
||||
"duration": "17784",
|
||||
"startTime": "1794802675044",
|
||||
"timestamp": "1794802675036",
|
||||
"number": 7,
|
||||
"parameters": {
|
||||
"MODE": "rollback-production",
|
||||
"SOURCE_COMMIT": "",
|
||||
"RELEASE_RECORD": "delivery/releases/v1-production.json",
|
||||
"STAGING_FAILURE_CONFIG": ""
|
||||
},
|
||||
"url": "https://ci.yebilly.me/job/secure-delivery/job/pricing/7/",
|
||||
"started_utc": "2026-11-16T04:17:55.044000+00:00",
|
||||
"completed_utc": "2026-11-16T04:18:12.828000+00:00",
|
||||
"elapsed_seconds": 17.784,
|
||||
"control_commit": "72bf10dcecc8db65dce4750c05bf841bea9b0834",
|
||||
"report_sha256": {
|
||||
"reports\\source-commit.txt": "d32fa240635dc770690e10403280212691e8fff9e8e9479ed2d5382c7fa47b63"
|
||||
},
|
||||
"console_sha256": "ffb0fdf1e6a4da50eed4f10535208b6646985da94a565d543f29615b2980281b",
|
||||
"deployments": {},
|
||||
"runner_incident": {
|
||||
"failure": "Cannot fork during test-app.sh before deployment",
|
||||
"observations": "Before restart, cgroup pids.current=115/128 and pids.events max=2; Docker stats PIDS=114, memory=132.6 MiB/512 MiB; no OOM kill. Process listing showed Java only; no accumulation mechanism was established.",
|
||||
"action": "Restarted only the idle existing delivery-agent container, preserving image, identity/workspace and resource/security limits. Immediate Docker stats PIDS=13. Retried as build 8.",
|
||||
"limits_changed": false,
|
||||
"root_cause": "Process-limit pressure observed; underlying accumulation mechanism not proven"
|
||||
}
|
||||
},
|
||||
{
|
||||
"result": "SUCCESS",
|
||||
"duration": "163654",
|
||||
"startTime": "1794802924875",
|
||||
"timestamp": "1794802924865",
|
||||
"number": 8,
|
||||
"parameters": {
|
||||
"MODE": "rollback-production",
|
||||
"SOURCE_COMMIT": "",
|
||||
"RELEASE_RECORD": "delivery/releases/v1-production.json",
|
||||
"STAGING_FAILURE_CONFIG": ""
|
||||
},
|
||||
"url": "https://ci.yebilly.me/job/secure-delivery/job/pricing/8/",
|
||||
"started_utc": "2026-11-16T04:22:04.875000+00:00",
|
||||
"completed_utc": "2026-11-16T04:24:48.529000+00:00",
|
||||
"elapsed_seconds": 163.654,
|
||||
"control_commit": "72bf10dcecc8db65dce4750c05bf841bea9b0834",
|
||||
"report_sha256": {
|
||||
"reports\\ansible-production-deploy.json": "201c1a045f5fdcbcb2254a501c74a0a560dbcf091e3aadf825be59db804aea11",
|
||||
"reports\\ansible-production-deploy.txt": "ba845712187efc5fd4b6d3b757d1ea643aa399b377b3c2382e83d632171e7550",
|
||||
"reports\\dependencies.json": "efe1d4f130ea70d6fcf733a3051d05c03cd0b1e0ab25e471ac6dc62924136ff5",
|
||||
"reports\\dependencies.log": "79d30422388543b2563e1dde76bb7e7857d7ef0c6fdf05c8c71598633ca07e1e",
|
||||
"reports\\pip-audit-version.log": "70d9a63a0ea389b4992009be156f8738d7c22f2f5c049084054528ed7f9eee0c",
|
||||
"reports\\production-approval.txt": "6566df927fb18e6e297634d4dd522cf4c759c4fc008c6176d942672d5792cf95",
|
||||
"reports\\source-commit.txt": "d32fa240635dc770690e10403280212691e8fff9e8e9479ed2d5382c7fa47b63",
|
||||
"reports\\source-execution.json": "ba5b68047d9dac04089b31fb29fb40a3cb51b992c02f974444d300d504d0f5e1",
|
||||
"reports\\source-secrets.json": "72bd267761ba93c546536807f9b7e790797c38742cb36370d9679d6dcb1441b5",
|
||||
"reports\\source-secrets.log": "5a9fe951960c7abd0708e7155c0ab4729ef8f2d3edf84da7d35c8086f8dbee01",
|
||||
"reports\\trivy-version.log": "fdfa3e3b4b56139b5fe7bbecf4fe9a542298ee21bfd83d1f5e79b78f67b44c68",
|
||||
"reports\\unit-tests.json": "4e85118262b6728c253125415a37ddf3a3457abeda987bf1bcdb321cf3c57e8e",
|
||||
"reports\\unit-tests.txt": "1d86b5cda3b26f9b3b40dad45794b90949d1b1bbd12ee7520977e3654913566f"
|
||||
},
|
||||
"console_sha256": "98dde3f24af6fd114f092be6f23d288f9f61ce33bf73c51ba07935d8addba243",
|
||||
"deployments": {
|
||||
"ansible-production-deploy": {
|
||||
"started": "2026-11-16T04:23:42.801152+00:00",
|
||||
"completed": "2026-11-16T04:24:46.705083+00:00",
|
||||
"elapsed_seconds": 63.904,
|
||||
"operation": "deploy",
|
||||
"release": {
|
||||
"release_image": "git.yebilly.me/ssw590-group1/pricing@sha256:59c880b2704f91668618d9a2ff0bc8fbab0af4239ceb916de261863890ef88d8",
|
||||
"expected_commit": "34f26e6948b7001ede8ca19f23b67a02082e6a9a",
|
||||
"configuration_commit": "34f26e6948b7001ede8ca19f23b67a02082e6a9a",
|
||||
"expected_version": "v1",
|
||||
"expected_total": 30,
|
||||
"proxy_network": "gitea_web",
|
||||
"build_url": "https://ci.yebilly.me/job/secure-delivery/job/pricing/5/",
|
||||
"created_at": "2026-11-16T03:01:23.246375+00:00",
|
||||
"target_env": "production",
|
||||
"public_url": "https://app.yebilly.me"
|
||||
},
|
||||
"ansible_exit_code": 0,
|
||||
"recaps": [
|
||||
{
|
||||
"host": "startup",
|
||||
"ok": 10,
|
||||
"changed": 3,
|
||||
"unreachable": 0,
|
||||
"failed": 0
|
||||
}
|
||||
],
|
||||
"result": "passed"
|
||||
}
|
||||
},
|
||||
"gates": {
|
||||
"control_tests": 12,
|
||||
"app_tests": 3,
|
||||
"source_secrets": 0,
|
||||
"audited_dependencies": 9,
|
||||
"dependency_advisories": 0,
|
||||
"source_gate": "passed",
|
||||
"image_build_publish": "skipped: exact previously scanned release digest reused"
|
||||
},
|
||||
"approval": {
|
||||
"Approver": "vsun1",
|
||||
"Decision": "approved",
|
||||
"UTC": "2026-11-16T04:23:36Z"
|
||||
}
|
||||
},
|
||||
{
|
||||
"result": "FAILURE",
|
||||
"duration": "128235",
|
||||
"startTime": "1794803149011",
|
||||
"timestamp": "1794803149001",
|
||||
"number": 9,
|
||||
"parameters": {
|
||||
"MODE": "staging-failure",
|
||||
"SOURCE_COMMIT": "",
|
||||
"RELEASE_RECORD": "delivery/releases/v2-staging.json",
|
||||
"STAGING_FAILURE_CONFIG": "1e23001e7303d14630cfa97c8de36f31f30b81a0"
|
||||
},
|
||||
"url": "https://ci.yebilly.me/job/secure-delivery/job/pricing/9/",
|
||||
"started_utc": "2026-11-16T04:25:49.011000+00:00",
|
||||
"completed_utc": "2026-11-16T04:27:57.246000+00:00",
|
||||
"elapsed_seconds": 128.235,
|
||||
"control_commit": "72bf10dcecc8db65dce4750c05bf841bea9b0834",
|
||||
"report_sha256": {
|
||||
"reports\\ansible-staging-deploy.json": "a3e6f2ec37c87c8989ff86d76a0d7adde4269b1ca4711252a87493b7f130eca6",
|
||||
"reports\\ansible-staging-deploy.txt": "81224e3fe7b3e2fd873fb4efccd4fcf539cefd7b5c22e2f62a380fadaf07acf5",
|
||||
"reports\\dependencies.json": "efe1d4f130ea70d6fcf733a3051d05c03cd0b1e0ab25e471ac6dc62924136ff5",
|
||||
"reports\\dependencies.log": "79d30422388543b2563e1dde76bb7e7857d7ef0c6fdf05c8c71598633ca07e1e",
|
||||
"reports\\pip-audit-version.log": "70d9a63a0ea389b4992009be156f8738d7c22f2f5c049084054528ed7f9eee0c",
|
||||
"reports\\source-commit.txt": "d32fa240635dc770690e10403280212691e8fff9e8e9479ed2d5382c7fa47b63",
|
||||
"reports\\source-execution.json": "9412c68aff2731f64d7ec8f0a5b385f06ff0cdd00695e95637bea641c27954b3",
|
||||
"reports\\source-secrets.json": "1c19587e36004d75715c36a1de0a1de995206810b4cdcc4191913cf1dddc8870",
|
||||
"reports\\source-secrets.log": "304aacf31aa559e3ebc960cdbfaacdc5acd332b02ef549767c807ad881e83d00",
|
||||
"reports\\trivy-version.log": "fdfa3e3b4b56139b5fe7bbecf4fe9a542298ee21bfd83d1f5e79b78f67b44c68",
|
||||
"reports\\unit-tests.json": "348cec2062b44e325a1ce6c8ba9f58b5138f0cdba1b99a20ffbff4b0597c12fe",
|
||||
"reports\\unit-tests.txt": "00f03324a514a809d96c5ff8c178bf619ba0c860c2b2eacf81be492ace71cf2b"
|
||||
},
|
||||
"console_sha256": "d5a3b8260c102a179b7749f1e247299e42a629b09e313ba0796b42e8c8ab8e0c",
|
||||
"deployments": {
|
||||
"ansible-staging-deploy": {
|
||||
"started": "2026-11-16T04:26:25.353545+00:00",
|
||||
"completed": "2026-11-16T04:27:52.043305+00:00",
|
||||
"elapsed_seconds": 86.69,
|
||||
"operation": "deploy",
|
||||
"release": {
|
||||
"release_image": "git.yebilly.me/ssw590-group1/pricing@sha256:efe8658a0adf0854038d58199652030cbd0ef70047a1c6ebc7b09906cf1ec88b",
|
||||
"expected_commit": "6bddbfba5a36e0e397537678ffb197e101fb0670",
|
||||
"configuration_commit": "1e23001e7303d14630cfa97c8de36f31f30b81a0",
|
||||
"expected_version": "v2",
|
||||
"expected_total": 36,
|
||||
"proxy_network": "gitea_web",
|
||||
"build_url": "https://ci.yebilly.me/job/secure-delivery/job/pricing/6/",
|
||||
"created_at": "2026-11-16T03:06:40.913173+00:00",
|
||||
"target_env": "staging",
|
||||
"public_url": "https://staging.yebilly.me"
|
||||
},
|
||||
"ansible_exit_code": 2,
|
||||
"recaps": [
|
||||
{
|
||||
"host": "startup",
|
||||
"ok": 4,
|
||||
"changed": 1,
|
||||
"unreachable": 0,
|
||||
"failed": 1
|
||||
}
|
||||
],
|
||||
"result": "blocked"
|
||||
}
|
||||
},
|
||||
"gates": {
|
||||
"control_tests": 12,
|
||||
"app_tests": 3,
|
||||
"source_secrets": 0,
|
||||
"audited_dependencies": 9,
|
||||
"dependency_advisories": 0,
|
||||
"source_gate": "passed",
|
||||
"image_build_publish": "skipped: exact previously scanned release digest reused"
|
||||
},
|
||||
"blocked_before_production": true
|
||||
},
|
||||
{
|
||||
"result": "SUCCESS",
|
||||
"duration": "141672",
|
||||
"startTime": "1794803318093",
|
||||
"timestamp": "1794803318085",
|
||||
"number": 10,
|
||||
"parameters": {
|
||||
"MODE": "recover-staging",
|
||||
"SOURCE_COMMIT": "",
|
||||
"RELEASE_RECORD": "delivery/releases/v2-staging.json",
|
||||
"STAGING_FAILURE_CONFIG": ""
|
||||
},
|
||||
"url": "https://ci.yebilly.me/job/secure-delivery/job/pricing/10/",
|
||||
"started_utc": "2026-11-16T04:28:38.093000+00:00",
|
||||
"completed_utc": "2026-11-16T04:30:59.765000+00:00",
|
||||
"elapsed_seconds": 141.672,
|
||||
"control_commit": "72bf10dcecc8db65dce4750c05bf841bea9b0834",
|
||||
"report_sha256": {
|
||||
"reports\\ansible-staging-deploy.json": "ed55e946f9e8bb13225ce0a8811024d540f9fe4294323d2ee455f3acf2845657",
|
||||
"reports\\ansible-staging-deploy.txt": "07f0481909dfde24de95ac0a1db610a094d9fffa936c3cff689fcd6c821d63fb",
|
||||
"reports\\ansible-staging-rerun.json": "26305363b025835bd3153520e70079f61a91dd23baa4e36f7222afe8f74c412d",
|
||||
"reports\\ansible-staging-rerun.txt": "911564f4c8bf57d9520a443034e0bc9de4abf7726ca0b8c2b3afa97943b4a91d",
|
||||
"reports\\dependencies.json": "efe1d4f130ea70d6fcf733a3051d05c03cd0b1e0ab25e471ac6dc62924136ff5",
|
||||
"reports\\dependencies.log": "79d30422388543b2563e1dde76bb7e7857d7ef0c6fdf05c8c71598633ca07e1e",
|
||||
"reports\\pip-audit-version.log": "70d9a63a0ea389b4992009be156f8738d7c22f2f5c049084054528ed7f9eee0c",
|
||||
"reports\\source-commit.txt": "d32fa240635dc770690e10403280212691e8fff9e8e9479ed2d5382c7fa47b63",
|
||||
"reports\\source-execution.json": "d78b9b30bba14b4f3323fb092a153056b813a06a6a8d1ebab4adfdecaeded57d",
|
||||
"reports\\source-secrets.json": "520f12af3fd8864aeb7b559e0f9c0259af1e4a82b5d2d80bcd863d80fc59c110",
|
||||
"reports\\source-secrets.log": "4a69a54407e808d23fc6ae73f37542f1e959f9556673109c59bcc7c2b968f1a9",
|
||||
"reports\\trivy-version.log": "fdfa3e3b4b56139b5fe7bbecf4fe9a542298ee21bfd83d1f5e79b78f67b44c68",
|
||||
"reports\\unit-tests.json": "98a1ea888dffc5ca4bf86099df73b5f5381f5f152e749c69ab0354e8c08d5835",
|
||||
"reports\\unit-tests.txt": "5b85444f8bb9c230b2cdaad8cc115d29731678013be9758c1a8b3aa48796bf05"
|
||||
},
|
||||
"console_sha256": "ae14281ab7598b35d44ee27fa223a6d2db95109506befefa400d5266e582f7ec",
|
||||
"deployments": {
|
||||
"ansible-staging-deploy": {
|
||||
"started": "2026-11-16T04:29:10.105956+00:00",
|
||||
"completed": "2026-11-16T04:30:06.602542+00:00",
|
||||
"elapsed_seconds": 56.497,
|
||||
"operation": "deploy",
|
||||
"release": {
|
||||
"release_image": "git.yebilly.me/ssw590-group1/pricing@sha256:efe8658a0adf0854038d58199652030cbd0ef70047a1c6ebc7b09906cf1ec88b",
|
||||
"expected_commit": "6bddbfba5a36e0e397537678ffb197e101fb0670",
|
||||
"configuration_commit": "6bddbfba5a36e0e397537678ffb197e101fb0670",
|
||||
"expected_version": "v2",
|
||||
"expected_total": 36,
|
||||
"proxy_network": "gitea_web",
|
||||
"build_url": "https://ci.yebilly.me/job/secure-delivery/job/pricing/6/",
|
||||
"created_at": "2026-11-16T03:06:40.913173+00:00",
|
||||
"target_env": "staging",
|
||||
"public_url": "https://staging.yebilly.me"
|
||||
},
|
||||
"ansible_exit_code": 0,
|
||||
"recaps": [
|
||||
{
|
||||
"host": "startup",
|
||||
"ok": 10,
|
||||
"changed": 2,
|
||||
"unreachable": 0,
|
||||
"failed": 0
|
||||
}
|
||||
],
|
||||
"result": "passed"
|
||||
},
|
||||
"ansible-staging-rerun": {
|
||||
"started": "2026-11-16T04:30:10.351831+00:00",
|
||||
"completed": "2026-11-16T04:30:58.450829+00:00",
|
||||
"elapsed_seconds": 48.099,
|
||||
"operation": "rerun",
|
||||
"release": {
|
||||
"release_image": "git.yebilly.me/ssw590-group1/pricing@sha256:efe8658a0adf0854038d58199652030cbd0ef70047a1c6ebc7b09906cf1ec88b",
|
||||
"expected_commit": "6bddbfba5a36e0e397537678ffb197e101fb0670",
|
||||
"configuration_commit": "6bddbfba5a36e0e397537678ffb197e101fb0670",
|
||||
"expected_version": "v2",
|
||||
"expected_total": 36,
|
||||
"proxy_network": "gitea_web",
|
||||
"build_url": "https://ci.yebilly.me/job/secure-delivery/job/pricing/6/",
|
||||
"created_at": "2026-11-16T03:06:40.913173+00:00",
|
||||
"target_env": "staging",
|
||||
"public_url": "https://staging.yebilly.me"
|
||||
},
|
||||
"ansible_exit_code": 0,
|
||||
"recaps": [
|
||||
{
|
||||
"host": "startup",
|
||||
"ok": 10,
|
||||
"changed": 0,
|
||||
"unreachable": 0,
|
||||
"failed": 0
|
||||
}
|
||||
],
|
||||
"result": "passed"
|
||||
}
|
||||
},
|
||||
"gates": {
|
||||
"control_tests": 12,
|
||||
"app_tests": 3,
|
||||
"source_secrets": 0,
|
||||
"audited_dependencies": 9,
|
||||
"dependency_advisories": 0,
|
||||
"source_gate": "passed",
|
||||
"image_build_publish": "skipped: exact previously scanned release digest reused"
|
||||
}
|
||||
}
|
||||
],
|
||||
"observer_analysis": {
|
||||
"production": {
|
||||
"samples": 863,
|
||||
"failed_samples": 9,
|
||||
"first": {
|
||||
"started_utc": "2026-11-16T04:17:46.446751+00:00",
|
||||
"elapsed_seconds": "0.053",
|
||||
"http_status": "200",
|
||||
"status": "ok",
|
||||
"version": "v2",
|
||||
"error": "",
|
||||
"completed_utc": "2026-11-16T04:17:46.499751+00:00"
|
||||
},
|
||||
"last": {
|
||||
"started_utc": "2026-11-16T04:32:10.607054+00:00",
|
||||
"elapsed_seconds": "0.018",
|
||||
"http_status": "200",
|
||||
"status": "ok",
|
||||
"version": "v1",
|
||||
"error": "",
|
||||
"completed_utc": "2026-11-16T04:32:10.625054+00:00"
|
||||
},
|
||||
"first_seen_versions": {
|
||||
"v2": {
|
||||
"started_utc": "2026-11-16T04:17:46.446751+00:00",
|
||||
"elapsed_seconds": "0.053",
|
||||
"http_status": "200",
|
||||
"status": "ok",
|
||||
"version": "v2",
|
||||
"error": "",
|
||||
"completed_utc": "2026-11-16T04:17:46.499751+00:00"
|
||||
},
|
||||
"v1": {
|
||||
"started_utc": "2026-11-16T04:24:23.645071+00:00",
|
||||
"elapsed_seconds": "1.668",
|
||||
"http_status": "200",
|
||||
"status": "ok",
|
||||
"version": "v1",
|
||||
"error": "",
|
||||
"completed_utc": "2026-11-16T04:24:25.313071+00:00"
|
||||
}
|
||||
},
|
||||
"failure_clusters": [
|
||||
{
|
||||
"count": 9,
|
||||
"first_failed": {
|
||||
"started_utc": "2026-11-16T04:24:13.628753+00:00",
|
||||
"elapsed_seconds": "0.034",
|
||||
"http_status": "502",
|
||||
"status": "",
|
||||
"version": "",
|
||||
"error": "HTTPError",
|
||||
"completed_utc": "2026-11-16T04:24:13.662753+00:00"
|
||||
},
|
||||
"last_failed": {
|
||||
"started_utc": "2026-11-16T04:24:21.630135+00:00",
|
||||
"elapsed_seconds": "2.015",
|
||||
"http_status": "",
|
||||
"status": "",
|
||||
"version": "",
|
||||
"error": "TimeoutError",
|
||||
"completed_utc": "2026-11-16T04:24:23.645135+00:00"
|
||||
},
|
||||
"preceding_success": {
|
||||
"started_utc": "2026-11-16T04:24:12.628587+00:00",
|
||||
"elapsed_seconds": "0.043",
|
||||
"http_status": "200",
|
||||
"status": "ok",
|
||||
"version": "v2",
|
||||
"error": "",
|
||||
"completed_utc": "2026-11-16T04:24:12.671587+00:00"
|
||||
},
|
||||
"following_success": {
|
||||
"started_utc": "2026-11-16T04:24:23.645071+00:00",
|
||||
"elapsed_seconds": "1.668",
|
||||
"http_status": "200",
|
||||
"status": "ok",
|
||||
"version": "v1",
|
||||
"error": "",
|
||||
"completed_utc": "2026-11-16T04:24:25.313071+00:00"
|
||||
}
|
||||
}
|
||||
],
|
||||
"maximum_start_gap_seconds": 2.014936,
|
||||
"csv_file": "recovery-production-20261115.csv",
|
||||
"csv_sha256": "6dbc670bd7bf32d7ee8e8c784f3af5135dc444503ae0418a4efad9075caa93b2",
|
||||
"failed_http_statuses": {
|
||||
"": 1,
|
||||
"502": 8
|
||||
}
|
||||
},
|
||||
"staging": {
|
||||
"samples": 406,
|
||||
"failed_samples": 169,
|
||||
"first": {
|
||||
"started_utc": "2026-11-16T04:25:24.077935+00:00",
|
||||
"elapsed_seconds": "0.07",
|
||||
"http_status": "200",
|
||||
"status": "ok",
|
||||
"version": "v2",
|
||||
"error": "",
|
||||
"completed_utc": "2026-11-16T04:25:24.147935+00:00"
|
||||
},
|
||||
"last": {
|
||||
"started_utc": "2026-11-16T04:32:11.031289+00:00",
|
||||
"elapsed_seconds": "0.017",
|
||||
"http_status": "200",
|
||||
"status": "ok",
|
||||
"version": "v2",
|
||||
"error": "",
|
||||
"completed_utc": "2026-11-16T04:32:11.048289+00:00"
|
||||
},
|
||||
"first_seen_versions": {
|
||||
"v2": {
|
||||
"started_utc": "2026-11-16T04:25:24.077935+00:00",
|
||||
"elapsed_seconds": "0.07",
|
||||
"http_status": "200",
|
||||
"status": "ok",
|
||||
"version": "v2",
|
||||
"error": "",
|
||||
"completed_utc": "2026-11-16T04:25:24.147935+00:00"
|
||||
}
|
||||
},
|
||||
"failure_clusters": [
|
||||
{
|
||||
"count": 169,
|
||||
"first_failed": {
|
||||
"started_utc": "2026-11-16T04:26:53.130293+00:00",
|
||||
"elapsed_seconds": "0.03",
|
||||
"http_status": "502",
|
||||
"status": "",
|
||||
"version": "",
|
||||
"error": "HTTPError",
|
||||
"completed_utc": "2026-11-16T04:26:53.160293+00:00"
|
||||
},
|
||||
"last_failed": {
|
||||
"started_utc": "2026-11-16T04:29:41.187224+00:00",
|
||||
"elapsed_seconds": "2.018",
|
||||
"http_status": "",
|
||||
"status": "",
|
||||
"version": "",
|
||||
"error": "TimeoutError",
|
||||
"completed_utc": "2026-11-16T04:29:43.205224+00:00"
|
||||
},
|
||||
"preceding_success": {
|
||||
"started_utc": "2026-11-16T04:26:52.130143+00:00",
|
||||
"elapsed_seconds": "0.143",
|
||||
"http_status": "200",
|
||||
"status": "ok",
|
||||
"version": "v2",
|
||||
"error": "",
|
||||
"completed_utc": "2026-11-16T04:26:52.273143+00:00"
|
||||
},
|
||||
"following_success": {
|
||||
"started_utc": "2026-11-16T04:29:43.205246+00:00",
|
||||
"elapsed_seconds": "1.718",
|
||||
"http_status": "200",
|
||||
"status": "ok",
|
||||
"version": "v2",
|
||||
"error": "",
|
||||
"completed_utc": "2026-11-16T04:29:44.923246+00:00"
|
||||
}
|
||||
}
|
||||
],
|
||||
"maximum_start_gap_seconds": 2.018022,
|
||||
"csv_file": "recovery-staging-20261115.csv",
|
||||
"csv_sha256": "9519837bd6a3e8b40985dba5a933119d76fcae03c9fc78bec26f1cf84c00c209",
|
||||
"failed_http_statuses": {
|
||||
"": 1,
|
||||
"502": 168
|
||||
}
|
||||
}
|
||||
},
|
||||
"observation_end": {
|
||||
"finished_at": "2026-11-16T04:32:10.987203+00:00",
|
||||
"reason": "Both recovery exercises and unchanged rerun completed; end bounded observation after post-recovery samples",
|
||||
"observers": {
|
||||
"production": {
|
||||
"pid": 99107,
|
||||
"sent_sigterm_to_verified_process": true,
|
||||
"planned_max_seconds": 1800,
|
||||
"actual_first_sample": "2026-11-16T04:17:46.446751+00:00",
|
||||
"actual_last_sample": "2026-11-16T04:32:10.607054+00:00",
|
||||
"samples": 863,
|
||||
"normalized_text_sha256_at_stop": "c7d70f56283eac8f031e61fc41ef2e8a7d34e123d1fd12936dab0e00c9addb39",
|
||||
"hash_note": "Stop helper hashed read_text-normalized LF text; original captured CSV bytes are independently verified below."
|
||||
},
|
||||
"staging": {
|
||||
"pid": 105221,
|
||||
"sent_sigterm_to_verified_process": true,
|
||||
"planned_max_seconds": 1800,
|
||||
"actual_first_sample": "2026-11-16T04:25:24.077935+00:00",
|
||||
"actual_last_sample": "2026-11-16T04:32:11.031289+00:00",
|
||||
"samples": 406,
|
||||
"normalized_text_sha256_at_stop": "02942e3f179efb5f303abe4f071de7296fbca042591379e424aa7d8d1298b8c1",
|
||||
"hash_note": "Stop helper hashed read_text-normalized LF text; original captured CSV bytes are independently verified below."
|
||||
}
|
||||
}
|
||||
},
|
||||
"original_csv_hashes": {
|
||||
"production": {
|
||||
"sha256": "6dbc670bd7bf32d7ee8e8c784f3af5135dc444503ae0418a4efad9075caa93b2"
|
||||
},
|
||||
"staging": {
|
||||
"sha256": "9519837bd6a3e8b40985dba5a933119d76fcae03c9fc78bec26f1cf84c00c209"
|
||||
}
|
||||
},
|
||||
"monitoring_correlation": {
|
||||
"production_probe_samples_since_decision": 34,
|
||||
"failed_samples_since_decision": 0,
|
||||
"cadence_seconds": 30,
|
||||
"observer_failed_production_samples": 9,
|
||||
"explanation": "Prometheus missed the short rollback interruption captured by the finer observer. The staging exercise is not a production-probe outage.",
|
||||
"alert_samples_returned_in_90m_query": 0,
|
||||
"notification_claim": "No notification claim; notification history was not collected"
|
||||
},
|
||||
"final_verified_at": "2026-11-16T04:34:28.764638+00:00",
|
||||
"final_state": {
|
||||
"production": {
|
||||
"version": "v1",
|
||||
"source": "34f26e6948b7001ede8ca19f23b67a02082e6a9a",
|
||||
"digest": "git.yebilly.me/ssw590-group1/pricing@sha256:59c880b2704f91668618d9a2ff0bc8fbab0af4239ceb916de261863890ef88d8",
|
||||
"configuration_commit": "34f26e6948b7001ede8ca19f23b67a02082e6a9a",
|
||||
"total": 30
|
||||
},
|
||||
"staging": {
|
||||
"version": "v2",
|
||||
"source": "6bddbfba5a36e0e397537678ffb197e101fb0670",
|
||||
"digest": "git.yebilly.me/ssw590-group1/pricing@sha256:efe8658a0adf0854038d58199652030cbd0ef70047a1c6ebc7b09906cf1ec88b",
|
||||
"configuration_commit": "6bddbfba5a36e0e397537678ffb197e101fb0670",
|
||||
"total": 36
|
||||
}
|
||||
},
|
||||
"runtime_sha256": "aba434191cd79cdb1a3a1cfdc1b46264a8b3fb1dfdbac059b8f66819fa23b1b9"
|
||||
}
|
||||
@@ -0,0 +1,137 @@
|
||||
# Completed production rollback and staging recovery
|
||||
|
||||
Executed 15 November 2026 Eastern / 16 November UTC. All times below are UTC.
|
||||
Primary data: [results and report hashes](recovery-20261115.json),
|
||||
[actual runtime and Prometheus responses](recovery-runtime-20261115.json),
|
||||
[original production CSV](recovery-production-20261115.csv), and
|
||||
[original staging CSV](recovery-staging-20261115.csv). CSV bytes and SHA-256
|
||||
values were verified against the remote originals.
|
||||
|
||||
## Review and baseline
|
||||
|
||||
[PR 27](https://git.yebilly.me/ssw590-group1/vpn-dns-gateway/pulls/27) was approved
|
||||
by `bill` at 04:12:09 and merged by `vsun1` at 04:14:30 as
|
||||
`72bf10dcecc8db65dce4750c05bf841bea9b0834`. It preserves the actual successful
|
||||
release records, bad configuration `1e23001e7303d14630cfa97c8de36f31f30b81a0`
|
||||
and immediate revert `29e580c4613f00a02f44bce0dbcee2fd8fdc83ae`. Main is good.
|
||||
[Actions workflow 16](https://git.yebilly.me/ssw590-group1/vpn-dns-gateway/actions/runs/16)
|
||||
passed in 2m17s before recovery. Jobs 7–10 used reviewed main `72bf10d` for
|
||||
control code; their release records select historical app/configuration commits.
|
||||
|
||||
## Healthy production rollback
|
||||
|
||||
This was a planned exercise on healthy v2, not an incident. Decision:
|
||||
04:17:46.307. The reviewed HTTPS observer started before approval. The original
|
||||
v1 production record selects source/configuration
|
||||
`34f26e6948b7001ede8ca19f23b67a02082e6a9a` and image:
|
||||
|
||||
```text
|
||||
git.yebilly.me/ssw590-group1/pricing@sha256:59c880b2704f91668618d9a2ff0bc8fbab0af4239ceb916de261863890ef88d8
|
||||
```
|
||||
|
||||
[Build 7](https://ci.yebilly.me/job/secure-delivery/job/pricing/7/) stopped after
|
||||
17.784 s with `Cannot fork` during test setup, before approval/deployment.
|
||||
The agent cgroup showed 115/128 tasks and two limit events; Docker stats showed
|
||||
132.6/512 MiB, PIDS=114 and no OOM kill. Its process listing showed Java only;
|
||||
the accounting/accumulation mechanism was not established. Only the idle
|
||||
delivery-agent container was restarted, preserving identity, workspace, image,
|
||||
all limits and application services. Immediate Docker stats showed PIDS=13.
|
||||
No resource/security limit was raised. Build 8 is the successful retry.
|
||||
|
||||
| Build 8 event | Actual result |
|
||||
|---|---|
|
||||
| [Jenkins run](https://ci.yebilly.me/job/secure-delivery/job/pricing/8/) | SUCCESS; 04:22:04.875–04:24:48.529; 163.654 s including approval wait |
|
||||
| Actual approval | `vsun1`, 04:23:36, archived |
|
||||
| Ansible rollback | 04:23:42.801–04:24:46.705; 63.904 s; ok=10 changed=3 unreachable=0 failed=0 |
|
||||
| First v1 health response completed | 04:24:25.313; request started 04:24:23.645 |
|
||||
| Restored behavior | HTTPS health/identity/price passed; v1, source 34f26e6, total 30 |
|
||||
|
||||
[Actual production v1 SUCCESS screenshot](../../manual/latex/images/assignment8-rollback-8-20261115.jpg):
|
||||
build 8 completed November 16 at 04:24:48 UTC; deployment recap passed.
|
||||
|
||||
Twelve control and three app tests, source-secret and nine-dependency gates
|
||||
passed. Build/publish was skipped: the original scanned digest and matching
|
||||
Ansible configuration were restored without rebuilding. Deployment-start to
|
||||
first observed v1 response completion was 42.512 s. Decision-to-recovery also
|
||||
includes the runner error, troubleshooting and actual human wait; it is not
|
||||
traffic interruption time.
|
||||
|
||||
Production: **863 requests, 9 failures** (8 HTTP 502, one timeout), sampled
|
||||
04:17:46.447–04:32:10.607. Adjacent successful response completions:
|
||||
04:24:12.672 (v2), 04:24:25.313 (v1), **12.641 s apart**. First failed request:
|
||||
04:24:13.629. This is sampled evidence, not an exact continuous outage duration
|
||||
or proof of zero interruption between requests. Maximum request-start gap:
|
||||
2.015 s; two-second timeouts delayed the nominal one-second cadence.
|
||||
|
||||
## Separate staging failure and recovery
|
||||
|
||||
[Build 9](https://ci.yebilly.me/job/secure-delivery/job/pricing/9/) selected the
|
||||
good v2 staging record and changed only its runtime configuration selection
|
||||
to the reviewed bad SHA. Its existing image remained:
|
||||
|
||||
```text
|
||||
git.yebilly.me/ssw590-group1/pricing@sha256:efe8658a0adf0854038d58199652030cbd0ef70047a1c6ebc7b09906cf1ec88b
|
||||
```
|
||||
|
||||
Gunicorn bound to 8001; image health/Caddy used 8000. Compose reported
|
||||
`container pricing-staging-app-1 is unhealthy`. The command retained
|
||||
`--wait --wait-timeout 90`; Ansible blocked after 86.690 s including earlier
|
||||
tasks: ok=4 changed=1 unreachable=0 failed=1, exit 2. No unchanged rerun,
|
||||
production approval or production deployment ran.
|
||||
|
||||
The 04:28:54.827 snapshot confirmed staging unhealthy/HTTP 502 at the same v2
|
||||
digest while production remained healthy v1/total 30. The failed run did not
|
||||
reach the final metadata-copy task: host `release.json` still described the
|
||||
last good release while Compose was bad. That file alone cannot prove health.
|
||||
|
||||
[Build 10](https://ci.yebilly.me/job/secure-delivery/job/pricing/10/) used the
|
||||
original good v2 staging record and restored playbook/template from
|
||||
`6bddbfba5a36e0e397537678ffb197e101fb0670` using `git archive`. No rebuild/push.
|
||||
|
||||
| Staging event | UTC / actual result |
|
||||
|---|---|
|
||||
| Decision / observer start | 04:25:23.940 / 04:25:24.078 |
|
||||
| Failed deployment | 04:26:25.354–04:27:52.043; 86.690 s; build 9 FAILURE |
|
||||
| First failed request | 04:26:53.130 |
|
||||
| Recovery job began | 04:28:38.093 |
|
||||
| Recovery Ansible | 04:29:10.106–04:30:06.603; 56.497 s; ok=10 changed=2 failed=0 |
|
||||
| First recovered v2 response completed | 04:29:44.923; request started 04:29:43.205 |
|
||||
| Unchanged rerun | 04:30:10.352–04:30:58.451; 48.099 s; ok=10 changed=0 failed=0 |
|
||||
| Recovery job ended | 04:30:59.765 SUCCESS; 141.672 s total |
|
||||
|
||||
Staging: **406 requests, 169 failures** (168 HTTP 502, one timeout), ending
|
||||
04:32:11.031. Adjacent successful response completions: 04:26:52.273 and
|
||||
04:29:44.923, **172.650 s apart**. This includes fault, collection/selection,
|
||||
new-job gates and restoration; it is not Ansible duration or an exact continuous
|
||||
outage. Maximum request-start gap: 2.018 s. Production had no additional failed
|
||||
observer requests during the staging exercise; its Compose hash was unchanged.
|
||||
|
||||
## Monitoring, final state and limits
|
||||
|
||||
At 04:34:28.765: production v1/source 34f26e6/total 30; staging v2/source
|
||||
6bddbfb/total 36. Both healthy, exact original digests/configuration restored,
|
||||
invalid quantity 0 returned HTTP 400, no published application host port.
|
||||
All six scrape targets were up and all three HTTPS probes were 1. The 34
|
||||
production samples since the decision were all 1: the 30-second probe missed
|
||||
the short rollback interruption captured by the finer observer. Grafana was
|
||||
flat over this exercise, unlike the earlier v2-release dip. The captured
|
||||
90-minute query returned no `ALERTS` samples; no notification history or
|
||||
Discord-notification claim is made. Staging used its own observer, not the
|
||||
production-only chart.
|
||||
|
||||
Capacity sample: 1,967 MiB RAM, 660 MiB available; swap 476/2,047 MiB;
|
||||
root space 8.9 GiB available, 62% used. Pricing used 32.53/33.68 MiB;
|
||||
agent 131.9/512 MiB and 71/128 tasks, zero new process-limit events since
|
||||
restart. Grafana used 188.4/192 MiB. These are point samples, not load/soak
|
||||
tests. Serialize jobs on the shared CPU. The same-host observer shares the
|
||||
Droplet failure domain; no off-site monitoring or high availability is claimed.
|
||||
Status-only probes cannot verify price.
|
||||
|
||||
Both bounded observers were stopped after post-recovery verification rather
|
||||
than waiting out their 1,800-second maximum. Only their verified PIDs were
|
||||
signaled. Earlier services, volumes, credentials, gates and backups remain.
|
||||
|
||||
[Issue 28](https://git.yebilly.me/ssw590-group1/vpn-dns-gateway/issues/28) was
|
||||
created with Vincent's explicit authorization at 04:33:40 during finalization,
|
||||
after implementation and exercises. It records a late workflow correction,
|
||||
not a pre-implementation issue. Final group review/merge and submission remain.
|
||||
@@ -0,0 +1,864 @@
|
||||
started_utc,elapsed_seconds,http_status,status,version,error
|
||||
2026-11-16T04:17:46.446751+00:00,0.053,200,ok,v2,
|
||||
2026-11-16T04:17:47.447643+00:00,0.027,200,ok,v2,
|
||||
2026-11-16T04:17:48.447821+00:00,0.036,200,ok,v2,
|
||||
2026-11-16T04:17:49.448064+00:00,0.039,200,ok,v2,
|
||||
2026-11-16T04:17:50.448234+00:00,0.041,200,ok,v2,
|
||||
2026-11-16T04:17:51.448433+00:00,0.015,200,ok,v2,
|
||||
2026-11-16T04:17:52.448697+00:00,0.014,200,ok,v2,
|
||||
2026-11-16T04:17:53.448907+00:00,0.014,200,ok,v2,
|
||||
2026-11-16T04:17:54.449062+00:00,0.02,200,ok,v2,
|
||||
2026-11-16T04:17:55.449494+00:00,0.03,200,ok,v2,
|
||||
2026-11-16T04:17:56.449650+00:00,0.022,200,ok,v2,
|
||||
2026-11-16T04:17:57.449871+00:00,0.018,200,ok,v2,
|
||||
2026-11-16T04:17:58.450040+00:00,0.021,200,ok,v2,
|
||||
2026-11-16T04:17:59.450175+00:00,0.018,200,ok,v2,
|
||||
2026-11-16T04:18:00.451897+00:00,0.027,200,ok,v2,
|
||||
2026-11-16T04:18:01.452072+00:00,0.053,200,ok,v2,
|
||||
2026-11-16T04:18:02.453528+00:00,0.046,200,ok,v2,
|
||||
2026-11-16T04:18:03.454671+00:00,0.049,200,ok,v2,
|
||||
2026-11-16T04:18:04.456958+00:00,0.05,200,ok,v2,
|
||||
2026-11-16T04:18:05.457115+00:00,0.036,200,ok,v2,
|
||||
2026-11-16T04:18:06.457304+00:00,0.034,200,ok,v2,
|
||||
2026-11-16T04:18:07.457542+00:00,0.033,200,ok,v2,
|
||||
2026-11-16T04:18:08.457704+00:00,0.027,200,ok,v2,
|
||||
2026-11-16T04:18:09.457900+00:00,0.015,200,ok,v2,
|
||||
2026-11-16T04:18:10.458901+00:00,0.023,200,ok,v2,
|
||||
2026-11-16T04:18:11.459038+00:00,0.025,200,ok,v2,
|
||||
2026-11-16T04:18:12.459471+00:00,0.025,200,ok,v2,
|
||||
2026-11-16T04:18:13.459761+00:00,0.013,200,ok,v2,
|
||||
2026-11-16T04:18:14.459931+00:00,0.014,200,ok,v2,
|
||||
2026-11-16T04:18:15.460081+00:00,0.024,200,ok,v2,
|
||||
2026-11-16T04:18:16.460265+00:00,0.054,200,ok,v2,
|
||||
2026-11-16T04:18:17.460471+00:00,0.029,200,ok,v2,
|
||||
2026-11-16T04:18:18.460663+00:00,0.026,200,ok,v2,
|
||||
2026-11-16T04:18:19.460871+00:00,0.013,200,ok,v2,
|
||||
2026-11-16T04:18:20.461012+00:00,0.022,200,ok,v2,
|
||||
2026-11-16T04:18:21.461147+00:00,0.02,200,ok,v2,
|
||||
2026-11-16T04:18:22.462927+00:00,0.028,200,ok,v2,
|
||||
2026-11-16T04:18:23.463092+00:00,0.016,200,ok,v2,
|
||||
2026-11-16T04:18:24.463273+00:00,0.019,200,ok,v2,
|
||||
2026-11-16T04:18:25.463503+00:00,0.018,200,ok,v2,
|
||||
2026-11-16T04:18:26.463691+00:00,0.014,200,ok,v2,
|
||||
2026-11-16T04:18:27.463899+00:00,0.019,200,ok,v2,
|
||||
2026-11-16T04:18:28.464103+00:00,0.019,200,ok,v2,
|
||||
2026-11-16T04:18:29.464316+00:00,0.032,200,ok,v2,
|
||||
2026-11-16T04:18:30.464494+00:00,0.031,200,ok,v2,
|
||||
2026-11-16T04:18:31.464694+00:00,0.036,200,ok,v2,
|
||||
2026-11-16T04:18:32.464915+00:00,0.02,200,ok,v2,
|
||||
2026-11-16T04:18:33.465086+00:00,0.016,200,ok,v2,
|
||||
2026-11-16T04:18:34.465426+00:00,0.021,200,ok,v2,
|
||||
2026-11-16T04:18:35.465650+00:00,0.016,200,ok,v2,
|
||||
2026-11-16T04:18:36.465831+00:00,0.018,200,ok,v2,
|
||||
2026-11-16T04:18:37.466093+00:00,0.018,200,ok,v2,
|
||||
2026-11-16T04:18:38.466335+00:00,0.016,200,ok,v2,
|
||||
2026-11-16T04:18:39.466527+00:00,0.015,200,ok,v2,
|
||||
2026-11-16T04:18:40.466734+00:00,0.014,200,ok,v2,
|
||||
2026-11-16T04:18:41.466975+00:00,0.02,200,ok,v2,
|
||||
2026-11-16T04:18:42.468028+00:00,0.035,200,ok,v2,
|
||||
2026-11-16T04:18:43.468912+00:00,0.036,200,ok,v2,
|
||||
2026-11-16T04:18:44.469066+00:00,0.04,200,ok,v2,
|
||||
2026-11-16T04:18:45.469346+00:00,0.017,200,ok,v2,
|
||||
2026-11-16T04:18:46.469555+00:00,0.015,200,ok,v2,
|
||||
2026-11-16T04:18:47.469716+00:00,0.033,200,ok,v2,
|
||||
2026-11-16T04:18:48.469898+00:00,0.023,200,ok,v2,
|
||||
2026-11-16T04:18:49.470147+00:00,0.018,200,ok,v2,
|
||||
2026-11-16T04:18:50.470367+00:00,0.015,200,ok,v2,
|
||||
2026-11-16T04:18:51.470535+00:00,0.014,200,ok,v2,
|
||||
2026-11-16T04:18:52.475231+00:00,0.02,200,ok,v2,
|
||||
2026-11-16T04:18:53.475455+00:00,0.018,200,ok,v2,
|
||||
2026-11-16T04:18:54.475676+00:00,0.036,200,ok,v2,
|
||||
2026-11-16T04:18:55.476911+00:00,0.035,200,ok,v2,
|
||||
2026-11-16T04:18:56.477920+00:00,0.033,200,ok,v2,
|
||||
2026-11-16T04:18:57.478076+00:00,0.032,200,ok,v2,
|
||||
2026-11-16T04:18:58.478940+00:00,0.032,200,ok,v2,
|
||||
2026-11-16T04:18:59.479170+00:00,0.015,200,ok,v2,
|
||||
2026-11-16T04:19:00.479347+00:00,0.019,200,ok,v2,
|
||||
2026-11-16T04:19:01.479589+00:00,0.018,200,ok,v2,
|
||||
2026-11-16T04:19:02.479816+00:00,0.018,200,ok,v2,
|
||||
2026-11-16T04:19:03.480065+00:00,0.016,200,ok,v2,
|
||||
2026-11-16T04:19:04.480333+00:00,0.021,200,ok,v2,
|
||||
2026-11-16T04:19:05.480498+00:00,0.019,200,ok,v2,
|
||||
2026-11-16T04:19:06.480716+00:00,0.015,200,ok,v2,
|
||||
2026-11-16T04:19:07.481908+00:00,0.042,200,ok,v2,
|
||||
2026-11-16T04:19:08.482917+00:00,0.03,200,ok,v2,
|
||||
2026-11-16T04:19:09.484435+00:00,0.061,200,ok,v2,
|
||||
2026-11-16T04:19:10.484906+00:00,0.032,200,ok,v2,
|
||||
2026-11-16T04:19:11.485935+00:00,0.027,200,ok,v2,
|
||||
2026-11-16T04:19:12.486141+00:00,0.021,200,ok,v2,
|
||||
2026-11-16T04:19:13.486380+00:00,0.022,200,ok,v2,
|
||||
2026-11-16T04:19:14.486608+00:00,0.016,200,ok,v2,
|
||||
2026-11-16T04:19:15.486810+00:00,0.023,200,ok,v2,
|
||||
2026-11-16T04:19:16.486988+00:00,0.018,200,ok,v2,
|
||||
2026-11-16T04:19:17.487189+00:00,0.015,200,ok,v2,
|
||||
2026-11-16T04:19:18.487422+00:00,0.015,200,ok,v2,
|
||||
2026-11-16T04:19:19.487600+00:00,0.014,200,ok,v2,
|
||||
2026-11-16T04:19:20.487836+00:00,0.014,200,ok,v2,
|
||||
2026-11-16T04:19:21.488915+00:00,0.028,200,ok,v2,
|
||||
2026-11-16T04:19:22.489923+00:00,0.046,200,ok,v2,
|
||||
2026-11-16T04:19:23.490063+00:00,0.027,200,ok,v2,
|
||||
2026-11-16T04:19:24.490919+00:00,0.014,200,ok,v2,
|
||||
2026-11-16T04:19:25.491066+00:00,0.013,200,ok,v2,
|
||||
2026-11-16T04:19:26.491251+00:00,0.019,200,ok,v2,
|
||||
2026-11-16T04:19:27.491429+00:00,0.014,200,ok,v2,
|
||||
2026-11-16T04:19:28.491655+00:00,0.014,200,ok,v2,
|
||||
2026-11-16T04:19:29.491908+00:00,0.015,200,ok,v2,
|
||||
2026-11-16T04:19:30.492227+00:00,0.02,200,ok,v2,
|
||||
2026-11-16T04:19:31.492459+00:00,0.015,200,ok,v2,
|
||||
2026-11-16T04:19:32.493925+00:00,0.019,200,ok,v2,
|
||||
2026-11-16T04:19:33.494150+00:00,0.015,200,ok,v2,
|
||||
2026-11-16T04:19:34.494460+00:00,0.09,200,ok,v2,
|
||||
2026-11-16T04:19:35.494609+00:00,0.094,200,ok,v2,
|
||||
2026-11-16T04:19:36.495921+00:00,0.028,200,ok,v2,
|
||||
2026-11-16T04:19:37.496910+00:00,0.062,200,ok,v2,
|
||||
2026-11-16T04:19:38.497100+00:00,0.014,200,ok,v2,
|
||||
2026-11-16T04:19:39.497508+00:00,0.014,200,ok,v2,
|
||||
2026-11-16T04:19:40.497691+00:00,0.014,200,ok,v2,
|
||||
2026-11-16T04:19:41.497867+00:00,0.019,200,ok,v2,
|
||||
2026-11-16T04:19:42.498063+00:00,0.036,200,ok,v2,
|
||||
2026-11-16T04:19:43.498247+00:00,0.019,200,ok,v2,
|
||||
2026-11-16T04:19:44.498430+00:00,0.014,200,ok,v2,
|
||||
2026-11-16T04:19:45.498636+00:00,0.014,200,ok,v2,
|
||||
2026-11-16T04:19:46.498829+00:00,0.015,200,ok,v2,
|
||||
2026-11-16T04:19:47.499029+00:00,0.018,200,ok,v2,
|
||||
2026-11-16T04:19:48.499912+00:00,0.085,200,ok,v2,
|
||||
2026-11-16T04:19:49.500066+00:00,0.085,200,ok,v2,
|
||||
2026-11-16T04:19:50.500907+00:00,0.05,200,ok,v2,
|
||||
2026-11-16T04:19:51.501048+00:00,0.018,200,ok,v2,
|
||||
2026-11-16T04:19:52.501265+00:00,0.022,200,ok,v2,
|
||||
2026-11-16T04:19:53.501774+00:00,0.019,200,ok,v2,
|
||||
2026-11-16T04:19:54.501997+00:00,0.014,200,ok,v2,
|
||||
2026-11-16T04:19:55.502267+00:00,0.016,200,ok,v2,
|
||||
2026-11-16T04:19:56.502511+00:00,0.014,200,ok,v2,
|
||||
2026-11-16T04:19:57.502710+00:00,0.017,200,ok,v2,
|
||||
2026-11-16T04:19:58.502955+00:00,0.016,200,ok,v2,
|
||||
2026-11-16T04:19:59.503165+00:00,0.019,200,ok,v2,
|
||||
2026-11-16T04:20:00.503403+00:00,0.015,200,ok,v2,
|
||||
2026-11-16T04:20:01.518818+00:00,0.069,200,ok,v2,
|
||||
2026-11-16T04:20:02.519927+00:00,0.077,200,ok,v2,
|
||||
2026-11-16T04:20:03.520123+00:00,0.067,200,ok,v2,
|
||||
2026-11-16T04:20:04.520333+00:00,0.069,200,ok,v2,
|
||||
2026-11-16T04:20:05.526734+00:00,0.092,200,ok,v2,
|
||||
2026-11-16T04:20:06.526912+00:00,0.031,200,ok,v2,
|
||||
2026-11-16T04:20:07.527159+00:00,0.017,200,ok,v2,
|
||||
2026-11-16T04:20:08.527364+00:00,0.017,200,ok,v2,
|
||||
2026-11-16T04:20:09.527593+00:00,0.016,200,ok,v2,
|
||||
2026-11-16T04:20:10.527782+00:00,0.021,200,ok,v2,
|
||||
2026-11-16T04:20:11.530230+00:00,0.021,200,ok,v2,
|
||||
2026-11-16T04:20:12.530435+00:00,0.021,200,ok,v2,
|
||||
2026-11-16T04:20:13.530675+00:00,0.016,200,ok,v2,
|
||||
2026-11-16T04:20:14.530893+00:00,0.017,200,ok,v2,
|
||||
2026-11-16T04:20:15.531068+00:00,0.016,200,ok,v2,
|
||||
2026-11-16T04:20:16.531267+00:00,0.052,200,ok,v2,
|
||||
2026-11-16T04:20:17.531501+00:00,0.062,200,ok,v2,
|
||||
2026-11-16T04:20:18.531666+00:00,0.059,200,ok,v2,
|
||||
2026-11-16T04:20:19.531822+00:00,0.013,200,ok,v2,
|
||||
2026-11-16T04:20:20.532046+00:00,0.016,200,ok,v2,
|
||||
2026-11-16T04:20:21.532291+00:00,0.019,200,ok,v2,
|
||||
2026-11-16T04:20:22.532513+00:00,0.018,200,ok,v2,
|
||||
2026-11-16T04:20:23.532713+00:00,0.015,200,ok,v2,
|
||||
2026-11-16T04:20:24.533533+00:00,0.017,200,ok,v2,
|
||||
2026-11-16T04:20:25.533882+00:00,0.02,200,ok,v2,
|
||||
2026-11-16T04:20:26.534116+00:00,0.015,200,ok,v2,
|
||||
2026-11-16T04:20:27.534312+00:00,0.015,200,ok,v2,
|
||||
2026-11-16T04:20:28.534505+00:00,0.014,200,ok,v2,
|
||||
2026-11-16T04:20:29.534683+00:00,0.049,200,ok,v2,
|
||||
2026-11-16T04:20:30.534927+00:00,0.054,200,ok,v2,
|
||||
2026-11-16T04:20:31.535152+00:00,0.051,200,ok,v2,
|
||||
2026-11-16T04:20:32.535293+00:00,0.021,200,ok,v2,
|
||||
2026-11-16T04:20:33.535514+00:00,0.017,200,ok,v2,
|
||||
2026-11-16T04:20:34.535686+00:00,0.015,200,ok,v2,
|
||||
2026-11-16T04:20:35.535901+00:00,0.02,200,ok,v2,
|
||||
2026-11-16T04:20:36.536158+00:00,0.02,200,ok,v2,
|
||||
2026-11-16T04:20:37.536377+00:00,0.014,200,ok,v2,
|
||||
2026-11-16T04:20:38.536623+00:00,0.016,200,ok,v2,
|
||||
2026-11-16T04:20:39.537158+00:00,0.019,200,ok,v2,
|
||||
2026-11-16T04:20:40.537421+00:00,0.018,200,ok,v2,
|
||||
2026-11-16T04:20:41.537644+00:00,0.02,200,ok,v2,
|
||||
2026-11-16T04:20:42.537902+00:00,0.047,200,ok,v2,
|
||||
2026-11-16T04:20:43.538914+00:00,0.051,200,ok,v2,
|
||||
2026-11-16T04:20:44.539129+00:00,0.051,200,ok,v2,
|
||||
2026-11-16T04:20:45.539316+00:00,0.047,200,ok,v2,
|
||||
2026-11-16T04:20:46.539571+00:00,0.018,200,ok,v2,
|
||||
2026-11-16T04:20:47.539792+00:00,0.019,200,ok,v2,
|
||||
2026-11-16T04:20:48.540007+00:00,0.016,200,ok,v2,
|
||||
2026-11-16T04:20:49.540221+00:00,0.015,200,ok,v2,
|
||||
2026-11-16T04:20:50.540426+00:00,0.018,200,ok,v2,
|
||||
2026-11-16T04:20:51.540653+00:00,0.015,200,ok,v2,
|
||||
2026-11-16T04:20:52.540928+00:00,0.017,200,ok,v2,
|
||||
2026-11-16T04:20:53.541120+00:00,0.015,200,ok,v2,
|
||||
2026-11-16T04:20:54.541390+00:00,0.014,200,ok,v2,
|
||||
2026-11-16T04:20:55.541565+00:00,0.015,200,ok,v2,
|
||||
2026-11-16T04:20:56.541768+00:00,0.042,200,ok,v2,
|
||||
2026-11-16T04:20:57.541982+00:00,0.045,200,ok,v2,
|
||||
2026-11-16T04:20:58.542144+00:00,0.048,200,ok,v2,
|
||||
2026-11-16T04:20:59.542314+00:00,0.015,200,ok,v2,
|
||||
2026-11-16T04:21:00.542502+00:00,0.019,200,ok,v2,
|
||||
2026-11-16T04:21:01.542702+00:00,0.022,200,ok,v2,
|
||||
2026-11-16T04:21:02.542907+00:00,0.017,200,ok,v2,
|
||||
2026-11-16T04:21:03.543101+00:00,0.016,200,ok,v2,
|
||||
2026-11-16T04:21:04.543328+00:00,0.023,200,ok,v2,
|
||||
2026-11-16T04:21:05.543535+00:00,0.015,200,ok,v2,
|
||||
2026-11-16T04:21:06.543733+00:00,0.016,200,ok,v2,
|
||||
2026-11-16T04:21:07.543931+00:00,0.016,200,ok,v2,
|
||||
2026-11-16T04:21:08.544123+00:00,0.019,200,ok,v2,
|
||||
2026-11-16T04:21:09.544316+00:00,0.042,200,ok,v2,
|
||||
2026-11-16T04:21:10.544522+00:00,0.045,200,ok,v2,
|
||||
2026-11-16T04:21:11.544737+00:00,0.042,200,ok,v2,
|
||||
2026-11-16T04:21:12.544929+00:00,0.022,200,ok,v2,
|
||||
2026-11-16T04:21:13.545105+00:00,0.021,200,ok,v2,
|
||||
2026-11-16T04:21:14.545423+00:00,0.018,200,ok,v2,
|
||||
2026-11-16T04:21:15.545617+00:00,0.017,200,ok,v2,
|
||||
2026-11-16T04:21:16.545810+00:00,0.016,200,ok,v2,
|
||||
2026-11-16T04:21:17.546021+00:00,0.015,200,ok,v2,
|
||||
2026-11-16T04:21:18.546227+00:00,0.015,200,ok,v2,
|
||||
2026-11-16T04:21:19.546462+00:00,0.018,200,ok,v2,
|
||||
2026-11-16T04:21:20.546684+00:00,0.015,200,ok,v2,
|
||||
2026-11-16T04:21:21.546903+00:00,0.015,200,ok,v2,
|
||||
2026-11-16T04:21:22.547075+00:00,0.038,200,ok,v2,
|
||||
2026-11-16T04:21:23.547218+00:00,0.048,200,ok,v2,
|
||||
2026-11-16T04:21:24.547452+00:00,0.04,200,ok,v2,
|
||||
2026-11-16T04:21:25.547660+00:00,0.017,200,ok,v2,
|
||||
2026-11-16T04:21:26.547904+00:00,0.016,200,ok,v2,
|
||||
2026-11-16T04:21:27.548119+00:00,0.017,200,ok,v2,
|
||||
2026-11-16T04:21:28.548356+00:00,0.015,200,ok,v2,
|
||||
2026-11-16T04:21:29.548575+00:00,0.013,200,ok,v2,
|
||||
2026-11-16T04:21:30.548796+00:00,0.015,200,ok,v2,
|
||||
2026-11-16T04:21:31.549004+00:00,0.015,200,ok,v2,
|
||||
2026-11-16T04:21:32.549251+00:00,0.025,200,ok,v2,
|
||||
2026-11-16T04:21:33.549497+00:00,0.017,200,ok,v2,
|
||||
2026-11-16T04:21:34.549720+00:00,0.019,200,ok,v2,
|
||||
2026-11-16T04:21:35.549935+00:00,0.034,200,ok,v2,
|
||||
2026-11-16T04:21:36.550143+00:00,0.038,200,ok,v2,
|
||||
2026-11-16T04:21:37.550376+00:00,0.046,200,ok,v2,
|
||||
2026-11-16T04:21:38.550613+00:00,0.038,200,ok,v2,
|
||||
2026-11-16T04:21:39.550876+00:00,0.036,200,ok,v2,
|
||||
2026-11-16T04:21:40.551099+00:00,0.014,200,ok,v2,
|
||||
2026-11-16T04:21:41.551339+00:00,0.017,200,ok,v2,
|
||||
2026-11-16T04:21:42.551528+00:00,0.02,200,ok,v2,
|
||||
2026-11-16T04:21:43.551729+00:00,0.017,200,ok,v2,
|
||||
2026-11-16T04:21:44.551915+00:00,0.014,200,ok,v2,
|
||||
2026-11-16T04:21:45.552887+00:00,0.024,200,ok,v2,
|
||||
2026-11-16T04:21:46.553048+00:00,0.02,200,ok,v2,
|
||||
2026-11-16T04:21:47.553245+00:00,0.022,200,ok,v2,
|
||||
2026-11-16T04:21:48.553518+00:00,0.014,200,ok,v2,
|
||||
2026-11-16T04:21:49.553694+00:00,0.033,200,ok,v2,
|
||||
2026-11-16T04:21:50.554466+00:00,0.052,200,ok,v2,
|
||||
2026-11-16T04:21:51.555341+00:00,0.05,200,ok,v2,
|
||||
2026-11-16T04:21:52.556348+00:00,0.064,200,ok,v2,
|
||||
2026-11-16T04:21:53.556504+00:00,0.048,200,ok,v2,
|
||||
2026-11-16T04:21:54.556753+00:00,0.032,200,ok,v2,
|
||||
2026-11-16T04:21:55.556908+00:00,0.015,200,ok,v2,
|
||||
2026-11-16T04:21:56.557913+00:00,0.015,200,ok,v2,
|
||||
2026-11-16T04:21:57.558061+00:00,0.016,200,ok,v2,
|
||||
2026-11-16T04:21:58.558537+00:00,0.015,200,ok,v2,
|
||||
2026-11-16T04:21:59.558687+00:00,0.025,200,ok,v2,
|
||||
2026-11-16T04:22:00.558913+00:00,0.016,200,ok,v2,
|
||||
2026-11-16T04:22:01.559076+00:00,0.023,200,ok,v2,
|
||||
2026-11-16T04:22:02.559243+00:00,0.019,200,ok,v2,
|
||||
2026-11-16T04:22:03.559431+00:00,0.026,200,ok,v2,
|
||||
2026-11-16T04:22:04.559682+00:00,0.028,200,ok,v2,
|
||||
2026-11-16T04:22:05.560331+00:00,0.037,200,ok,v2,
|
||||
2026-11-16T04:22:06.560900+00:00,0.042,200,ok,v2,
|
||||
2026-11-16T04:22:07.561900+00:00,0.029,200,ok,v2,
|
||||
2026-11-16T04:22:08.562042+00:00,0.039,200,ok,v2,
|
||||
2026-11-16T04:22:09.563534+00:00,0.04,200,ok,v2,
|
||||
2026-11-16T04:22:10.564719+00:00,0.015,200,ok,v2,
|
||||
2026-11-16T04:22:11.564933+00:00,0.022,200,ok,v2,
|
||||
2026-11-16T04:22:12.566913+00:00,0.015,200,ok,v2,
|
||||
2026-11-16T04:22:13.567111+00:00,0.015,200,ok,v2,
|
||||
2026-11-16T04:22:14.567277+00:00,0.015,200,ok,v2,
|
||||
2026-11-16T04:22:15.568130+00:00,0.04,200,ok,v2,
|
||||
2026-11-16T04:22:16.568287+00:00,0.039,200,ok,v2,
|
||||
2026-11-16T04:22:17.568904+00:00,0.026,200,ok,v2,
|
||||
2026-11-16T04:22:18.569810+00:00,0.049,200,ok,v2,
|
||||
2026-11-16T04:22:19.570070+00:00,0.064,200,ok,v2,
|
||||
2026-11-16T04:22:20.571916+00:00,0.037,200,ok,v2,
|
||||
2026-11-16T04:22:21.572406+00:00,0.042,200,ok,v2,
|
||||
2026-11-16T04:22:22.572574+00:00,0.016,200,ok,v2,
|
||||
2026-11-16T04:22:23.572794+00:00,0.016,200,ok,v2,
|
||||
2026-11-16T04:22:24.573036+00:00,0.016,200,ok,v2,
|
||||
2026-11-16T04:22:25.573271+00:00,0.017,200,ok,v2,
|
||||
2026-11-16T04:22:26.573544+00:00,0.021,200,ok,v2,
|
||||
2026-11-16T04:22:27.573708+00:00,0.018,200,ok,v2,
|
||||
2026-11-16T04:22:28.573942+00:00,0.015,200,ok,v2,
|
||||
2026-11-16T04:22:29.574123+00:00,0.02,200,ok,v2,
|
||||
2026-11-16T04:22:30.574331+00:00,0.018,200,ok,v2,
|
||||
2026-11-16T04:22:31.574562+00:00,0.026,200,ok,v2,
|
||||
2026-11-16T04:22:32.574915+00:00,0.039,200,ok,v2,
|
||||
2026-11-16T04:22:33.575953+00:00,0.038,200,ok,v2,
|
||||
2026-11-16T04:22:34.576921+00:00,0.026,200,ok,v2,
|
||||
2026-11-16T04:22:35.577130+00:00,0.015,200,ok,v2,
|
||||
2026-11-16T04:22:36.577382+00:00,0.019,200,ok,v2,
|
||||
2026-11-16T04:22:37.577627+00:00,0.019,200,ok,v2,
|
||||
2026-11-16T04:22:38.577841+00:00,0.015,200,ok,v2,
|
||||
2026-11-16T04:22:39.578090+00:00,0.018,200,ok,v2,
|
||||
2026-11-16T04:22:40.578296+00:00,0.028,200,ok,v2,
|
||||
2026-11-16T04:22:41.578483+00:00,0.021,200,ok,v2,
|
||||
2026-11-16T04:22:42.578733+00:00,0.037,200,ok,v2,
|
||||
2026-11-16T04:22:43.578899+00:00,0.022,200,ok,v2,
|
||||
2026-11-16T04:22:44.579043+00:00,0.036,200,ok,v2,
|
||||
2026-11-16T04:22:45.579783+00:00,0.047,200,ok,v2,
|
||||
2026-11-16T04:22:46.579920+00:00,0.05,200,ok,v2,
|
||||
2026-11-16T04:22:47.580071+00:00,0.036,200,ok,v2,
|
||||
2026-11-16T04:22:48.580272+00:00,0.016,200,ok,v2,
|
||||
2026-11-16T04:22:49.580490+00:00,0.014,200,ok,v2,
|
||||
2026-11-16T04:22:50.580674+00:00,0.036,200,ok,v2,
|
||||
2026-11-16T04:22:51.580929+00:00,0.015,200,ok,v2,
|
||||
2026-11-16T04:22:52.581141+00:00,0.017,200,ok,v2,
|
||||
2026-11-16T04:22:53.581323+00:00,0.018,200,ok,v2,
|
||||
2026-11-16T04:22:54.581585+00:00,0.018,200,ok,v2,
|
||||
2026-11-16T04:22:55.581804+00:00,0.017,200,ok,v2,
|
||||
2026-11-16T04:22:56.582047+00:00,0.02,200,ok,v2,
|
||||
2026-11-16T04:22:57.582966+00:00,0.031,200,ok,v2,
|
||||
2026-11-16T04:22:58.583151+00:00,0.05,200,ok,v2,
|
||||
2026-11-16T04:22:59.583910+00:00,0.045,200,ok,v2,
|
||||
2026-11-16T04:23:00.585129+00:00,0.043,200,ok,v2,
|
||||
2026-11-16T04:23:01.585929+00:00,0.026,200,ok,v2,
|
||||
2026-11-16T04:23:02.586474+00:00,0.018,200,ok,v2,
|
||||
2026-11-16T04:23:03.586643+00:00,0.02,200,ok,v2,
|
||||
2026-11-16T04:23:04.586882+00:00,0.02,200,ok,v2,
|
||||
2026-11-16T04:23:05.587103+00:00,0.015,200,ok,v2,
|
||||
2026-11-16T04:23:06.587425+00:00,0.02,200,ok,v2,
|
||||
2026-11-16T04:23:07.587634+00:00,0.015,200,ok,v2,
|
||||
2026-11-16T04:23:08.587906+00:00,0.023,200,ok,v2,
|
||||
2026-11-16T04:23:09.588129+00:00,0.014,200,ok,v2,
|
||||
2026-11-16T04:23:10.588336+00:00,0.017,200,ok,v2,
|
||||
2026-11-16T04:23:11.589915+00:00,0.026,200,ok,v2,
|
||||
2026-11-16T04:23:12.590928+00:00,0.039,200,ok,v2,
|
||||
2026-11-16T04:23:13.591083+00:00,0.035,200,ok,v2,
|
||||
2026-11-16T04:23:14.591242+00:00,0.049,200,ok,v2,
|
||||
2026-11-16T04:23:15.591407+00:00,0.015,200,ok,v2,
|
||||
2026-11-16T04:23:16.591647+00:00,0.016,200,ok,v2,
|
||||
2026-11-16T04:23:17.591866+00:00,0.015,200,ok,v2,
|
||||
2026-11-16T04:23:18.592081+00:00,0.015,200,ok,v2,
|
||||
2026-11-16T04:23:19.592316+00:00,0.017,200,ok,v2,
|
||||
2026-11-16T04:23:20.592537+00:00,0.018,200,ok,v2,
|
||||
2026-11-16T04:23:21.592757+00:00,0.016,200,ok,v2,
|
||||
2026-11-16T04:23:22.592969+00:00,0.016,200,ok,v2,
|
||||
2026-11-16T04:23:23.593240+00:00,0.016,200,ok,v2,
|
||||
2026-11-16T04:23:24.593540+00:00,0.026,200,ok,v2,
|
||||
2026-11-16T04:23:25.593691+00:00,0.044,200,ok,v2,
|
||||
2026-11-16T04:23:26.593909+00:00,0.025,200,ok,v2,
|
||||
2026-11-16T04:23:27.594059+00:00,0.039,200,ok,v2,
|
||||
2026-11-16T04:23:28.594202+00:00,0.018,200,ok,v2,
|
||||
2026-11-16T04:23:29.594411+00:00,0.015,200,ok,v2,
|
||||
2026-11-16T04:23:30.594610+00:00,0.017,200,ok,v2,
|
||||
2026-11-16T04:23:31.594824+00:00,0.017,200,ok,v2,
|
||||
2026-11-16T04:23:32.595031+00:00,0.025,200,ok,v2,
|
||||
2026-11-16T04:23:33.595267+00:00,0.02,200,ok,v2,
|
||||
2026-11-16T04:23:34.595511+00:00,0.029,200,ok,v2,
|
||||
2026-11-16T04:23:35.595829+00:00,0.018,200,ok,v2,
|
||||
2026-11-16T04:23:36.596060+00:00,0.051,200,ok,v2,
|
||||
2026-11-16T04:23:37.596439+00:00,0.034,200,ok,v2,
|
||||
2026-11-16T04:23:38.597918+00:00,0.092,200,ok,v2,
|
||||
2026-11-16T04:23:39.598949+00:00,0.057,200,ok,v2,
|
||||
2026-11-16T04:23:40.599926+00:00,0.055,200,ok,v2,
|
||||
2026-11-16T04:23:41.600902+00:00,0.035,200,ok,v2,
|
||||
2026-11-16T04:23:42.601926+00:00,0.033,200,ok,v2,
|
||||
2026-11-16T04:23:43.602521+00:00,0.027,200,ok,v2,
|
||||
2026-11-16T04:23:44.603916+00:00,0.026,200,ok,v2,
|
||||
2026-11-16T04:23:45.604797+00:00,0.028,200,ok,v2,
|
||||
2026-11-16T04:23:46.606149+00:00,0.04,200,ok,v2,
|
||||
2026-11-16T04:23:47.606908+00:00,0.034,200,ok,v2,
|
||||
2026-11-16T04:23:48.607893+00:00,0.026,200,ok,v2,
|
||||
2026-11-16T04:23:49.609902+00:00,0.04,200,ok,v2,
|
||||
2026-11-16T04:23:50.610732+00:00,0.047,200,ok,v2,
|
||||
2026-11-16T04:23:51.613150+00:00,0.075,200,ok,v2,
|
||||
2026-11-16T04:23:52.614080+00:00,0.051,200,ok,v2,
|
||||
2026-11-16T04:23:53.615905+00:00,0.04,200,ok,v2,
|
||||
2026-11-16T04:23:54.616702+00:00,0.061,200,ok,v2,
|
||||
2026-11-16T04:23:55.616938+00:00,0.061,200,ok,v2,
|
||||
2026-11-16T04:23:56.617820+00:00,0.041,200,ok,v2,
|
||||
2026-11-16T04:23:57.618003+00:00,0.017,200,ok,v2,
|
||||
2026-11-16T04:23:58.618159+00:00,0.025,200,ok,v2,
|
||||
2026-11-16T04:23:59.618902+00:00,0.033,200,ok,v2,
|
||||
2026-11-16T04:24:00.619913+00:00,0.037,200,ok,v2,
|
||||
2026-11-16T04:24:01.620903+00:00,0.04,200,ok,v2,
|
||||
2026-11-16T04:24:02.621359+00:00,0.046,200,ok,v2,
|
||||
2026-11-16T04:24:03.621533+00:00,0.017,200,ok,v2,
|
||||
2026-11-16T04:24:04.622918+00:00,0.049,200,ok,v2,
|
||||
2026-11-16T04:24:05.623231+00:00,0.035,200,ok,v2,
|
||||
2026-11-16T04:24:06.623915+00:00,0.041,200,ok,v2,
|
||||
2026-11-16T04:24:07.624910+00:00,0.034,200,ok,v2,
|
||||
2026-11-16T04:24:08.625911+00:00,0.04,200,ok,v2,
|
||||
2026-11-16T04:24:09.626932+00:00,0.031,200,ok,v2,
|
||||
2026-11-16T04:24:10.627893+00:00,0.03,200,ok,v2,
|
||||
2026-11-16T04:24:11.628292+00:00,0.038,200,ok,v2,
|
||||
2026-11-16T04:24:12.628587+00:00,0.043,200,ok,v2,
|
||||
2026-11-16T04:24:13.628753+00:00,0.034,502,,,HTTPError
|
||||
2026-11-16T04:24:14.628906+00:00,0.026,502,,,HTTPError
|
||||
2026-11-16T04:24:15.629037+00:00,0.019,502,,,HTTPError
|
||||
2026-11-16T04:24:16.629305+00:00,0.017,502,,,HTTPError
|
||||
2026-11-16T04:24:17.629474+00:00,0.029,502,,,HTTPError
|
||||
2026-11-16T04:24:18.629654+00:00,0.014,502,,,HTTPError
|
||||
2026-11-16T04:24:19.629808+00:00,0.015,502,,,HTTPError
|
||||
2026-11-16T04:24:20.629968+00:00,0.023,502,,,HTTPError
|
||||
2026-11-16T04:24:21.630135+00:00,2.015,,,,TimeoutError
|
||||
2026-11-16T04:24:23.645071+00:00,1.668,200,ok,v1,
|
||||
2026-11-16T04:24:25.313178+00:00,0.079,200,ok,v1,
|
||||
2026-11-16T04:24:26.313332+00:00,0.016,200,ok,v1,
|
||||
2026-11-16T04:24:27.314180+00:00,0.034,200,ok,v1,
|
||||
2026-11-16T04:24:28.315449+00:00,0.031,200,ok,v1,
|
||||
2026-11-16T04:24:29.315617+00:00,0.023,200,ok,v1,
|
||||
2026-11-16T04:24:30.319150+00:00,0.044,200,ok,v1,
|
||||
2026-11-16T04:24:31.319724+00:00,0.022,200,ok,v1,
|
||||
2026-11-16T04:24:32.319894+00:00,0.017,200,ok,v1,
|
||||
2026-11-16T04:24:33.320026+00:00,0.026,200,ok,v1,
|
||||
2026-11-16T04:24:34.321573+00:00,0.045,200,ok,v1,
|
||||
2026-11-16T04:24:35.323903+00:00,0.037,200,ok,v1,
|
||||
2026-11-16T04:24:36.324973+00:00,0.041,200,ok,v1,
|
||||
2026-11-16T04:24:37.326900+00:00,0.035,200,ok,v1,
|
||||
2026-11-16T04:24:38.328808+00:00,0.064,200,ok,v1,
|
||||
2026-11-16T04:24:39.330946+00:00,0.067,200,ok,v1,
|
||||
2026-11-16T04:24:40.331604+00:00,0.028,200,ok,v1,
|
||||
2026-11-16T04:24:41.332797+00:00,0.026,200,ok,v1,
|
||||
2026-11-16T04:24:42.332944+00:00,0.017,200,ok,v1,
|
||||
2026-11-16T04:24:43.334795+00:00,0.038,200,ok,v1,
|
||||
2026-11-16T04:24:44.335899+00:00,0.023,200,ok,v1,
|
||||
2026-11-16T04:24:45.337244+00:00,0.039,200,ok,v1,
|
||||
2026-11-16T04:24:46.337433+00:00,0.024,200,ok,v1,
|
||||
2026-11-16T04:24:47.337630+00:00,0.019,200,ok,v1,
|
||||
2026-11-16T04:24:48.338400+00:00,0.038,200,ok,v1,
|
||||
2026-11-16T04:24:49.338555+00:00,0.018,200,ok,v1,
|
||||
2026-11-16T04:24:50.338912+00:00,0.057,200,ok,v1,
|
||||
2026-11-16T04:24:51.339135+00:00,0.05,200,ok,v1,
|
||||
2026-11-16T04:24:52.339334+00:00,0.049,200,ok,v1,
|
||||
2026-11-16T04:24:53.339524+00:00,0.022,200,ok,v1,
|
||||
2026-11-16T04:24:54.339698+00:00,0.015,200,ok,v1,
|
||||
2026-11-16T04:24:55.339906+00:00,0.018,200,ok,v1,
|
||||
2026-11-16T04:24:56.340113+00:00,0.019,200,ok,v1,
|
||||
2026-11-16T04:24:57.340301+00:00,0.017,200,ok,v1,
|
||||
2026-11-16T04:24:58.340497+00:00,0.014,200,ok,v1,
|
||||
2026-11-16T04:24:59.340708+00:00,0.018,200,ok,v1,
|
||||
2026-11-16T04:25:00.341092+00:00,0.017,200,ok,v1,
|
||||
2026-11-16T04:25:01.341299+00:00,0.018,200,ok,v1,
|
||||
2026-11-16T04:25:02.341729+00:00,0.05,200,ok,v1,
|
||||
2026-11-16T04:25:03.341978+00:00,0.051,200,ok,v1,
|
||||
2026-11-16T04:25:04.342222+00:00,0.055,200,ok,v1,
|
||||
2026-11-16T04:25:05.342471+00:00,0.046,200,ok,v1,
|
||||
2026-11-16T04:25:06.342696+00:00,0.046,200,ok,v1,
|
||||
2026-11-16T04:25:07.342929+00:00,0.016,200,ok,v1,
|
||||
2026-11-16T04:25:08.343127+00:00,0.016,200,ok,v1,
|
||||
2026-11-16T04:25:09.343328+00:00,0.015,200,ok,v1,
|
||||
2026-11-16T04:25:10.343532+00:00,0.02,200,ok,v1,
|
||||
2026-11-16T04:25:11.343771+00:00,0.025,200,ok,v1,
|
||||
2026-11-16T04:25:12.343977+00:00,0.019,200,ok,v1,
|
||||
2026-11-16T04:25:13.344215+00:00,0.018,200,ok,v1,
|
||||
2026-11-16T04:25:14.344455+00:00,0.016,200,ok,v1,
|
||||
2026-11-16T04:25:15.344723+00:00,0.016,200,ok,v1,
|
||||
2026-11-16T04:25:16.344962+00:00,0.015,200,ok,v1,
|
||||
2026-11-16T04:25:17.345932+00:00,0.054,200,ok,v1,
|
||||
2026-11-16T04:25:18.346138+00:00,0.045,200,ok,v1,
|
||||
2026-11-16T04:25:19.346303+00:00,0.042,200,ok,v1,
|
||||
2026-11-16T04:25:20.346522+00:00,0.02,200,ok,v1,
|
||||
2026-11-16T04:25:21.346726+00:00,0.015,200,ok,v1,
|
||||
2026-11-16T04:25:22.350249+00:00,0.02,200,ok,v1,
|
||||
2026-11-16T04:25:23.350576+00:00,0.031,200,ok,v1,
|
||||
2026-11-16T04:25:24.350893+00:00,0.017,200,ok,v1,
|
||||
2026-11-16T04:25:25.351190+00:00,0.016,200,ok,v1,
|
||||
2026-11-16T04:25:26.351352+00:00,0.014,200,ok,v1,
|
||||
2026-11-16T04:25:27.351505+00:00,0.014,200,ok,v1,
|
||||
2026-11-16T04:25:28.351733+00:00,0.02,200,ok,v1,
|
||||
2026-11-16T04:25:29.351903+00:00,0.017,200,ok,v1,
|
||||
2026-11-16T04:25:30.352069+00:00,0.046,200,ok,v1,
|
||||
2026-11-16T04:25:31.352234+00:00,0.041,200,ok,v1,
|
||||
2026-11-16T04:25:32.352380+00:00,0.038,200,ok,v1,
|
||||
2026-11-16T04:25:33.352512+00:00,0.02,200,ok,v1,
|
||||
2026-11-16T04:25:34.352708+00:00,0.015,200,ok,v1,
|
||||
2026-11-16T04:25:35.352910+00:00,0.014,200,ok,v1,
|
||||
2026-11-16T04:25:36.353053+00:00,0.018,200,ok,v1,
|
||||
2026-11-16T04:25:37.353207+00:00,0.014,200,ok,v1,
|
||||
2026-11-16T04:25:38.353364+00:00,0.017,200,ok,v1,
|
||||
2026-11-16T04:25:39.353596+00:00,0.013,200,ok,v1,
|
||||
2026-11-16T04:25:40.353732+00:00,0.024,200,ok,v1,
|
||||
2026-11-16T04:25:41.353962+00:00,0.028,200,ok,v1,
|
||||
2026-11-16T04:25:42.354184+00:00,0.033,200,ok,v1,
|
||||
2026-11-16T04:25:43.354375+00:00,0.044,200,ok,v1,
|
||||
2026-11-16T04:25:44.354560+00:00,0.037,200,ok,v1,
|
||||
2026-11-16T04:25:45.354725+00:00,0.036,200,ok,v1,
|
||||
2026-11-16T04:25:46.354924+00:00,0.014,200,ok,v1,
|
||||
2026-11-16T04:25:47.355083+00:00,0.013,200,ok,v1,
|
||||
2026-11-16T04:25:48.355268+00:00,0.015,200,ok,v1,
|
||||
2026-11-16T04:25:49.356020+00:00,0.035,200,ok,v1,
|
||||
2026-11-16T04:25:50.357474+00:00,0.039,200,ok,v1,
|
||||
2026-11-16T04:25:51.357685+00:00,0.026,200,ok,v1,
|
||||
2026-11-16T04:25:52.358904+00:00,0.037,200,ok,v1,
|
||||
2026-11-16T04:25:53.359441+00:00,0.03,200,ok,v1,
|
||||
2026-11-16T04:25:54.360501+00:00,0.023,200,ok,v1,
|
||||
2026-11-16T04:25:55.360639+00:00,0.03,200,ok,v1,
|
||||
2026-11-16T04:25:56.361318+00:00,0.035,200,ok,v1,
|
||||
2026-11-16T04:25:57.361994+00:00,0.036,200,ok,v1,
|
||||
2026-11-16T04:25:58.362157+00:00,0.026,200,ok,v1,
|
||||
2026-11-16T04:25:59.362357+00:00,0.027,200,ok,v1,
|
||||
2026-11-16T04:26:00.362517+00:00,0.02,200,ok,v1,
|
||||
2026-11-16T04:26:01.362797+00:00,0.024,200,ok,v1,
|
||||
2026-11-16T04:26:02.362964+00:00,0.02,200,ok,v1,
|
||||
2026-11-16T04:26:03.364772+00:00,0.059,200,ok,v1,
|
||||
2026-11-16T04:26:04.364913+00:00,0.031,200,ok,v1,
|
||||
2026-11-16T04:26:05.365102+00:00,0.016,200,ok,v1,
|
||||
2026-11-16T04:26:06.365300+00:00,0.017,200,ok,v1,
|
||||
2026-11-16T04:26:07.365916+00:00,0.026,200,ok,v1,
|
||||
2026-11-16T04:26:08.366083+00:00,0.034,200,ok,v1,
|
||||
2026-11-16T04:26:09.366246+00:00,0.022,200,ok,v1,
|
||||
2026-11-16T04:26:10.366998+00:00,0.057,200,ok,v1,
|
||||
2026-11-16T04:26:11.367154+00:00,0.022,200,ok,v1,
|
||||
2026-11-16T04:26:12.367796+00:00,0.036,200,ok,v1,
|
||||
2026-11-16T04:26:13.367960+00:00,0.014,200,ok,v1,
|
||||
2026-11-16T04:26:14.368126+00:00,0.017,200,ok,v1,
|
||||
2026-11-16T04:26:15.368311+00:00,0.015,200,ok,v1,
|
||||
2026-11-16T04:26:16.368451+00:00,0.026,200,ok,v1,
|
||||
2026-11-16T04:26:17.368611+00:00,0.015,200,ok,v1,
|
||||
2026-11-16T04:26:18.368777+00:00,0.019,200,ok,v1,
|
||||
2026-11-16T04:26:19.368956+00:00,0.016,200,ok,v1,
|
||||
2026-11-16T04:26:20.369905+00:00,0.029,200,ok,v1,
|
||||
2026-11-16T04:26:21.370903+00:00,0.031,200,ok,v1,
|
||||
2026-11-16T04:26:22.371921+00:00,0.029,200,ok,v1,
|
||||
2026-11-16T04:26:23.372141+00:00,0.04,200,ok,v1,
|
||||
2026-11-16T04:26:24.372916+00:00,0.047,200,ok,v1,
|
||||
2026-11-16T04:26:25.373094+00:00,0.027,200,ok,v1,
|
||||
2026-11-16T04:26:26.373315+00:00,0.016,200,ok,v1,
|
||||
2026-11-16T04:26:27.374368+00:00,0.02,200,ok,v1,
|
||||
2026-11-16T04:26:28.374893+00:00,0.033,200,ok,v1,
|
||||
2026-11-16T04:26:29.375047+00:00,0.013,200,ok,v1,
|
||||
2026-11-16T04:26:30.375241+00:00,0.078,200,ok,v1,
|
||||
2026-11-16T04:26:31.375372+00:00,0.032,200,ok,v1,
|
||||
2026-11-16T04:26:32.375554+00:00,0.019,200,ok,v1,
|
||||
2026-11-16T04:26:33.375707+00:00,0.018,200,ok,v1,
|
||||
2026-11-16T04:26:34.376724+00:00,0.015,200,ok,v1,
|
||||
2026-11-16T04:26:35.376909+00:00,0.073,200,ok,v1,
|
||||
2026-11-16T04:26:36.377017+00:00,0.039,200,ok,v1,
|
||||
2026-11-16T04:26:37.377178+00:00,0.062,200,ok,v1,
|
||||
2026-11-16T04:26:38.377909+00:00,0.033,200,ok,v1,
|
||||
2026-11-16T04:26:39.378049+00:00,0.053,200,ok,v1,
|
||||
2026-11-16T04:26:40.378245+00:00,0.019,200,ok,v1,
|
||||
2026-11-16T04:26:41.378559+00:00,0.016,200,ok,v1,
|
||||
2026-11-16T04:26:42.379222+00:00,0.027,200,ok,v1,
|
||||
2026-11-16T04:26:43.380768+00:00,0.033,200,ok,v1,
|
||||
2026-11-16T04:26:44.380920+00:00,0.05,200,ok,v1,
|
||||
2026-11-16T04:26:45.381114+00:00,0.02,200,ok,v1,
|
||||
2026-11-16T04:26:46.381903+00:00,0.029,200,ok,v1,
|
||||
2026-11-16T04:26:47.382647+00:00,0.042,200,ok,v1,
|
||||
2026-11-16T04:26:48.382798+00:00,0.016,200,ok,v1,
|
||||
2026-11-16T04:26:49.384904+00:00,0.027,200,ok,v1,
|
||||
2026-11-16T04:26:50.385315+00:00,0.075,200,ok,v1,
|
||||
2026-11-16T04:26:51.386919+00:00,0.065,200,ok,v1,
|
||||
2026-11-16T04:26:52.389914+00:00,0.076,200,ok,v1,
|
||||
2026-11-16T04:26:53.391229+00:00,0.08,200,ok,v1,
|
||||
2026-11-16T04:26:54.392101+00:00,0.034,200,ok,v1,
|
||||
2026-11-16T04:26:55.392912+00:00,0.043,200,ok,v1,
|
||||
2026-11-16T04:26:56.393073+00:00,0.022,200,ok,v1,
|
||||
2026-11-16T04:26:57.393244+00:00,0.021,200,ok,v1,
|
||||
2026-11-16T04:26:58.393485+00:00,0.019,200,ok,v1,
|
||||
2026-11-16T04:26:59.393636+00:00,0.024,200,ok,v1,
|
||||
2026-11-16T04:27:00.394124+00:00,0.037,200,ok,v1,
|
||||
2026-11-16T04:27:01.394317+00:00,0.037,200,ok,v1,
|
||||
2026-11-16T04:27:02.394491+00:00,0.027,200,ok,v1,
|
||||
2026-11-16T04:27:03.394664+00:00,0.019,200,ok,v1,
|
||||
2026-11-16T04:27:04.394819+00:00,0.031,200,ok,v1,
|
||||
2026-11-16T04:27:05.394994+00:00,0.04,200,ok,v1,
|
||||
2026-11-16T04:27:06.395130+00:00,0.035,200,ok,v1,
|
||||
2026-11-16T04:27:07.395278+00:00,0.044,200,ok,v1,
|
||||
2026-11-16T04:27:08.395494+00:00,0.017,200,ok,v1,
|
||||
2026-11-16T04:27:09.395655+00:00,0.018,200,ok,v1,
|
||||
2026-11-16T04:27:10.395838+00:00,0.021,200,ok,v1,
|
||||
2026-11-16T04:27:11.396270+00:00,0.022,200,ok,v1,
|
||||
2026-11-16T04:27:12.396443+00:00,0.023,200,ok,v1,
|
||||
2026-11-16T04:27:13.396614+00:00,0.028,200,ok,v1,
|
||||
2026-11-16T04:27:14.396775+00:00,0.016,200,ok,v1,
|
||||
2026-11-16T04:27:15.396977+00:00,0.019,200,ok,v1,
|
||||
2026-11-16T04:27:16.397164+00:00,0.016,200,ok,v1,
|
||||
2026-11-16T04:27:17.397317+00:00,0.015,200,ok,v1,
|
||||
2026-11-16T04:27:18.397435+00:00,0.047,200,ok,v1,
|
||||
2026-11-16T04:27:19.397546+00:00,0.089,200,ok,v1,
|
||||
2026-11-16T04:27:20.397686+00:00,0.034,200,ok,v1,
|
||||
2026-11-16T04:27:21.397834+00:00,0.049,200,ok,v1,
|
||||
2026-11-16T04:27:22.398137+00:00,0.021,200,ok,v1,
|
||||
2026-11-16T04:27:23.398306+00:00,0.026,200,ok,v1,
|
||||
2026-11-16T04:27:24.398462+00:00,0.02,200,ok,v1,
|
||||
2026-11-16T04:27:25.398625+00:00,0.016,200,ok,v1,
|
||||
2026-11-16T04:27:26.398791+00:00,0.018,200,ok,v1,
|
||||
2026-11-16T04:27:27.398907+00:00,0.016,200,ok,v1,
|
||||
2026-11-16T04:27:28.399087+00:00,0.02,200,ok,v1,
|
||||
2026-11-16T04:27:29.399255+00:00,0.019,200,ok,v1,
|
||||
2026-11-16T04:27:30.399408+00:00,0.022,200,ok,v1,
|
||||
2026-11-16T04:27:31.399587+00:00,0.016,200,ok,v1,
|
||||
2026-11-16T04:27:32.400498+00:00,0.112,200,ok,v1,
|
||||
2026-11-16T04:27:33.400683+00:00,0.061,200,ok,v1,
|
||||
2026-11-16T04:27:34.400840+00:00,0.087,200,ok,v1,
|
||||
2026-11-16T04:27:35.401043+00:00,0.088,200,ok,v1,
|
||||
2026-11-16T04:27:36.401225+00:00,0.03,200,ok,v1,
|
||||
2026-11-16T04:27:37.401513+00:00,0.021,200,ok,v1,
|
||||
2026-11-16T04:27:38.401774+00:00,0.021,200,ok,v1,
|
||||
2026-11-16T04:27:39.401921+00:00,0.027,200,ok,v1,
|
||||
2026-11-16T04:27:40.402080+00:00,0.017,200,ok,v1,
|
||||
2026-11-16T04:27:41.402256+00:00,0.017,200,ok,v1,
|
||||
2026-11-16T04:27:42.402434+00:00,0.025,200,ok,v1,
|
||||
2026-11-16T04:27:43.402617+00:00,0.041,200,ok,v1,
|
||||
2026-11-16T04:27:44.402816+00:00,0.018,200,ok,v1,
|
||||
2026-11-16T04:27:45.403015+00:00,0.018,200,ok,v1,
|
||||
2026-11-16T04:27:46.403123+00:00,0.087,200,ok,v1,
|
||||
2026-11-16T04:27:47.403273+00:00,0.084,200,ok,v1,
|
||||
2026-11-16T04:27:48.403434+00:00,0.086,200,ok,v1,
|
||||
2026-11-16T04:27:49.403592+00:00,0.03,200,ok,v1,
|
||||
2026-11-16T04:27:50.403755+00:00,0.035,200,ok,v1,
|
||||
2026-11-16T04:27:51.404900+00:00,0.058,200,ok,v1,
|
||||
2026-11-16T04:27:52.405165+00:00,0.019,200,ok,v1,
|
||||
2026-11-16T04:27:53.405403+00:00,0.018,200,ok,v1,
|
||||
2026-11-16T04:27:54.405637+00:00,0.014,200,ok,v1,
|
||||
2026-11-16T04:27:55.433056+00:00,0.017,200,ok,v1,
|
||||
2026-11-16T04:27:56.433921+00:00,0.03,200,ok,v1,
|
||||
2026-11-16T04:27:57.434110+00:00,0.015,200,ok,v1,
|
||||
2026-11-16T04:27:58.434318+00:00,0.015,200,ok,v1,
|
||||
2026-11-16T04:27:59.434615+00:00,0.025,200,ok,v1,
|
||||
2026-11-16T04:28:00.434883+00:00,0.065,200,ok,v1,
|
||||
2026-11-16T04:28:01.435917+00:00,0.052,200,ok,v1,
|
||||
2026-11-16T04:28:02.436084+00:00,0.054,200,ok,v1,
|
||||
2026-11-16T04:28:03.436241+00:00,0.015,200,ok,v1,
|
||||
2026-11-16T04:28:04.436511+00:00,0.016,200,ok,v1,
|
||||
2026-11-16T04:28:05.436786+00:00,0.018,200,ok,v1,
|
||||
2026-11-16T04:28:06.437076+00:00,0.02,200,ok,v1,
|
||||
2026-11-16T04:28:07.437298+00:00,0.014,200,ok,v1,
|
||||
2026-11-16T04:28:08.437648+00:00,0.017,200,ok,v1,
|
||||
2026-11-16T04:28:09.437800+00:00,0.014,200,ok,v1,
|
||||
2026-11-16T04:28:10.437992+00:00,0.013,200,ok,v1,
|
||||
2026-11-16T04:28:11.438228+00:00,0.017,200,ok,v1,
|
||||
2026-11-16T04:28:12.438490+00:00,0.015,200,ok,v1,
|
||||
2026-11-16T04:28:13.444784+00:00,0.044,200,ok,v1,
|
||||
2026-11-16T04:28:14.444991+00:00,0.045,200,ok,v1,
|
||||
2026-11-16T04:28:15.445200+00:00,0.042,200,ok,v1,
|
||||
2026-11-16T04:28:16.445328+00:00,0.013,200,ok,v1,
|
||||
2026-11-16T04:28:17.445547+00:00,0.014,200,ok,v1,
|
||||
2026-11-16T04:28:18.445771+00:00,0.014,200,ok,v1,
|
||||
2026-11-16T04:28:19.446579+00:00,0.022,200,ok,v1,
|
||||
2026-11-16T04:28:20.446804+00:00,0.015,200,ok,v1,
|
||||
2026-11-16T04:28:21.446903+00:00,0.014,200,ok,v1,
|
||||
2026-11-16T04:28:22.447125+00:00,0.015,200,ok,v1,
|
||||
2026-11-16T04:28:23.447345+00:00,0.015,200,ok,v1,
|
||||
2026-11-16T04:28:24.447486+00:00,0.013,200,ok,v1,
|
||||
2026-11-16T04:28:25.447702+00:00,0.02,200,ok,v1,
|
||||
2026-11-16T04:28:26.447937+00:00,0.04,200,ok,v1,
|
||||
2026-11-16T04:28:27.448087+00:00,0.043,200,ok,v1,
|
||||
2026-11-16T04:28:28.448250+00:00,0.038,200,ok,v1,
|
||||
2026-11-16T04:28:29.448418+00:00,0.015,200,ok,v1,
|
||||
2026-11-16T04:28:30.448604+00:00,0.014,200,ok,v1,
|
||||
2026-11-16T04:28:31.448750+00:00,0.014,200,ok,v1,
|
||||
2026-11-16T04:28:32.448994+00:00,0.014,200,ok,v1,
|
||||
2026-11-16T04:28:33.449135+00:00,0.019,200,ok,v1,
|
||||
2026-11-16T04:28:34.449276+00:00,0.016,200,ok,v1,
|
||||
2026-11-16T04:28:35.449530+00:00,0.017,200,ok,v1,
|
||||
2026-11-16T04:28:36.449683+00:00,0.015,200,ok,v1,
|
||||
2026-11-16T04:28:37.449871+00:00,0.014,200,ok,v1,
|
||||
2026-11-16T04:28:38.450008+00:00,0.031,200,ok,v1,
|
||||
2026-11-16T04:28:39.450154+00:00,0.043,200,ok,v1,
|
||||
2026-11-16T04:28:40.450903+00:00,0.047,200,ok,v1,
|
||||
2026-11-16T04:28:41.451043+00:00,0.042,200,ok,v1,
|
||||
2026-11-16T04:28:42.451182+00:00,0.039,200,ok,v1,
|
||||
2026-11-16T04:28:43.451924+00:00,0.027,200,ok,v1,
|
||||
2026-11-16T04:28:44.453246+00:00,0.043,200,ok,v1,
|
||||
2026-11-16T04:28:45.453407+00:00,0.017,200,ok,v1,
|
||||
2026-11-16T04:28:46.454192+00:00,0.016,200,ok,v1,
|
||||
2026-11-16T04:28:47.454357+00:00,0.015,200,ok,v1,
|
||||
2026-11-16T04:28:48.454511+00:00,0.013,200,ok,v1,
|
||||
2026-11-16T04:28:49.455921+00:00,0.03,200,ok,v1,
|
||||
2026-11-16T04:28:50.456919+00:00,0.044,200,ok,v1,
|
||||
2026-11-16T04:28:51.457915+00:00,0.026,200,ok,v1,
|
||||
2026-11-16T04:28:52.458091+00:00,0.057,200,ok,v1,
|
||||
2026-11-16T04:28:53.458285+00:00,0.038,200,ok,v1,
|
||||
2026-11-16T04:28:54.459911+00:00,0.081,200,ok,v1,
|
||||
2026-11-16T04:28:55.460702+00:00,0.039,200,ok,v1,
|
||||
2026-11-16T04:28:56.461744+00:00,0.041,200,ok,v1,
|
||||
2026-11-16T04:28:57.461926+00:00,0.029,200,ok,v1,
|
||||
2026-11-16T04:28:58.462931+00:00,0.03,200,ok,v1,
|
||||
2026-11-16T04:28:59.464914+00:00,0.029,200,ok,v1,
|
||||
2026-11-16T04:29:00.465068+00:00,0.034,200,ok,v1,
|
||||
2026-11-16T04:29:01.465259+00:00,0.015,200,ok,v1,
|
||||
2026-11-16T04:29:02.465493+00:00,0.016,200,ok,v1,
|
||||
2026-11-16T04:29:03.465667+00:00,0.014,200,ok,v1,
|
||||
2026-11-16T04:29:04.466917+00:00,0.017,200,ok,v1,
|
||||
2026-11-16T04:29:05.467111+00:00,0.015,200,ok,v1,
|
||||
2026-11-16T04:29:06.467327+00:00,0.02,200,ok,v1,
|
||||
2026-11-16T04:29:07.467967+00:00,0.03,200,ok,v1,
|
||||
2026-11-16T04:29:08.468157+00:00,0.019,200,ok,v1,
|
||||
2026-11-16T04:29:09.469270+00:00,0.029,200,ok,v1,
|
||||
2026-11-16T04:29:10.469901+00:00,0.021,200,ok,v1,
|
||||
2026-11-16T04:29:11.470415+00:00,0.02,200,ok,v1,
|
||||
2026-11-16T04:29:12.472835+00:00,0.056,200,ok,v1,
|
||||
2026-11-16T04:29:13.473411+00:00,0.02,200,ok,v1,
|
||||
2026-11-16T04:29:14.473907+00:00,0.047,200,ok,v1,
|
||||
2026-11-16T04:29:15.474705+00:00,0.078,200,ok,v1,
|
||||
2026-11-16T04:29:16.474885+00:00,0.025,200,ok,v1,
|
||||
2026-11-16T04:29:17.475022+00:00,0.013,200,ok,v1,
|
||||
2026-11-16T04:29:18.475528+00:00,0.025,200,ok,v1,
|
||||
2026-11-16T04:29:19.476912+00:00,0.022,200,ok,v1,
|
||||
2026-11-16T04:29:20.477058+00:00,0.029,200,ok,v1,
|
||||
2026-11-16T04:29:21.477221+00:00,0.051,200,ok,v1,
|
||||
2026-11-16T04:29:22.477519+00:00,0.014,200,ok,v1,
|
||||
2026-11-16T04:29:23.477667+00:00,0.024,200,ok,v1,
|
||||
2026-11-16T04:29:24.477821+00:00,0.035,200,ok,v1,
|
||||
2026-11-16T04:29:25.478902+00:00,0.021,200,ok,v1,
|
||||
2026-11-16T04:29:26.479125+00:00,0.018,200,ok,v1,
|
||||
2026-11-16T04:29:27.479333+00:00,0.014,200,ok,v1,
|
||||
2026-11-16T04:29:28.479493+00:00,0.033,200,ok,v1,
|
||||
2026-11-16T04:29:29.480630+00:00,0.028,200,ok,v1,
|
||||
2026-11-16T04:29:30.480788+00:00,0.018,200,ok,v1,
|
||||
2026-11-16T04:29:31.481144+00:00,0.041,200,ok,v1,
|
||||
2026-11-16T04:29:32.481403+00:00,0.037,200,ok,v1,
|
||||
2026-11-16T04:29:33.482016+00:00,0.112,200,ok,v1,
|
||||
2026-11-16T04:29:34.482279+00:00,0.046,200,ok,v1,
|
||||
2026-11-16T04:29:35.482422+00:00,0.046,200,ok,v1,
|
||||
2026-11-16T04:29:36.482577+00:00,0.018,200,ok,v1,
|
||||
2026-11-16T04:29:37.482738+00:00,0.015,200,ok,v1,
|
||||
2026-11-16T04:29:38.482924+00:00,0.018,200,ok,v1,
|
||||
2026-11-16T04:29:39.483901+00:00,0.025,200,ok,v1,
|
||||
2026-11-16T04:29:40.484088+00:00,0.037,200,ok,v1,
|
||||
2026-11-16T04:29:41.484243+00:00,0.014,200,ok,v1,
|
||||
2026-11-16T04:29:42.484396+00:00,0.017,200,ok,v1,
|
||||
2026-11-16T04:29:43.484545+00:00,0.019,200,ok,v1,
|
||||
2026-11-16T04:29:44.484702+00:00,0.029,200,ok,v1,
|
||||
2026-11-16T04:29:45.484887+00:00,0.014,200,ok,v1,
|
||||
2026-11-16T04:29:46.485904+00:00,0.025,200,ok,v1,
|
||||
2026-11-16T04:29:47.487917+00:00,0.036,200,ok,v1,
|
||||
2026-11-16T04:29:48.488174+00:00,0.102,200,ok,v1,
|
||||
2026-11-16T04:29:49.488383+00:00,0.034,200,ok,v1,
|
||||
2026-11-16T04:29:50.488772+00:00,0.025,200,ok,v1,
|
||||
2026-11-16T04:29:51.489015+00:00,0.024,200,ok,v1,
|
||||
2026-11-16T04:29:52.489224+00:00,0.019,200,ok,v1,
|
||||
2026-11-16T04:29:53.489428+00:00,0.023,200,ok,v1,
|
||||
2026-11-16T04:29:54.489596+00:00,0.032,200,ok,v1,
|
||||
2026-11-16T04:29:55.489821+00:00,0.018,200,ok,v1,
|
||||
2026-11-16T04:29:56.490533+00:00,0.035,200,ok,v1,
|
||||
2026-11-16T04:29:57.491894+00:00,0.035,200,ok,v1,
|
||||
2026-11-16T04:29:58.492089+00:00,0.043,200,ok,v1,
|
||||
2026-11-16T04:29:59.492940+00:00,0.035,200,ok,v1,
|
||||
2026-11-16T04:30:00.495070+00:00,0.093,200,ok,v1,
|
||||
2026-11-16T04:30:01.496802+00:00,0.061,200,ok,v1,
|
||||
2026-11-16T04:30:02.497919+00:00,0.107,200,ok,v1,
|
||||
2026-11-16T04:30:03.498102+00:00,0.042,200,ok,v1,
|
||||
2026-11-16T04:30:04.498310+00:00,0.036,200,ok,v1,
|
||||
2026-11-16T04:30:05.500708+00:00,0.045,200,ok,v1,
|
||||
2026-11-16T04:30:06.502032+00:00,0.033,200,ok,v1,
|
||||
2026-11-16T04:30:07.502911+00:00,0.034,200,ok,v1,
|
||||
2026-11-16T04:30:08.503915+00:00,0.044,200,ok,v1,
|
||||
2026-11-16T04:30:09.504905+00:00,0.039,200,ok,v1,
|
||||
2026-11-16T04:30:10.505926+00:00,0.037,200,ok,v1,
|
||||
2026-11-16T04:30:11.506085+00:00,0.045,200,ok,v1,
|
||||
2026-11-16T04:30:12.506908+00:00,0.036,200,ok,v1,
|
||||
2026-11-16T04:30:13.507652+00:00,0.055,200,ok,v1,
|
||||
2026-11-16T04:30:14.507915+00:00,0.055,200,ok,v1,
|
||||
2026-11-16T04:30:15.508922+00:00,0.076,200,ok,v1,
|
||||
2026-11-16T04:30:16.510315+00:00,0.036,200,ok,v1,
|
||||
2026-11-16T04:30:17.510506+00:00,0.035,200,ok,v1,
|
||||
2026-11-16T04:30:18.510923+00:00,0.03,200,ok,v1,
|
||||
2026-11-16T04:30:19.511903+00:00,0.029,200,ok,v1,
|
||||
2026-11-16T04:30:20.512892+00:00,0.034,200,ok,v1,
|
||||
2026-11-16T04:30:21.513037+00:00,0.036,200,ok,v1,
|
||||
2026-11-16T04:30:22.513929+00:00,0.023,200,ok,v1,
|
||||
2026-11-16T04:30:23.514074+00:00,0.015,200,ok,v1,
|
||||
2026-11-16T04:30:24.514621+00:00,0.033,200,ok,v1,
|
||||
2026-11-16T04:30:25.514933+00:00,0.03,200,ok,v1,
|
||||
2026-11-16T04:30:26.515575+00:00,0.045,200,ok,v1,
|
||||
2026-11-16T04:30:27.516921+00:00,0.054,200,ok,v1,
|
||||
2026-11-16T04:30:28.519570+00:00,0.081,200,ok,v1,
|
||||
2026-11-16T04:30:29.520921+00:00,0.074,200,ok,v1,
|
||||
2026-11-16T04:30:30.522897+00:00,0.07,200,ok,v1,
|
||||
2026-11-16T04:30:31.523044+00:00,0.047,200,ok,v1,
|
||||
2026-11-16T04:30:32.523381+00:00,0.022,200,ok,v1,
|
||||
2026-11-16T04:30:33.524897+00:00,0.026,200,ok,v1,
|
||||
2026-11-16T04:30:34.525054+00:00,0.021,200,ok,v1,
|
||||
2026-11-16T04:30:35.526005+00:00,0.046,200,ok,v1,
|
||||
2026-11-16T04:30:36.526160+00:00,0.052,200,ok,v1,
|
||||
2026-11-16T04:30:37.526898+00:00,0.033,200,ok,v1,
|
||||
2026-11-16T04:30:38.528913+00:00,0.058,200,ok,v1,
|
||||
2026-11-16T04:30:39.529925+00:00,0.046,200,ok,v1,
|
||||
2026-11-16T04:30:40.531942+00:00,0.034,200,ok,v1,
|
||||
2026-11-16T04:30:41.533812+00:00,0.089,200,ok,v1,
|
||||
2026-11-16T04:30:42.536216+00:00,0.077,200,ok,v1,
|
||||
2026-11-16T04:30:43.537937+00:00,0.057,200,ok,v1,
|
||||
2026-11-16T04:30:44.539932+00:00,0.078,200,ok,v1,
|
||||
2026-11-16T04:30:45.540103+00:00,0.033,200,ok,v1,
|
||||
2026-11-16T04:30:46.542909+00:00,0.087,200,ok,v1,
|
||||
2026-11-16T04:30:47.543786+00:00,0.053,200,ok,v1,
|
||||
2026-11-16T04:30:48.545022+00:00,0.04,200,ok,v1,
|
||||
2026-11-16T04:30:49.545194+00:00,0.017,200,ok,v1,
|
||||
2026-11-16T04:30:50.546952+00:00,0.032,200,ok,v1,
|
||||
2026-11-16T04:30:51.547570+00:00,0.023,200,ok,v1,
|
||||
2026-11-16T04:30:52.550196+00:00,0.06,200,ok,v1,
|
||||
2026-11-16T04:30:53.551016+00:00,0.038,200,ok,v1,
|
||||
2026-11-16T04:30:54.552907+00:00,0.043,200,ok,v1,
|
||||
2026-11-16T04:30:55.553823+00:00,0.064,200,ok,v1,
|
||||
2026-11-16T04:30:56.554279+00:00,0.038,200,ok,v1,
|
||||
2026-11-16T04:30:57.554425+00:00,0.065,200,ok,v1,
|
||||
2026-11-16T04:30:58.554625+00:00,0.036,200,ok,v1,
|
||||
2026-11-16T04:30:59.554789+00:00,0.025,200,ok,v1,
|
||||
2026-11-16T04:31:00.555029+00:00,0.018,200,ok,v1,
|
||||
2026-11-16T04:31:01.555258+00:00,0.024,200,ok,v1,
|
||||
2026-11-16T04:31:02.555539+00:00,0.02,200,ok,v1,
|
||||
2026-11-16T04:31:03.555782+00:00,0.02,200,ok,v1,
|
||||
2026-11-16T04:31:04.555926+00:00,0.018,200,ok,v1,
|
||||
2026-11-16T04:31:05.563200+00:00,0.021,200,ok,v1,
|
||||
2026-11-16T04:31:06.568068+00:00,0.031,200,ok,v1,
|
||||
2026-11-16T04:31:07.568263+00:00,0.018,200,ok,v1,
|
||||
2026-11-16T04:31:08.568486+00:00,0.016,200,ok,v1,
|
||||
2026-11-16T04:31:09.568705+00:00,0.02,200,ok,v1,
|
||||
2026-11-16T04:31:10.568912+00:00,0.022,200,ok,v1,
|
||||
2026-11-16T04:31:11.569103+00:00,0.021,200,ok,v1,
|
||||
2026-11-16T04:31:12.569305+00:00,0.018,200,ok,v1,
|
||||
2026-11-16T04:31:13.573443+00:00,0.019,200,ok,v1,
|
||||
2026-11-16T04:31:14.573618+00:00,0.018,200,ok,v1,
|
||||
2026-11-16T04:31:15.573881+00:00,0.027,200,ok,v1,
|
||||
2026-11-16T04:31:16.574116+00:00,0.018,200,ok,v1,
|
||||
2026-11-16T04:31:17.574279+00:00,0.016,200,ok,v1,
|
||||
2026-11-16T04:31:18.574509+00:00,0.017,200,ok,v1,
|
||||
2026-11-16T04:31:19.574747+00:00,0.021,200,ok,v1,
|
||||
2026-11-16T04:31:20.574968+00:00,0.014,200,ok,v1,
|
||||
2026-11-16T04:31:21.575156+00:00,0.016,200,ok,v1,
|
||||
2026-11-16T04:31:22.575390+00:00,0.027,200,ok,v1,
|
||||
2026-11-16T04:31:23.575553+00:00,0.041,200,ok,v1,
|
||||
2026-11-16T04:31:24.576379+00:00,0.047,200,ok,v1,
|
||||
2026-11-16T04:31:25.576623+00:00,0.029,200,ok,v1,
|
||||
2026-11-16T04:31:26.576877+00:00,0.02,200,ok,v1,
|
||||
2026-11-16T04:31:27.577125+00:00,0.016,200,ok,v1,
|
||||
2026-11-16T04:31:28.577411+00:00,0.02,200,ok,v1,
|
||||
2026-11-16T04:31:29.577654+00:00,0.019,200,ok,v1,
|
||||
2026-11-16T04:31:30.577878+00:00,0.022,200,ok,v1,
|
||||
2026-11-16T04:31:31.578109+00:00,0.019,200,ok,v1,
|
||||
2026-11-16T04:31:32.587819+00:00,0.018,200,ok,v1,
|
||||
2026-11-16T04:31:33.588058+00:00,0.027,200,ok,v1,
|
||||
2026-11-16T04:31:34.588310+00:00,0.028,200,ok,v1,
|
||||
2026-11-16T04:31:35.588740+00:00,0.017,200,ok,v1,
|
||||
2026-11-16T04:31:36.589923+00:00,0.045,200,ok,v1,
|
||||
2026-11-16T04:31:37.590961+00:00,0.097,200,ok,v1,
|
||||
2026-11-16T04:31:38.593532+00:00,0.094,200,ok,v1,
|
||||
2026-11-16T04:31:39.593696+00:00,0.017,200,ok,v1,
|
||||
2026-11-16T04:31:40.593937+00:00,0.02,200,ok,v1,
|
||||
2026-11-16T04:31:41.594150+00:00,0.015,200,ok,v1,
|
||||
2026-11-16T04:31:42.594428+00:00,0.017,200,ok,v1,
|
||||
2026-11-16T04:31:43.594595+00:00,0.02,200,ok,v1,
|
||||
2026-11-16T04:31:44.594822+00:00,0.016,200,ok,v1,
|
||||
2026-11-16T04:31:45.595087+00:00,0.017,200,ok,v1,
|
||||
2026-11-16T04:31:46.595278+00:00,0.015,200,ok,v1,
|
||||
2026-11-16T04:31:47.595433+00:00,0.019,200,ok,v1,
|
||||
2026-11-16T04:31:48.595649+00:00,0.015,200,ok,v1,
|
||||
2026-11-16T04:31:49.597912+00:00,0.034,200,ok,v1,
|
||||
2026-11-16T04:31:50.598058+00:00,0.089,200,ok,v1,
|
||||
2026-11-16T04:31:51.598911+00:00,0.092,200,ok,v1,
|
||||
2026-11-16T04:31:52.600125+00:00,0.09,200,ok,v1,
|
||||
2026-11-16T04:31:53.600222+00:00,0.024,200,ok,v1,
|
||||
2026-11-16T04:31:54.600383+00:00,0.051,200,ok,v1,
|
||||
2026-11-16T04:31:55.600540+00:00,0.017,200,ok,v1,
|
||||
2026-11-16T04:31:56.600734+00:00,0.02,200,ok,v1,
|
||||
2026-11-16T04:31:57.600942+00:00,0.015,200,ok,v1,
|
||||
2026-11-16T04:31:58.601145+00:00,0.015,200,ok,v1,
|
||||
2026-11-16T04:31:59.601378+00:00,0.017,200,ok,v1,
|
||||
2026-11-16T04:32:00.601589+00:00,0.023,200,ok,v1,
|
||||
2026-11-16T04:32:01.601816+00:00,0.028,200,ok,v1,
|
||||
2026-11-16T04:32:02.602053+00:00,0.031,200,ok,v1,
|
||||
2026-11-16T04:32:03.603926+00:00,0.072,200,ok,v1,
|
||||
2026-11-16T04:32:04.604911+00:00,0.085,200,ok,v1,
|
||||
2026-11-16T04:32:05.605919+00:00,0.083,200,ok,v1,
|
||||
2026-11-16T04:32:06.606150+00:00,0.022,200,ok,v1,
|
||||
2026-11-16T04:32:07.606366+00:00,0.015,200,ok,v1,
|
||||
2026-11-16T04:32:08.606630+00:00,0.019,200,ok,v1,
|
||||
2026-11-16T04:32:09.606881+00:00,0.027,200,ok,v1,
|
||||
2026-11-16T04:32:10.607054+00:00,0.018,200,ok,v1,
|
||||
|
@@ -0,0 +1,407 @@
|
||||
started_utc,elapsed_seconds,http_status,status,version,error
|
||||
2026-11-16T04:25:24.077935+00:00,0.07,200,ok,v2,
|
||||
2026-11-16T04:25:25.078146+00:00,0.017,200,ok,v2,
|
||||
2026-11-16T04:25:26.078374+00:00,0.015,200,ok,v2,
|
||||
2026-11-16T04:25:27.078588+00:00,0.015,200,ok,v2,
|
||||
2026-11-16T04:25:28.078777+00:00,0.016,200,ok,v2,
|
||||
2026-11-16T04:25:29.078945+00:00,0.091,200,ok,v2,
|
||||
2026-11-16T04:25:30.079944+00:00,0.088,200,ok,v2,
|
||||
2026-11-16T04:25:31.080929+00:00,0.029,200,ok,v2,
|
||||
2026-11-16T04:25:32.081162+00:00,0.029,200,ok,v2,
|
||||
2026-11-16T04:25:33.081359+00:00,0.029,200,ok,v2,
|
||||
2026-11-16T04:25:34.081663+00:00,0.015,200,ok,v2,
|
||||
2026-11-16T04:25:35.081813+00:00,0.019,200,ok,v2,
|
||||
2026-11-16T04:25:36.082041+00:00,0.013,200,ok,v2,
|
||||
2026-11-16T04:25:37.082235+00:00,0.018,200,ok,v2,
|
||||
2026-11-16T04:25:38.082467+00:00,0.015,200,ok,v2,
|
||||
2026-11-16T04:25:39.082684+00:00,0.014,200,ok,v2,
|
||||
2026-11-16T04:25:40.082924+00:00,0.025,200,ok,v2,
|
||||
2026-11-16T04:25:41.083080+00:00,0.027,200,ok,v2,
|
||||
2026-11-16T04:25:42.084078+00:00,0.032,200,ok,v2,
|
||||
2026-11-16T04:25:43.084608+00:00,0.09,200,ok,v2,
|
||||
2026-11-16T04:25:44.084920+00:00,0.083,200,ok,v2,
|
||||
2026-11-16T04:25:45.085915+00:00,0.028,200,ok,v2,
|
||||
2026-11-16T04:25:46.086907+00:00,0.03,200,ok,v2,
|
||||
2026-11-16T04:25:47.087083+00:00,0.015,200,ok,v2,
|
||||
2026-11-16T04:25:48.087246+00:00,0.015,200,ok,v2,
|
||||
2026-11-16T04:25:49.087954+00:00,0.031,200,ok,v2,
|
||||
2026-11-16T04:25:50.088097+00:00,0.037,200,ok,v2,
|
||||
2026-11-16T04:25:51.088905+00:00,0.027,200,ok,v2,
|
||||
2026-11-16T04:25:52.089100+00:00,0.017,200,ok,v2,
|
||||
2026-11-16T04:25:53.090189+00:00,0.033,200,ok,v2,
|
||||
2026-11-16T04:25:54.090399+00:00,0.016,200,ok,v2,
|
||||
2026-11-16T04:25:55.090901+00:00,0.08,200,ok,v2,
|
||||
2026-11-16T04:25:56.091061+00:00,0.079,200,ok,v2,
|
||||
2026-11-16T04:25:57.091906+00:00,0.031,200,ok,v2,
|
||||
2026-11-16T04:25:58.092087+00:00,0.036,200,ok,v2,
|
||||
2026-11-16T04:25:59.092945+00:00,0.026,200,ok,v2,
|
||||
2026-11-16T04:26:00.093207+00:00,0.023,200,ok,v2,
|
||||
2026-11-16T04:26:01.093545+00:00,0.056,200,ok,v2,
|
||||
2026-11-16T04:26:02.093789+00:00,0.034,200,ok,v2,
|
||||
2026-11-16T04:26:03.094051+00:00,0.025,200,ok,v2,
|
||||
2026-11-16T04:26:04.094283+00:00,0.035,200,ok,v2,
|
||||
2026-11-16T04:26:05.094528+00:00,0.021,200,ok,v2,
|
||||
2026-11-16T04:26:06.094766+00:00,0.03,200,ok,v2,
|
||||
2026-11-16T04:26:07.095733+00:00,0.039,200,ok,v2,
|
||||
2026-11-16T04:26:08.095917+00:00,0.075,200,ok,v2,
|
||||
2026-11-16T04:26:09.097934+00:00,0.073,200,ok,v2,
|
||||
2026-11-16T04:26:10.098929+00:00,0.045,200,ok,v2,
|
||||
2026-11-16T04:26:11.099066+00:00,0.035,200,ok,v2,
|
||||
2026-11-16T04:26:12.100928+00:00,0.052,200,ok,v2,
|
||||
2026-11-16T04:26:13.101717+00:00,0.036,200,ok,v2,
|
||||
2026-11-16T04:26:14.102909+00:00,0.035,200,ok,v2,
|
||||
2026-11-16T04:26:15.103251+00:00,0.028,200,ok,v2,
|
||||
2026-11-16T04:26:16.103683+00:00,0.028,200,ok,v2,
|
||||
2026-11-16T04:26:17.104902+00:00,0.026,200,ok,v2,
|
||||
2026-11-16T04:26:18.105912+00:00,0.028,200,ok,v2,
|
||||
2026-11-16T04:26:19.106071+00:00,0.019,200,ok,v2,
|
||||
2026-11-16T04:26:20.106914+00:00,0.045,200,ok,v2,
|
||||
2026-11-16T04:26:21.107903+00:00,0.028,200,ok,v2,
|
||||
2026-11-16T04:26:22.108904+00:00,0.063,200,ok,v2,
|
||||
2026-11-16T04:26:23.110924+00:00,0.063,200,ok,v2,
|
||||
2026-11-16T04:26:24.111911+00:00,0.058,200,ok,v2,
|
||||
2026-11-16T04:26:25.112057+00:00,0.037,200,ok,v2,
|
||||
2026-11-16T04:26:26.112807+00:00,0.04,200,ok,v2,
|
||||
2026-11-16T04:26:27.113910+00:00,0.035,200,ok,v2,
|
||||
2026-11-16T04:26:28.114070+00:00,0.058,200,ok,v2,
|
||||
2026-11-16T04:26:29.114309+00:00,0.035,200,ok,v2,
|
||||
2026-11-16T04:26:30.114638+00:00,0.044,200,ok,v2,
|
||||
2026-11-16T04:26:31.114833+00:00,0.052,200,ok,v2,
|
||||
2026-11-16T04:26:32.115700+00:00,0.031,200,ok,v2,
|
||||
2026-11-16T04:26:33.115910+00:00,0.016,200,ok,v2,
|
||||
2026-11-16T04:26:34.116303+00:00,0.031,200,ok,v2,
|
||||
2026-11-16T04:26:35.116905+00:00,0.058,200,ok,v2,
|
||||
2026-11-16T04:26:36.118115+00:00,0.059,200,ok,v2,
|
||||
2026-11-16T04:26:37.119038+00:00,0.069,200,ok,v2,
|
||||
2026-11-16T04:26:38.119180+00:00,0.06,200,ok,v2,
|
||||
2026-11-16T04:26:39.120922+00:00,0.062,200,ok,v2,
|
||||
2026-11-16T04:26:40.121060+00:00,0.017,200,ok,v2,
|
||||
2026-11-16T04:26:41.121767+00:00,0.06,200,ok,v2,
|
||||
2026-11-16T04:26:42.121938+00:00,0.016,200,ok,v2,
|
||||
2026-11-16T04:26:43.122387+00:00,0.042,200,ok,v2,
|
||||
2026-11-16T04:26:44.122876+00:00,0.023,200,ok,v2,
|
||||
2026-11-16T04:26:45.123020+00:00,0.019,200,ok,v2,
|
||||
2026-11-16T04:26:46.123362+00:00,0.036,200,ok,v2,
|
||||
2026-11-16T04:26:47.124782+00:00,0.028,200,ok,v2,
|
||||
2026-11-16T04:26:48.125797+00:00,0.03,200,ok,v2,
|
||||
2026-11-16T04:26:49.128077+00:00,0.053,200,ok,v2,
|
||||
2026-11-16T04:26:50.128314+00:00,0.096,200,ok,v2,
|
||||
2026-11-16T04:26:51.129911+00:00,0.097,200,ok,v2,
|
||||
2026-11-16T04:26:52.130143+00:00,0.143,200,ok,v2,
|
||||
2026-11-16T04:26:53.130293+00:00,0.03,502,,,HTTPError
|
||||
2026-11-16T04:26:54.130916+00:00,0.03,502,,,HTTPError
|
||||
2026-11-16T04:26:55.131055+00:00,0.026,502,,,HTTPError
|
||||
2026-11-16T04:26:56.131725+00:00,0.02,502,,,HTTPError
|
||||
2026-11-16T04:26:57.131900+00:00,0.031,502,,,HTTPError
|
||||
2026-11-16T04:26:58.132050+00:00,0.02,502,,,HTTPError
|
||||
2026-11-16T04:26:59.132208+00:00,0.026,502,,,HTTPError
|
||||
2026-11-16T04:27:00.132599+00:00,0.025,502,,,HTTPError
|
||||
2026-11-16T04:27:01.132761+00:00,0.033,502,,,HTTPError
|
||||
2026-11-16T04:27:02.132956+00:00,0.022,502,,,HTTPError
|
||||
2026-11-16T04:27:03.133105+00:00,0.022,502,,,HTTPError
|
||||
2026-11-16T04:27:04.133265+00:00,0.025,502,,,HTTPError
|
||||
2026-11-16T04:27:05.133917+00:00,0.02,502,,,HTTPError
|
||||
2026-11-16T04:27:06.134386+00:00,0.023,502,,,HTTPError
|
||||
2026-11-16T04:27:07.134733+00:00,0.022,502,,,HTTPError
|
||||
2026-11-16T04:27:08.134942+00:00,0.021,502,,,HTTPError
|
||||
2026-11-16T04:27:09.135103+00:00,0.022,502,,,HTTPError
|
||||
2026-11-16T04:27:10.135447+00:00,0.044,502,,,HTTPError
|
||||
2026-11-16T04:27:11.136362+00:00,0.022,502,,,HTTPError
|
||||
2026-11-16T04:27:12.136531+00:00,0.021,502,,,HTTPError
|
||||
2026-11-16T04:27:13.136709+00:00,0.015,502,,,HTTPError
|
||||
2026-11-16T04:27:14.136912+00:00,0.016,502,,,HTTPError
|
||||
2026-11-16T04:27:15.137083+00:00,0.018,502,,,HTTPError
|
||||
2026-11-16T04:27:16.137766+00:00,0.014,502,,,HTTPError
|
||||
2026-11-16T04:27:17.137927+00:00,0.018,502,,,HTTPError
|
||||
2026-11-16T04:27:18.138084+00:00,0.019,502,,,HTTPError
|
||||
2026-11-16T04:27:19.138904+00:00,0.013,502,,,HTTPError
|
||||
2026-11-16T04:27:20.139040+00:00,0.026,502,,,HTTPError
|
||||
2026-11-16T04:27:21.139230+00:00,0.029,502,,,HTTPError
|
||||
2026-11-16T04:27:22.139429+00:00,0.034,502,,,HTTPError
|
||||
2026-11-16T04:27:23.139587+00:00,0.027,502,,,HTTPError
|
||||
2026-11-16T04:27:24.139767+00:00,0.015,502,,,HTTPError
|
||||
2026-11-16T04:27:25.139948+00:00,0.023,502,,,HTTPError
|
||||
2026-11-16T04:27:26.140101+00:00,0.016,502,,,HTTPError
|
||||
2026-11-16T04:27:27.140245+00:00,0.017,502,,,HTTPError
|
||||
2026-11-16T04:27:28.140440+00:00,0.018,502,,,HTTPError
|
||||
2026-11-16T04:27:29.140639+00:00,0.014,502,,,HTTPError
|
||||
2026-11-16T04:27:30.140791+00:00,0.013,502,,,HTTPError
|
||||
2026-11-16T04:27:31.140900+00:00,0.019,502,,,HTTPError
|
||||
2026-11-16T04:27:32.141041+00:00,0.061,502,,,HTTPError
|
||||
2026-11-16T04:27:33.142682+00:00,0.05,502,,,HTTPError
|
||||
2026-11-16T04:27:34.142833+00:00,0.02,502,,,HTTPError
|
||||
2026-11-16T04:27:35.143010+00:00,0.012,502,,,HTTPError
|
||||
2026-11-16T04:27:36.143157+00:00,0.014,502,,,HTTPError
|
||||
2026-11-16T04:27:37.143306+00:00,0.015,502,,,HTTPError
|
||||
2026-11-16T04:27:38.143486+00:00,0.021,502,,,HTTPError
|
||||
2026-11-16T04:27:39.143641+00:00,0.015,502,,,HTTPError
|
||||
2026-11-16T04:27:40.143874+00:00,0.013,502,,,HTTPError
|
||||
2026-11-16T04:27:41.144021+00:00,0.017,502,,,HTTPError
|
||||
2026-11-16T04:27:42.144204+00:00,0.017,502,,,HTTPError
|
||||
2026-11-16T04:27:43.144375+00:00,0.016,502,,,HTTPError
|
||||
2026-11-16T04:27:44.144553+00:00,0.019,502,,,HTTPError
|
||||
2026-11-16T04:27:45.144709+00:00,0.017,502,,,HTTPError
|
||||
2026-11-16T04:27:46.145242+00:00,0.013,502,,,HTTPError
|
||||
2026-11-16T04:27:47.145402+00:00,0.019,502,,,HTTPError
|
||||
2026-11-16T04:27:48.145616+00:00,0.018,502,,,HTTPError
|
||||
2026-11-16T04:27:49.145796+00:00,0.013,502,,,HTTPError
|
||||
2026-11-16T04:27:50.145913+00:00,0.014,502,,,HTTPError
|
||||
2026-11-16T04:27:51.146685+00:00,0.036,502,,,HTTPError
|
||||
2026-11-16T04:27:52.146810+00:00,0.014,502,,,HTTPError
|
||||
2026-11-16T04:27:53.147072+00:00,0.014,502,,,HTTPError
|
||||
2026-11-16T04:27:54.147286+00:00,0.017,502,,,HTTPError
|
||||
2026-11-16T04:27:55.147485+00:00,0.013,502,,,HTTPError
|
||||
2026-11-16T04:27:56.147685+00:00,0.031,502,,,HTTPError
|
||||
2026-11-16T04:27:57.148323+00:00,0.038,502,,,HTTPError
|
||||
2026-11-16T04:27:58.148530+00:00,0.013,502,,,HTTPError
|
||||
2026-11-16T04:27:59.148735+00:00,0.012,502,,,HTTPError
|
||||
2026-11-16T04:28:00.148937+00:00,0.018,502,,,HTTPError
|
||||
2026-11-16T04:28:01.149163+00:00,0.012,502,,,HTTPError
|
||||
2026-11-16T04:28:02.149317+00:00,0.033,502,,,HTTPError
|
||||
2026-11-16T04:28:03.149558+00:00,0.022,502,,,HTTPError
|
||||
2026-11-16T04:28:04.149722+00:00,0.013,502,,,HTTPError
|
||||
2026-11-16T04:28:05.149941+00:00,0.014,502,,,HTTPError
|
||||
2026-11-16T04:28:06.150093+00:00,0.016,502,,,HTTPError
|
||||
2026-11-16T04:28:07.150315+00:00,0.014,502,,,HTTPError
|
||||
2026-11-16T04:28:08.150536+00:00,0.013,502,,,HTTPError
|
||||
2026-11-16T04:28:09.150760+00:00,0.014,502,,,HTTPError
|
||||
2026-11-16T04:28:10.150901+00:00,0.012,502,,,HTTPError
|
||||
2026-11-16T04:28:11.151119+00:00,0.014,502,,,HTTPError
|
||||
2026-11-16T04:28:12.151328+00:00,0.013,502,,,HTTPError
|
||||
2026-11-16T04:28:13.151538+00:00,0.013,502,,,HTTPError
|
||||
2026-11-16T04:28:14.151770+00:00,0.012,502,,,HTTPError
|
||||
2026-11-16T04:28:15.151980+00:00,0.012,502,,,HTTPError
|
||||
2026-11-16T04:28:16.152168+00:00,0.017,502,,,HTTPError
|
||||
2026-11-16T04:28:17.152759+00:00,0.013,502,,,HTTPError
|
||||
2026-11-16T04:28:18.152957+00:00,0.017,502,,,HTTPError
|
||||
2026-11-16T04:28:19.153184+00:00,0.012,502,,,HTTPError
|
||||
2026-11-16T04:28:20.153417+00:00,0.012,502,,,HTTPError
|
||||
2026-11-16T04:28:21.153665+00:00,0.013,502,,,HTTPError
|
||||
2026-11-16T04:28:22.153905+00:00,0.013,502,,,HTTPError
|
||||
2026-11-16T04:28:23.154099+00:00,0.013,502,,,HTTPError
|
||||
2026-11-16T04:28:24.154248+00:00,0.015,502,,,HTTPError
|
||||
2026-11-16T04:28:25.154405+00:00,0.012,502,,,HTTPError
|
||||
2026-11-16T04:28:26.154589+00:00,0.012,502,,,HTTPError
|
||||
2026-11-16T04:28:27.154747+00:00,0.014,502,,,HTTPError
|
||||
2026-11-16T04:28:28.154927+00:00,0.017,502,,,HTTPError
|
||||
2026-11-16T04:28:29.155137+00:00,0.012,502,,,HTTPError
|
||||
2026-11-16T04:28:30.155288+00:00,0.017,502,,,HTTPError
|
||||
2026-11-16T04:28:31.155468+00:00,0.013,502,,,HTTPError
|
||||
2026-11-16T04:28:32.155669+00:00,0.018,502,,,HTTPError
|
||||
2026-11-16T04:28:33.155867+00:00,0.013,502,,,HTTPError
|
||||
2026-11-16T04:28:34.156086+00:00,0.014,502,,,HTTPError
|
||||
2026-11-16T04:28:35.156247+00:00,0.013,502,,,HTTPError
|
||||
2026-11-16T04:28:36.156410+00:00,0.015,502,,,HTTPError
|
||||
2026-11-16T04:28:37.156609+00:00,0.013,502,,,HTTPError
|
||||
2026-11-16T04:28:38.156929+00:00,0.03,502,,,HTTPError
|
||||
2026-11-16T04:28:39.157913+00:00,0.025,502,,,HTTPError
|
||||
2026-11-16T04:28:40.158912+00:00,0.024,502,,,HTTPError
|
||||
2026-11-16T04:28:41.159054+00:00,0.033,502,,,HTTPError
|
||||
2026-11-16T04:28:42.160045+00:00,0.03,502,,,HTTPError
|
||||
2026-11-16T04:28:43.160368+00:00,0.038,502,,,HTTPError
|
||||
2026-11-16T04:28:44.160556+00:00,0.015,502,,,HTTPError
|
||||
2026-11-16T04:28:45.160776+00:00,0.017,502,,,HTTPError
|
||||
2026-11-16T04:28:46.161003+00:00,0.013,502,,,HTTPError
|
||||
2026-11-16T04:28:47.162156+00:00,0.025,502,,,HTTPError
|
||||
2026-11-16T04:28:48.162385+00:00,0.013,502,,,HTTPError
|
||||
2026-11-16T04:28:49.162579+00:00,0.012,502,,,HTTPError
|
||||
2026-11-16T04:28:50.163124+00:00,0.025,502,,,HTTPError
|
||||
2026-11-16T04:28:51.163318+00:00,0.023,502,,,HTTPError
|
||||
2026-11-16T04:28:52.164488+00:00,0.035,502,,,HTTPError
|
||||
2026-11-16T04:28:53.165348+00:00,0.026,502,,,HTTPError
|
||||
2026-11-16T04:28:54.165863+00:00,0.028,502,,,HTTPError
|
||||
2026-11-16T04:28:55.165991+00:00,0.048,502,,,HTTPError
|
||||
2026-11-16T04:28:56.166900+00:00,0.023,502,,,HTTPError
|
||||
2026-11-16T04:28:57.167057+00:00,0.025,502,,,HTTPError
|
||||
2026-11-16T04:28:58.167919+00:00,0.022,502,,,HTTPError
|
||||
2026-11-16T04:28:59.168103+00:00,0.018,502,,,HTTPError
|
||||
2026-11-16T04:29:00.169028+00:00,0.04,502,,,HTTPError
|
||||
2026-11-16T04:29:01.169191+00:00,0.012,502,,,HTTPError
|
||||
2026-11-16T04:29:02.169337+00:00,0.014,502,,,HTTPError
|
||||
2026-11-16T04:29:03.169719+00:00,0.014,502,,,HTTPError
|
||||
2026-11-16T04:29:04.169921+00:00,0.014,502,,,HTTPError
|
||||
2026-11-16T04:29:05.170115+00:00,0.013,502,,,HTTPError
|
||||
2026-11-16T04:29:06.170319+00:00,0.013,502,,,HTTPError
|
||||
2026-11-16T04:29:07.171513+00:00,0.026,502,,,HTTPError
|
||||
2026-11-16T04:29:08.171689+00:00,0.012,502,,,HTTPError
|
||||
2026-11-16T04:29:09.172906+00:00,0.02,502,,,HTTPError
|
||||
2026-11-16T04:29:10.173911+00:00,0.021,502,,,HTTPError
|
||||
2026-11-16T04:29:11.174067+00:00,0.014,502,,,HTTPError
|
||||
2026-11-16T04:29:12.174647+00:00,0.024,502,,,HTTPError
|
||||
2026-11-16T04:29:13.175115+00:00,0.023,502,,,HTTPError
|
||||
2026-11-16T04:29:14.175313+00:00,0.017,502,,,HTTPError
|
||||
2026-11-16T04:29:15.176154+00:00,0.031,502,,,HTTPError
|
||||
2026-11-16T04:29:16.176323+00:00,0.024,502,,,HTTPError
|
||||
2026-11-16T04:29:17.177942+00:00,0.022,502,,,HTTPError
|
||||
2026-11-16T04:29:18.178137+00:00,0.012,502,,,HTTPError
|
||||
2026-11-16T04:29:19.178288+00:00,0.029,502,,,HTTPError
|
||||
2026-11-16T04:29:20.178911+00:00,0.03,502,,,HTTPError
|
||||
2026-11-16T04:29:21.179309+00:00,0.068,502,,,HTTPError
|
||||
2026-11-16T04:29:22.180080+00:00,0.029,502,,,HTTPError
|
||||
2026-11-16T04:29:23.180337+00:00,0.017,502,,,HTTPError
|
||||
2026-11-16T04:29:24.180511+00:00,0.014,502,,,HTTPError
|
||||
2026-11-16T04:29:25.180987+00:00,0.018,502,,,HTTPError
|
||||
2026-11-16T04:29:26.181730+00:00,0.023,502,,,HTTPError
|
||||
2026-11-16T04:29:27.181931+00:00,0.012,502,,,HTTPError
|
||||
2026-11-16T04:29:28.182677+00:00,0.023,502,,,HTTPError
|
||||
2026-11-16T04:29:29.182841+00:00,0.012,502,,,HTTPError
|
||||
2026-11-16T04:29:30.183799+00:00,0.029,502,,,HTTPError
|
||||
2026-11-16T04:29:31.183973+00:00,0.016,502,,,HTTPError
|
||||
2026-11-16T04:29:32.184660+00:00,0.032,502,,,HTTPError
|
||||
2026-11-16T04:29:33.185920+00:00,0.05,502,,,HTTPError
|
||||
2026-11-16T04:29:34.186061+00:00,0.07,502,,,HTTPError
|
||||
2026-11-16T04:29:35.186246+00:00,0.037,502,,,HTTPError
|
||||
2026-11-16T04:29:36.186432+00:00,0.013,502,,,HTTPError
|
||||
2026-11-16T04:29:37.186616+00:00,0.015,502,,,HTTPError
|
||||
2026-11-16T04:29:38.186772+00:00,0.016,502,,,HTTPError
|
||||
2026-11-16T04:29:39.186918+00:00,0.014,502,,,HTTPError
|
||||
2026-11-16T04:29:40.187054+00:00,0.012,502,,,HTTPError
|
||||
2026-11-16T04:29:41.187224+00:00,2.018,,,,TimeoutError
|
||||
2026-11-16T04:29:43.205246+00:00,1.718,200,ok,v2,
|
||||
2026-11-16T04:29:44.924453+00:00,0.028,200,ok,v2,
|
||||
2026-11-16T04:29:45.924601+00:00,0.033,200,ok,v2,
|
||||
2026-11-16T04:29:46.924917+00:00,0.039,200,ok,v2,
|
||||
2026-11-16T04:29:47.925891+00:00,0.023,200,ok,v2,
|
||||
2026-11-16T04:29:48.927611+00:00,0.026,200,ok,v2,
|
||||
2026-11-16T04:29:49.927750+00:00,0.035,200,ok,v2,
|
||||
2026-11-16T04:29:50.928213+00:00,0.029,200,ok,v2,
|
||||
2026-11-16T04:29:51.928341+00:00,0.014,200,ok,v2,
|
||||
2026-11-16T04:29:52.928956+00:00,0.024,200,ok,v2,
|
||||
2026-11-16T04:29:53.929395+00:00,0.047,200,ok,v2,
|
||||
2026-11-16T04:29:54.931730+00:00,0.025,200,ok,v2,
|
||||
2026-11-16T04:29:55.932346+00:00,0.032,200,ok,v2,
|
||||
2026-11-16T04:29:56.933925+00:00,0.087,200,ok,v2,
|
||||
2026-11-16T04:29:57.934953+00:00,0.09,200,ok,v2,
|
||||
2026-11-16T04:29:58.935909+00:00,0.033,200,ok,v2,
|
||||
2026-11-16T04:29:59.937797+00:00,0.03,200,ok,v2,
|
||||
2026-11-16T04:30:00.938504+00:00,0.122,200,ok,v2,
|
||||
2026-11-16T04:30:01.939919+00:00,0.089,200,ok,v2,
|
||||
2026-11-16T04:30:02.943776+00:00,0.194,200,ok,v2,
|
||||
2026-11-16T04:30:03.944373+00:00,0.036,200,ok,v2,
|
||||
2026-11-16T04:30:04.945023+00:00,0.044,200,ok,v2,
|
||||
2026-11-16T04:30:05.945906+00:00,0.029,200,ok,v2,
|
||||
2026-11-16T04:30:06.946097+00:00,0.018,200,ok,v2,
|
||||
2026-11-16T04:30:07.946917+00:00,0.022,200,ok,v2,
|
||||
2026-11-16T04:30:08.948910+00:00,0.019,200,ok,v2,
|
||||
2026-11-16T04:30:09.949744+00:00,0.067,200,ok,v2,
|
||||
2026-11-16T04:30:10.950713+00:00,0.076,200,ok,v2,
|
||||
2026-11-16T04:30:11.952916+00:00,0.055,200,ok,v2,
|
||||
2026-11-16T04:30:12.953919+00:00,0.07,200,ok,v2,
|
||||
2026-11-16T04:30:13.955288+00:00,0.043,200,ok,v2,
|
||||
2026-11-16T04:30:14.955452+00:00,0.026,200,ok,v2,
|
||||
2026-11-16T04:30:15.956921+00:00,0.03,200,ok,v2,
|
||||
2026-11-16T04:30:16.957914+00:00,0.045,200,ok,v2,
|
||||
2026-11-16T04:30:17.958455+00:00,0.031,200,ok,v2,
|
||||
2026-11-16T04:30:18.958621+00:00,0.018,200,ok,v2,
|
||||
2026-11-16T04:30:19.958872+00:00,0.016,200,ok,v2,
|
||||
2026-11-16T04:30:20.959049+00:00,0.019,200,ok,v2,
|
||||
2026-11-16T04:30:21.959206+00:00,0.021,200,ok,v2,
|
||||
2026-11-16T04:30:22.959650+00:00,0.033,200,ok,v2,
|
||||
2026-11-16T04:30:23.961158+00:00,0.064,200,ok,v2,
|
||||
2026-11-16T04:30:24.961906+00:00,0.039,200,ok,v2,
|
||||
2026-11-16T04:30:25.962841+00:00,0.099,200,ok,v2,
|
||||
2026-11-16T04:30:26.963621+00:00,0.088,200,ok,v2,
|
||||
2026-11-16T04:30:27.963785+00:00,0.077,200,ok,v2,
|
||||
2026-11-16T04:30:28.964870+00:00,0.046,200,ok,v2,
|
||||
2026-11-16T04:30:29.965618+00:00,0.037,200,ok,v2,
|
||||
2026-11-16T04:30:30.965765+00:00,0.06,200,ok,v2,
|
||||
2026-11-16T04:30:31.966719+00:00,0.042,200,ok,v2,
|
||||
2026-11-16T04:30:32.967184+00:00,0.038,200,ok,v2,
|
||||
2026-11-16T04:30:33.967429+00:00,0.02,200,ok,v2,
|
||||
2026-11-16T04:30:34.975003+00:00,0.017,200,ok,v2,
|
||||
2026-11-16T04:30:35.975195+00:00,0.036,200,ok,v2,
|
||||
2026-11-16T04:30:36.975368+00:00,0.017,200,ok,v2,
|
||||
2026-11-16T04:30:37.975932+00:00,0.056,200,ok,v2,
|
||||
2026-11-16T04:30:38.977572+00:00,0.04,200,ok,v2,
|
||||
2026-11-16T04:30:39.978506+00:00,0.047,200,ok,v2,
|
||||
2026-11-16T04:30:40.979240+00:00,0.042,200,ok,v2,
|
||||
2026-11-16T04:30:41.979896+00:00,0.064,200,ok,v2,
|
||||
2026-11-16T04:30:42.980771+00:00,0.032,200,ok,v2,
|
||||
2026-11-16T04:30:43.980952+00:00,0.068,200,ok,v2,
|
||||
2026-11-16T04:30:44.982904+00:00,0.032,200,ok,v2,
|
||||
2026-11-16T04:30:45.983450+00:00,0.034,200,ok,v2,
|
||||
2026-11-16T04:30:46.983583+00:00,0.044,200,ok,v2,
|
||||
2026-11-16T04:30:47.983770+00:00,0.013,200,ok,v2,
|
||||
2026-11-16T04:30:48.983937+00:00,0.029,200,ok,v2,
|
||||
2026-11-16T04:30:49.984333+00:00,0.055,200,ok,v2,
|
||||
2026-11-16T04:30:50.984895+00:00,0.026,200,ok,v2,
|
||||
2026-11-16T04:30:51.986016+00:00,0.072,200,ok,v2,
|
||||
2026-11-16T04:30:52.986136+00:00,0.034,200,ok,v2,
|
||||
2026-11-16T04:30:53.986390+00:00,0.037,200,ok,v2,
|
||||
2026-11-16T04:30:54.986945+00:00,0.045,200,ok,v2,
|
||||
2026-11-16T04:30:55.988921+00:00,0.033,200,ok,v2,
|
||||
2026-11-16T04:30:56.990937+00:00,0.067,200,ok,v2,
|
||||
2026-11-16T04:30:57.991954+00:00,0.07,200,ok,v2,
|
||||
2026-11-16T04:30:58.992119+00:00,0.038,200,ok,v2,
|
||||
2026-11-16T04:30:59.992369+00:00,0.025,200,ok,v2,
|
||||
2026-11-16T04:31:00.992606+00:00,0.023,200,ok,v2,
|
||||
2026-11-16T04:31:01.992892+00:00,0.023,200,ok,v2,
|
||||
2026-11-16T04:31:02.993085+00:00,0.018,200,ok,v2,
|
||||
2026-11-16T04:31:03.993542+00:00,0.025,200,ok,v2,
|
||||
2026-11-16T04:31:04.993777+00:00,0.027,200,ok,v2,
|
||||
2026-11-16T04:31:05.994843+00:00,0.024,200,ok,v2,
|
||||
2026-11-16T04:31:06.995098+00:00,0.045,200,ok,v2,
|
||||
2026-11-16T04:31:07.995323+00:00,0.026,200,ok,v2,
|
||||
2026-11-16T04:31:08.995912+00:00,0.061,200,ok,v2,
|
||||
2026-11-16T04:31:09.996925+00:00,0.046,200,ok,v2,
|
||||
2026-11-16T04:31:10.997908+00:00,0.025,200,ok,v2,
|
||||
2026-11-16T04:31:11.999900+00:00,0.039,200,ok,v2,
|
||||
2026-11-16T04:31:13.000075+00:00,0.018,200,ok,v2,
|
||||
2026-11-16T04:31:14.000289+00:00,0.019,200,ok,v2,
|
||||
2026-11-16T04:31:15.000530+00:00,0.018,200,ok,v2,
|
||||
2026-11-16T04:31:16.000712+00:00,0.016,200,ok,v2,
|
||||
2026-11-16T04:31:17.000921+00:00,0.017,200,ok,v2,
|
||||
2026-11-16T04:31:18.001136+00:00,0.02,200,ok,v2,
|
||||
2026-11-16T04:31:19.001404+00:00,0.017,200,ok,v2,
|
||||
2026-11-16T04:31:20.001570+00:00,0.042,200,ok,v2,
|
||||
2026-11-16T04:31:21.001766+00:00,0.023,200,ok,v2,
|
||||
2026-11-16T04:31:22.001910+00:00,0.022,200,ok,v2,
|
||||
2026-11-16T04:31:23.003935+00:00,0.027,200,ok,v2,
|
||||
2026-11-16T04:31:24.004936+00:00,0.02,200,ok,v2,
|
||||
2026-11-16T04:31:25.005922+00:00,0.02,200,ok,v2,
|
||||
2026-11-16T04:31:26.006100+00:00,0.02,200,ok,v2,
|
||||
2026-11-16T04:31:27.006440+00:00,0.022,200,ok,v2,
|
||||
2026-11-16T04:31:28.006700+00:00,0.03,200,ok,v2,
|
||||
2026-11-16T04:31:29.008091+00:00,0.022,200,ok,v2,
|
||||
2026-11-16T04:31:30.008260+00:00,0.025,200,ok,v2,
|
||||
2026-11-16T04:31:31.008483+00:00,0.028,200,ok,v2,
|
||||
2026-11-16T04:31:32.011981+00:00,0.023,200,ok,v2,
|
||||
2026-11-16T04:31:33.012937+00:00,0.049,200,ok,v2,
|
||||
2026-11-16T04:31:34.013948+00:00,0.101,200,ok,v2,
|
||||
2026-11-16T04:31:35.014924+00:00,0.039,200,ok,v2,
|
||||
2026-11-16T04:31:36.015929+00:00,0.038,200,ok,v2,
|
||||
2026-11-16T04:31:37.016084+00:00,0.037,200,ok,v2,
|
||||
2026-11-16T04:31:38.016554+00:00,0.019,200,ok,v2,
|
||||
2026-11-16T04:31:39.016756+00:00,0.02,200,ok,v2,
|
||||
2026-11-16T04:31:40.016993+00:00,0.016,200,ok,v2,
|
||||
2026-11-16T04:31:41.017215+00:00,0.016,200,ok,v2,
|
||||
2026-11-16T04:31:42.018155+00:00,0.015,200,ok,v2,
|
||||
2026-11-16T04:31:43.018358+00:00,0.02,200,ok,v2,
|
||||
2026-11-16T04:31:44.018534+00:00,0.018,200,ok,v2,
|
||||
2026-11-16T04:31:45.018770+00:00,0.017,200,ok,v2,
|
||||
2026-11-16T04:31:46.018943+00:00,0.018,200,ok,v2,
|
||||
2026-11-16T04:31:47.019173+00:00,0.032,200,ok,v2,
|
||||
2026-11-16T04:31:48.020924+00:00,0.028,200,ok,v2,
|
||||
2026-11-16T04:31:49.021916+00:00,0.028,200,ok,v2,
|
||||
2026-11-16T04:31:50.022771+00:00,0.036,200,ok,v2,
|
||||
2026-11-16T04:31:51.023115+00:00,0.013,200,ok,v2,
|
||||
2026-11-16T04:31:52.023336+00:00,0.014,200,ok,v2,
|
||||
2026-11-16T04:31:53.023556+00:00,0.016,200,ok,v2,
|
||||
2026-11-16T04:31:54.023722+00:00,0.036,200,ok,v2,
|
||||
2026-11-16T04:31:55.024195+00:00,0.017,200,ok,v2,
|
||||
2026-11-16T04:31:56.024507+00:00,0.016,200,ok,v2,
|
||||
2026-11-16T04:31:57.024694+00:00,0.018,200,ok,v2,
|
||||
2026-11-16T04:31:58.024905+00:00,0.014,200,ok,v2,
|
||||
2026-11-16T04:31:59.025118+00:00,0.015,200,ok,v2,
|
||||
2026-11-16T04:32:00.025787+00:00,0.032,200,ok,v2,
|
||||
2026-11-16T04:32:01.026749+00:00,0.032,200,ok,v2,
|
||||
2026-11-16T04:32:02.027922+00:00,0.091,200,ok,v2,
|
||||
2026-11-16T04:32:03.028074+00:00,0.101,200,ok,v2,
|
||||
2026-11-16T04:32:04.029934+00:00,0.041,200,ok,v2,
|
||||
2026-11-16T04:32:05.030110+00:00,0.02,200,ok,v2,
|
||||
2026-11-16T04:32:06.030283+00:00,0.015,200,ok,v2,
|
||||
2026-11-16T04:32:07.030462+00:00,0.02,200,ok,v2,
|
||||
2026-11-16T04:32:08.030648+00:00,0.017,200,ok,v2,
|
||||
2026-11-16T04:32:09.030871+00:00,0.021,200,ok,v2,
|
||||
2026-11-16T04:32:10.031072+00:00,0.019,200,ok,v2,
|
||||
2026-11-16T04:32:11.031289+00:00,0.017,200,ok,v2,
|
||||
|
@@ -0,0 +1,55 @@
|
||||
# v1 publication and blocked deployment — 15 November 2026
|
||||
|
||||
[Pricing build 3](https://ci.yebilly.me/job/secure-delivery/job/pricing/3/)
|
||||
ran in `release` mode from reviewed source/configuration commit
|
||||
`09731acb0370566471dd4e401e59bafe55e927dc`. It began at 22:25:23.584 UTC,
|
||||
took 77.799 seconds, and finished FAILURE. This was a published image followed
|
||||
by a connection failure, **not a successful staging or production release**.
|
||||
|
||||
Tests, clean-source scanning and all nine locked dependency audits passed.
|
||||
Both pre-push and registry-digest Trivy image reports analyzed two targets and
|
||||
contained zero HIGH/CRITICAL findings. The agent built the image once, pushed
|
||||
the source-SHA tag, pulled it back and verified this registry reference:
|
||||
|
||||
```text
|
||||
git.yebilly.me/ssw590-group1/pricing@sha256:cccd47f112f839f3443c88c4d16fd7a1ed0fec2100a26464156526d53ccc2695
|
||||
```
|
||||
|
||||
The generated staging/production records were timestamped 22:26:29.144 UTC.
|
||||
Staging deployment began 22:26:33.530 and stopped at 22:26:39.422 UTC
|
||||
(5.892 seconds), before any application configuration or container was created:
|
||||
|
||||
```text
|
||||
TASK [Gathering Facts]
|
||||
Failed to connect to the host via ssh: PTY allocation request failed on channel 0
|
||||
startup : ok=0 changed=0 unreachable=1 failed=0
|
||||
Ansible exit code: 4
|
||||
```
|
||||
|
||||
Jenkins skipped the unchanged rerun and production approval/deployment.
|
||||
The generated records and scans are archived in that build and copied to ignored
|
||||
`build/evidence/assignment8-execution/jenkins-3/`. They are deliberately absent
|
||||
from `delivery/releases/`: neither environment has been verified healthy.
|
||||
|
||||
## Correction and verification
|
||||
|
||||
Ansible's SSH connection plugin defaults to forcing a terminal. The deploy
|
||||
key intentionally forbids PTY allocation. The inventory now selects
|
||||
`ansible_ssh_use_tty=false` for the delivery group, matching that restriction.
|
||||
See the official [Ansible 2.21 SSH connection options](https://docs.ansible.com/projects/ansible-core/2.21/collections/ansible/builtin/ssh_connection.html#parameter-use_tty).
|
||||
Pinned host verification, key restrictions, credentials and sudo policy are unchanged.
|
||||
|
||||
The administrator-only preflight was extended to exercise Ansible's actual
|
||||
SSH/become path using the same bound credentials, rather than plain SSH alone.
|
||||
[Agent preflight build 3](https://ci.yebilly.me/job/secure-delivery/job/agent-preflight/3/)
|
||||
passed in 17 seconds at 22:50 UTC. Its `ansible.builtin.command` invocation
|
||||
of `id -u` returned `0`, proving the noninteractive module and sudo path.
|
||||
The module reports CHANGED by default for a command; this is not a pricing
|
||||
deployment or an unchanged-rerun result. Exact non-secret output is retained in
|
||||
[`agent-preflight-3.txt`](agent-preflight-3.txt).
|
||||
|
||||
The source correction awaits Vincent's commit/push and Billy's review/merge.
|
||||
Retry `release` from the corrected full main SHA; let the pipeline generate
|
||||
fresh records for that reviewed source/configuration. Do not manually change
|
||||
the failed attempt's record to imply a successful deployment or reuse it for
|
||||
rollback. Retain its published image and reports as evidence.
|
||||
@@ -0,0 +1,74 @@
|
||||
# Staging deployment, blocked rerun and health-timeout trial
|
||||
|
||||
Client date: 15 November 2026 (Eastern). Execution timestamps below are
|
||||
16 November UTC. Billy approved PR 25 at 01:46:19 UTC; Vincent merged it at
|
||||
01:51:04 as `a19fab34e39420811e73f91fcfbb82ee598bd74a`.
|
||||
|
||||
[Pricing build 4](https://ci.yebilly.me/job/secure-delivery/job/pricing/4/)
|
||||
selected that full source/configuration commit. It began 02:00:09.554 UTC,
|
||||
took 198.101 seconds and finished FAILURE. Twelve control tests, three app
|
||||
tests, source/dependency gates and both image gates passed. The published image was:
|
||||
|
||||
```text
|
||||
git.yebilly.me/ssw590-group1/pricing@sha256:63e2e3d49a5119b1064868b0b15b39a1719a60a632ff0ecdc3f676fcdc55de3b
|
||||
```
|
||||
|
||||
The noninteractive SSH correction worked. Initial staging deployment ran
|
||||
02:01:48.628–02:02:58.341 UTC (69.713 seconds) and passed all HTTPS health,
|
||||
version, source-SHA and quantity=3 total=30 assertions. Its recap was
|
||||
`ok=10 changed=4 unreachable=0 failed=0`.
|
||||
|
||||
The unchanged rerun ran 02:03:01.314–02:03:25.201 UTC (23.887 seconds).
|
||||
Directory/template checks were unchanged, but Compose stopped because the
|
||||
existing container was unhealthy: `ok=4 changed=0 unreachable=0 failed=1`.
|
||||
This is **not** a passed idempotence gate. Jenkins skipped production approval
|
||||
and deployment. All reports are archived in build 4 and copied to ignored
|
||||
`build/evidence/assignment8-execution/jenkins-4/`. These records are not
|
||||
known-good rollback selections in `delivery/releases/`.
|
||||
|
||||
## Diagnosis
|
||||
|
||||
Docker reported `Health check exceeded timeout (3s)`. Its recorded probe
|
||||
durations were near three seconds, including successful probes. The staging
|
||||
container later recovered without a restart; an HTTPS health request returned
|
||||
`{"status":"ok","version":"v1"}`. Gunicorn remained running. The observed
|
||||
container had no OOM kill, about 48.56 MiB usage against 64 MiB, and memory-limit
|
||||
events without OOM events. CPU quota is 0.25. This supports a probe deadline
|
||||
problem under these constraints; it does not establish that every later health
|
||||
failure has that cause.
|
||||
|
||||
## Bounded diagnostic of the correction
|
||||
|
||||
At 02:06:37–02:08:24 UTC a temporary container ran the **same reviewed image**
|
||||
with the same UID, read-only filesystem, capability restrictions, 64/96 MiB
|
||||
RAM/RAM+swap, 0.25 CPU and 64 PID cap. It had no Docker network, published port,
|
||||
proxy alias, deployment directory or app data volume. Only Docker's overall
|
||||
health timeout was overridden to ten seconds. The HTTP request timeout remained
|
||||
two seconds. Existing staging and shared services were unchanged.
|
||||
|
||||
Eight consecutive probes passed, taking 5.660, 3.183, 3.109, 2.905, 2.999,
|
||||
3.183, 3.698 and 2.817 seconds. The final state was healthy; memory events
|
||||
showed no limit hit or OOM. CPU throttling was observed. The temporary container
|
||||
was removed by its exact newly created ID in a finally block. The
|
||||
[exact diagnostic script](health-timeout-trial-20261115.py) and
|
||||
[raw JSON](health-timeout-trial-20261115.json) preserve the experiment.
|
||||
|
||||
The Dockerfile correction changes only the overall health-check timeout from
|
||||
three to ten seconds. It keeps the endpoint, request timeout, retry count,
|
||||
cadence, startup period and all resource/security limits. It still needs review
|
||||
and a successful assessed release; this diagnostic did not deploy production.
|
||||
|
||||
## v1 and v2 review sequence
|
||||
|
||||
The branch also prepares the required v2 source/test change: VERSION=v2,
|
||||
UNIT_PRICE=12, quantity 3 total=36. Three local functional tests and twelve
|
||||
control tests passed. The Windows functional environment used Flask 3.1.3 and
|
||||
Werkzeug 3.1.8; deployment remains locked to Werkzeug 3.1.9 and must pass the
|
||||
real Jenkins gates. Docker Desktop was not running; the remote runners remain
|
||||
independent of it.
|
||||
|
||||
Keep two commits: first the health fix with v1 source, then the v2 app/test
|
||||
change. Review both in one PR and merge with a merge commit, preserving their
|
||||
SHAs. Run v1 with the first reviewed commit and v2 with the second; each still
|
||||
requires staging/idempotence and real human production approval. Save and
|
||||
review the actual successful release records before either recovery exercise.
|
||||
@@ -0,0 +1,202 @@
|
||||
{
|
||||
"releases": [
|
||||
{
|
||||
"version": "v1",
|
||||
"build": 5,
|
||||
"url": "https://ci.yebilly.me/job/secure-delivery/job/pricing/5/",
|
||||
"result": "SUCCESS",
|
||||
"source": "34f26e6948b7001ede8ca19f23b67a02082e6a9a",
|
||||
"started": "2026-11-16T03:00:10.966000+00:00",
|
||||
"completed": "2026-11-16T03:05:08.180000+00:00",
|
||||
"total_seconds": 297.214,
|
||||
"approval": {
|
||||
"Approver": "vsun1",
|
||||
"Decision": "approved",
|
||||
"UTC": "2026-11-16T03:04:01Z"
|
||||
},
|
||||
"deployments": {
|
||||
"staging-deploy": {
|
||||
"started": "2026-11-16T03:01:27.245015+00:00",
|
||||
"completed": "2026-11-16T03:02:26.405414+00:00",
|
||||
"elapsed_seconds": 59.16,
|
||||
"operation": "deploy",
|
||||
"ansible_exit_code": 0,
|
||||
"recaps": [
|
||||
{
|
||||
"host": "startup",
|
||||
"ok": 10,
|
||||
"changed": 3,
|
||||
"unreachable": 0,
|
||||
"failed": 0
|
||||
}
|
||||
],
|
||||
"result": "passed"
|
||||
},
|
||||
"staging-rerun": {
|
||||
"started": "2026-11-16T03:02:29.440969+00:00",
|
||||
"completed": "2026-11-16T03:03:10.939985+00:00",
|
||||
"elapsed_seconds": 41.499,
|
||||
"operation": "rerun",
|
||||
"ansible_exit_code": 0,
|
||||
"recaps": [
|
||||
{
|
||||
"host": "startup",
|
||||
"ok": 10,
|
||||
"changed": 0,
|
||||
"unreachable": 0,
|
||||
"failed": 0
|
||||
}
|
||||
],
|
||||
"result": "passed"
|
||||
},
|
||||
"production-deploy": {
|
||||
"started": "2026-11-16T03:04:05.207821+00:00",
|
||||
"completed": "2026-11-16T03:05:05.610689+00:00",
|
||||
"elapsed_seconds": 60.403,
|
||||
"operation": "deploy",
|
||||
"ansible_exit_code": 0,
|
||||
"recaps": [
|
||||
{
|
||||
"host": "startup",
|
||||
"ok": 10,
|
||||
"changed": 4,
|
||||
"unreachable": 0,
|
||||
"failed": 0
|
||||
}
|
||||
],
|
||||
"result": "passed"
|
||||
}
|
||||
},
|
||||
"scans": {
|
||||
"image-gate": {
|
||||
"analyzed_targets": 2,
|
||||
"high_critical": 0,
|
||||
"report_sha256": "55ca73c4b493fa7a612671e02e6cf097c0b3fc011895712189704c8721b9028e"
|
||||
},
|
||||
"published-image-gate": {
|
||||
"analyzed_targets": 2,
|
||||
"high_critical": 0,
|
||||
"report_sha256": "f375643ae8f6888e9f5ab582342c4d11bee8563936c86a9de08e7b7b5cd52ef8"
|
||||
},
|
||||
"dependencies": {
|
||||
"packages": 9,
|
||||
"advisories": 0
|
||||
},
|
||||
"source_secrets": {
|
||||
"findings": 0
|
||||
}
|
||||
},
|
||||
"unit_tests": {
|
||||
"started": "2026-11-16T03:00:34.908112+00:00",
|
||||
"completed": "2026-11-16T03:00:35.815417+00:00",
|
||||
"exit_code": 0,
|
||||
"result": "passed"
|
||||
},
|
||||
"release_image": "git.yebilly.me/ssw590-group1/pricing@sha256:59c880b2704f91668618d9a2ff0bc8fbab0af4239ceb916de261863890ef88d8",
|
||||
"configuration_commit": "34f26e6948b7001ede8ca19f23b67a02082e6a9a",
|
||||
"records": [
|
||||
"delivery/releases/v1-staging.json",
|
||||
"delivery/releases/v1-production.json"
|
||||
]
|
||||
},
|
||||
{
|
||||
"version": "v2",
|
||||
"build": 6,
|
||||
"url": "https://ci.yebilly.me/job/secure-delivery/job/pricing/6/",
|
||||
"result": "SUCCESS",
|
||||
"source": "6bddbfba5a36e0e397537678ffb197e101fb0670",
|
||||
"started": "2026-11-16T03:05:33.456000+00:00",
|
||||
"completed": "2026-11-16T03:12:29.163000+00:00",
|
||||
"total_seconds": 415.707,
|
||||
"approval": {
|
||||
"Approver": "vsun1",
|
||||
"Decision": "approved",
|
||||
"UTC": "2026-11-16T03:11:18Z"
|
||||
},
|
||||
"deployments": {
|
||||
"staging-deploy": {
|
||||
"started": "2026-11-16T03:06:46.416545+00:00",
|
||||
"completed": "2026-11-16T03:07:46.522813+00:00",
|
||||
"elapsed_seconds": 60.106,
|
||||
"operation": "deploy",
|
||||
"ansible_exit_code": 0,
|
||||
"recaps": [
|
||||
{
|
||||
"host": "startup",
|
||||
"ok": 10,
|
||||
"changed": 3,
|
||||
"unreachable": 0,
|
||||
"failed": 0
|
||||
}
|
||||
],
|
||||
"result": "passed"
|
||||
},
|
||||
"staging-rerun": {
|
||||
"started": "2026-11-16T03:07:49.044973+00:00",
|
||||
"completed": "2026-11-16T03:08:34.532184+00:00",
|
||||
"elapsed_seconds": 45.487,
|
||||
"operation": "rerun",
|
||||
"ansible_exit_code": 0,
|
||||
"recaps": [
|
||||
{
|
||||
"host": "startup",
|
||||
"ok": 10,
|
||||
"changed": 0,
|
||||
"unreachable": 0,
|
||||
"failed": 0
|
||||
}
|
||||
],
|
||||
"result": "passed"
|
||||
},
|
||||
"production-deploy": {
|
||||
"started": "2026-11-16T03:11:21.802336+00:00",
|
||||
"completed": "2026-11-16T03:12:28.036700+00:00",
|
||||
"elapsed_seconds": 66.234,
|
||||
"operation": "deploy",
|
||||
"ansible_exit_code": 0,
|
||||
"recaps": [
|
||||
{
|
||||
"host": "startup",
|
||||
"ok": 10,
|
||||
"changed": 3,
|
||||
"unreachable": 0,
|
||||
"failed": 0
|
||||
}
|
||||
],
|
||||
"result": "passed"
|
||||
}
|
||||
},
|
||||
"scans": {
|
||||
"image-gate": {
|
||||
"analyzed_targets": 2,
|
||||
"high_critical": 0,
|
||||
"report_sha256": "89d8912330a8fdfb0e5e8ccd1e41f971415c611ba80ee2dd6d484401ec2f6a09"
|
||||
},
|
||||
"published-image-gate": {
|
||||
"analyzed_targets": 2,
|
||||
"high_critical": 0,
|
||||
"report_sha256": "32562513adffdd78782417083b51e56fd29f758a3e050faeda147dee822bc339"
|
||||
},
|
||||
"dependencies": {
|
||||
"packages": 9,
|
||||
"advisories": 0
|
||||
},
|
||||
"source_secrets": {
|
||||
"findings": 0
|
||||
}
|
||||
},
|
||||
"unit_tests": {
|
||||
"started": "2026-11-16T03:05:54.830225+00:00",
|
||||
"completed": "2026-11-16T03:05:55.609726+00:00",
|
||||
"exit_code": 0,
|
||||
"result": "passed"
|
||||
},
|
||||
"release_image": "git.yebilly.me/ssw590-group1/pricing@sha256:efe8658a0adf0854038d58199652030cbd0ef70047a1c6ebc7b09906cf1ec88b",
|
||||
"configuration_commit": "6bddbfba5a36e0e397537678ffb197e101fb0670",
|
||||
"records": [
|
||||
"delivery/releases/v2-staging.json",
|
||||
"delivery/releases/v2-production.json"
|
||||
]
|
||||
}
|
||||
]
|
||||
}
|
||||
@@ -0,0 +1,85 @@
|
||||
# Reviewed v1/v2 releases and production monitoring
|
||||
|
||||
Client date: 15 November 2026 Eastern; all times below are 16 November UTC.
|
||||
Billy approved PR 26 at 02:56:00; Vincent merged it at 02:57:42 as
|
||||
`231d11528a425114a8d3570afba56943c4d57d96`, preserving both source commits.
|
||||
The merge-triggered manual workflow 15 passed in 2m7s before delivery began.
|
||||
|
||||
| Evidence | v1 | v2 |
|
||||
|---|---|---|
|
||||
| Source and configuration | `34f26e6948b7001ede8ca19f23b67a02082e6a9a` | `6bddbfba5a36e0e397537678ffb197e101fb0670` |
|
||||
| Jenkins | [Build 5 SUCCESS](https://ci.yebilly.me/job/secure-delivery/job/pricing/5/) | [Build 6 SUCCESS](https://ci.yebilly.me/job/secure-delivery/job/pricing/6/) |
|
||||
| Full run, including human wait | 03:00:10.966–03:05:08.180; 297.214 s | 03:05:33.456–03:12:29.163; 415.707 s |
|
||||
| Initial staging | 59.160 s; ok=10, changed=3, failed=0 | 60.106 s; ok=10, changed=3, failed=0 |
|
||||
| Unchanged staging rerun | 41.499 s; ok=10, changed=0, failed=0 | 45.487 s; ok=10, changed=0, failed=0 |
|
||||
| Actual human approval | `vsun1`, 03:04:01 | `vsun1`, 03:11:18 |
|
||||
| Production deployment | 03:04:05.208–03:05:05.611; 60.403 s | 03:11:21.802–03:12:28.037; 66.234 s |
|
||||
| Verified quantity 3 total | USD 30 in both environments | USD 36 in both environments |
|
||||
|
||||
Both runs passed twelve control tests and three Flask tests, clean-source
|
||||
scanning, all nine locked dependency audits (zero advisories), and pre-push and
|
||||
registry-digest image gates (two analyzed targets, zero HIGH/CRITICAL findings).
|
||||
No exception was added. Each source-SHA image was built once, pushed, pulled
|
||||
and promoted by the same exact digest across staging and production.
|
||||
|
||||
Repository: `git.yebilly.me/ssw590-group1/pricing`
|
||||
|
||||
```text
|
||||
v1 sha256:59c880b2704f91668618d9a2ff0bc8fbab0af4239ceb916de261863890ef88d8
|
||||
v2 sha256:efe8658a0adf0854038d58199652030cbd0ef70047a1c6ebc7b09906cf1ec88b
|
||||
```
|
||||
|
||||
The four selectors in `delivery/releases/` are copied unchanged from these
|
||||
successful Jenkins builds. They include the real source/configuration SHAs,
|
||||
digest, environment, expected version/total, build URL and creation time.
|
||||
They pass `release.py verify` and need review/commit before recovery. Earlier
|
||||
failed-attempt records were not substituted. Full reports and actual approval
|
||||
records remain archived in Jenkins; exact local copies are retained in ignored
|
||||
`build/evidence/assignment8-execution/jenkins-{5,6}/`.
|
||||
[Machine-readable summary](releases-20261115.json) includes recaps, timestamps,
|
||||
scan counts and full image-report SHA-256 hashes.
|
||||
|
||||
## Production monitoring, applied only after healthy v1
|
||||
|
||||
At 03:08:11 the previously reviewed production `/health` target and panel 8
|
||||
were applied. The guarded helper required healthy production, compared earlier
|
||||
probes/panels, validated the candidate with installed promtool, saved protected
|
||||
backups and preserved both bind-mounted file inodes. Prometheus reloaded via
|
||||
SIGHUP; Grafana provisioned the changed file. No container, volume, retention,
|
||||
allowlist, credential or existing alert rule was replaced. The first dry-run
|
||||
cleanup needed root inside Prometheus because docker cp created a root-owned
|
||||
temporary file; that was corrected before active application.
|
||||
|
||||
[Applied metadata](monitoring-applied-20261115.json) records hashes and backup
|
||||
`/root/ssw590-delivery-bootstrap/monitoring-20261116/`.
|
||||
[Actual samples and targets](monitoring-runtime-20261115.json), observed at
|
||||
03:14:11, showed production, Gitea and Jenkins probe_success=1, all six scrape
|
||||
targets up and successful reload=1. The dashboard source retained its previous
|
||||
seven panels; the actual Grafana UI also displayed the new pricing panel and
|
||||
its data. A legacy SQL dashboard lookup returned no row, so it was not used
|
||||
as proof of provisioning.
|
||||
|
||||
Prometheus supports [runtime SIGHUP reload](https://prometheus.io/docs/prometheus/latest/configuration/configuration/).
|
||||
Grafana's [file provisioning](https://grafana.com/docs/grafana/latest/administration/provisioning/)
|
||||
detects dashboard changes; visible runtime verification was performed separately.
|
||||
|
||||
## Observed availability during v2 promotion
|
||||
|
||||
The [post-release capture](runtime-20261115.json) at 03:28:08 verified both
|
||||
environments as healthy v2 with the exact source SHA, HTTP 200 for identity,
|
||||
health and total 36, and HTTP 400 for quantity 0. Both containers had zero OOM
|
||||
events and no observed memory-limit events in that capture.
|
||||
|
||||
The production probe history contains one failed sample at **03:11:54.602**
|
||||
during v2's 03:11:21.802–03:12:28.037 deployment window. Adjacent successful
|
||||
samples were 03:11:24.602 and 03:12:24.602. The capture preserves exact HTTP
|
||||
status and duration samples. A single failed 30-second-cadence sample does
|
||||
not establish an exact 30-second outage or zero downtime between other samples.
|
||||
The interval is shorter than the existing one-minute alert duration; no alert
|
||||
firing or notification is claimed without separate evidence. The single-host
|
||||
Compose replacement is not blue/green or highly available deployment.
|
||||
|
||||
The Grafana screenshot is retained in the manual's image folder. Production
|
||||
rollback and deliberate staging failure/recovery remain **unexecuted** pending
|
||||
review of the successful records and preserved staging-only configuration fault.
|
||||
See [the recovery exercise instructions](../exercises/README.md).
|
||||
@@ -0,0 +1,604 @@
|
||||
{
|
||||
"observed_at": "2026-11-16T03:28:08.004273+00:00",
|
||||
"endpoints": {
|
||||
"staging": [
|
||||
{
|
||||
"path": "/",
|
||||
"http_status": 200,
|
||||
"body": {
|
||||
"commit": "6bddbfba5a36e0e397537678ffb197e101fb0670",
|
||||
"service": "Startup Pricing",
|
||||
"version": "v2"
|
||||
}
|
||||
},
|
||||
{
|
||||
"path": "/health",
|
||||
"http_status": 200,
|
||||
"body": {
|
||||
"status": "ok",
|
||||
"version": "v2"
|
||||
}
|
||||
},
|
||||
{
|
||||
"path": "/price?quantity=3",
|
||||
"http_status": 200,
|
||||
"body": {
|
||||
"currency": "USD",
|
||||
"quantity": 3,
|
||||
"total": 36
|
||||
}
|
||||
},
|
||||
{
|
||||
"path": "/price?quantity=0",
|
||||
"http_status": 400,
|
||||
"body": {
|
||||
"error": "quantity must be between 1 and 1000"
|
||||
}
|
||||
}
|
||||
],
|
||||
"production": [
|
||||
{
|
||||
"path": "/",
|
||||
"http_status": 200,
|
||||
"body": {
|
||||
"commit": "6bddbfba5a36e0e397537678ffb197e101fb0670",
|
||||
"service": "Startup Pricing",
|
||||
"version": "v2"
|
||||
}
|
||||
},
|
||||
{
|
||||
"path": "/health",
|
||||
"http_status": 200,
|
||||
"body": {
|
||||
"status": "ok",
|
||||
"version": "v2"
|
||||
}
|
||||
},
|
||||
{
|
||||
"path": "/price?quantity=3",
|
||||
"http_status": 200,
|
||||
"body": {
|
||||
"currency": "USD",
|
||||
"quantity": 3,
|
||||
"total": 36
|
||||
}
|
||||
},
|
||||
{
|
||||
"path": "/price?quantity=0",
|
||||
"http_status": 400,
|
||||
"body": {
|
||||
"error": "quantity must be between 1 and 1000"
|
||||
}
|
||||
}
|
||||
]
|
||||
},
|
||||
"containers": {
|
||||
"staging": {
|
||||
"running": true,
|
||||
"oom_killed": false,
|
||||
"health": "healthy",
|
||||
"memory_events": "low 0\nhigh 0\nmax 0\noom 0\noom_kill 0\noom_group_kill 0\n"
|
||||
},
|
||||
"production": {
|
||||
"running": true,
|
||||
"oom_killed": false,
|
||||
"health": "healthy",
|
||||
"memory_events": "low 0\nhigh 0\nmax 0\noom 0\noom_kill 0\noom_group_kill 0\n"
|
||||
}
|
||||
},
|
||||
"monitoring_samples": {
|
||||
"probe_success": [
|
||||
{
|
||||
"metric": {
|
||||
"__name__": "probe_success",
|
||||
"instance": "https://app.yebilly.me/health",
|
||||
"job": "https"
|
||||
},
|
||||
"values": [
|
||||
[
|
||||
1794798504.602,
|
||||
"1"
|
||||
],
|
||||
[
|
||||
1794798534.602,
|
||||
"1"
|
||||
],
|
||||
[
|
||||
1794798564.602,
|
||||
"1"
|
||||
],
|
||||
[
|
||||
1794798594.602,
|
||||
"1"
|
||||
],
|
||||
[
|
||||
1794798624.602,
|
||||
"1"
|
||||
],
|
||||
[
|
||||
1794798654.602,
|
||||
"1"
|
||||
],
|
||||
[
|
||||
1794798684.602,
|
||||
"1"
|
||||
],
|
||||
[
|
||||
1794798714.602,
|
||||
"0"
|
||||
],
|
||||
[
|
||||
1794798744.602,
|
||||
"1"
|
||||
],
|
||||
[
|
||||
1794798774.602,
|
||||
"1"
|
||||
],
|
||||
[
|
||||
1794798804.602,
|
||||
"1"
|
||||
],
|
||||
[
|
||||
1794798834.602,
|
||||
"1"
|
||||
],
|
||||
[
|
||||
1794798864.602,
|
||||
"1"
|
||||
],
|
||||
[
|
||||
1794798894.602,
|
||||
"1"
|
||||
],
|
||||
[
|
||||
1794798924.602,
|
||||
"1"
|
||||
],
|
||||
[
|
||||
1794798954.602,
|
||||
"1"
|
||||
],
|
||||
[
|
||||
1794798984.602,
|
||||
"1"
|
||||
],
|
||||
[
|
||||
1794799014.602,
|
||||
"1"
|
||||
],
|
||||
[
|
||||
1794799044.602,
|
||||
"1"
|
||||
],
|
||||
[
|
||||
1794799074.602,
|
||||
"1"
|
||||
],
|
||||
[
|
||||
1794799104.602,
|
||||
"1"
|
||||
],
|
||||
[
|
||||
1794799134.602,
|
||||
"1"
|
||||
],
|
||||
[
|
||||
1794799164.602,
|
||||
"1"
|
||||
],
|
||||
[
|
||||
1794799194.602,
|
||||
"1"
|
||||
],
|
||||
[
|
||||
1794799224.602,
|
||||
"1"
|
||||
],
|
||||
[
|
||||
1794799254.602,
|
||||
"1"
|
||||
],
|
||||
[
|
||||
1794799284.602,
|
||||
"1"
|
||||
],
|
||||
[
|
||||
1794799314.602,
|
||||
"1"
|
||||
],
|
||||
[
|
||||
1794799344.602,
|
||||
"1"
|
||||
],
|
||||
[
|
||||
1794799374.602,
|
||||
"1"
|
||||
],
|
||||
[
|
||||
1794799404.602,
|
||||
"1"
|
||||
],
|
||||
[
|
||||
1794799434.602,
|
||||
"1"
|
||||
],
|
||||
[
|
||||
1794799464.602,
|
||||
"1"
|
||||
],
|
||||
[
|
||||
1794799494.602,
|
||||
"1"
|
||||
],
|
||||
[
|
||||
1794799524.602,
|
||||
"1"
|
||||
],
|
||||
[
|
||||
1794799554.602,
|
||||
"1"
|
||||
],
|
||||
[
|
||||
1794799584.602,
|
||||
"1"
|
||||
],
|
||||
[
|
||||
1794799614.602,
|
||||
"1"
|
||||
],
|
||||
[
|
||||
1794799644.602,
|
||||
"1"
|
||||
],
|
||||
[
|
||||
1794799674.602,
|
||||
"1"
|
||||
]
|
||||
]
|
||||
}
|
||||
],
|
||||
"probe_http_status_code": [
|
||||
{
|
||||
"metric": {
|
||||
"__name__": "probe_http_status_code",
|
||||
"instance": "https://app.yebilly.me/health",
|
||||
"job": "https"
|
||||
},
|
||||
"values": [
|
||||
[
|
||||
1794798504.602,
|
||||
"200"
|
||||
],
|
||||
[
|
||||
1794798534.602,
|
||||
"200"
|
||||
],
|
||||
[
|
||||
1794798564.602,
|
||||
"200"
|
||||
],
|
||||
[
|
||||
1794798594.602,
|
||||
"200"
|
||||
],
|
||||
[
|
||||
1794798624.602,
|
||||
"200"
|
||||
],
|
||||
[
|
||||
1794798654.602,
|
||||
"200"
|
||||
],
|
||||
[
|
||||
1794798684.602,
|
||||
"200"
|
||||
],
|
||||
[
|
||||
1794798714.602,
|
||||
"502"
|
||||
],
|
||||
[
|
||||
1794798744.602,
|
||||
"200"
|
||||
],
|
||||
[
|
||||
1794798774.602,
|
||||
"200"
|
||||
],
|
||||
[
|
||||
1794798804.602,
|
||||
"200"
|
||||
],
|
||||
[
|
||||
1794798834.602,
|
||||
"200"
|
||||
],
|
||||
[
|
||||
1794798864.602,
|
||||
"200"
|
||||
],
|
||||
[
|
||||
1794798894.602,
|
||||
"200"
|
||||
],
|
||||
[
|
||||
1794798924.602,
|
||||
"200"
|
||||
],
|
||||
[
|
||||
1794798954.602,
|
||||
"200"
|
||||
],
|
||||
[
|
||||
1794798984.602,
|
||||
"200"
|
||||
],
|
||||
[
|
||||
1794799014.602,
|
||||
"200"
|
||||
],
|
||||
[
|
||||
1794799044.602,
|
||||
"200"
|
||||
],
|
||||
[
|
||||
1794799074.602,
|
||||
"200"
|
||||
],
|
||||
[
|
||||
1794799104.602,
|
||||
"200"
|
||||
],
|
||||
[
|
||||
1794799134.602,
|
||||
"200"
|
||||
],
|
||||
[
|
||||
1794799164.602,
|
||||
"200"
|
||||
],
|
||||
[
|
||||
1794799194.602,
|
||||
"200"
|
||||
],
|
||||
[
|
||||
1794799224.602,
|
||||
"200"
|
||||
],
|
||||
[
|
||||
1794799254.602,
|
||||
"200"
|
||||
],
|
||||
[
|
||||
1794799284.602,
|
||||
"200"
|
||||
],
|
||||
[
|
||||
1794799314.602,
|
||||
"200"
|
||||
],
|
||||
[
|
||||
1794799344.602,
|
||||
"200"
|
||||
],
|
||||
[
|
||||
1794799374.602,
|
||||
"200"
|
||||
],
|
||||
[
|
||||
1794799404.602,
|
||||
"200"
|
||||
],
|
||||
[
|
||||
1794799434.602,
|
||||
"200"
|
||||
],
|
||||
[
|
||||
1794799464.602,
|
||||
"200"
|
||||
],
|
||||
[
|
||||
1794799494.602,
|
||||
"200"
|
||||
],
|
||||
[
|
||||
1794799524.602,
|
||||
"200"
|
||||
],
|
||||
[
|
||||
1794799554.602,
|
||||
"200"
|
||||
],
|
||||
[
|
||||
1794799584.602,
|
||||
"200"
|
||||
],
|
||||
[
|
||||
1794799614.602,
|
||||
"200"
|
||||
],
|
||||
[
|
||||
1794799644.602,
|
||||
"200"
|
||||
],
|
||||
[
|
||||
1794799674.602,
|
||||
"200"
|
||||
]
|
||||
]
|
||||
}
|
||||
],
|
||||
"probe_duration_seconds": [
|
||||
{
|
||||
"metric": {
|
||||
"__name__": "probe_duration_seconds",
|
||||
"instance": "https://app.yebilly.me/health",
|
||||
"job": "https"
|
||||
},
|
||||
"values": [
|
||||
[
|
||||
1794798504.602,
|
||||
"0.057399797"
|
||||
],
|
||||
[
|
||||
1794798534.602,
|
||||
"0.028300941"
|
||||
],
|
||||
[
|
||||
1794798564.602,
|
||||
"0.023132207"
|
||||
],
|
||||
[
|
||||
1794798594.602,
|
||||
"0.021246711"
|
||||
],
|
||||
[
|
||||
1794798624.602,
|
||||
"0.023551593"
|
||||
],
|
||||
[
|
||||
1794798654.602,
|
||||
"0.023607454"
|
||||
],
|
||||
[
|
||||
1794798684.602,
|
||||
"0.182590187"
|
||||
],
|
||||
[
|
||||
1794798714.602,
|
||||
"0.080492206"
|
||||
],
|
||||
[
|
||||
1794798744.602,
|
||||
"0.048286408"
|
||||
],
|
||||
[
|
||||
1794798774.602,
|
||||
"0.021541103"
|
||||
],
|
||||
[
|
||||
1794798804.602,
|
||||
"0.082225976"
|
||||
],
|
||||
[
|
||||
1794798834.602,
|
||||
"0.026266413"
|
||||
],
|
||||
[
|
||||
1794798864.602,
|
||||
"0.021229488"
|
||||
],
|
||||
[
|
||||
1794798894.602,
|
||||
"0.026039405"
|
||||
],
|
||||
[
|
||||
1794798924.602,
|
||||
"0.024995092"
|
||||
],
|
||||
[
|
||||
1794798954.602,
|
||||
"0.026780972"
|
||||
],
|
||||
[
|
||||
1794798984.602,
|
||||
"0.022616423"
|
||||
],
|
||||
[
|
||||
1794799014.602,
|
||||
"0.079699801"
|
||||
],
|
||||
[
|
||||
1794799044.602,
|
||||
"0.023901787"
|
||||
],
|
||||
[
|
||||
1794799074.602,
|
||||
"0.029992619"
|
||||
],
|
||||
[
|
||||
1794799104.602,
|
||||
"0.022638427"
|
||||
],
|
||||
[
|
||||
1794799134.602,
|
||||
"0.082084913"
|
||||
],
|
||||
[
|
||||
1794799164.602,
|
||||
"0.03257138"
|
||||
],
|
||||
[
|
||||
1794799194.602,
|
||||
"0.028129282"
|
||||
],
|
||||
[
|
||||
1794799224.602,
|
||||
"0.02010407"
|
||||
],
|
||||
[
|
||||
1794799254.602,
|
||||
"0.081311747"
|
||||
],
|
||||
[
|
||||
1794799284.602,
|
||||
"0.027378471"
|
||||
],
|
||||
[
|
||||
1794799314.602,
|
||||
"0.020048075"
|
||||
],
|
||||
[
|
||||
1794799344.602,
|
||||
"0.018652785"
|
||||
],
|
||||
[
|
||||
1794799374.602,
|
||||
"0.019703541"
|
||||
],
|
||||
[
|
||||
1794799404.602,
|
||||
"0.020952708"
|
||||
],
|
||||
[
|
||||
1794799434.602,
|
||||
"0.020200855"
|
||||
],
|
||||
[
|
||||
1794799464.602,
|
||||
"0.081365277"
|
||||
],
|
||||
[
|
||||
1794799494.602,
|
||||
"0.030027777"
|
||||
],
|
||||
[
|
||||
1794799524.602,
|
||||
"0.020230579"
|
||||
],
|
||||
[
|
||||
1794799554.602,
|
||||
"0.028499939"
|
||||
],
|
||||
[
|
||||
1794799584.602,
|
||||
"0.024388546"
|
||||
],
|
||||
[
|
||||
1794799614.602,
|
||||
"0.02259808"
|
||||
],
|
||||
[
|
||||
1794799644.602,
|
||||
"0.030377942"
|
||||
],
|
||||
[
|
||||
1794799674.602,
|
||||
"0.080982268"
|
||||
]
|
||||
]
|
||||
}
|
||||
]
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,68 @@
|
||||
# Reviewed recovery exercises
|
||||
|
||||
V1 and v2 have now completed Jenkins releases 5 and 6 with real human approvals.
|
||||
The four successful records in `../releases/` were reviewed in PR 27.
|
||||
Builds 8–10 completed both exercises; see [results](../evidence/recovery-20261115.md).
|
||||
The commands below remain the reproducible procedure, not a request to repeat
|
||||
the completed fault. Do not use failed attempts' records.
|
||||
|
||||
The patch here is a deliberate **staging-only** configuration fault: Gunicorn
|
||||
binds to 8001 while the unchanged image healthcheck probes 8000. It changes no
|
||||
image, host port, credential, shared service, production command or stored data.
|
||||
The reviewed Jenkins `staging-failure` mode requires a staging record and uses
|
||||
that record's existing v2 digest; it does not publish/rebuild an image.
|
||||
|
||||
## Commit and review sequence
|
||||
|
||||
1. Commit the actual release records, evidence, monitoring helper, manual and
|
||||
this patch while the active template remains correct.
|
||||
2. Apply this patch and commit the one changed template as
|
||||
`Exercise staging-only Gunicorn bind mismatch`.
|
||||
3. Immediately revert that second commit, creating a third commit. The final
|
||||
branch/main template must be good; the bad configuration survives only as
|
||||
a reviewed historical commit selected explicitly by SHA for the exercise.
|
||||
4. Billy reviews all three commits, including the intermediate configuration
|
||||
fault and its restoration. Use a merge commit, preserving history.
|
||||
|
||||
After the first commit, the two configuration commits can be made with:
|
||||
|
||||
```powershell
|
||||
git apply delivery/exercises/staging-bind-mismatch.patch
|
||||
git add delivery/ansible/templates/compose.yaml.j2
|
||||
git commit -m "Exercise staging-only Gunicorn bind mismatch"
|
||||
git revert --no-edit HEAD
|
||||
```
|
||||
|
||||
## Execution after review/merge
|
||||
|
||||
First record the planned healthy production rollback decision and start the
|
||||
HTTPS observer. Use `MODE=rollback-production` and
|
||||
`RELEASE_RECORD=delivery/releases/v1-production.json`. The approved operation
|
||||
must restore v1's exact image/configuration, source SHA and total 30. This is
|
||||
an exercise on healthy v2, not a claimed production incident. A real human
|
||||
must approve the Jenkins production input.
|
||||
|
||||
Then start a separate staging observer and select:
|
||||
|
||||
```text
|
||||
MODE=staging-failure
|
||||
RELEASE_RECORD=delivery/releases/v2-staging.json
|
||||
STAGING_FAILURE_CONFIG=<full SHA of the reviewed bind-mismatch commit>
|
||||
```
|
||||
|
||||
The SHA must be the actual preserved intermediate commit, not the final
|
||||
revert or an invented placeholder. Leave SOURCE_COMMIT blank so the job uses
|
||||
reviewed current main for its control code. Compose wait must block within
|
||||
its 90-second bound and stop before production. Preserve that failure.
|
||||
|
||||
Recover with `MODE=recover-staging` and the same good v2 staging record, leaving
|
||||
STAGING_FAILURE_CONFIG blank. It must restore the recorded good configuration,
|
||||
verify source/version/total 36, and pass the unchanged rerun with changed=0.
|
||||
Save decision/start/completion times, recaps, observer samples and monitoring
|
||||
correlation. Samples cannot establish zero interruption between requests.
|
||||
|
||||
Both exercises are complete. The actual fault SHA is
|
||||
`1e23001e7303d14630cfa97c8de36f31f30b81a0`, immediately reverted by
|
||||
`29e580c4613f00a02f44bce0dbcee2fd8fdc83ae`. Main and live staging are good;
|
||||
the fault is selected only by the explicit staging exercise. Production remains
|
||||
v1 after its successful rollback.
|
||||
@@ -0,0 +1,13 @@
|
||||
diff --git a/delivery/ansible/templates/compose.yaml.j2 b/delivery/ansible/templates/compose.yaml.j2
|
||||
--- a/delivery/ansible/templates/compose.yaml.j2
|
||||
+++ b/delivery/ansible/templates/compose.yaml.j2
|
||||
@@ -1,6 +1,9 @@
|
||||
services:
|
||||
app:
|
||||
image: "{{ release_image }}"
|
||||
+{% if target_env == 'staging' %}
|
||||
+ command: ["gunicorn", "--bind", "0.0.0.0:8001", "--workers", "1", "--worker-tmp-dir", "/tmp", "app:app"]
|
||||
+{% endif %}
|
||||
restart: unless-stopped
|
||||
read_only: true
|
||||
tmpfs:
|
||||
@@ -0,0 +1,12 @@
|
||||
{
|
||||
"release_image": "git.yebilly.me/ssw590-group1/pricing@sha256:59c880b2704f91668618d9a2ff0bc8fbab0af4239ceb916de261863890ef88d8",
|
||||
"expected_commit": "34f26e6948b7001ede8ca19f23b67a02082e6a9a",
|
||||
"configuration_commit": "34f26e6948b7001ede8ca19f23b67a02082e6a9a",
|
||||
"expected_version": "v1",
|
||||
"expected_total": 30,
|
||||
"proxy_network": "gitea_web",
|
||||
"build_url": "https://ci.yebilly.me/job/secure-delivery/job/pricing/5/",
|
||||
"created_at": "2026-11-16T03:01:23.246375+00:00",
|
||||
"target_env": "production",
|
||||
"public_url": "https://app.yebilly.me"
|
||||
}
|
||||
@@ -0,0 +1,12 @@
|
||||
{
|
||||
"release_image": "git.yebilly.me/ssw590-group1/pricing@sha256:59c880b2704f91668618d9a2ff0bc8fbab0af4239ceb916de261863890ef88d8",
|
||||
"expected_commit": "34f26e6948b7001ede8ca19f23b67a02082e6a9a",
|
||||
"configuration_commit": "34f26e6948b7001ede8ca19f23b67a02082e6a9a",
|
||||
"expected_version": "v1",
|
||||
"expected_total": 30,
|
||||
"proxy_network": "gitea_web",
|
||||
"build_url": "https://ci.yebilly.me/job/secure-delivery/job/pricing/5/",
|
||||
"created_at": "2026-11-16T03:01:23.246375+00:00",
|
||||
"target_env": "staging",
|
||||
"public_url": "https://staging.yebilly.me"
|
||||
}
|
||||
@@ -0,0 +1,12 @@
|
||||
{
|
||||
"release_image": "git.yebilly.me/ssw590-group1/pricing@sha256:efe8658a0adf0854038d58199652030cbd0ef70047a1c6ebc7b09906cf1ec88b",
|
||||
"expected_commit": "6bddbfba5a36e0e397537678ffb197e101fb0670",
|
||||
"configuration_commit": "6bddbfba5a36e0e397537678ffb197e101fb0670",
|
||||
"expected_version": "v2",
|
||||
"expected_total": 36,
|
||||
"proxy_network": "gitea_web",
|
||||
"build_url": "https://ci.yebilly.me/job/secure-delivery/job/pricing/6/",
|
||||
"created_at": "2026-11-16T03:06:40.913173+00:00",
|
||||
"target_env": "production",
|
||||
"public_url": "https://app.yebilly.me"
|
||||
}
|
||||
@@ -0,0 +1,12 @@
|
||||
{
|
||||
"release_image": "git.yebilly.me/ssw590-group1/pricing@sha256:efe8658a0adf0854038d58199652030cbd0ef70047a1c6ebc7b09906cf1ec88b",
|
||||
"expected_commit": "6bddbfba5a36e0e397537678ffb197e101fb0670",
|
||||
"configuration_commit": "6bddbfba5a36e0e397537678ffb197e101fb0670",
|
||||
"expected_version": "v2",
|
||||
"expected_total": 36,
|
||||
"proxy_network": "gitea_web",
|
||||
"build_url": "https://ci.yebilly.me/job/secure-delivery/job/pricing/6/",
|
||||
"created_at": "2026-11-16T03:06:40.913173+00:00",
|
||||
"target_env": "staging",
|
||||
"public_url": "https://staging.yebilly.me"
|
||||
}
|
||||
@@ -0,0 +1,6 @@
|
||||
rules:
|
||||
- id: ssw590-synthetic-secret
|
||||
category: course-test
|
||||
title: SSW590 synthetic blocked-gate fixture
|
||||
severity: HIGH
|
||||
regex: 'SSW590_SYNTHETIC_SECRET_[A-Z0-9]{16}'
|
||||
@@ -23,3 +23,13 @@ metrics.yebilly.me {
|
||||
respond @denied 403
|
||||
reverse_proxy grafana:3000
|
||||
}
|
||||
|
||||
# Assignment 8: apply after both DNS names resolve to The-Ocean. Containers
|
||||
# publish no host ports; the existing proxy reaches their private aliases.
|
||||
staging.yebilly.me {
|
||||
reverse_proxy pricing-staging:8000
|
||||
}
|
||||
|
||||
app.yebilly.me {
|
||||
reverse_proxy pricing-production:8000
|
||||
}
|
||||
|
||||
@@ -0,0 +1,57 @@
|
||||
# Manual runner migration evidence
|
||||
|
||||
Requested by Vincent on 14 November 2026, Eastern time. Server timestamps below
|
||||
are UTC on 15 November. No commit, push, new registration or scope change occurred.
|
||||
|
||||
- Baseline 04:24 UTC: 1,967 MiB RAM, 860 MiB available, 338 MiB swap used;
|
||||
root disk 55% used, 11 GiB available (rounded by df).
|
||||
- Exported the existing compiler image, verified the transfer archive SHA-256
|
||||
`faf56b61af1187b6dad0f1e27b1ec47bed282ffe52aee9c458c13a88ee02849a`,
|
||||
then loaded it on The-Ocean. Image ID matches the original tested image:
|
||||
`sha256:5d24657a4578977fc7709165b82fc869f09a654a58ab4a0c8defd9d2cd662d5d`.
|
||||
- Stopped the idle laptop runner before copying its existing registration
|
||||
directly over pinned SSH into the remote Docker volume. Identity was
|
||||
validated quietly, mode 0600; no value was output or written into the repo.
|
||||
Name `ssw590-vince-local`, label `latex-local`, capacity one and repository
|
||||
scope remain unchanged. The laptop volume/image are retained as fallback.
|
||||
- At 04:31 UTC the remote daemon declared successfully. The initial 96 MiB
|
||||
daemon cap was insufficient during action setup: Docker recorded an OOM
|
||||
event at 04:32:18 and restart count 1. Run 12 attempt 2 / job 13 was canceled.
|
||||
Its failure log is retained; its orphan container, network and two task-only
|
||||
volumes were removed after validation, preserving shared volumes.
|
||||
- Raised only the daemon to 192 MiB RAM / 256 MiB RAM+swap, with GOMEMLIMIT
|
||||
128 MiB and 0.25 CPU. Compiler job caps remain 512 MiB / 768 MiB, 0.5 CPU,
|
||||
256 PIDs, no published ports and no automatic job Docker socket mount.
|
||||
- [Run 12, attempt 3, job 14](https://git.yebilly.me/ssw590-group1/vpn-dns-gateway/actions/runs/12/jobs/14)
|
||||
succeeded on the remote runner. Source is reviewed main commit
|
||||
`8beefde2a4983888effb79526e527303e60a1a82`; this reruns Assignment 7 source,
|
||||
not the uncommitted Assignment 8 preparation. Setup 2m33s, checkout 9s,
|
||||
compile 1m42s, PDF upload 5s, diagnostics upload 2s, completion 1s; total 4m32s.
|
||||
- Diagnostics supplied by Vincent in `build/evidence/run-12/` confirm source
|
||||
SHA, run 12, suffix `+build.12.8beefde`, TeX Live 2022, latexmk 4.79,
|
||||
Git 2.39.5 and Node 22.23.3. The PDF is 9,059,039 bytes and its SHA-256
|
||||
matches diagnostics:
|
||||
`f81fd73d8fd975d8d61164948a977c4048ee93e38b656904334835f6b5c29c8b`.
|
||||
Its title was visually verified as `5.1+build.12.8beefde`.
|
||||
- Browser download waiting timed out and the debugger then detached. Vincent
|
||||
supplied diagnostics; the exact attempt-3 PDF was retrieved using read-only
|
||||
artifact metadata and gzip payload over pinned administrator SSH, without
|
||||
changing server data. Original expired attempt-1 metadata was preserved.
|
||||
- At 04:41 UTC during compilation: 738 MiB host RAM available, 354 MiB swap
|
||||
used; sampled compiler working set 142.4 MiB, daemon 20.43 MiB. A later
|
||||
idle check found no active jobs, daemon restarts 0 and no current OOM flag.
|
||||
These samples do not prove concurrency capacity or uninterrupted service.
|
||||
- The idle daemon restarted and declared successfully again at 04:55:52 UTC.
|
||||
`unless-stopped` is configured; a complete Droplet reboot was not performed.
|
||||
- Final post-migration check: all ten service/agent/builder containers running;
|
||||
Gitea, Jenkins login and Grafana login returned private HTTP 200. Host RAM
|
||||
available 840 MiB, swap used 358 MiB, root disk 61% used with 9.2 GiB
|
||||
available after removing the verified compiler transfer archive. Both laptop
|
||||
daemons were confirmed exited. Protected identities and prior evidence remain.
|
||||
|
||||
Raw logs, runtime checks and artifact verification are under ignored
|
||||
`build/evidence/assignment8-manual-runner/`; the user-provided diagnostics and
|
||||
verified CI PDF remain in `build/evidence/run-12/`. Existing service checks and
|
||||
the final local manual build are recorded separately. Both active runners
|
||||
now run on The-Ocean; keep manual compilation and delivery releases sequential.
|
||||
The assignment's actual app releases and recovery evidence remain pending.
|
||||
@@ -0,0 +1,78 @@
|
||||
# Manual Actions runner on The-Ocean
|
||||
|
||||
Vincent requested this migration on 14 November 2026 after moving the Jenkins
|
||||
delivery agent. This replaces the active laptop runner; it does not create
|
||||
another registration or expand its repository scope. The historical runner
|
||||
name `ssw590-vince-local` and label `latex-local` remain for workflow compatibility.
|
||||
The container is `ssw590-manual-runner`, under `/opt/ssw590-manual-runner`.
|
||||
|
||||
## Configuration and ownership
|
||||
|
||||
- Gitea runner 2.3.0, pinned to the same official image digest as the laptop.
|
||||
- Same tested compiler image `ssw590-manual-ci:20261007`, ID
|
||||
`sha256:5d24657a4578977fc7709165b82fc869f09a654a58ab4a0c8defd9d2cd662d5d`.
|
||||
- Runner: 192 MiB RAM / 256 MiB RAM+swap, 0.25 CPU, one job at a time.
|
||||
The first 96 MiB trial was killed during action setup; that attempt is retained
|
||||
in migration evidence. Compiler jobs have a separate 512 MiB / 768 MiB cap,
|
||||
0.5 CPU and 256 PID cap. Resource limits are ceilings, not reserved memory.
|
||||
- Runner and job containers publish no ports. Existing Gitea HTTPS and TLS
|
||||
verification remain enabled. Cache server stays disabled.
|
||||
- Registration lives in the host's `ssw590-local-runner-data` Docker volume,
|
||||
`/data/.runner`, mode 0600 in a 0700 directory. Never print it, place it in
|
||||
Git or share it as evidence. The stopped laptop copy is an intentional fallback.
|
||||
- `unless-stopped` reconnects the daemon after Docker/host restarts. No server
|
||||
reboot is needed for installation. Only restart an idle runner.
|
||||
- Admission checks pause new jobs below 3 GiB free disk or 600 MiB available
|
||||
host RAM. This does not reserve resources or lock Jenkins out. Run manual
|
||||
builds and Jenkins delivery releases sequentially on this single-CPU host.
|
||||
- VS maintains the runner; BY retains Droplet administration. Existing Droplet
|
||||
billing applies; no new instance or plan change was made.
|
||||
|
||||
The runner can administer host Docker. Automatic socket mounting into jobs is
|
||||
disabled, jobs are not privileged, capabilities are dropped, and arbitrary
|
||||
workflow bind mounts remain disallowed. Runner 2.x does not comprehensively
|
||||
filter workflow container options, so only the trusted team may edit these
|
||||
workflows. Co-location gives a compromised Docker-authorized workflow a path
|
||||
to the shared host; these settings are not strong isolation from untrusted code.
|
||||
See [official runner configuration](https://docs.gitea.com/runner/2/configuration/).
|
||||
|
||||
## Reconnect and stop
|
||||
|
||||
From an authorized administrator SSH session:
|
||||
|
||||
```sh
|
||||
sh /opt/ssw590-manual-runner/start.sh
|
||||
cd /opt/ssw590-manual-runner
|
||||
docker compose ps
|
||||
docker compose logs --tail 30
|
||||
python3 verify.py
|
||||
# Only when idle:
|
||||
docker compose stop
|
||||
```
|
||||
|
||||
The start helper requires existing identity and compiler image; it never
|
||||
registers a new runner. `verify.py` validates identity quietly and prints only
|
||||
non-secret runtime settings. It can capture compiler-job limits while a job runs.
|
||||
No account token is required in shell arguments, environment or repository.
|
||||
|
||||
## Migration and fallback
|
||||
|
||||
The migration exported the existing compiler image, verified the transfer
|
||||
archive SHA-256 and loaded image ID, stopped the laptop daemon, then streamed
|
||||
its existing registration directly from Docker Desktop through pinned SSH into
|
||||
the remote Docker volume using `import-identity.sh`. The import refuses to
|
||||
overwrite an identity. It is a one-time operation; do not rerun it here.
|
||||
Original laptop volumes and images remain intact.
|
||||
|
||||
To return temporarily to the laptop, first stop the remote runner while idle,
|
||||
then use `gitea/local-runner/runner.ps1 -Action Start -AllowLaptopFallback`.
|
||||
Stop the laptop copy before restarting the remote one. Never connect both
|
||||
copies of the registration. The label intentionally remains `latex-local`.
|
||||
|
||||
After grading, only when instructed, retain needed evidence, stop this runner
|
||||
and remove only its explicitly identified container, network and state volume.
|
||||
Retire the Gitea registration only when no fallback is needed. Never prune the
|
||||
host or remove shared Gitea/Jenkins/proxy/monitoring state.
|
||||
|
||||
Source for image/state handling:
|
||||
[Gitea Docker installation](https://docs.gitea.com/runner/2/installation/docker/).
|
||||
@@ -0,0 +1,5 @@
|
||||
#!/bin/sh
|
||||
# Pause fetching new jobs when the shared host has less than 600 MiB available.
|
||||
# This is admission control, not a reservation or cross-engine execution lock.
|
||||
set -eu
|
||||
awk '/^MemAvailable:/ { found=1; if ($2 < 614400) exit 1 } END { if (!found) exit 1 }' /proc/meminfo
|
||||
@@ -0,0 +1,32 @@
|
||||
name: ssw590-manual-runner
|
||||
services:
|
||||
runner:
|
||||
image: docker.io/gitea/runner@sha256:66d80966792e621c9761c47919644198d35fd1c297e9a01e69ed3c1ae37db0c7
|
||||
container_name: ssw590-manual-runner
|
||||
working_dir: /data
|
||||
entrypoint: ["gitea-runner"]
|
||||
command: ["--config", "/config.yaml", "daemon"]
|
||||
restart: unless-stopped
|
||||
stop_grace_period: 70s
|
||||
environment:
|
||||
GOMEMLIMIT: 128MiB
|
||||
volumes:
|
||||
- runner-data:/data
|
||||
- ./config.yaml:/config.yaml:ro
|
||||
- ./admission-check.sh:/admission-check.sh:ro
|
||||
- /var/run/docker.sock:/var/run/docker.sock
|
||||
mem_limit: 192m
|
||||
memswap_limit: 256m
|
||||
cpus: 0.25
|
||||
pids_limit: 128
|
||||
security_opt: ["no-new-privileges:true"]
|
||||
cap_drop: ["ALL"]
|
||||
logging:
|
||||
driver: json-file
|
||||
options:
|
||||
max-size: "10m"
|
||||
max-file: "3"
|
||||
volumes:
|
||||
runner-data:
|
||||
external: true
|
||||
name: ssw590-local-runner-data
|
||||
@@ -0,0 +1,24 @@
|
||||
log:
|
||||
level: info
|
||||
runner:
|
||||
file: /data/.runner
|
||||
capacity: 1
|
||||
timeout: 30m
|
||||
shutdown_timeout: 60s
|
||||
insecure: false
|
||||
labels:
|
||||
- "latex-local:docker://ssw590-manual-ci:20261007"
|
||||
cache:
|
||||
enabled: false
|
||||
container:
|
||||
privileged: false
|
||||
valid_volumes: []
|
||||
docker_host: "-"
|
||||
force_pull: false
|
||||
options: "--memory=512m --memory-swap=768m --cpus=0.5 --pids-limit=256 --cap-drop=ALL --security-opt=no-new-privileges"
|
||||
health_check:
|
||||
enabled: true
|
||||
min_free_disk_space_mb: 3072
|
||||
script: /admission-check.sh
|
||||
interval: 15s
|
||||
timeout: 5s
|
||||
@@ -0,0 +1,10 @@
|
||||
#!/bin/sh
|
||||
# Root-operated, one-time stdin import. Never print or stage registration in Git.
|
||||
set -eu
|
||||
test "$(id -u)" = 0
|
||||
docker volume create ssw590-local-runner-data >/dev/null
|
||||
docker run --rm -i --network none --user 0:0 --entrypoint sh \
|
||||
--mount type=volume,source=ssw590-local-runner-data,target=/data \
|
||||
docker.io/gitea/runner@sha256:66d80966792e621c9761c47919644198d35fd1c297e9a01e69ed3c1ae37db0c7 \
|
||||
-c 'set -eu; test ! -e /data/.runner; umask 077; cat > /data/.runner; test -s /data/.runner; chmod 700 /data; chmod 600 /data/.runner'
|
||||
echo 'Registration imported into protected Docker volume; values not printed.'
|
||||
@@ -0,0 +1,10 @@
|
||||
#!/bin/sh
|
||||
# Root-operated reconnect only; an existing protected registration is required.
|
||||
set -eu
|
||||
cd /opt/ssw590-manual-runner
|
||||
docker image inspect ssw590-manual-ci:20261007 >/dev/null
|
||||
docker volume inspect ssw590-local-runner-data >/dev/null
|
||||
docker compose config --quiet
|
||||
docker compose run --rm -T --no-deps --entrypoint sh runner -c 'test -s /data/.runner'
|
||||
docker compose up -d
|
||||
docker compose ps
|
||||
@@ -0,0 +1,59 @@
|
||||
"""Read-only, non-secret runner/runtime checks. Run as root on The-Ocean."""
|
||||
import json
|
||||
import stat
|
||||
import subprocess
|
||||
from datetime import datetime, timezone
|
||||
from pathlib import Path
|
||||
|
||||
|
||||
def run(*args):
|
||||
return subprocess.check_output(args, text=True).strip()
|
||||
|
||||
|
||||
template = ('{"state":{{json .State}},"host":{{json .HostConfig}},'
|
||||
'"mounts":{{json .Mounts}},"image":{{json .Config.Image}},'
|
||||
'"restart_count":{{.RestartCount}}}')
|
||||
|
||||
|
||||
def inspect(name):
|
||||
# Fetch selected fields, never container environment variables.
|
||||
info = json.loads(run('docker', 'inspect', '--format', template, name))
|
||||
state, host = info['state'], info['host']
|
||||
return {
|
||||
'name': name, 'image': info['image'], 'running': state['Running'],
|
||||
'oom_killed': state['OOMKilled'], 'memory_bytes': host['Memory'],
|
||||
'restart_count': info['restart_count'],
|
||||
'memory_swap_bytes': host['MemorySwap'], 'nano_cpus': host['NanoCpus'],
|
||||
'restart_policy': host['RestartPolicy']['Name'],
|
||||
'port_bindings': host['PortBindings'],
|
||||
'mount_destinations': [mount['Destination'] for mount in info['mounts']],
|
||||
}
|
||||
|
||||
|
||||
root = Path(run('docker', 'volume', 'inspect', '--format', '{{.Mountpoint}}', 'ssw590-local-runner-data'))
|
||||
identity = root / '.runner'
|
||||
registration = json.loads(identity.read_text())
|
||||
assert registration.get('name') == 'ssw590-vince-local'
|
||||
assert registration.get('address', '').rstrip('/') == 'https://git.yebilly.me'
|
||||
assert isinstance(registration.get('token'), str) and registration['token']
|
||||
assert stat.S_IMODE(identity.stat().st_mode) == 0o600
|
||||
# Registration is checked in memory only. Do not serialize any of its values.
|
||||
report = {'observed_at': datetime.now(timezone.utc).isoformat(),
|
||||
'registration_validated_without_output': True, 'identity_mode': '0600',
|
||||
'runner': inspect('ssw590-manual-runner'), 'active_jobs': []}
|
||||
assert report['runner']['running'] and not report['runner']['oom_killed']
|
||||
for name in run('docker', 'ps', '--format', '{{.Names}}').splitlines():
|
||||
if name.startswith('GITEA-ACTIONS-TASK-'):
|
||||
job = inspect(name)
|
||||
assert job['memory_bytes'] == 512 * 1024 * 1024
|
||||
assert job['memory_swap_bytes'] == 768 * 1024 * 1024
|
||||
assert job['nano_cpus'] == 500000000
|
||||
assert '/var/run/docker.sock' not in job['mount_destinations']
|
||||
report['active_jobs'].append(job)
|
||||
report['admission_check'] = run('docker', 'exec', 'ssw590-manual-runner', 'sh', '-c', '/admission-check.sh && echo passed')
|
||||
report['compiler_image_id'] = run('docker', 'image', 'inspect', '--format', '{{.Id}}', 'ssw590-manual-ci:20261007')
|
||||
assert report['compiler_image_id'] == 'sha256:5d24657a4578977fc7709165b82fc869f09a654a58ab4a0c8defd9d2cd662d5d'
|
||||
report['memory'] = run('free', '-m')
|
||||
report['disk'] = run('df', '-h', '/')
|
||||
report['result'] = 'passed'
|
||||
print(json.dumps(report, indent=2))
|
||||
@@ -1,5 +1,12 @@
|
||||
# Local Gitea runner (Assignment 5 preparation)
|
||||
|
||||
**Current placement, 14 November 2026:** the active runner has moved to
|
||||
The-Ocean. This directory preserves the original laptop configuration and
|
||||
historical setup. See [`../droplet-runner/README.md`](../droplet-runner/README.md).
|
||||
The laptop copy is stopped; Register/Start now require `-AllowLaptopFallback`
|
||||
after stopping the remote copy. Never run both registrations simultaneously.
|
||||
The setup instructions below describe the original October installation.
|
||||
|
||||
Run from the repository root in PowerShell with Docker Desktop's Linux engine running:
|
||||
|
||||
```powershell
|
||||
|
||||
@@ -1,9 +1,13 @@
|
||||
[CmdletBinding()]
|
||||
param(
|
||||
[ValidateSet('Check', 'Register', 'Start', 'Logs', 'Stop')]
|
||||
[string]$Action = 'Check'
|
||||
[string]$Action = 'Check',
|
||||
[switch]$AllowLaptopFallback
|
||||
)
|
||||
$ErrorActionPreference = 'Stop'
|
||||
if ($Action -in @('Register', 'Start') -and -not $AllowLaptopFallback) {
|
||||
throw 'This runner now runs on The-Ocean. Stop the remote copy first, then pass -AllowLaptopFallback for an intentional laptop fallback. Never run both copies of the registration.'
|
||||
}
|
||||
$composeFile = Join-Path $PSScriptRoot 'compose.yaml'
|
||||
$composeArgs = @('compose', '--project-name', 'ssw590-local-runner', '-f', $composeFile)
|
||||
$runnerImage = 'docker.io/gitea/runner@sha256:66d80966792e621c9761c47919644198d35fd1c297e9a01e69ed3c1ae37db0c7'
|
||||
|
||||
@@ -1,7 +1,20 @@
|
||||
This group document records the SSW 590 coursework and its supporting
|
||||
commands, designs, and evidence. Assignment 7 introduces site reliability
|
||||
This group manual records SSW 590 coursework, commands, designs and evidence.
|
||||
Assignment 8 delivers a locked Flask/Gunicorn service through a trusted Jenkins
|
||||
agent, security gates, Ansible, scoped credentials and human approval. Reviewed
|
||||
builds 5 and 6 promoted v1/v2 by exact digest; both unchanged staging reruns
|
||||
passed with zero changes. Production monitoring is live. After review of the
|
||||
release records and fault/revert history, build 8 restored the original v1
|
||||
production image and configuration with Vincent's approval. Build 9 blocked
|
||||
the staging-only port mismatch; build 10 restored v2 with changed=0. Final
|
||||
production is v1 (total 30), staging v2 (total 36). Finer HTTPS sampling recorded
|
||||
nine failed production requests during rollback and 169 during the staging
|
||||
fault. The 30-second probe missed the brief rollback interruption but captured
|
||||
an earlier v2-release dip; zero downtime is not claimed. Technical demonstrations
|
||||
are complete, and this version is for group submission review. The tracking
|
||||
issue's late creation during finalization is disclosed.
|
||||
Assignment 7 introduced site reliability
|
||||
engineering: Prometheus, Grafana OSS, Node Exporter, and Blackbox Exporter
|
||||
run as four pinned containers beside Gitea and Jenkins on the 1\,GiB
|
||||
run as four pinned containers beside Gitea and Jenkins on the originally 1\,GiB
|
||||
DigitalOcean droplet, with Grafana at \url{https://metrics.yebilly.me/login}
|
||||
for approved networks only. A dashboard shows host CPU, memory, and disk and
|
||||
the HTTPS availability of Gitea and Jenkins. A 99\% availability objective is
|
||||
@@ -11,3 +24,5 @@ shown firing and resolving; the availability rule through a planned Jenkins
|
||||
outage that was detected in about two minutes and recovered about a minute
|
||||
after restart. Earlier chapters retain the group's prior assignment
|
||||
results, including the Jenkins merge gate and the Gitea Actions manual build.
|
||||
On November 14 the team resized the droplet to 2\,GiB without enlarging its
|
||||
disk, updated packages and verified the existing services.
|
||||
|
||||
@@ -779,3 +779,330 @@ changed. The missed pre-deployment build observation remains a limitation;
|
||||
later results do not recreate it. Commits, pushes, peer approval, and submission
|
||||
remain with the group. This local revision is not described as an Actions
|
||||
artifact or as already approved in Gitea.
|
||||
|
||||
\section{Assignment 8 Secure Delivery Preparation and Agent Setup}
|
||||
Date: November 14, 2026; Tool: OpenAI Codex; Human: Vincent Sun.
|
||||
Inputs: Vincent's request to implement the next assignment today, instructor
|
||||
manual 1.43 Chapter 6 and Examples.zip, the Canvas assignment page, repository
|
||||
AI requirements/guide, earlier configuration, and live read-only service checks.
|
||||
Vincent retained commits/pushes and reported Billy unavailable until tonight.
|
||||
Codex read the assignment, preserved prior work, verified remote main
|
||||
\texttt{8beefde}, and created \texttt{codex/assignment8-secure-delivery}.
|
||||
It adapted the instructor's v1 and Ansible starters, locked dependencies and
|
||||
tool images, prepared a dedicated delivery pipeline, scan policy, immutable
|
||||
release validation, idempotence gate, failure modes, observer and runbooks.
|
||||
The original instructor authorship remains identified.
|
||||
|
||||
Human/AI corrections and execution: Vincent supplied his encrypted-key SSH
|
||||
command and enabled Windows ssh-agent, initially also unloading the key; Codex
|
||||
explained reloading it and keeping passphrases out of chat. Browser-console
|
||||
and network limitations were distinguished from successful access. Vincent
|
||||
resized The-Ocean to 2\,GiB while retaining disk size and applied host updates;
|
||||
Codex verified resource and existing-service status. With authorization to
|
||||
continue setup, Codex backed up Jenkins/Gitea, configured the restricted deploy
|
||||
key and root sudo, separate package-scoped tokens under vsun1, folder-scoped
|
||||
Jenkins credentials, exclusive laptop agent and disabled release job. Secret
|
||||
values were transferred only through protected runtime storage and were not
|
||||
printed or placed in Git. Agent prerequisite build 1 passed with real credential
|
||||
binding, strict SSH host-key checking and noninteractive sudo.
|
||||
|
||||
Checks/corrections: local v1 tests passed; a generated wrong-price test failed
|
||||
as intended; the scanner-supported synthetic fixture blocked delivery; the
|
||||
dependency audit and final runtime-image gate passed their configured policies.
|
||||
Earlier Debian and installer-containing Alpine scans failed and were retained;
|
||||
Codex selected the Alpine runtime and removed unused pip/ensurepip without
|
||||
adding scanner exceptions. The installed Jenkins parser rejected the initial
|
||||
timestamps option because its plugin is absent; Codex removed that option and
|
||||
retained explicit UTC evidence. Browser editor insertion briefly concatenated
|
||||
two validation snippets; the editor was cleared and the read-only validation
|
||||
repeated successfully. The host setup script compiled against installed plugin
|
||||
classes before application. Ansible syntax and agent Compose checks passed.
|
||||
|
||||
Outputs used: \ChapterRef{SecureDelivery}, version 6.0 preparation, the adapted
|
||||
application/toolchain, pipeline and control tests, bootstrap, runbooks, issue
|
||||
draft, planned proxy and production-monitoring additions, actual prerequisite
|
||||
inventory, Hosts/Passwords hints, history and this record. Existing Billy/Claude
|
||||
records are unchanged. Source/configuration release SHAs and registry digests
|
||||
have not been invented. The local preflight image explicitly identifies itself
|
||||
as uncommitted preparation, not a reviewed release.
|
||||
|
||||
Unresolved items: application DNS requires the domain owner's access; distinct
|
||||
names are explicitly required, so path-only routing was rejected as a substitute.
|
||||
Vincent/Billy must create the issue, commit/push and review/merge v1 and later
|
||||
changes. Real Jenkins blocked-gate runs, v1/v2 publication, interactive production
|
||||
approvals, idempotence, both recovery exercises, timing/monitoring correlation
|
||||
and final submission review remain pending. Proxy/monitoring additions are not
|
||||
deployed before DNS and healthy production. No commit, push, peer review,
|
||||
production approval or submission was performed by Codex.
|
||||
|
||||
Later on November 14, Vincent explicitly authorized Codex to make the local
|
||||
preparation commit \texttt{bf28adc}; Vincent pushed it, and Codex verified the
|
||||
remote branch and passing Jenkins head check. At Vincent's further request,
|
||||
Codex prepared \path{delivery/BILLY-CLAUDE-DNS-HANDOFF.md} for Billy/Claude,
|
||||
including the two selected A records, Namecheap instructions checked against
|
||||
official documentation, current public DNS observations, verification commands
|
||||
and a DNS-only boundary. The provider's default nameservers and existing
|
||||
Gitea/Jenkins/Grafana A records were observed; the two new names still returned
|
||||
NXDOMAIN. No DNS setting was changed, and the handoff itself grants no account
|
||||
authorization. Billy must authorize DNS work in his own session.
|
||||
|
||||
Later that evening, Vincent directed moving the delivery agent onto the now
|
||||
2\,GiB droplet because campus Wi-Fi had blocked SSH and the final presentation
|
||||
must demonstrate the workflow. Codex checked repository state and host capacity,
|
||||
transferred the existing tool image with matching archive SHA-256 and image ID,
|
||||
stopped the laptop copy, and reused the protected node identity on The-Ocean.
|
||||
It added a private WebSocket route, host-gateway SSH mapping with the existing
|
||||
pinned key alias, 512/768 MiB agent and 256/384 MiB BuildKit RAM/RAM+swap caps,
|
||||
half a CPU each, a guarded laptop fallback and versioned verification helpers.
|
||||
The first builder setup exposed a socket-group mismatch (laptop 0, host 987);
|
||||
the helper was corrected to detect the host group, and Docker access succeeded.
|
||||
The first browser build request used stale session state; reloading allowed the
|
||||
existing preflight job to run. Build 2 passed with real credential binding,
|
||||
strict SSH verification and sudo. A separate 87-second preparation trial passed
|
||||
control/app tests, source/dependency checks, capped build, full image gate and
|
||||
temporary HTTP smoke. Swap increased and agent memory-limit events occurred;
|
||||
no OOM kill was recorded. Existing services passed private HTTP checks, and
|
||||
agent restart/reconnect passed. This does not establish full release performance.
|
||||
An initial CLI artifact download returned HTTP 403; evidence was retrieved over
|
||||
authorized SSH instead. A complex shell diagnostic had a quoting error and was
|
||||
replaced by a versioned read-only Python check. No credential values were output.
|
||||
|
||||
Codex updated the diagram, current host/credential hints, runbooks, DNS handoff,
|
||||
preparation evidence, history and this log, and rebuilt/reviewed the local manual.
|
||||
The older PDF runner remains on the laptop; campus browser access still needs
|
||||
rehearsal. Shared-host Docker administration is an explicit lab trade-off.
|
||||
No firewall rule, credential scope, review requirement or production approval
|
||||
was relaxed. DNS, assessed releases and recovery exercises remain pending.
|
||||
No additional commit or push was authorized or performed for this migration.
|
||||
|
||||
\section{Actions Runner Migration for the Presentation}
|
||||
Date requested: November 14, 2026; Tool: OpenAI Codex; Human: Vincent Sun.
|
||||
Vincent then explicitly requested moving the first (Gitea Actions) runner to
|
||||
the droplet too. Codex read the runner/workflow sources and repository rules,
|
||||
checked headroom, and transferred the tested compiler image with matching
|
||||
archive checksum and image ID. It stopped the idle laptop daemon before
|
||||
streaming the existing registration over pinned SSH into protected Docker
|
||||
storage. No registration value was printed, staged in the repository, or
|
||||
replaced; the legacy name/label and repository scope were preserved.
|
||||
|
||||
Codex added versioned remote Compose, admission, reconnect/import and read-only
|
||||
verification helpers plus a guarded laptop fallback. The first 96 MiB daemon
|
||||
cap was too low: a real OOM event and restart occurred during action setup.
|
||||
Codex canceled that attempt, retained its log and runtime evidence, raised
|
||||
the daemon to 192/256 MiB RAM/RAM+swap with 0.25 CPU, and retried. Separate
|
||||
compiler job limits remained 512/768 MiB and 0.5 CPU. Run 12 attempt 3, job 14,
|
||||
passed checkout, compilation and both uploads in 4m32s. It used reviewed main
|
||||
\texttt{8beefde}, not the uncommitted Assignment 8 source. After a browser
|
||||
download-wait timeout and debugger detachment, Vincent supplied diagnostics
|
||||
in run-12. Codex retrieved the exact PDF through read-only artifact metadata
|
||||
and storage over SSH, verified its checksum against those diagnostics, and
|
||||
visually checked \texttt{5.1+build.12.8beefde}. This does not demonstrate the
|
||||
pending application releases or recovery exercises.
|
||||
|
||||
The corrected daemon had no restart during the successful run; idle restart
|
||||
and declaration succeeded at 04:55:52 UTC on November 15. Codex identified
|
||||
the canceled job's orphaned resources for cleanup, preserved registration and
|
||||
shared services, and updated operations, migration evidence, host/credential
|
||||
hints, history and this record. Both active runners are on The-Ocean; no new
|
||||
cloud instance or resize was made. Resource admission does not coordinate
|
||||
Jenkins, so manual builds and delivery releases must run sequentially. Shared
|
||||
Docker authority remains a documented trust trade-off. Campus browser rehearsal,
|
||||
DNS and assessed delivery remain pending. No further commit or push was requested.
|
||||
|
||||
\section{DNS, HTTPS and Team Account Check}
|
||||
Date: November 15, 2026; Tool: OpenAI Codex; Human: Vincent Sun; DNS: Billy Ye.
|
||||
Vincent reported that Billy had added the records but HTTPS was unavailable,
|
||||
and asked for server-side correction. Codex checked repository instructions,
|
||||
status, official Caddy HTTPS documentation, live DNS, proxy configuration and
|
||||
container state. It verified that the prepared routes were absent and app
|
||||
backends undeployed. A guarded helper first stopped on CRLF/LF comparison;
|
||||
normalizing only line endings confirmed the earlier routes matched. Codex
|
||||
validated the candidate, saved a protected backup and gracefully reloaded Caddy
|
||||
while preserving the bind inode, prior routes, allowlists and certificate state.
|
||||
Google/Cloudflare answers and normal curl/Python checks verified DNS, trusted
|
||||
hostname-matching TLS and HTTP 308 redirects. HTTPS 502 was correctly recorded
|
||||
as missing backend deployment, not a certificate failure or healthy release.
|
||||
Existing service checks passed. No DNS account, firewall or application release
|
||||
was changed; production monitoring remains pending.
|
||||
|
||||
Vincent also requested a team-account check for access recovery. Codex queried
|
||||
only account IDs/status/role flags and Jenkins profile-header IDs, never password
|
||||
hashes, tokens or email fields. The expected Billy accounts were present, and
|
||||
the existing vsun1 Gitea site-admin role was confirmed and corrected in the
|
||||
hints table. Grafana's vsun1 remains Viewer. No password was recovered or reset,
|
||||
and no permission was changed. Codex explained the distinction between checking
|
||||
an account, recovering a password-manager copy and resetting an existing login.
|
||||
It updated current readiness records, the preserved DNS handoff, history and
|
||||
this log, then rebuilt and visually checked the local manual. Source changes
|
||||
remain uncommitted; peer review, app releases, approvals and recoveries remain pending.
|
||||
|
||||
\section{Delivery Gates and SSH Correction}
|
||||
Date: November 15, 2026; Tool: OpenAI Codex; Human: Vincent Sun.
|
||||
Vincent reported the merge complete and asked Codex to continue and finish the
|
||||
assignment, then requested continuation after his usage limit reset. Codex read
|
||||
the repository requirements and guide, verified PR~\#24's latest Billy review
|
||||
and merged main \texttt{09731ac}, and synchronized a clean local branch
|
||||
\texttt{codex/assignment8-release-evidence}. Vincent retains commits/pushes;
|
||||
no additional commit or push was authorized or performed.
|
||||
|
||||
After the merge-triggered Actions manual build finished, Codex enabled the
|
||||
reviewed pricing job and initialized a MODE choice parameter for its first
|
||||
negative demonstration. The Jenkinsfile then installed its normal parameters.
|
||||
Pricing builds 1 and 2 actually stopped the wrong-price and synthetic-secret
|
||||
fixtures before publication/deployment. Build 3 passed normal tests and all
|
||||
security gates and published/pulled a real v1 digest, but Ansible's default
|
||||
PTY request conflicted with the deploy key's intentional no-PTY restriction.
|
||||
Gathering Facts was unreachable with zero changes; no app or production
|
||||
approval was reached. Earlier plain-SSH prerequisites had not exercised
|
||||
Ansible's default terminal behavior, so they had missed this integration gap.
|
||||
|
||||
Codex checked the official Ansible 2.21 SSH option documentation, set the
|
||||
inventory's \texttt{ansible\_ssh\_use\_tty=false}, and extended the administrator
|
||||
preflight to bind the existing credentials and run \texttt{id -u} through
|
||||
Ansible/become without a terminal. Preflight build 3 passed and returned 0.
|
||||
The job's read-only command reports CHANGED by module default; this is not an
|
||||
application deployment/idempotence result. No key restriction, host pin,
|
||||
credential scope, review gate or human approval was weakened.
|
||||
|
||||
Codex preserved exact reports and metadata over pinned SSH, wrote dated
|
||||
non-secret evidence and a focused PR description, updated this chapter/history
|
||||
and the incomplete draft status, and rebuilt/reviewed the local PDF. The
|
||||
source correction must be committed, reviewed and merged before a new v1 run.
|
||||
Published-but-undeployed attempt records are not presented as known-good
|
||||
rollback records. Successful promotions, human approvals, both recoveries and
|
||||
monitoring correlation remain unexecuted.
|
||||
|
||||
\section{Pricing Health Deadline and v2 Preparation}
|
||||
Date: November 15, 2026 Eastern (November 16 UTC); Tool: OpenAI Codex;
|
||||
Human: Vincent Sun. After Vincent reported the fix merged, Codex checked the
|
||||
repository requirements/status, verified Billy's PR~\#25 approval and merge
|
||||
\texttt{a19fab3}, synchronized a clean branch and ran pricing build 4. Tests,
|
||||
scans, publication and initial staging verification passed. The unchanged
|
||||
rerun stopped because Docker reported the container unhealthy; no production
|
||||
approval or deployment occurred. The noninteractive SSH correction worked.
|
||||
|
||||
Codex inspected only the staging container's health/state, logs, resource
|
||||
counters and public health endpoint. Probes near three seconds sometimes hit
|
||||
the three-second deadline; the app later recovered without restart and no OOM
|
||||
kill was recorded. Codex tested a ten-second overall deadline in an isolated
|
||||
temporary container using the same reviewed image and constraints, with no
|
||||
network, published port or proxy alias. Eight checks passed in 2.817--5.660
|
||||
seconds; CPU throttling occurred, but no diagnostic memory-limit/OOM event.
|
||||
The diagnostic container was removed by its exact created ID. Its code/raw
|
||||
JSON and actual build-4 reports were preserved. Existing staging was unchanged.
|
||||
|
||||
Codex changed only the image's overall health deadline, retaining the two-second
|
||||
HTTP request timeout and other health/security/resource settings. It prepared
|
||||
the required v2 source/test change locally; three functional and twelve control
|
||||
tests passed. Docker Desktop was unavailable, so the functional tests used the
|
||||
existing Windows Flask installation (Werkzeug 3.1.8 rather than the deployment
|
||||
lock's 3.1.9); this was not represented as a passed locked Jenkins release.
|
||||
Both remote runners remain independent of the laptop Docker daemon.
|
||||
|
||||
To reduce review cycles, Codex prepared instructions for two commits in one PR:
|
||||
v1 health correction first, then v2 app/tests. A merge commit must preserve
|
||||
both reviewed source SHAs for explicit Jenkins selection. No commit, push,
|
||||
review or production approval was performed by Codex. It updated current
|
||||
staging inventory, architecture, evidence, runbooks, history and this log,
|
||||
and rebuilt/visually reviewed the ignored local PDF. Successful releases,
|
||||
unchanged reruns, human approvals, known-good records and both recovery
|
||||
exercises remain pending.
|
||||
|
||||
\section{Reviewed Releases and Production Monitoring}
|
||||
Date: November 15, 2026 Eastern (November 16 UTC); Tool: OpenAI Codex;
|
||||
Human: Vincent Sun; Reviewer: Billy Ye. Vincent reported the merge complete
|
||||
and asked Codex to continue. Codex reread repository requirements/status,
|
||||
verified Billy's PR~\#26 review and the preserved v1/v2 commits, synchronized
|
||||
main and created a local recovery-evidence branch. It waited for Actions
|
||||
workflow 15 to finish before running the two delivery releases sequentially.
|
||||
No source commit or push was performed by Codex.
|
||||
|
||||
Build 5 selected v1 source/configuration \texttt{34f26e6}; build 6 selected v2
|
||||
\texttt{6bddbfb}. Both passed actual tests, scans, staging deployment and
|
||||
unchanged reruns. Codex requested a real human approval at each Jenkins input;
|
||||
Vincent clicked the approvals himself. Codex verified the recorded
|
||||
\texttt{vsun1} identities and UTC times (03:04:01 and 03:11:18), subsequent
|
||||
production assertions and SUCCESS results. It copied the four exact generated
|
||||
selectors unchanged, verified them and preserved full archives, scan hashes,
|
||||
recaps and timing summaries. V1 total 30 and v2 total 36 were actual pipeline
|
||||
checks in both environments, not inferred from source alone.
|
||||
|
||||
After healthy v1, Codex applied the previously reviewed production probe/panel
|
||||
using a guarded administrator helper: compare prior probes/panels, validate,
|
||||
back up, preserve bind inodes, SIGHUP Prometheus and observe Grafana provisioning.
|
||||
The first dry-run cleanup used Prometheus's non-root service user for a
|
||||
root-owned temporary file; it was corrected before live application. A legacy
|
||||
Grafana SQL lookup returned no dashboard row, so it was not treated as proof.
|
||||
The earlier Grafana tab could not be attached; a fresh tab in the same Chrome
|
||||
session displayed the actual provisioned panel and data. Live Prometheus
|
||||
queries confirmed the new probe, prior targets and reload success. Official
|
||||
Prometheus/Grafana documentation supported the reload/provisioning procedure.
|
||||
No credentials, allowlists, retention or existing alerts were changed.
|
||||
|
||||
Post-release HTTPS captures verified both healthy v2 containers, exact source,
|
||||
total 36 and invalid-input HTTP 400. The production history contained one
|
||||
HTTP 502 sample at 03:11:54.602 UTC during v2 replacement, bounded by successful
|
||||
samples 60 seconds apart. Codex preserved this interruption rather than claiming
|
||||
zero downtime or an unobserved notification. It prepared the successful records
|
||||
and staging-only bind-mismatch patch for review, with an intermediate bad commit
|
||||
and immediate revert so final main remains correct. Both recovery executions
|
||||
still require those reviewed commits and measured evidence. Codex updated
|
||||
current inventory, architecture, runbooks, history and this record, then rebuilt
|
||||
and visually checked the ignored local PDF. Existing Billy/Claude records and
|
||||
historical execution evidence were preserved.
|
||||
|
||||
\section{Completed Rollback and Staging Recovery}
|
||||
Date: November 15, 2026 Eastern (November 16 UTC); Tool: OpenAI Codex;
|
||||
Human: Vincent Sun; Reviewer of preceding PR: Billy Ye. Vincent reported
|
||||
PR~\#27 merged and asked Codex to finish. Codex reread repository requirements
|
||||
and status, fetched main, verified Billy's 04:12:09 UTC approval and Vincent's
|
||||
04:14:30 merge, and created \texttt{codex/assignment8-final-evidence} from
|
||||
\texttt{72bf10d}. Actions workflow 16 passed before recovery. No commit or
|
||||
push was performed by Codex.
|
||||
|
||||
Codex recorded the healthy-v2 rollback decision and started the reviewed HTTPS
|
||||
observer on The-Ocean. Build 7 stopped before deployment with \texttt{Cannot
|
||||
fork}; task-limit pressure was observed, but its underlying accumulation cause
|
||||
was not established. Codex restarted only the idle delivery agent without
|
||||
raising limits or changing identity, workspace or image. Build 8 passed tests
|
||||
and source gates, then requested a real human production approval. Vincent
|
||||
clicked it himself; Codex verified the archived \texttt{vsun1} identity and
|
||||
04:23:36 UTC decision. The job restored the original v1 image and matching
|
||||
configuration, then verified source, health and total 30. Its deployment took
|
||||
63.904 seconds; the observer captured nine failed requests. The original
|
||||
12.641-second gap between adjacent successful response completions is not
|
||||
claimed as an exact continuous outage.
|
||||
|
||||
A separate staging observer preceded build 9's explicitly selected reviewed
|
||||
port-mismatch configuration. The same v2 digest was retained; Compose wait
|
||||
reported unhealthy and blocked Jenkins before production. Codex captured the
|
||||
failed state and production isolation, then ran build 10 with the original
|
||||
good v2 staging record. It restored the historical playbook/template with
|
||||
\texttt{git archive}, verified v2/source/total 36 and passed changed=0 on rerun.
|
||||
The staging observer captured 169 failed requests; its adjacent successful
|
||||
responses were 172.650 seconds apart, including collection/selection and new-job
|
||||
gates as well as deployment. No image was rebuilt for either recovery.
|
||||
|
||||
Codex preserved exact Jenkins reports, hashes and actual timing. A final runtime
|
||||
capture confirmed production v1/staging v2, correct digests/configuration,
|
||||
invalid-input HTTP 400 and six targets up. The 30-second production probe
|
||||
missed the rollback interruption seen by the finer observer; the actual Grafana
|
||||
chart was flat. No alert-notification history or zero-downtime claim was
|
||||
invented. The first new Grafana screenshot was taken while its panel was still
|
||||
loading; it was replaced only after the chart visibly rendered. Both task
|
||||
observers were stopped by verified PID after post-recovery samples. Original
|
||||
CSV bytes were recopied and checked over pinned SSH; an earlier helper's
|
||||
normalized-text hash is explicitly distinguished from the original byte hash.
|
||||
Git attributes preserve the committed CSV bytes and runtime JSON line endings.
|
||||
|
||||
The assignment requires a tracking issue; none existed. Codex prepared a
|
||||
concrete issue with actual completed-run links and asked Vincent before
|
||||
publishing a project message under his account. Vincent explicitly replied
|
||||
``Yes, publish the prepared issue.'' Codex created issue~\#28 at 04:33:40 UTC
|
||||
and verified it. This late creation is disclosed, not backdated. It prepared
|
||||
the final evidence PR description, source/access links, measured timeline and
|
||||
CSV-derived figure; updated the Hosts table/diagram to production v1 and
|
||||
staging v2, Document History and this log; and prepared the complete TinyTeX
|
||||
build and visual review. Passwords hints, credentials, permissions, earlier
|
||||
coursework, Billy/Claude records and shared services were preserved.
|
||||
Vincent handles final commits/pushes and submission; Billy reviews the final PR.
|
||||
|
||||
@@ -34,16 +34,16 @@
|
||||
\definecolor{devopsLightBlue}{RGB}{232,240,247}
|
||||
|
||||
% Replace these values for each assignment.
|
||||
\newcommand{\AssignmentTitle}{Grafana and Prometheus SRE -- Group}
|
||||
\newcommand{\AssignmentNumber}{7}
|
||||
\newcommand{\DocumentVersion}{5.1}
|
||||
\newcommand{\DocumentStatus}{Draft}
|
||||
\newcommand{\AssignmentTitle}{Secure Delivery and Rollback -- Group}
|
||||
\newcommand{\AssignmentNumber}{8}
|
||||
\newcommand{\DocumentVersion}{6.4}
|
||||
\newcommand{\DocumentStatus}{For submission review}
|
||||
\newcommand{\CourseNumber}{SSW 590}
|
||||
\newcommand{\CourseName}{DevOps}
|
||||
\newcommand{\Authors}{Vincent Sun and Billy Ye}
|
||||
\newcommand{\Organization}{Stevens Institute of Technology}
|
||||
\newcommand{\DocumentDate}{10/28/2026}
|
||||
\newcommand{\DueDate}{Friday by 11:59pm}
|
||||
\newcommand{\DocumentDate}{11/15/2026}
|
||||
\newcommand{\DueDate}{November 13, 2026 (team reports an extension)}
|
||||
% CI writes this ignored file in its checkout; ordinary local builds stay unchanged.
|
||||
\providecommand{\CIBuildSuffix}{}
|
||||
\InputIfFileExists{ci-build-metadata.tex}{}{}
|
||||
@@ -148,6 +148,7 @@
|
||||
\include{devopsAutomatedManualBuild}
|
||||
\include{devopsJenkins}
|
||||
\include{devopsSRE}
|
||||
\include{devopsSecureDelivery}
|
||||
\include{devopsHostsPasswords}
|
||||
|
||||
% Restore when a chapter cites devopsReferences.bib.
|
||||
|
||||
@@ -42,6 +42,9 @@ The runner requests work from the same HTTPS service and has no public
|
||||
submission listener.
|
||||
|
||||
\section{Runner Setup}
|
||||
This section preserves the October 7 setup. The November migration recorded
|
||||
at the end of this chapter supersedes its laptop placement and start procedure.
|
||||
|
||||
The repository-scoped \gls{build-runner} \texttt{ssw590-vince-local}, version 2.3.0,
|
||||
runs as Docker container \texttt{ssw590-local-runner} on Vincent's Windows
|
||||
laptop using Docker Desktop's Linux engine. Its \texttt{latex-local} label
|
||||
@@ -353,4 +356,38 @@ was merged and issue \#12 is closed (re-checked in Gitea on October 22), and
|
||||
the merged-\texttt{main} workflow run~6 passed (verified by Vincent on
|
||||
October 21). The paragraph above is kept as the version 3.4 record.
|
||||
|
||||
\section{November 2026 Runner Migration}
|
||||
On November 14 Vincent requested moving this runner to the existing 2\,GiB
|
||||
The-Ocean droplet for the final demonstration. Codex stopped the laptop daemon,
|
||||
transferred the same compiler image with archive checksum and image-ID checks,
|
||||
and streamed the existing registration over pinned SSH directly into a protected
|
||||
Docker volume. No registration value entered the repository or output. The
|
||||
historical name \texttt{ssw590-vince-local} and label \texttt{latex-local} remain;
|
||||
the active container is \texttt{ssw590-manual-runner}. Repository scope is unchanged.
|
||||
|
||||
The first 96 MiB daemon trial exceeded its memory cap during action setup and
|
||||
restarted. Its attempt was canceled and retained as failure evidence. With the
|
||||
daemon raised to 192 MiB RAM / 256 MiB RAM+swap and 0.25 CPU, the
|
||||
\href{https://git.yebilly.me/ssw590-group1/vpn-dns-gateway/actions/runs/12/jobs/14}{run 12 attempt 3 job}
|
||||
passed checkout, compilation and both uploads in 4m32s (compilation 1m42s).
|
||||
It rebuilt reviewed main commit \texttt{8beefde}, not Assignment 8's uncommitted
|
||||
preparation. Diagnostics and the retrieved PDF checksum match; the opened title
|
||||
shows \texttt{5.1+build.12.8beefde}. This is migration evidence, not an Assignment 8 release.
|
||||
|
||||
Compiler jobs have separate 512/768 MiB RAM/RAM+swap, 0.5 CPU and 256 PID
|
||||
caps. No host port or job Docker socket mount is added. TLS checks remain
|
||||
enabled. New-job admission pauses below 600 MiB available host RAM or 3 GiB
|
||||
free disk; it does not reserve resources or coordinate Jenkins. Run manual
|
||||
builds and delivery releases sequentially. The runner still has administrative
|
||||
Docker authority over the shared host, so workflow editors remain trusted.
|
||||
|
||||
The daemon uses \texttt{unless-stopped}; idle restart/reconnect passed at
|
||||
04:55:52 UTC on November 15 (the request was November 14 Eastern).
|
||||
\path{gitea/droplet-runner/README.md} records operations and fallback;
|
||||
\path{gitea/droplet-runner/EVIDENCE.md} links the dated evidence. The original
|
||||
laptop identity/image are retained but inactive. Its helper requires
|
||||
\texttt{-AllowLaptopFallback} after stopping the remote copy. VS maintains the
|
||||
runner and BY the host; no new cloud instance or resize was made. Hosts and
|
||||
hints-only Passwords tables reflect current placement.
|
||||
|
||||
\endgroup
|
||||
|
||||
@@ -12,6 +12,14 @@ link each entry to the changed chapter, table, figure, or controlled artifact.
|
||||
\multicolumn{4}{l}{\small\itshape Document Update History (continued)}\\
|
||||
\toprule \textbf{Date / Version} & \textbf{Author Initials} & \textbf{Change} & \textbf{Changed At}\\ \midrule
|
||||
\endhead \bottomrule \endlastfoot
|
||||
November 15, 2026 / 6.4 & VS, BY, CDX & Verified Billy's PR~\#27 review and Vincent's merge; completed human-approved production rollback (build 8), blocked staging fault (9), and original-configuration recovery with changed=0 (10). Preserved build 7's pre-deployment runner error, measured HTTPS interruptions and monitoring sampling limits. Added original CSVs, hashes, runtime state, timelines, source/access links and final evidence; created issue~\#28 with Vincent's approval during finalization. Updated the Hosts table and architecture to production v1/staging v2; Passwords hints and permissions are unchanged. Prepared the complete manual for submission review. & \ChapterRef{SecureDelivery}, \ChapterRef{HostsPasswords}, \ChapterRef{AIPromptLog}\\
|
||||
November 15, 2026 / 6.3 & BY, VS, CDX & Recorded PR~\#26's review/merge and successful Jenkins v1/v2 releases 5/6, zero-change reruns, actual vsun1 approvals and identical per-release staging/production digests. Saved the four real selectors for review. Applied the reviewed production probe/panel after healthy v1, verified live targets/Grafana and preserved one HTTP 502 sample during v2 replacement. Updated both-app inventory and architecture; prepared a staging-only fault patch and reviewed-history/revert procedure for the still-pending recovery exercises. Passwords hints and access scopes are unchanged. & \ChapterRef{SecureDelivery}, \ChapterRef{HostsPasswords}, \ChapterRef{AIPromptLog}\\
|
||||
November 15, 2026 / 6.2 & VS, CDX & Verified PR~\#25's review/merge and ran pricing build 4: scans/publication and initial staging checks passed; the unchanged rerun blocked at the three-second Docker health deadline. Tested ten seconds under identical limits in an isolated temporary container: eight checks passed, then the container was removed. Prepared the health correction and separate v2 source/test change for one review preserving both commits. Updated staging inventory, diagram and actual evidence; Passwords hints are unchanged. No production approval or completed release is claimed. & \ChapterRef{SecureDelivery}, \ChapterRef{HostsPasswords}, \ChapterRef{AIPromptLog}\\
|
||||
November 15, 2026 / 6.1 & VS, CDX & Verified Billy's latest review and Vincent's merge of PR~\#24; enabled delivery and recorded real blocked-test/secret runs and the first scanned, published v1 image. Preserved the staging SSH failure before any app change. Set Ansible to avoid PTY allocation and verified its credential-bound connection/sudo path in preflight build 3; the correction awaits review/merge before a release retry. Updated current evidence and retained the incomplete-submission status. Hosts and Passwords tables are unchanged: no service, account, credential or permission was added. & \ChapterRef{SecureDelivery}, \ChapterRef{AIPromptLog}\\
|
||||
November 15, 2026 / 6.0 DNS and TLS readiness & BY, VS, CDX & Billy added staging/app DNS. Codex validated and gracefully applied the prepared Caddy routes, preserving prior services and storage; verified public DNS, trusted TLS and HTTP redirects. Recorded expected 502 responses while app backends remain undeployed. Updated current DNS/HTTPS inventory and the verified vsun1 Gitea administrator role. No passwords, permissions or releases changed. & \ChapterRef{SecureDelivery}, \ChapterRef{HostsPasswords}, \ChapterRef{AIPromptLog}\\
|
||||
November 14, 2026 / 6.0 Actions runner migration & VS, CDX & Moved the existing manual runner and compiler image to The-Ocean without re-registration. Corrected an initial low-memory failure, verified reviewed-main run 12 attempt 3, artifact checksum/title and idle restart. Added daemon/job caps, admission checks and fallback guards; updated current host/credential hints and retained October evidence. Both active runners now use the droplet. & \ChapterRef{AutomatedManualBuild}, \ChapterRef{HostsPasswords}, \ChapterRef{AIPromptLog}\\
|
||||
November 14, 2026 / 6.0 agent migration & VS, CDX & At Vincent's direction, moved the trusted delivery agent to the existing 2\,GiB droplet to remove campus SSH dependence. Added agent and builder resource caps, private deployment routing with pinned host verification, restart/fallback procedures, preflight build 2 and a passing bounded build/scan/smoke trial. Documented shared-host Docker authority, swap use and the unchanged laptop PDF runner. Updated the architecture, Hosts and hints-only Passwords tables, handoff and AI log; assessed releases and campus browser rehearsal remain pending. & \ChapterRef{SecureDelivery}, \ChapterRef{HostsPasswords}, \ChapterRef{AIPromptLog}\\
|
||||
November 14, 2026 / 6.0 preparation & VS, CDX & Prepared Assignment 8 with instructor v1 source, exact dependencies/base digest, trusted laptop Jenkins agent, security gates, Ansible, restricted production approval and recovery automation. Recorded actual local checks and passing agent prerequisite build 1. Vincent resized the droplet to 2\,GiB and updated packages; Codex configured deployment access, folder-scoped credentials and a disabled release job after backups. Added planned proxy/monitoring changes, architecture and runbooks. Updated Hosts and hints-only Passwords tables. Reviewed release commits, DNS/TLS, v1/v2 promotion, both recoveries and final evidence remain pending; this is a preparation draft. & \ChapterRef{SecureDelivery}, \ChapterRef{HostsPasswords}, \ChapterRef{AIPromptLog}\\
|
||||
October 28, 2026 / 5.1 & VS, CDX & Reviewed run-11 against instructor Chapter 5; added Vincent's external IPv4/IPv6 TCP retest (18 expected outcomes), pinned deployment links to the reviewed merge, recorded final PR approval and CI/build results, and qualified timing, sampling, and memory-pressure conclusions. Documented local TinyTeX builds to one ignored PDF. Hosts and Passwords tables are unchanged because no deployed service, account, or credential changed. & \ChapterRef{SREMonitoring}, \ChapterRef{AIPromptLog}\\
|
||||
October 28, 2026 / 5.0 & BY, CD & Assignment 7: added \ChapterRef{SREMonitoring}. Deployed Prometheus, Grafana OSS, Node Exporter, and Blackbox Exporter on The-Ocean (pinned by digest, memory-capped, no host ports) after a capacity trial on the 1\,GiB plan; disabled four unused host services and added a second swap file; added \texttt{metrics.yebilly.me} behind the Jenkins allowlist and a private probe network. Recorded the dashboard, normal-build comparison, SLI/SLO worked example and measured window, contact-point, capacity-alert, collection-health, and Jenkins-outage tests with Discord notifications, restart persistence, blameless review, and improvement issues \#20 and \#21. After an independent review of the draft: added the collection-health rule and its test, replaced the initial Grafana administrator password, ran Blackbox Exporter as non-root, and added runbooks, network and storage detail in the diagram, host CPU checks, a targets table, citations with a Bibliography, and four corrected figures. \textbf{Updated the Hosts table} (monitoring containers, ports, volumes, \texttt{metrics} DNS, swap, monitoring and backup status) and \textbf{the Passwords table} (Grafana accounts, monitoring secrets file, Discord webhook). Set the Assignment 7 title page and abstract; added glossary terms. & Title and abstract, \ChapterRef{SREMonitoring}, \ChapterRef{HostsPasswords}, \ChapterRef{AIPromptLog}\\
|
||||
October 23, 2026 / 4.2 & VS, CDX & Corrected the Jenkins lockfile link to the recorded 63-plugin revision; clarified clean reproduction, Jenkins revision selection, and the unconfirmed webhook-timeout cause. Scoped the existing update-check result to the 63 checked plugins. Theme plugins are unchanged at Vincent's direction. Hosts and Passwords tables are unchanged because no service, account, or credential changed. & \ChapterRef{JenkinsCI}, \ChapterRef{AIPromptLog}\\
|
||||
|
||||
@@ -19,6 +19,22 @@ On October 28, 2026 (\ChapterRef{SREMonitoring}) the droplet record gained
|
||||
the four monitoring containers, \texttt{metrics.yebilly.me}, the second swap
|
||||
file, and real monitoring status; the Passwords table gained the Grafana
|
||||
accounts, the monitoring secrets file, and the Discord webhook.
|
||||
On November 14, 2026 (\ChapterRef{SecureDelivery}), Vincent resized the droplet
|
||||
to 2\,GiB and updated host packages. The tables gained deployment access and a
|
||||
trusted Jenkins agent. Later that evening the agent moved from the laptop to
|
||||
The-Ocean to avoid campus SSH restrictions. Vincent then requested migrating
|
||||
the original Actions runner too; both laptop daemons are now stopped, with
|
||||
their protected fallback state retained. On November 15 Billy added the pricing
|
||||
DNS records and Codex enabled Caddy HTTPS; certificates and redirects passed,
|
||||
while the undeployed application backends returned 502. Later that evening
|
||||
(November 16 UTC), build 4 deployed staging v1 and verified its HTTPS identity
|
||||
and price; its unchanged rerun stopped on a Docker health timeout. Production
|
||||
was still absent at that point. The subsequent reviewed builds 5 and 6 promoted
|
||||
both versions with Vincent's approvals; their unchanged reruns passed.
|
||||
After PR~\#27, build 8 rolled production back to v1; build 9 blocked the
|
||||
staging-only fault; build 10 restored staging v2 with changed=0. Final production
|
||||
is v1 and staging v2. The production probe and Grafana panel were added after
|
||||
healthy production. No credential or permission changed during these runs.
|
||||
|
||||
\section{Hosts}
|
||||
\small
|
||||
@@ -34,14 +50,27 @@ Role & Gitea work hub (Gitea 1.27.3 behind Caddy 2.11.4 TLS proxy); since
|
||||
since 28 Oct 2026 also the monitoring stack (Prometheus 3.15.1, Grafana OSS
|
||||
13.2.5, Node Exporter 1.12.1, Blackbox Exporter 0.29.1). The Assignment 3 Color Buttons app (29 Sep 2026) is retired: container
|
||||
stopped with restart policy \texttt{no}; its Caddy route remains\\
|
||||
Delivery agent & Legacy node \texttt{ssw590-vince-delivery}, label
|
||||
\texttt{delivery-trusted}, one exclusive executor; image
|
||||
\texttt{ssw590-delivery-agent:20261114}. RAM / RAM+swap: 512 / 768 MiB,
|
||||
0.5 CPU; separate pinned BuildKit: 256 / 384 MiB, 0.5 CPU.
|
||||
Private WebSocket to Jenkins and SSH through Docker host gateway with pinned
|
||||
public-IP host-key alias. Docker socket control grants host administration.
|
||||
Named identity/workspace and BuildKit cache volumes stay outside Git;
|
||||
configuration under \path{/opt/ssw590-delivery-agent/}; restart unless stopped.
|
||||
Prerequisite builds 2/3 and preparation trials passed; pricing builds 5/6
|
||||
completed both promotions; builds 8--10 completed both recovery cases. Build 7
|
||||
stopped before deployment at the process limit; restarting only the idle agent
|
||||
cleared the condition without raising limits. Campus rehearsal remains pending.\\
|
||||
Environment & Course production (team use)\\
|
||||
Provider & DigitalOcean, NYC1; Ubuntu 24.04 LTS; 1 vCPU; resized from
|
||||
512\,MB to the 1\,GiB Basic plan in October 2026 (961\,MiB reported, 25\,GB
|
||||
plan disk); swap files \texttt{/swapfile} and \texttt{/swapfile2}, 1\,GiB
|
||||
512\,MB to 1\,GiB in October, then to 2\,GiB on November 14, 2026
|
||||
(1,967\,MiB reported, original 25\,GB plan disk retained); swap files \texttt{/swapfile} and \texttt{/swapfile2}, 1\,GiB
|
||||
each (second added 28 Oct 2026); \texttt{multipathd}, \texttt{fwupd},
|
||||
\texttt{udisks2}, and \texttt{ModemManager} disabled and masked\\
|
||||
Public address / DNS & IPv4 \texttt{147.182.178.136}; \texttt{A} records
|
||||
\texttt{git}, \texttt{ci}, \texttt{metrics}, and \texttt{colors} \texttt{.yebilly.me}; public
|
||||
\texttt{git}, \texttt{ci}, \texttt{metrics}, \texttt{colors}, \texttt{staging}
|
||||
and \texttt{app} \texttt{.yebilly.me}; public
|
||||
IPv6 \texttt{2604:a880:400:d1:0:5:22d:6001} assigned but not published in DNS\\
|
||||
Private services & Gitea \texttt{:3000} and Jenkins \texttt{:8080} (512\,MiB
|
||||
RAM, 0.75 CPU cap; agent port disabled) on Docker network \texttt{gitea\_web},
|
||||
@@ -54,6 +83,14 @@ each; Blackbox runs as \texttt{nobody}) on network \texttt{monitoring\_monitorin
|
||||
\texttt{gitea\_probe} (172.30.90.0/28); volumes
|
||||
\texttt{monitoring\_prometheus\_data} (7\,d / 500\,MB) and
|
||||
\texttt{monitoring\_grafana\_data}\\
|
||||
Pricing applications & Separate Compose projects/aliases
|
||||
\texttt{pricing-staging} (v2) and \texttt{pricing-production} (v1), on private
|
||||
port 8000. Each: 64/96 MiB RAM/RAM+swap, 0.25 CPU, 64 PIDs, UID 10001,
|
||||
read-only root, 16 MiB /tmp, ten-second overall health deadline and no host
|
||||
port or app data volume. Separate configuration/release directories:
|
||||
\texttt{/opt/startup/pricing-\{staging,production\}}.
|
||||
Both versions passed promotion and unchanged staging reruns; production was
|
||||
then rolled back to v1 and staging recovered to v2.\\
|
||||
Exposed ports & 443/TCP and 80/TCP to all; 22/TCP to approved team addresses only
|
||||
(Cloud Firewall \texttt{gitea-fw}); \texttt{ci.yebilly.me} and
|
||||
\texttt{metrics.yebilly.me} answer only Stevens 155.246.0.0/16 and team
|
||||
@@ -61,14 +98,23 @@ addresses (Caddy allowlist; \texttt{ci} also the probe address), 403
|
||||
otherwise; monitoring ports 9090, 9100, 9115 not reachable\\
|
||||
Owner & BY (server administration); VS (review)\\
|
||||
HTTPS URLs & \url{https://git.yebilly.me}, \url{https://ci.yebilly.me/login},
|
||||
\url{https://metrics.yebilly.me/login}\\
|
||||
Backup status & No backup job; container-replacement persistence verified for
|
||||
\url{https://metrics.yebilly.me/login}; \url{https://staging.yebilly.me} and
|
||||
\url{https://app.yebilly.me} have trusted certificates. Final verification:
|
||||
staging v2/source \texttt{6bddbfb}/total 36; production v1/source
|
||||
\texttt{34f26e6}/total 30. Both healthy; invalid input HTTP 400\\
|
||||
Backup status & No scheduled backup job; manual Gitea SQLite and Jenkins-home
|
||||
backups saved in a protected root directory before the November 14 delivery
|
||||
bootstrap. Container-replacement persistence verified for
|
||||
Gitea (\ChapterRef{GiteaFoundation}), restart persistence for Jenkins
|
||||
(\ChapterRef{JenkinsCI}) and for Prometheus and Grafana
|
||||
(\ChapterRef{SREMonitoring}); manual volume backup procedure in
|
||||
\texttt{monitoring/README.md}\\
|
||||
Monitoring status & Prometheus and Grafana: host CPU, memory, root disk, and
|
||||
HTTPS probes of Gitea and Jenkins every 30\,s; alerts \emph{HTTPS service
|
||||
HTTPS probes of Gitea, Jenkins and pricing production every 30\,s; Grafana
|
||||
retains seven earlier panels plus pricing availability. One production HTTP 502
|
||||
sample was recorded during v2 replacement. The 30-second probe missed nine
|
||||
finer observer failures during rollback (\ChapterRef{SecureDelivery}); no
|
||||
zero-downtime or app alert-notification claim is made. Existing alerts \emph{HTTPS service
|
||||
down}, \emph{Root disk space low}, and \emph{Monitoring target down} to Discord \texttt{\#devops-alerts}.
|
||||
Shares the droplet's failure domain; no external check yet (issue~\#20)\\
|
||||
\end{tabularx}
|
||||
@@ -76,19 +122,29 @@ Shares the droplet's failure domain; no external check yet (issue~\#20)\\
|
||||
|
||||
\small
|
||||
\begin{tabularx}{\linewidth}{@{}L{3.3cm}Y@{}}
|
||||
\caption{Local build runner host, added October 7, 2026\label{Table:HostsRunner}}\\
|
||||
\toprule \textbf{Field} & \textbf{Vincent's laptop (\texttt{ssw590-vince-local})}\\ \midrule
|
||||
\caption{Actions runner, added October 7 and migrated November 14, 2026\label{Table:HostsRunner}}\\
|
||||
\toprule \textbf{Field} & \textbf{Actions runner on The-Ocean}\\ \midrule
|
||||
\endfirsthead
|
||||
\toprule \textbf{Field} & \textbf{Vincent's laptop (\texttt{ssw590-vince-local})}\\ \midrule
|
||||
\toprule \textbf{Field} & \textbf{Actions runner on The-Ocean}\\ \midrule
|
||||
\endhead
|
||||
\bottomrule \endlastfoot
|
||||
Role & Repository-scoped Gitea Actions runner; manual compilation in temporary Docker job containers\\
|
||||
Environment & Windows laptop, Docker Desktop Linux engine; runner 2.3.0; capacity one job\\
|
||||
Provider / owner & Local device; VS maintains Docker Desktop, runner availability, and job image\\
|
||||
Role & Repository-scoped Gitea Actions runner; temporary manual compiler containers;
|
||||
historical registration name \texttt{ssw590-vince-local} retained\\
|
||||
Environment & Docker on The-Ocean's Ubuntu 24.04 host; runner 2.3.0;
|
||||
capacity one job; current container \texttt{ssw590-manual-runner}\\
|
||||
Provider / owner & Existing DigitalOcean host; VS maintains runner and image;
|
||||
BY retains server administration; no new instance or resize\\
|
||||
Network path & Outbound HTTPS to \texttt{git.yebilly.me:443} and GitHub Actions sources; Caddy forwards to private Gitea \texttt{:3000}; no public runner or Docker daemon port\\
|
||||
Execution label & \texttt{latex-local}; local image \texttt{ssw590-manual-ci:20261007}\\
|
||||
Persistent state & Runner registration in named Docker volume \texttt{ssw590-local-runner-data}; compiler image retained in Docker Desktop\\
|
||||
Availability & Start Docker Desktop and the versioned runner helper after reboot; laptop must remain awake for jobs\\
|
||||
Persistent state & Registration in Droplet volume \texttt{ssw590-local-runner-data},
|
||||
mode 0600; same tested compiler image on the host. Stopped laptop copy retains
|
||||
its original image and volume outside Git\\
|
||||
Availability / limits & Restart unless stopped; daemon 192/256 MiB RAM/RAM+swap,
|
||||
0.25 CPU; compiler job 512/768 MiB, 0.5 CPU. New jobs pause below 600 MiB
|
||||
available host RAM or 3 GiB free disk. Run manual and delivery work sequentially\\
|
||||
Laptop fallback & Both original daemons are stopped. Their helpers require
|
||||
\texttt{-AllowLaptopFallback} after stopping the corresponding remote copy;
|
||||
never run two copies of either identity. No active runner requires Docker Desktop\\
|
||||
Monitoring / backup & Runner logs and Gitea Actions checked manually; no automatic backup of runner registration configured\\
|
||||
\end{tabularx}
|
||||
\normalsize
|
||||
@@ -103,9 +159,23 @@ Monitoring / backup & Runner logs and Gitea Actions checked manually; no automat
|
||||
\toprule \textbf{Service / account} & \textbf{Owner} & \textbf{Where it is kept (hint)} & \textbf{Privilege}\\ \midrule
|
||||
\endhead
|
||||
\bottomrule \endlastfoot
|
||||
Gitea local runner identity & VS & Docker volume \texttt{ssw590-local-runner-data}, file \texttt{/data/.runner}; generated identity, no values in Git; registration token supplied privately from repository settings & Repository runner; Docker control on VS laptop\\
|
||||
Gitea Actions runner identity & VS & Droplet Docker volume \texttt{ssw590-local-runner-data},
|
||||
file \texttt{/data/.runner}, mode 0600; transferred over pinned SSH, no values in Git;
|
||||
stopped laptop fallback retains its copy & Repository runner; Droplet Docker control\\
|
||||
Jenkins delivery agent identity & VS & Protected Jenkins-generated identity and Droplet Docker volume
|
||||
\texttt{ssw590-delivery-identity}; stopped laptop fallback retains its copy; outside Git & Trusted Droplet agent; host Docker control\\
|
||||
Deployment SSH key & VS & Jenkins folder \texttt{secure-delivery}, credential
|
||||
\texttt{delivery-deploy-ssh}; encrypted in Jenkins home & \texttt{deploy} SSH;
|
||||
passwordless root sudo for Ansible\\
|
||||
Pinned deployment host key & VS & Same folder, file credential
|
||||
\texttt{delivery-known-hosts}; public key verified over existing pinned SSH &
|
||||
Strict host verification\\
|
||||
Package-write token & VS & Same folder, credential \texttt{delivery-registry-write};
|
||||
distinct named token under Gitea \texttt{vsun1}; no value in report & Package write only\\
|
||||
Package-read token & VS & Root Docker login configuration on The-Ocean;
|
||||
distinct named token under Gitea \texttt{vsun1}; bootstrap metadata retains name & Package read only\\
|
||||
Gitea \texttt{bill} & BY & BY's password manager & Site administrator\\
|
||||
Gitea \texttt{vsun1} & VS & VS's password manager & Repository administrator\\
|
||||
Gitea \texttt{vsun1} & VS & VS's password manager & Site administrator (verified November 15)\\
|
||||
Gitea \texttt{jenkins-bot} (added 22 Oct 2026) & BY & BY's password manager; used only to create its token & Write collaborator on \texttt{vpn-dns-gateway}\\
|
||||
\texttt{jenkins-bot} token \texttt{jenkins-ci} & BY & Jenkins credential ID \texttt{gitea-jenkins-bot} (System, Global), encrypted in volume \texttt{gitea\_jenkins-home}; revoke under the bot's Gitea Applications settings & Repository read/write; organization and user read\\
|
||||
Jenkins \texttt{billy} & BY & BY's password manager & Administer (all)\\
|
||||
|
||||
@@ -0,0 +1,732 @@
|
||||
\chapter{Secure Delivery and Rollback}
|
||||
\ChapterLabel{SecureDelivery}
|
||||
\index{secure delivery}\index{rollback}\index{Ansible}\index{immutable image}
|
||||
|
||||
\section{Scope and Current Status}
|
||||
Assignment 8 implements Chapter 6 of instructor manual version 1.43, using its
|
||||
Startup Pricing Service and the existing Gitea, Jenkins, Caddy and monitoring
|
||||
foundation. The Canvas page lists November 13, 2026 at 11:59pm; Vincent reports
|
||||
an extension. Preparation began November 14; DNS/TLS and the first reviewed
|
||||
Jenkins gate runs were verified November 15. PR~\#24 is merged, the delivery
|
||||
job is enabled, and reviewed Jenkins builds 5 and 6 successfully promoted v1
|
||||
and v2 through staging and production using exact digests. Both unchanged
|
||||
staging reruns passed with zero changes, and Vincent approved each production
|
||||
operation in Jenkins. Production monitoring is live. The actual successful
|
||||
records and staging-only fault/revert were reviewed in PR~\#27. Build 8 then
|
||||
restored healthy production v1 after Vincent's approval; build 9 blocked the
|
||||
staging fault, and build 10 restored staging v2 with changed=0. Both recovery
|
||||
cases and measured evidence are complete. The final state is production v1,
|
||||
staging v2. This version awaits final group review and submission.
|
||||
|
||||
The instructor's v1 source and tests were copied from
|
||||
\path{Examples/dosSecureDelivery/v1/} to \path{delivery/app/}. Flask validates
|
||||
requests and calculates the price; Gunicorn serves it with one worker on private
|
||||
port 8000. There is no payment processing, customer data or application volume.
|
||||
For three units v1 returns USD 30; the separate reviewed v2 release returns
|
||||
USD 36. Both were verified in staging and production. The image embeds its actual source commit during the build. Health,
|
||||
identity and pricing are verified separately.
|
||||
|
||||
\section{Deployment and Trust Boundaries}
|
||||
\begin{figure}[htbp]
|
||||
\centering
|
||||
\renewcommand{\theHfigure}{delivery.\arabic{figure}}
|
||||
\resizebox{\linewidth}{!}{%
|
||||
\begin{tikzpicture}[
|
||||
box/.style={draw=devopsBlue,rounded corners,align=center,text width=3.6cm,
|
||||
minimum height=1.5cm,font=\footnotesize,fill=white},
|
||||
data/.style={box,draw=devopsGray,fill=gray!12,font=\scriptsize},
|
||||
planned/.style={box,dashed,fill=devopsLightBlue},
|
||||
flow/.style={-{Latex},thick}, note/.style={font=\scriptsize,align=center,fill=white,inner sep=1pt}]
|
||||
\node[box] (agent) at (4.8,2.7) {Droplet delivery agent\\512 MiB / 0.5 CPU\\Docker, scans and Ansible};
|
||||
\node[data,text width=3.8cm] (local) at (0,2.7) {Agent volumes on droplet\\\texttt{ssw590-delivery-identity}\\\texttt{ssw590-delivery-workspace}};
|
||||
\node[box] (builder) at (9.6,2.7) {Pinned BuildKit builder\\256 MiB / 0.5 CPU\\Private Docker control};
|
||||
\node[box] (git) at (0,0) {Gitea + OCI registry\\\texttt{git.yebilly.me}\\SQLite retained};
|
||||
\node[box] (jenkins) at (4.8,0) {Jenkins controller\\\texttt{ci.yebilly.me}\\Schedules trusted job};
|
||||
\node[box] (host) at (9.6,0) {The-Ocean host\\\texttt{deploy} SSH account\\Python, Docker/Compose};
|
||||
\node[box] (monitor) at (0,-2.8) {Prometheus, Grafana,\\Blackbox and Node Exporter\\Private metrics ports};
|
||||
\node[box] (proxy) at (4.8,-2.8) {Caddy TLS proxy\\Public 80/443\\Private \texttt{gitea\_web} network};
|
||||
\node[box] (stage) at (9.6,-2.8) {Staging v2\\\texttt{staging.yebilly.me}\\{\scriptsize\texttt{pricing-staging:8000}}};
|
||||
\node[box] (prod) at (9.6,-5.2) {Production v1\\\texttt{app.yebilly.me}\\{\scriptsize\texttt{pricing-production:8000}}};
|
||||
\node[data,text width=12.9cm,align=left] (storage) at (4.8,-8.45) {
|
||||
\textbf{Persistent state and read-only mounts on The-Ocean}\\[3pt]
|
||||
\begin{tabular}{@{}ll@{}}
|
||||
Gitea & \texttt{gitea\_gitea-data} $\rightarrow$ \texttt{/data} (includes SQLite)\\
|
||||
Jenkins & \texttt{gitea\_jenkins-home} $\rightarrow$ \texttt{/var/jenkins\_home}\\
|
||||
Caddy certificates & \texttt{gitea\_caddy-data} $\rightarrow$ \texttt{/data}\\
|
||||
Caddy configuration & \texttt{gitea\_caddy-config} $\rightarrow$ \texttt{/config}\\
|
||||
Prometheus & \texttt{monitoring\_prometheus\_data} $\rightarrow$ \texttt{/prometheus}\\
|
||||
Grafana & \texttt{monitoring\_grafana\_data} $\rightarrow$ \texttt{/var/lib/grafana}\\
|
||||
Proxy bind mount & \texttt{/root/gitea/Caddyfile} $\rightarrow$ \texttt{/etc/caddy/Caddyfile} (ro)\\
|
||||
Monitoring mounts & \texttt{/root/monitoring/}: configuration (ro); host \texttt{/} $\rightarrow$ \texttt{/host} (ro)\\
|
||||
App configuration & \texttt{/opt/startup/pricing-\{staging,production\}}; no app data volume
|
||||
\end{tabular}};
|
||||
\node[draw,dashed,rounded corners,fit=(agent)(local)(builder)(git)(host)(monitor)(prod)(storage),
|
||||
inner sep=0.55cm,label={[font=\small]below:Existing droplet: 1 vCPU, 2 GiB RAM, 25 GB plan disk}] {};
|
||||
\draw[flow,dotted] (local)--(agent);
|
||||
\draw[flow] (agent)--node[note,right,pos=0.25]{private WS}(jenkins);
|
||||
\draw[flow] (agent)--node[note,above]{build}(builder);
|
||||
\draw[flow] (agent.south west)--node[note,above,sloped]{Git / OCI}(git.north east);
|
||||
\draw[flow] (agent.south east)--node[note,above,sloped]{SSH}(host.north west);
|
||||
\draw[flow] (git)--node[note,above]{hook}(jenkins);
|
||||
\draw[flow] (host)--node[note,right]{apply}(stage);
|
||||
\draw[flow] (host.east)--++(0.35,0)|-(prod.east);
|
||||
\draw[flow] (monitor)--node[note,above]{probe}(proxy);
|
||||
\draw[flow] (proxy)--node[note,above]{HTTP}(stage);
|
||||
\draw[flow] (proxy.south east)--node[note,above,sloped]{HTTP}(prod.north west);
|
||||
\end{tikzpicture}}
|
||||
\caption{Current architecture after both recovery cases: staging is v2 and
|
||||
production has been rolled back to v1; the production health probe is live. Gray boxes identify durable state
|
||||
or read-only mounts. Pricing is stateless; each environment retains only its
|
||||
Compose and release files on the host. The agent and builder now share the
|
||||
droplet; deployment SSH uses Docker's host gateway with the original pinned
|
||||
host-key alias. Browser access remains through Caddy HTTPS.}
|
||||
\label{Figure:SecureDeliveryArchitecture}
|
||||
\end{figure}
|
||||
|
||||
The exclusive node \texttt{ssw590-vince-delivery} has one executor and label
|
||||
\texttt{delivery-trusted}. Originally installed on Vincent's laptop, it now runs
|
||||
on The-Ocean because campus networking blocks SSH from the laptop. Its legacy
|
||||
node name is retained and its description records the new location. It connects
|
||||
to \texttt{jenkins:8080} over private HTTP/WebSocket, with no published agent
|
||||
or Docker API port. Docker socket membership (group 987 on this host) grants
|
||||
administrative control over the same host as Jenkins, Gitea and monitoring;
|
||||
containerization is not isolation from malicious Docker-authorized jobs.
|
||||
The \texttt{deploy} account's
|
||||
\texttt{NOPASSWD} sudo permits root commands for Ansible; a separate account
|
||||
does not remove that administrative authority. Its authorized key disables SSH
|
||||
forwarding and PTY allocation. The host's ED25519 key was read through the
|
||||
existing strictly pinned administrator SSH connection and stored as a Jenkins
|
||||
file credential; verification is not disabled. A mounted SSH configuration
|
||||
maps the existing inventory address to \texttt{host.docker.internal}, retaining
|
||||
\texttt{HostKeyAlias 147.182.178.136}. Thus neither the Jenkins-agent connection
|
||||
nor deployment SSH crosses campus Wi-Fi. Campus browser HTTPS access still
|
||||
needs rehearsal. The Gitea Actions PDF runner subsequently moved to The-Ocean
|
||||
too; \ChapterRef{AutomatedManualBuild} records its separate migration and real
|
||||
workflow verification. Neither active runner now requires Docker Desktop.
|
||||
Keep manual compilation and delivery releases sequential on the shared host.
|
||||
|
||||
The agent is capped at 512 MiB RAM / 768 MiB RAM+swap and 0.5 CPU, with a
|
||||
96 MiB Java heap. Its separate pinned BuildKit container is capped at 256 MiB /
|
||||
384 MiB and 0.5 CPU; builds explicitly select that builder because a Docker
|
||||
socket does not make child containers inherit agent limits. Both use
|
||||
\texttt{unless-stopped}. Agent restart/reconnect was verified at 03:57:57 UTC.
|
||||
The laptop copy is stopped and its helper now requires an explicit fallback
|
||||
switch; two copies must never connect as the same node. VS maintains the agent;
|
||||
BY retains host administration. No extra instance or plan resize was made.
|
||||
|
||||
Deployment credentials belong to the \texttt{secure-delivery} Jenkins folder,
|
||||
not the root multibranch PR job. That job retains its earlier ordinary tests,
|
||||
plus Python syntax and release-control tests; it does not bind delivery
|
||||
credentials or a Docker socket. The new release job loads
|
||||
\path{delivery/Jenkinsfile} from protected main and was enabled after PR~\#24 merged.
|
||||
Only trusted reviewed code may use the privileged node. Exclusive scheduling
|
||||
is not a defense against an administrator or an author permitted to select that
|
||||
node; the two-member repository and Jenkins administration remain trust boundaries.
|
||||
Shared proxy-network membership is a lab simplification, not strong lateral
|
||||
isolation. Both environments share the droplet's failure domain.
|
||||
|
||||
\section{Installation Inventory and Preparation Evidence}
|
||||
\small
|
||||
\begin{longtable}{@{}L{3.0cm}L{9.9cm}@{}}
|
||||
\toprule Item & Verified selection or result\\\midrule\endhead
|
||||
Trusted agent & Python 3.13.5; Ansible core 2.21.6 in
|
||||
\texttt{/opt/delivery-tools}; community.docker 5.4.0 and its
|
||||
community.library\_inventory\_filtering\_v1 dependency 1.1.5.\\
|
||||
Build and scan tools & Docker 29.9.3, Compose 5.7.1, Trivy 0.76.2 and
|
||||
pip-audit 2.10.1. Base tool images are pinned in the agent Dockerfile;
|
||||
direct/transitive Python tools and collections are locked in Git.\\
|
||||
Target & Ubuntu 24.04 LTS; Python 3.12.3; Docker 29.9.3 and Compose 5.7.1.
|
||||
At 20:46 UTC: 1,967 MiB RAM, 878 MiB available, 102 MiB swap used; root
|
||||
filesystem 41\% used. This is one prerequisite sample, not a load test.\\
|
||||
Runtime image & Python 3.13 Alpine, Linux/amd64, selected registry digest:
|
||||
\newline\texttt{sha256:9ef1a599f863231c3d91e941389bfdc4}\allowbreak%
|
||||
\texttt{a2d6070557243d54df1a4e57015b960e}.\\
|
||||
Application lock & Flask 3.1.3; Gunicorn 23.0.0; blinker 1.9.0; click 8.5.1;
|
||||
itsdangerous 2.2.0; Jinja2 3.1.6; MarkupSafe 3.0.4; packaging 26.3;
|
||||
Werkzeug 3.1.9. No claim is made that a pinned version remains vulnerability-free.\\
|
||||
Runtime constraints & UID 10001; one Gunicorn worker; 64 MiB RAM / 96 MiB
|
||||
RAM+swap; 0.25 CPU; 64 PIDs; read-only root; 16 MiB temporary filesystem;
|
||||
all capabilities dropped and no host application port.\\
|
||||
Initial Jenkins prerequisite run &
|
||||
\href{https://ci.yebilly.me/job/secure-delivery/job/agent-preflight/1/}{Agent preflight build 1}
|
||||
passed on November 14 at 20:46 UTC, including strict-key SSH as deploy and
|
||||
noninteractive sudo. \path{delivery/evidence/agent-preflight-1.txt} preserves
|
||||
its non-secret inventory. This run did not deploy an application.\\
|
||||
Remote agent migration &
|
||||
At 03:47 UTC on November 15 (November 14 Eastern),
|
||||
\href{https://ci.yebilly.me/job/secure-delivery/job/agent-preflight/2/}{preflight build 2}
|
||||
passed on The-Ocean with real credentials, pinned host verification and sudo.
|
||||
\path{delivery/evidence/agent-preflight-2.txt} preserves the inventory.\\
|
||||
Remote capacity trial & At 03:50--03:51 UTC, a preparation snapshot passed
|
||||
12 control tests, 3 app tests, source/dependency gates, a limited image build,
|
||||
the full image gate and a temporary 64 MiB HTTP smoke test. Its source identity
|
||||
was \texttt{uncommitted-remote-preflight}; nothing was published or promoted.
|
||||
Observed available RAM exceeded 700 MiB; swap used rose from 263 to 372 MiB.
|
||||
Agent memory-limit events occurred, but no OOM kill was recorded. This short
|
||||
trial does not establish full release or presentation performance.\\
|
||||
Local tests & Three Flask tests passed; a generated wrong-price assertion
|
||||
failed as intended; twelve release/security-control tests passed. Gunicorn
|
||||
health/identity/price/invalid-input smoke checks passed under the stated cap.
|
||||
Its baked identity was explicitly \texttt{uncommitted-preflight}, not a release SHA.\\
|
||||
Local scans & Source/dependency gates passed; a generated synthetic secret
|
||||
blocked the gate. At 20:32 UTC the complete runtime-image gate passed with no
|
||||
HIGH/CRITICAL findings. Reports and exit codes remain in ignored local evidence.
|
||||
Later assessed Jenkins runs and published-image scans are recorded below.\\
|
||||
\bottomrule
|
||||
\end{longtable}
|
||||
\normalsize
|
||||
|
||||
Vincent resized the droplet while keeping its 25 GB plan disk, then updated
|
||||
packages. Post-maintenance checks found all seven earlier containers running,
|
||||
no failed systemd services, no required reboot marker, and HTTP 200 for Gitea,
|
||||
Jenkins and Grafana from the laptop. Before administrator bootstrap, a protected
|
||||
consistent Jenkins-home archive and an online Gitea SQLite backup were saved
|
||||
under \path{/root/ssw590-delivery-bootstrap/}. The one-time setup then created
|
||||
the deploy key, distinct package-only tokens under \texttt{vsun1}, the folder,
|
||||
node and disabled release job. No token or private key was printed or copied
|
||||
into the repository. Private bootstrap inputs were removed after Jenkins stored
|
||||
the credentials; generated agent identity stays in protected named volumes.
|
||||
|
||||
\section{Pipeline and Release Records}
|
||||
The normal release path is checkout of reviewed main ancestry, control and
|
||||
application tests, repository-secret and dependency checks, build, image scan,
|
||||
registry push/pull, exact digest recording, staging deployment, unchanged rerun,
|
||||
human approval, and production deployment. Existing commit tags are reused on
|
||||
retry rather than overwritten. A new image is scanned before push and again by
|
||||
its registry digest. The same digest is promoted without rebuilding. Concurrent
|
||||
delivery builds are disabled. Release and scan reports are archived on failure
|
||||
and before the approval prompt.
|
||||
|
||||
The policy in \path{delivery/SECURITY.md} was selected before the scans: block
|
||||
detected secrets, HIGH/CRITICAL image findings (including unfixed issues), all
|
||||
reported Python dependency advisories, scanner errors and missing/malformed
|
||||
reports. No exceptions are approved. A proposed exception requires instructor
|
||||
acceptance, advisory ID, owner, rationale, controls and expiry. Earlier Debian
|
||||
and installer-containing Alpine preflight scans failed; their reports were
|
||||
retained. The runtime was changed to the pinned Alpine base and unneeded pip/
|
||||
ensurepip were removed; the scanner policy was not weakened.
|
||||
|
||||
The release record contains source and configuration commits, exact registry
|
||||
digest, version/expected total, environment, public URL, proxy network, build
|
||||
URL and creation time. Both commits must be ancestors of protected main. Only
|
||||
the expected team registry, URL/environment pair and metadata fields are
|
||||
accepted. Production requires an input restricted to \texttt{billy,vsun1},
|
||||
with a 20-minute timeout; the actual human approval and UTC time are recorded.
|
||||
Administrators retain their normal override powers. No unattended approval is
|
||||
claimed. Ansible restores the selected playbook/template from the recorded
|
||||
configuration commit, deploys without rebuilding, waits for health, then checks
|
||||
HTTPS health, version, source commit and price. A separate JSON recap records
|
||||
timing and makes a nonzero changed count on the unchanged rerun a blocking error.
|
||||
|
||||
\small
|
||||
\begin{tabularx}{\linewidth}{L{2.1cm}Y Y}
|
||||
\toprule Traceability field & v1 & v2\\\midrule
|
||||
Source / config commits & \href{https://git.yebilly.me/ssw590-group1/vpn-dns-gateway/commit/34f26e6948b7001ede8ca19f23b67a02082e6a9a}{Reviewed 34f26e6} & \href{https://git.yebilly.me/ssw590-group1/vpn-dns-gateway/commit/6bddbfba5a36e0e397537678ffb197e101fb0670}{Reviewed 6bddbfb}\\
|
||||
Registry digest / Jenkins release build & Exact digest below; \href{https://ci.yebilly.me/job/secure-delivery/job/pricing/5/}{build 5 SUCCESS} & Exact digest below; \href{https://ci.yebilly.me/job/secure-delivery/job/pricing/6/}{build 6 SUCCESS}\\
|
||||
Publication image scans & 2 targets; zero HIGH/CRITICAL, before push and by pulled digest & 2 targets; zero HIGH/CRITICAL, before push and by pulled digest\\
|
||||
Staging + unchanged rerun & Passed; changed=0 on rerun & Passed; changed=0 on rerun\\
|
||||
Production approval / UTC & \texttt{vsun1}; 03:04:01; total 30 verified & \texttt{vsun1}; 03:11:18; total 36 verified\\
|
||||
Recovery evidence & \href{https://ci.yebilly.me/job/secure-delivery/job/pricing/8/}{Build 8}: original v1 restored & \href{https://ci.yebilly.me/job/secure-delivery/job/pricing/9/}{Build 9} blocked; \href{https://ci.yebilly.me/job/secure-delivery/job/pricing/10/}{10} recovered; changed=0\\
|
||||
\bottomrule
|
||||
\end{tabularx}
|
||||
\normalsize
|
||||
|
||||
\section{Reviewed Gate Runs and Deployment Correction}
|
||||
Billy approved the updated PR~\#24 head \texttt{ed0a862} at 21:06 UTC on
|
||||
November 15; Vincent merged it as \texttt{09731ac} at 21:59 UTC. The resulting
|
||||
Actions manual build 13 passed in 2m25s. It finished before the delivery runs.
|
||||
All times in this section are UTC.
|
||||
|
||||
\begin{itemize}
|
||||
\item \href{https://ci.yebilly.me/job/secure-delivery/job/pricing/1/}{Pricing build 1},
|
||||
\texttt{blocked-test}, took 54.202 seconds. Twelve control tests and the three
|
||||
normal Flask tests passed. The deliberate expected-total=$-1$ assertion failed
|
||||
against the actual total 30. Publication, deployment and approval were skipped.
|
||||
\item \href{https://ci.yebilly.me/job/secure-delivery/job/pricing/2/}{Pricing build 2},
|
||||
\texttt{blocked-secret}, took 31.375 seconds. Tests, clean-source scanning and
|
||||
all nine locked dependency audits passed. The generated synthetic-secret finding
|
||||
blocked the gate and all publication/deployment stages. Match/code fields in
|
||||
the archived secret report are redacted; no real secret was introduced.
|
||||
\item \href{https://ci.yebilly.me/job/secure-delivery/job/pricing/3/}{Pricing build 3},
|
||||
\texttt{release}, took 77.799 seconds. Tests and source/dependency gates passed.
|
||||
Both pre-push and registry-digest image scans analyzed two targets and found zero
|
||||
HIGH/CRITICAL findings. The image was published and pulled back by exact digest.
|
||||
\end{itemize}
|
||||
|
||||
Build 3 recorded these exact source/configuration and image identifiers:
|
||||
\par\noindent\begin{minipage}{\linewidth}
|
||||
\begin{Verbatim}[fontsize=\footnotesize,frame=single]
|
||||
Source/configuration:
|
||||
09731acb0370566471dd4e401e59bafe55e927dc
|
||||
Image repository: git.yebilly.me/ssw590-group1/pricing
|
||||
Registry digest:
|
||||
sha256:cccd47f112f839f3443c88c4d16fd7a1ed0fec2100a26464156526d53ccc2695
|
||||
\end{Verbatim}
|
||||
\end{minipage}\par\smallskip
|
||||
Staging failed at 22:26:39 UTC during Gathering Facts:
|
||||
\texttt{PTY allocation request failed on channel 0}. The recap was
|
||||
\texttt{ok=0 changed=0 unreachable=1 failed=0}, Ansible exit code 4. No app
|
||||
configuration or container was created, and production approval was not reached.
|
||||
Its generated records are retained as attempt evidence, not known-good recovery
|
||||
selections in \path{delivery/releases/}.
|
||||
|
||||
Ansible defaults to forcing a terminal, but the dedicated deploy key intentionally
|
||||
forbids PTY allocation. The inventory correction sets
|
||||
\texttt{ansible\_ssh\_use\_tty=false}; it preserves the restricted key, pinned
|
||||
host verification and noninteractive sudo. The expanded administrator preflight
|
||||
exercises Ansible's actual connection/become path as well as plain SSH.
|
||||
\href{https://ci.yebilly.me/job/secure-delivery/job/agent-preflight/3/}{Preflight build 3}
|
||||
passed in 17 seconds at 22:50 UTC: Ansible ran \texttt{id -u} as root and
|
||||
returned 0 without a terminal. Its \texttt{CHANGED} label describes the command
|
||||
module's default reporting, not a pricing deployment or idempotence test.
|
||||
This validated connection prerequisites only. Billy subsequently approved
|
||||
PR~\#25 and Vincent merged it before pricing build 4, recorded below.
|
||||
|
||||
\begin{figure}[htbp]
|
||||
\centering
|
||||
\renewcommand{\theHfigure}{delivery.preflight.\arabic{figure}}
|
||||
\includegraphics[width=\linewidth,trim=330bp 880bp 900bp 0bp,clip]{images/assignment8-ansible-preflight-3-20261115.jpg}
|
||||
\caption{Actual successful Jenkins prerequisite build 3 after adding the
|
||||
noninteractive Ansible connection check. No pricing environment was deployed.}
|
||||
\label{Figure:DeliveryAnsiblePreflight}
|
||||
\end{figure}
|
||||
|
||||
Dated records under \path{delivery/evidence/} preserve the results:
|
||||
\begin{itemize}
|
||||
\item \path{gates-20261115.md}: deliberate blocking demonstrations.
|
||||
\item \path{release-attempt-3-20261115.md}: publication and SSH failure.
|
||||
\item \path{agent-preflight-3.txt}: successful noninteractive connection.
|
||||
\end{itemize}
|
||||
Jenkins archives the complete reports. The ignored local evidence directory is:
|
||||
\begin{quote}\small
|
||||
\path{build/evidence/assignment8-execution/}
|
||||
\end{quote}
|
||||
|
||||
\section{Staging Rerun and Health Deadline}
|
||||
On November 16 at 01:46:19 UTC (November 15 Eastern), Billy approved PR~\#25;
|
||||
Vincent merged it at 01:51:04 as \texttt{a19fab3}.
|
||||
\href{https://ci.yebilly.me/job/secure-delivery/job/pricing/4/}{Pricing build 4}
|
||||
ran from that reviewed source/configuration and took 198.101 seconds. Tests,
|
||||
source/dependency gates and both image gates passed. Its exact identifiers are:
|
||||
\par\noindent\begin{minipage}{\linewidth}
|
||||
\begin{Verbatim}[fontsize=\footnotesize,frame=single]
|
||||
Source/configuration:
|
||||
a19fab34e39420811e73f91fcfbb82ee598bd74a
|
||||
Image repository: git.yebilly.me/ssw590-group1/pricing
|
||||
Registry digest:
|
||||
sha256:63e2e3d49a5119b1064868b0b15b39a1719a60a632ff0ecdc3f676fcdc55de3b
|
||||
\end{Verbatim}
|
||||
\end{minipage}\par\smallskip
|
||||
|
||||
Initial staging deployment ran 02:01:48.628--02:02:58.341 UTC (69.713 seconds).
|
||||
All health, version, source-SHA and quantity=3 total=30 checks passed:
|
||||
\texttt{ok=10 changed=4 unreachable=0 failed=0}. The unchanged rerun ran
|
||||
02:03:01.314--02:03:25.201 UTC (23.887 seconds) and stopped at Compose health:
|
||||
\texttt{ok=4 changed=0 unreachable=0 failed=1}. Zero changes with a failed task
|
||||
is not a passed idempotence gate. Production approval/deployment were skipped.
|
||||
|
||||
Docker reported \texttt{Health check exceeded timeout (3s)}. Completed probes
|
||||
were near the same deadline. Gunicorn remained running, no OOM kill was
|
||||
recorded, and staging later became healthy without a restart. A sampled
|
||||
48.56 MiB usage was below the 64 MiB cap; memory-limit events occurred without
|
||||
OOM events. This supports a deadline problem under the 0.25 CPU constraint,
|
||||
not a general explanation for every possible health failure.
|
||||
|
||||
At 02:06:37--02:08:24 UTC, an isolated diagnostic ran the same reviewed v1 image
|
||||
with identical UID, resource and filesystem restrictions, no Docker network,
|
||||
no published port or proxy alias, and a ten-second overall health timeout.
|
||||
The HTTP request retained its two-second timeout. Eight consecutive checks
|
||||
passed in 2.817--5.660 seconds; CPU throttling was observed, with no memory-limit
|
||||
or OOM events in the diagnostic container. Its exact newly created container ID
|
||||
was removed in a finally block. Existing staging and shared services were
|
||||
unchanged. The script and raw JSON are versioned beside the dated build-4
|
||||
evidence under \path{delivery/evidence/}. This is a prerequisite experiment,
|
||||
not a production release or a substitute for the unchanged-rerun gate.
|
||||
|
||||
The Dockerfile correction changes only the overall health timeout from three
|
||||
to ten seconds. Endpoint, HTTP timeout, cadence, retries, startup period and
|
||||
all resource/security limits remain unchanged. The branch also prepares v2
|
||||
(version v2, unit price 12, total 36); three local functional tests and twelve
|
||||
control tests passed. The local Windows functional environment used Flask 3.1.3
|
||||
and Werkzeug 3.1.8; assessed Jenkins deployment remains locked to Werkzeug
|
||||
3.1.9. At that preparation point neither candidate had been released; the
|
||||
following section records their subsequent assessed Jenkins runs.
|
||||
|
||||
Vincent kept the v1 health fix and v2 app/tests in separate commits within
|
||||
PR~\#26. Billy reviewed both; the merge preserved their SHAs for explicit
|
||||
Jenkins selection. Each then passed the full release path and its own real
|
||||
human approval. PR~\#27 subsequently reviewed the actual successful selectors
|
||||
and preserved the separate staging fault and restoration commits before recovery.
|
||||
|
||||
\section{Successful v1 and v2 Releases}
|
||||
Billy approved PR~\#26 at 02:56:00 UTC on November 16 (November 15 Eastern).
|
||||
Vincent merged it at 02:57:42 as \texttt{231d115}, preserving both source commits.
|
||||
Actions manual workflow 15 passed in 2m7s before delivery began. The dedicated
|
||||
job first loads the reviewed main pipeline, then checks out the selected
|
||||
reviewed source ancestor; its selected source can therefore differ from the
|
||||
initial SCM-head metadata shown by Jenkins.
|
||||
|
||||
\small
|
||||
\begin{tabularx}{\linewidth}{L{3.3cm}Y Y}
|
||||
\toprule Actual result (UTC) & v1 & v2\\\midrule
|
||||
Jenkins release & \href{https://ci.yebilly.me/job/secure-delivery/job/pricing/5/}{Build 5 SUCCESS} & \href{https://ci.yebilly.me/job/secure-delivery/job/pricing/6/}{Build 6 SUCCESS}\\
|
||||
Full run including approval wait & 03:00:10--03:05:08; 297.214 s & 03:05:33--03:12:29; 415.707 s\\
|
||||
Initial staging & 59.160 s; ok=10, changed=3, failed=0 & 60.106 s; ok=10, changed=3, failed=0\\
|
||||
Unchanged staging rerun & 41.499 s; changed=0, failed=0 & 45.487 s; changed=0, failed=0\\
|
||||
Actual approver / UTC & \texttt{vsun1}, 03:04:01 & \texttt{vsun1}, 03:11:18\\
|
||||
Production deployment & 03:04:05--03:05:05; 60.403 s & 03:11:21--03:12:28; 66.234 s\\
|
||||
Quantity 3 in each environment & USD 30 & USD 36\\
|
||||
\bottomrule
|
||||
\end{tabularx}
|
||||
\normalsize
|
||||
|
||||
Each run passed twelve control tests and three Flask tests. Source-secret
|
||||
reports had zero findings, all nine locked dependency audits had zero
|
||||
advisories, and both pre-push and registry-digest image gates analyzed two
|
||||
targets with zero HIGH/CRITICAL findings. No exception was added. Each
|
||||
source-SHA image was built once, pushed/pulled and promoted by the same digest
|
||||
through both environments. HTTPS health, version, exact baked source and price
|
||||
assertions passed in production as well as staging.
|
||||
|
||||
The common image repository is \path{git.yebilly.me/ssw590-group1/pricing}.
|
||||
These are the exact selected source/configuration commits and registry digests:
|
||||
\par\noindent\begin{minipage}{\linewidth}
|
||||
\begin{Verbatim}[fontsize=\footnotesize,frame=single]
|
||||
v1 source/configuration:
|
||||
34f26e6948b7001ede8ca19f23b67a02082e6a9a
|
||||
v1 registry digest:
|
||||
sha256:59c880b2704f91668618d9a2ff0bc8fbab0af4239ceb916de261863890ef88d8
|
||||
\end{Verbatim}
|
||||
\end{minipage}\par\smallskip
|
||||
\noindent\begin{minipage}{\linewidth}
|
||||
\begin{Verbatim}[fontsize=\footnotesize,frame=single]
|
||||
v2 source/configuration:
|
||||
6bddbfba5a36e0e397537678ffb197e101fb0670
|
||||
v2 registry digest:
|
||||
sha256:efe8658a0adf0854038d58199652030cbd0ef70047a1c6ebc7b09906cf1ec88b
|
||||
\end{Verbatim}
|
||||
\end{minipage}\par\smallskip
|
||||
|
||||
The four JSON files under \path{delivery/releases/} are copied unchanged from
|
||||
these successful builds and pass the strict selector validation. PR~\#27
|
||||
reviewed and merged them before recovery; earlier failed-attempt records were
|
||||
not substituted. Jenkins archives the full tests, scans, recaps and actual approval
|
||||
records. Dated human-readable and machine-readable evidence under
|
||||
\path{delivery/evidence/} preserves their timestamps, results and scan-report
|
||||
hashes. Full local archives remain in the ignored execution evidence directory.
|
||||
|
||||
\section{Live Production Monitoring and Observed Interruption}
|
||||
Only after healthy v1 production, at 03:08:11 UTC, the previously reviewed
|
||||
production health target and panel 8 were applied. The guarded helper checked
|
||||
public production health and the earlier configurations, validated with the
|
||||
installed promtool, saved protected backups, preserved bind-mounted inodes and
|
||||
reloaded Prometheus with SIGHUP. Grafana provisioned the dashboard change.
|
||||
Earlier probes/panels, volumes, retention, credentials and alert rules were
|
||||
preserved. The backup and applied hashes are recorded in the versioned evidence.
|
||||
\href{https://prometheus.io/docs/prometheus/latest/configuration/configuration/}{Prometheus documents runtime SIGHUP reload};
|
||||
\href{https://grafana.com/docs/grafana/latest/administration/provisioning/}{Grafana documents file provisioning}.
|
||||
Runtime verification was performed separately from syntax validation.
|
||||
|
||||
At 03:14:11 UTC all six scrape targets were up, all three HTTPS probes
|
||||
(Gitea, Jenkins and production) had value 1, and the reload-success metric was
|
||||
1. The actual Grafana UI displayed the new panel and production series while
|
||||
retaining its previous seven panels. At 03:28:08 both app containers were
|
||||
healthy v2 with the exact selected source; identity, health and total 36
|
||||
returned HTTP 200, and quantity 0 returned HTTP 400. Neither app had an OOM
|
||||
or memory-limit event in that captured container state.
|
||||
|
||||
The production history contained 40 samples and one HTTP 502 / \texttt{probe\_success=0}
|
||||
at \textbf{03:11:54.602 UTC}, inside v2's 03:11:21.802--03:12:28.037
|
||||
production deployment window. Its adjacent successful samples were
|
||||
03:11:24.602 and 03:12:24.602. This is evidence of an interruption during
|
||||
single-host Compose replacement, not a zero-downtime release. One failed
|
||||
30-second-cadence sample does not establish an exact 30-second outage; the
|
||||
two bounding successes were 60 seconds apart. The observed interval is shorter
|
||||
than the existing one-minute alert duration. No alert firing or notification
|
||||
is claimed without separate evidence. A blue/green cutover after replacement
|
||||
health would reduce this risk but is not implemented here.
|
||||
|
||||
\begin{figure}[htbp]
|
||||
\centering
|
||||
\renewcommand{\theHfigure}{delivery.monitor.\arabic{figure}}
|
||||
\includegraphics[width=\linewidth,trim=320bp 0bp 0bp 0bp,clip]{images/assignment8-production-monitoring-20261115.jpg}
|
||||
\caption{Actual Grafana production panel after activation. The visible dip
|
||||
correlates with v2 replacement; exact UTC samples and HTTP 502 are retained
|
||||
in the dated runtime JSON. The display uses Eastern time.}
|
||||
\label{Figure:DeliveryProductionMonitoring}
|
||||
\end{figure}
|
||||
|
||||
\section{Recovery Exercises and Timeline}
|
||||
Billy approved \href{https://git.yebilly.me/ssw590-group1/vpn-dns-gateway/pulls/27}{PR~\#27}
|
||||
at 04:12:09 UTC on November 16 (November 15 Eastern); Vincent merged it at
|
||||
04:14:30 as \texttt{72bf10d}. The merge preserved the four actual release
|
||||
records, staging-only fault \texttt{1e23001} and immediate revert
|
||||
\texttt{29e580c}; the final main template remained correct. Actions workflow
|
||||
16 passed in 2m17s before the recovery jobs. Builds 7--10 used that reviewed
|
||||
main for control code; their records independently selected the historical
|
||||
image and Ansible configuration. Full results, report hashes, selected runtime
|
||||
state and original observer CSVs are versioned under \path{delivery/evidence/}
|
||||
as \path{recovery-20261115.md}, its JSON companion, the runtime JSON and the
|
||||
production/staging CSVs. CSV byte hashes were checked against the remote
|
||||
originals; Git attributes preserve them across checkouts.
|
||||
|
||||
\subsection{Healthy Production Rollback}
|
||||
This was an authorized exercise on healthy v2, not an invented production
|
||||
incident. The decision was recorded at 04:17:46.307 UTC; the reviewed HTTPS
|
||||
observer started before approval. The first attempt,
|
||||
\href{https://ci.yebilly.me/job/secure-delivery/job/pricing/7/}{build 7}, stopped
|
||||
after 17.784 seconds during test setup with \texttt{Cannot fork}, before any
|
||||
deployment or approval. The agent reported about 115 tasks against its 128
|
||||
limit and two process-limit events, with no OOM kill. Its process listing
|
||||
showed Java only; the underlying accounting/accumulation mechanism was not
|
||||
established. Only the idle delivery-agent container was restarted, preserving
|
||||
identity, workspace, image and resource/security limits. Immediate task count
|
||||
fell to 13. Earlier services and both apps stayed running; no limit was raised.
|
||||
|
||||
\small
|
||||
\begin{tabularx}{\linewidth}{L{4.4cm}Y}
|
||||
\toprule Production rollback event & Actual UTC / result\\\midrule
|
||||
\href{https://ci.yebilly.me/job/secure-delivery/job/pricing/8/}{Build 8} & SUCCESS; 04:22:04.875--04:24:48.529; 163.654 s including human wait\\
|
||||
Actual human approval & \texttt{vsun1}; 04:23:36\\
|
||||
Ansible rollback start & 04:23:42.801\\
|
||||
First observed v1 response complete & 04:24:25.313; health request began 04:24:23.645\\
|
||||
Ansible verification complete & 04:24:46.705; 63.904 s; ok=10 changed=3 unreachable=0 failed=0\\
|
||||
Restored release & Original v1 digest/configuration \texttt{34f26e6}; HTTPS health, exact source and total 30 passed\\
|
||||
\bottomrule
|
||||
\end{tabularx}
|
||||
\normalsize
|
||||
|
||||
The rollback reused the original build-5 digest and restored its matching
|
||||
Ansible playbook/template with \texttt{git archive}; no image was rebuilt or
|
||||
published. Twelve control tests, three app tests, source-secret and all nine
|
||||
dependency gates passed. The prior passing image scans remain linked to the
|
||||
same exact digest. Deployment-start to first observed v1 response completion
|
||||
was 42.512 seconds. The longer decision-to-recovery timeline includes the
|
||||
runner error, troubleshooting and real approval wait; these are distinct from
|
||||
deployment time and traffic interruption.
|
||||
|
||||
The production observer captured 863 requests from 04:17:46.447 to
|
||||
04:32:10.607, with \textbf{nine failed requests}: eight HTTP 502 responses and
|
||||
one timeout. The first failed request began 04:24:13.629. Adjacent successful
|
||||
response completions were 04:24:12.672 (v2) and 04:24:25.313 (v1), 12.641
|
||||
seconds apart. This does not establish an exact continuous outage; time
|
||||
between samples remains unobserved. The maximum request-start gap was 2.015
|
||||
seconds because a two-second timeout delays the nominal one-second cadence.
|
||||
|
||||
\subsection{Staging-Only Failure and Configuration Recovery}
|
||||
\href{https://ci.yebilly.me/job/secure-delivery/job/pricing/9/}{Build 9}
|
||||
selected the committed good v2 staging record and the full reviewed bad
|
||||
configuration commit:
|
||||
\begin{Verbatim}[fontsize=\footnotesize,frame=single]
|
||||
1e23001e7303d14630cfa97c8de36f31f30b81a0
|
||||
\end{Verbatim}
|
||||
Only the runtime configuration selection changed; the existing v2 digest was
|
||||
reused. Gunicorn bound to 8001 while image health and Caddy still used 8000.
|
||||
Compose reported the container unhealthy and the Jenkins run ended FAILURE.
|
||||
The command retained \texttt{--wait --wait-timeout 90}; Ansible blocked after
|
||||
86.690 seconds including earlier tasks, with \texttt{ok=4 changed=1
|
||||
unreachable=0 failed=1} and exit code 2. The unchanged rerun and both production
|
||||
stages were skipped. No host daemon, proxy or earlier service was altered to
|
||||
create this failure.
|
||||
|
||||
At 04:28:54.827 UTC staging was unhealthy and returned HTTP 502 while
|
||||
production remained healthy v1, total 30. The failed run did not reach the
|
||||
last metadata-copy task: host \path{release.json} still described the last
|
||||
successful release while Compose was bad. That file alone is not health
|
||||
evidence. The final main template had already been restored by the reviewed
|
||||
revert; the recovery job selected the original good v2 configuration from its
|
||||
unchanged record, rather than rebuilding the image or selecting the bad SHA.
|
||||
|
||||
\small
|
||||
\begin{tabularx}{\linewidth}{L{4.4cm}Y}
|
||||
\toprule Staging event & Actual UTC / result\\\midrule
|
||||
Decision / observer start & 04:25:23.940 / 04:25:24.078\\
|
||||
Failed Ansible deployment & 04:26:25.354--04:27:52.043; 86.690 s; build 9 blocked\\
|
||||
First failed request & 04:26:53.130\\
|
||||
\href{https://ci.yebilly.me/job/secure-delivery/job/pricing/10/}{Build 10 recovery} began & 04:28:38.093\\
|
||||
Recovery Ansible deployment & 04:29:10.106--04:30:06.603; 56.497 s; ok=10 changed=2 failed=0\\
|
||||
First recovered v2 response complete & 04:29:44.923; health request began 04:29:43.205\\
|
||||
Unchanged Ansible rerun & 04:30:10.352--04:30:58.451; 48.099 s; ok=10 changed=0 failed=0\\
|
||||
Recovery job ended & 04:30:59.765 SUCCESS; 141.672 s total\\
|
||||
\bottomrule
|
||||
\end{tabularx}
|
||||
\normalsize
|
||||
|
||||
Build 10 restored the recorded \texttt{6bddbfb} playbook/template and the same
|
||||
v2 image. Actual HTTPS health, baked source and total 36 passed, followed by
|
||||
the zero-change rerun. Staging sampling captured 406 requests, with 169 failures
|
||||
(168 HTTP 502 and one timeout). Adjacent successful response completions were
|
||||
04:26:52.273 and 04:29:44.923, 172.650 seconds apart; this includes the
|
||||
deliberate failure, collection/selection and new-job gates as well as recovery.
|
||||
It is not Ansible duration or an exact continuous outage. Maximum request-start
|
||||
gap was 2.018 seconds. Production had no additional failed observer requests
|
||||
during this staging exercise, and its Compose hash stayed unchanged.
|
||||
|
||||
\begin{figure}[htbp]
|
||||
\centering
|
||||
\renewcommand{\theHfigure}{delivery.observer.\arabic{figure}}
|
||||
\includegraphics[width=\linewidth]{images/assignment8-recovery-observers-20261115.png}
|
||||
\caption{Actual HTTPS samples on November 16 UTC: healthy production rollback
|
||||
to v1, then the separate staging v2 fault and recovery. Lines join request-start
|
||||
samples; gaps between requests remain unobserved. Original CSVs and hashes are
|
||||
retained. The staging observer began at 04:25:24.}
|
||||
\label{Figure:DeliveryRecoveryObservers}
|
||||
\end{figure}
|
||||
|
||||
\begin{figure}[htbp]
|
||||
\centering
|
||||
\renewcommand{\theHfigure}{delivery.failure.\arabic{figure}}
|
||||
\includegraphics[width=\linewidth,trim=360bp 0bp 0bp 0bp,clip]{images/assignment8-staging-failure-9-20261115.jpg}
|
||||
\caption{Staging v2, build 9, November 16 at 04:27:57 UTC: unhealthy-container
|
||||
failure, failed recap and both production stages skipped. The original v2
|
||||
image was retained; the reviewed command-only fault was not promoted.}
|
||||
\label{Figure:DeliveryStagingFailure}
|
||||
\end{figure}
|
||||
|
||||
\begin{figure}[htbp]
|
||||
\centering
|
||||
\renewcommand{\theHfigure}{delivery.recovery.\arabic{figure}}
|
||||
\includegraphics[width=\linewidth,trim=360bp 0bp 0bp 0bp,clip]{images/assignment8-staging-recovery-10-20261115.jpg}
|
||||
\caption{Recovered staging v2, build 10, November 16 at 04:30:59 UTC: original
|
||||
configuration restored, unchanged rerun \texttt{changed=0}, production stages
|
||||
excluded and final SUCCESS. Production stays at rolled-back v1.}
|
||||
\label{Figure:DeliveryStagingRecovery}
|
||||
\end{figure}
|
||||
|
||||
\subsection{Monitoring Correlation and Final Verification}
|
||||
The 34 production-probe samples since the rollback decision were all 1 at the
|
||||
04:34:28 UTC capture: the 30-second probe missed the interruption that the
|
||||
finer observer measured. Grafana's production chart is correspondingly flat
|
||||
over this exercise (Figure~\ref{Figure:DeliveryRecoveryMonitoring}). This does
|
||||
not contradict the earlier real v2-release dip. The captured 90-minute
|
||||
\texttt{ALERTS} query returned no series; no notification history was collected
|
||||
and no Discord-notification claim is made. The production-only panel does not
|
||||
measure staging; its separate CSV captures that intentional failure.
|
||||
|
||||
At 04:34:28.765 UTC both containers were healthy: production v1, source
|
||||
\texttt{34f26e6}, total 30; staging v2, source \texttt{6bddbfb}, total 36.
|
||||
Both retained their original digest and matching restored configuration,
|
||||
returned HTTP 400 for quantity 0, and published no host application port.
|
||||
All six scrape targets were up and all three HTTPS probes were 1. The observers
|
||||
were intentionally stopped after post-recovery samples, before their 1,800-second
|
||||
maximum, by signaling only their verified task PIDs. They share the droplet's
|
||||
failure domain; they are not off-site uptime monitoring.
|
||||
|
||||
The capacity snapshot showed 1,967 MiB RAM with 660 MiB available, 476 of
|
||||
2,047 MiB swap used, and 8.9 GiB root space available (62\% used). Production
|
||||
and staging used 32.53 and 33.68 MiB; the agent used 131.9/512 MiB, with
|
||||
71/128 tasks and zero new process-limit events since restart. Grafana used
|
||||
188.4/192 MiB. These are point samples, not a load/soak test or a guarantee
|
||||
against future pressure. Keep manual and delivery jobs sequential on the
|
||||
shared CPU and investigate renewed process-limit events before retrying.
|
||||
|
||||
\begin{figure}[htbp]
|
||||
\centering
|
||||
\renewcommand{\theHfigure}{delivery.recoverymonitor.\arabic{figure}}
|
||||
\includegraphics[width=\linewidth,trim=320bp 0bp 0bp 0bp,clip]{images/assignment8-recovery-monitoring-20261115.jpg}
|
||||
\caption{Actual Grafana view after recovery, November 15 Eastern (November 16
|
||||
UTC). Production and prior service probes remain up at scrape times. The flat
|
||||
production line misses the short rollback interruption shown by the finer
|
||||
CSV sampler; it is not evidence of zero downtime.}
|
||||
\label{Figure:DeliveryRecoveryMonitoring}
|
||||
\end{figure}
|
||||
|
||||
\section{Release, Recovery and Monitoring Runbooks}
|
||||
The versioned \path{delivery/RUNBOOKS.md} gives the executable sequence.
|
||||
Vincent handles commits/pushes; Billy reviews repository changes. The v1
|
||||
preparation is now on main, DNS/TLS are ready, and the two deliberate gate
|
||||
demonstrations and both reviewed releases have run. The four successful release
|
||||
records and the staging-only fault/revert were reviewed in PR~\#27, and both
|
||||
recoveries are complete. The procedure and patch under
|
||||
\path{delivery/exercises/} retain the reviewed intermediate fault and restoration
|
||||
history; final main remains correct. Only the explicit staging-failure job
|
||||
selects that bad historical configuration. No repeat fault is needed for this
|
||||
submission. The following instructions support later authorized operations.
|
||||
|
||||
For healthy production rollback, record detection/decision time, start the
|
||||
HTTPS observer, select the committed v1 production record and approve the
|
||||
operation. Ansible restores its original image and configuration, then verifies
|
||||
v1, original source SHA and total 30. Preserve start, recovery, verification and
|
||||
sampled interruption. A zero-failure sample set cannot prove zero downtime
|
||||
between requests.
|
||||
|
||||
For failed staging deployment recovery, use a separate reviewed configuration
|
||||
commit to bind Gunicorn to 8001 only in staging while the image healthcheck
|
||||
still probes 8000. Run \texttt{staging-failure} with the good v2 staging release
|
||||
record and bad configuration SHA. Compose wait must fail and Jenkins must stop
|
||||
before production. Restore/review the correct template and rerun
|
||||
\texttt{recover-staging} with the original good record. Verify v2, its source,
|
||||
total 36 and changed=0. Do not alter shared infrastructure or data to create
|
||||
the failure.
|
||||
|
||||
The production \texttt{/health} probe and Grafana availability panel are now
|
||||
live, as verified above. Future changes must preserve the existing Gitea/Jenkins
|
||||
probes and host metrics. Correlate actual Prometheus/Grafana samples with the
|
||||
actual rollback and recovery times; 30-second scrapes and
|
||||
alert durations can miss a brief interruption. Uptime probes do not verify
|
||||
pricing. The observer in \path{delivery/ci/observe.py} records finer HTTPS
|
||||
samples without treating an intended failure as an observer-script failure.
|
||||
|
||||
This stateless service needs no database restore. A real incompatible schema,
|
||||
external payment or stored state could make image-only rollback unsafe. A
|
||||
compatible expand/migrate/contract approach keeps both old and new code working
|
||||
during migration and delays destructive changes until rollback is no longer
|
||||
needed. This assignment does not add a database.
|
||||
|
||||
\section{Source Links, Grader Access and Cleanup Boundary}
|
||||
Billy added A records for \texttt{staging} and \texttt{app}. On November 15,
|
||||
Google and Cloudflare both returned \texttt{147.182.178.136} for each name,
|
||||
with no AAAA answer. Codex validated the prepared Caddy additions, saved the
|
||||
previous configuration and gracefully reloaded it while preserving the earlier
|
||||
routes, allowlists, volumes and bind-mounted inode. Normal curl and Python TLS
|
||||
checks confirmed trusted hostname-matching certificates, TLS 1.3 and HTTP 308
|
||||
redirects. Initially both backends returned 502. Build 4 subsequently deployed
|
||||
staging v1, whose first HTTPS checks passed before the health rerun blocked.
|
||||
The later reviewed builds 5 and 6 completed promotion, and both environments
|
||||
were verified as healthy v2. Certificate and DNS
|
||||
details are recorded in \path{delivery/evidence/https-20261115.md}. Existing
|
||||
Gitea/Jenkins/Grafana checks still passed. The public application port is HTTPS
|
||||
443, with internal port 8000 remaining private. Distinct DNS hostnames satisfy
|
||||
the routing boundary. Both recovery cases are now complete as recorded above.
|
||||
|
||||
PR~\#24 now includes the runner migration and HTTPS changes and is merged.
|
||||
The health correction, v2, both promotions, actual approvals and both measured
|
||||
recovery cases are complete. \href{https://git.yebilly.me/ssw590-group1/vpn-dns-gateway/issues/28}{Tracking issue 28}
|
||||
was created at 04:33:40 UTC with Vincent's explicit authorization during
|
||||
finalization. The manual asks for an issue at baseline; this late correction
|
||||
does not claim that the issue preceded implementation. Final evidence
|
||||
review/merge and PDF submission remain group actions.
|
||||
|
||||
The following links select reviewed source at \texttt{72bf10d}, unless a
|
||||
historical release is identified. They do not require running a new pipeline.
|
||||
\small
|
||||
\begin{tabularx}{\linewidth}{L{3.3cm}Y}
|
||||
\toprule Artifact & Clickable source or evidence\\\midrule
|
||||
Application and tests & \href{https://git.yebilly.me/ssw590-group1/vpn-dns-gateway/src/commit/34f26e6948b7001ede8ca19f23b67a02082e6a9a/delivery/app}{v1 source/tests}; \href{https://git.yebilly.me/ssw590-group1/vpn-dns-gateway/src/commit/6bddbfba5a36e0e397537678ffb197e101fb0670/delivery/app}{v2 source/tests}\\
|
||||
Locked image build & \href{https://git.yebilly.me/ssw590-group1/vpn-dns-gateway/src/commit/72bf10dcecc8db65dce4750c05bf841bea9b0834/delivery/app/Dockerfile}{Dockerfile}; \href{https://git.yebilly.me/ssw590-group1/vpn-dns-gateway/src/commit/72bf10dcecc8db65dce4750c05bf841bea9b0834/delivery/app/requirements.txt}{exact dependencies}; \href{https://git.yebilly.me/ssw590-group1/vpn-dns-gateway/src/commit/72bf10dcecc8db65dce4750c05bf841bea9b0834/delivery/agent/Dockerfile}{trusted agent image}\\
|
||||
Pipeline and policy & \href{https://git.yebilly.me/ssw590-group1/vpn-dns-gateway/src/commit/72bf10dcecc8db65dce4750c05bf841bea9b0834/delivery/Jenkinsfile}{delivery Jenkinsfile}; \href{https://git.yebilly.me/ssw590-group1/vpn-dns-gateway/src/commit/72bf10dcecc8db65dce4750c05bf841bea9b0834/delivery/SECURITY.md}{scan policy}; \href{https://git.yebilly.me/ssw590-group1/vpn-dns-gateway/src/commit/72bf10dcecc8db65dce4750c05bf841bea9b0834/delivery/ci}{gates and control tests}\\
|
||||
Ansible & \href{https://git.yebilly.me/ssw590-group1/vpn-dns-gateway/src/commit/72bf10dcecc8db65dce4750c05bf841bea9b0834/delivery/ansible/inventory.ini}{inventory without secrets}; \href{https://git.yebilly.me/ssw590-group1/vpn-dns-gateway/src/commit/72bf10dcecc8db65dce4750c05bf841bea9b0834/delivery/ansible/deploy.yml}{playbook}; \href{https://git.yebilly.me/ssw590-group1/vpn-dns-gateway/src/commit/72bf10dcecc8db65dce4750c05bf841bea9b0834/delivery/ansible/templates/compose.yaml.j2}{good Compose template}\\
|
||||
Exact release records & \href{https://git.yebilly.me/ssw590-group1/vpn-dns-gateway/src/commit/72bf10dcecc8db65dce4750c05bf841bea9b0834/delivery/releases/v1-staging.json}{v1 staging}; \href{https://git.yebilly.me/ssw590-group1/vpn-dns-gateway/src/commit/72bf10dcecc8db65dce4750c05bf841bea9b0834/delivery/releases/v1-production.json}{v1 production}; \href{https://git.yebilly.me/ssw590-group1/vpn-dns-gateway/src/commit/72bf10dcecc8db65dce4750c05bf841bea9b0834/delivery/releases/v2-staging.json}{v2 staging}; \href{https://git.yebilly.me/ssw590-group1/vpn-dns-gateway/src/commit/72bf10dcecc8db65dce4750c05bf841bea9b0834/delivery/releases/v2-production.json}{v2 production}\\
|
||||
Original release reports & \href{https://ci.yebilly.me/job/secure-delivery/job/pricing/5/artifact/}{build 5 tests/scans/approval}; \href{https://ci.yebilly.me/job/secure-delivery/job/pricing/6/artifact/}{build 6 tests/scans/approval}\\
|
||||
Recovery reports & \href{https://ci.yebilly.me/job/secure-delivery/job/pricing/8/artifact/}{rollback 8}; \href{https://ci.yebilly.me/job/secure-delivery/job/pricing/9/artifact/}{blocked staging 9}; \href{https://ci.yebilly.me/job/secure-delivery/job/pricing/10/artifact/}{recovery/rerun 10}; \href{https://git.yebilly.me/ssw590-group1/vpn-dns-gateway/src/branch/main/delivery/evidence}{versioned summaries and CSVs}\\
|
||||
\bottomrule
|
||||
\end{tabularx}
|
||||
\normalsize
|
||||
|
||||
For grader access, Jenkins and Grafana retain the existing Stevens-campus/team
|
||||
network allowlist. Off campus, contact Vincent or Billy for approved-network
|
||||
access; the split-tunnel Stevens VPN is not a substitute
|
||||
(Section~\ref{Section:JenkinsAccess}). A login page is not job access: use an
|
||||
authorized account, or request a team-assisted review/read-only access.
|
||||
No separate grader account or new permission is claimed. Never put account
|
||||
secrets in the submission. Public application URLs allow independent health,
|
||||
identity and price checks; the PDF includes the actual results and limitations,
|
||||
and Gitea retains non-secret evidence so a new pipeline run is unnecessary.
|
||||
|
||||
After grading, only when instructed, retain required evidence and remove only
|
||||
the two pricing projects, their routes, monitoring additions and test DNS.
|
||||
Revoke their package tokens; retire deploy access and the delivery node/folder
|
||||
after preserving job history. Do not prune Docker or use \texttt{down -v}.
|
||||
Preserve earlier Gitea/Jenkins/proxy/monitoring services and all shared volumes.
|
||||
The stopped laptop fallback, active remote agent, cache/identity volumes and protected remote backup are retained
|
||||
while work and assessment remain in progress.
|
||||
|
After Width: | Height: | Size: 49 KiB |
|
After Width: | Height: | Size: 123 KiB |
|
After Width: | Height: | Size: 129 KiB |
|
After Width: | Height: | Size: 70 KiB |
|
After Width: | Height: | Size: 112 KiB |
|
After Width: | Height: | Size: 112 KiB |
|
After Width: | Height: | Size: 31 KiB |