fix(attic): restrict cache backends to loopback #161
No reviewers
Labels
No labels
area:authentication
area:flake-utilities
area:performance
area:tbd
host:chaos
host:electra
host:fleet
host:lyra
host:nova
host:vega
investigation
phase:cutover
phase:deploy
phase:mcp
phase:module
phase:packaging
phase:prep
phase:validation
priority:high
priority:medium
project:attic-postgres-lyra-rollout
project:auto-update-reliability
project:auto-update-remediation
project:declarative-purity-cleanup
project:external-review
project:fleet-boundary-cleanup
project:host-facts-refactor
project:lyra-nixos-deploy
project:lyra-service-stack-migration
project:nebula-mesh-network
project:nixos-build-deployment-pipeline
project:security-hardening
project:service-stack-migration
project:vega-sillytavern-cutover
project:wiki-rebuild
repo:numtide/flake-utils
repo:numtide/nix-auth
repo:numtide/nixos-passthru-cache
repo:numtide/nix-relay
service:auto-update
service:mem0
service:nix
service:sillytavern
service:slskd
service:synthseek
No milestone
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set
Reference
nimmo/nixos-config!161
Loading…
Reference in a new issue
No description provided.
Delete branch "issue-16-attic-loopback"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Summary
127.0.0.1:8081https://attic.nimmog.ukScope
Refs #16. This resolves the Attic portion of the exposure audit but does not close #16; the host-level posture fact and remaining listener classifications are still outstanding.
Validation
nix flake check127.0.0.1:8081[22, 18080]; Lyra has no8081127.0.0.1:8081before this configuration changeDeployment evidence still required
Canary the change on one backend and confirm both Pangolin health checks plus
https://attic.nimmog.uk/nixos/nix-cache-info; then deploy the other backend and repeat the public endpoint check.Automated code review
Reviewed commit:
e236ce9f7960a3ec9bd4fdf5c1afd76675a40e89Verdict: Ready to merge
No blocking or important findings were retained, and deterministic checks passed. Suggestions remain advisory.
Overall assessment
The diff restricts the Attic cache service to loopback (127.0.0.1:8081), removes LAN IPs from allowed-hosts, and disables the TCP/8081 firewall exception. These changes align with an architectural shift to route all ingress exclusively through a load-balanced HTTPS tunnel.
Blocking findings
None.
Important findings
None.
Suggestions
None.
Tests and validation
Questions
Review limitations
Diff coverage
modules/services/atticd.nix: reviewed — included in a context-limited batchReview metadata
Automated-review evidence:
127.0.0.1:8081.https://attic.nimmog.uk/nixossubstituter; no direct-LAN cache endpoint is configured.nix-cache-info(StoreDir: /nix/store,Priority: 41).The direct listener is still present on the deployed generation, so the required final evidence is the documented one-backend canary after merging this PR, followed by the other backend and a no-op/public endpoint check.
Final deployment evidence: both Attic Newt targets are now healthy at
127.0.0.1:8081after the Vega and Lyra activations. The publichttps://attic.nimmog.uk/nixos/nix-cache-infoendpoint remained reachable throughout the canary, and Vega confirmed Attic listening only on loopback. This completes the Attic portion of #16; the issue remains open for the broader network-exposure posture work.