179 lines
8.3 KiB
Markdown
179 lines
8.3 KiB
Markdown
# 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.
|