Restrict flyio-proxy ACLs to dedicated tag:flyio-target endpoints (#126)
All checks were successful
Deploy Fly.io Proxy / deploy (push) Successful in 1m8s
All checks were successful
Deploy Fly.io Proxy / deploy (push) Successful in 1m8s
## Summary - Introduce `tag:flyio-target` so services must explicitly opt in to be reachable by the fly.io proxy - Replace broad `tag:k8s` and `tag:homelab` grants with the new tag in the ACL rule and test - Add `tailscale.com/tags: "tag:k8s,tag:flyio-target"` annotation to docs, loki, and prometheus Ingresses - Switch Alloy push endpoints from `*.ops.eblu.me` (Caddy) to `*.tail8d86e.ts.net` (Tailscale Ingress) - Update docs: flyio-proxy, caddy, tailscale, forgejo (future public access + security checklist), expose-service-publicly ## Manual step (not in PR) Update the k8s operator OAuth client in the Tailscale admin console to include `tag:flyio-target` in its scope. Without this, the operator cannot assign the new tag to Ingress proxy nodes. ## Deployment order 1. **Pulumi ACLs** — `mise run tailnet-preview && mise run tailnet-up` 2. **OAuth client** — Manual update in Tailscale admin console 3. **K8s Ingresses** — `argocd app sync apps && argocd app sync docs loki prometheus` 4. **Fly.io proxy** — `mise run fly-deploy` 5. **Verify** — `mise run services-check`, check Grafana dashboards ## Test plan - [ ] `mise run tailnet-preview` shows clean diff - [ ] `argocd app diff docs`, `argocd app diff loki`, `argocd app diff prometheus` show only annotation additions - [ ] After deploy: Grafana dashboards show continued log/metric flow - [ ] `curl -sf https://docs.eblu.me` returns 200 - [ ] `mise run services-check` passes 🤖 Generated with [Claude Code](https://claude.com/claude-code) Reviewed-on: https://forge.ops.eblu.me/eblume/blumeops/pulls/126
This commit is contained in:
parent
7f41621c7f
commit
e6cf7e47e0
30 changed files with 151 additions and 56 deletions
|
|
@ -21,18 +21,30 @@ DNS hosting provider for the `eblu.me` domain, managed via Pulumi IaC.
|
|||
|
||||
## What It Does
|
||||
|
||||
Gandi hosts the DNS records that make `*.ops.eblu.me` resolve to [[indri]]'s Tailscale IP (100.98.163.89). Since Tailscale IPs are not publicly routable, this gives services real DNS names while keeping them private to the tailnet.
|
||||
Gandi hosts the DNS records that make `*.ops.eblu.me` resolve to [[indri]]'s Tailscale IP (`indri.tail8d86e.ts.net`). Since Tailscale IPs are not publicly routable, this gives services real DNS names while keeping them private to the tailnet.
|
||||
|
||||
The target IP is resolved dynamically from `indri.tail8d86e.ts.net` at deploy time, so if indri's Tailscale IP changes, re-running the deployment is sufficient.
|
||||
|
||||
## DNS Records
|
||||
|
||||
### Private services (Caddy on indri)
|
||||
|
||||
| Record | Type | Value | TTL |
|
||||
|--------|------|-------|-----|
|
||||
| `*.ops.eblu.me` | A | indri's Tailscale IP | 300s |
|
||||
| `ops.eblu.me` | A | indri's Tailscale IP | 300s |
|
||||
|
||||
Both records point to [[indri]], which runs [[caddy]] as the reverse proxy for all services. See [[routing]] for the full service URL map.
|
||||
Both records point to [[indri]], which runs [[caddy]] as the reverse proxy for all private services.
|
||||
|
||||
### Public services (Fly.io proxy)
|
||||
|
||||
| Record | Type | Value | TTL |
|
||||
|--------|------|-------|-----|
|
||||
| `docs.eblu.me` | CNAME | `blumeops-proxy.fly.dev` | 300s |
|
||||
|
||||
Public CNAMEs point to [[flyio-proxy]] on Fly.io. See [[expose-service-publicly]] for adding new public services.
|
||||
|
||||
See [[routing]] for the full service URL map.
|
||||
|
||||
## Pulumi Configuration
|
||||
|
||||
|
|
|
|||
|
|
@ -16,7 +16,7 @@ Primary BlumeOps server. Mac Mini M1 (2020).
|
|||
| **Model** | Mac mini M1, 2020 (Macmini9,1) |
|
||||
| **Storage** | 2TB internal SSD |
|
||||
| **macOS** | 15.7.3 (Sequoia) |
|
||||
| **Tailscale IP** | 100.98.163.89 |
|
||||
| **Tailscale hostname** | `indri.tail8d86e.ts.net` |
|
||||
| **Tailscale Tag** | `tag:homelab` |
|
||||
| **UPS** | Anker SOLIX F2000 GaNPrime |
|
||||
|
||||
|
|
|
|||
|
|
@ -7,20 +7,21 @@ tags:
|
|||
|
||||
# Service Routing
|
||||
|
||||
Services are accessible via two DNS domains with different reachability.
|
||||
Services are accessible via three DNS domains with different reachability.
|
||||
|
||||
## DNS Domains
|
||||
|
||||
| Domain | Proxy | Reachable From |
|
||||
|--------|-------|----------------|
|
||||
| `*.eblu.me` | [[flyio-proxy]] (Fly.io → Tailscale tunnel) | Public internet |
|
||||
| `*.ops.eblu.me` | Caddy on indri | k8s pods, docker containers, tailnet clients |
|
||||
| `*.tail8d86e.ts.net` | Tailscale MagicDNS | Tailnet clients only |
|
||||
|
||||
**Use `*.ops.eblu.me`** for services that need pod-to-service communication.
|
||||
**Use `*.ops.eblu.me`** for services that need pod-to-service communication. Use `*.eblu.me` for services exposed publicly via Fly.io.
|
||||
|
||||
## Caddy Services (`*.ops.eblu.me`)
|
||||
|
||||
DNS points to indri's Tailscale IP (100.98.163.89). TLS via Let's Encrypt (ACME DNS-01 with Gandi).
|
||||
DNS points to [[indri]]'s Tailscale IP. TLS via Let's Encrypt (ACME DNS-01 with Gandi).
|
||||
|
||||
| Service | URL | Description |
|
||||
|---------|-----|-------------|
|
||||
|
|
@ -40,6 +41,14 @@ DNS points to indri's Tailscale IP (100.98.163.89). TLS via Let's Encrypt (ACME
|
|||
| [[postgresql]] | pg.ops.eblu.me:5432 | Database |
|
||||
| [[sifaka|Sifaka]] | https://nas.ops.eblu.me | NAS dashboard |
|
||||
|
||||
## Public Services (`*.eblu.me`)
|
||||
|
||||
DNS CNAMEs point to `blumeops-proxy.fly.dev`. TLS via Fly.io-managed Let's Encrypt. Traffic tunnels back to the homelab over Tailscale. Only services tagged `tag:flyio-target` are reachable by the proxy — see [[flyio-proxy]] for details.
|
||||
|
||||
| Service | URL | Description |
|
||||
|---------|-----|-------------|
|
||||
| [[docs]] | https://docs.eblu.me | Documentation site |
|
||||
|
||||
## Tailscale-Only Services
|
||||
|
||||
| Service | URL | Description |
|
||||
|
|
@ -64,3 +73,5 @@ DNS points to indri's Tailscale IP (100.98.163.89). TLS via Let's Encrypt (ACME
|
|||
- [[gandi]] - DNS hosting for `eblu.me`
|
||||
- [[tailscale]] - ACL configuration
|
||||
- [[indri]] - Where services run
|
||||
- [[flyio-proxy]] - Public reverse proxy for `*.eblu.me`
|
||||
- [[expose-service-publicly]] - How to add a new public service
|
||||
|
|
|
|||
|
|
@ -28,6 +28,9 @@ ACLs managed via Pulumi in `pulumi/policy.hujson`.
|
|||
| `tag:blumeops` | indri, sifaka | Pulumi IaC managed resources |
|
||||
| `tag:registry` | indri | Container registry access |
|
||||
| `tag:k8s-api` | indri | Kubernetes API server access |
|
||||
| `tag:k8s-operator` | (operator pod) | Tailscale operator for k8s |
|
||||
| `tag:k8s` | (Ingress proxy pods) | Kubernetes Tailscale Ingress nodes |
|
||||
| `tag:flyio-target` | (k8s Ingress nodes) | Endpoints reachable by fly.io proxy |
|
||||
|
||||
**Important:** Don't tag user-owned devices (like gilbert). Tagging converts them to "tagged devices" which lose user identity and break user-based SSH rules.
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue