Enable private RustFS access from Woodpecker Docker jobs #96

Open
opened 2026-11-25 19:39:20 +00:00 by martin · 1 comment
Owner

Summary

Establish and verify a private network path from Woodpecker jobs using the Docker backend on Nidaros to RustFS's S3 endpoint for TechDocs publishing.

Context

  • #90 deploys RustFS at rustfs-svc.infra.svc.cluster.local:9000 as a ClusterIP service with no public ingress. Its acceptance criteria require the authorized CI publisher to reach this private endpoint.
  • The Woodpecker agent runs on Nidaros but executes jobs in Docker containers. Host reachability does not prove that a job container can resolve cluster DNS or route to a Kubernetes ClusterIP.
  • CI needs access to the S3 API only; it does not need Kubernetes API credentials or access to the RustFS admin console.

Scope

  • Test name resolution and TCP/S3 connectivity from an actual Woodpecker Docker-backed job to the RustFS S3 endpoint.
  • If existing Docker-to-cluster routing is insufficient, implement the narrowest private path. Consider exposing only the RustFS S3 service to the tailnet with a restricted Tailscale Kubernetes Operator route; do not route the whole cluster network or expose RustFS publicly.
  • Keep the administration console inaccessible to CI and document the selected endpoint and access controls.

Acceptance criteria

  • A real Docker-backed Woodpecker job can resolve and reach the configured RustFS S3 endpoint; the test is run inside the job container, not only on the Nidaros host.
  • The CI publisher can perform the required bucket-scoped list/publish/update/delete operations using its dedicated RustFS identity and the techdocs-publish policy; a disposable test object is cleaned up.
  • The route is private and limited to the required RustFS S3 port and authorized runner; the admin console and Kubernetes API are not exposed to the job.
  • The final networking choice and any Tailscale ACL/configuration are documented.

Dependencies

  • #90 provides the RustFS service, bucket, and publisher policy; its CI IAM user must be provisioned before end-to-end S3 tests.
  • #88 consumes RustFS from the Backstage dev/prod workloads; this issue focuses on CI runner connectivity.

Out of scope

  • Moving RustFS from Nixidy/ArgoCD to a host-managed NixOS service. That would change deployment ownership without, by itself, providing CI network access.
## Summary Establish and verify a private network path from Woodpecker jobs using the Docker backend on Nidaros to RustFS's S3 endpoint for TechDocs publishing. ## Context - [#90](https://code.martials.no/Personal/cluster/issues/90) deploys RustFS at `rustfs-svc.infra.svc.cluster.local:9000` as a ClusterIP service with no public ingress. Its acceptance criteria require the authorized CI publisher to reach this private endpoint. - The Woodpecker agent runs on Nidaros but executes jobs in Docker containers. Host reachability does not prove that a job container can resolve cluster DNS or route to a Kubernetes ClusterIP. - CI needs access to the S3 API only; it does not need Kubernetes API credentials or access to the RustFS admin console. ## Scope - Test name resolution and TCP/S3 connectivity from an actual Woodpecker Docker-backed job to the RustFS S3 endpoint. - If existing Docker-to-cluster routing is insufficient, implement the narrowest private path. Consider exposing only the RustFS S3 service to the tailnet with a restricted Tailscale Kubernetes Operator route; do not route the whole cluster network or expose RustFS publicly. - Keep the administration console inaccessible to CI and document the selected endpoint and access controls. ## Acceptance criteria - [ ] A real Docker-backed Woodpecker job can resolve and reach the configured RustFS S3 endpoint; the test is run inside the job container, not only on the Nidaros host. - [ ] The CI publisher can perform the required bucket-scoped list/publish/update/delete operations using its dedicated RustFS identity and the `techdocs-publish` policy; a disposable test object is cleaned up. - [ ] The route is private and limited to the required RustFS S3 port and authorized runner; the admin console and Kubernetes API are not exposed to the job. - [ ] The final networking choice and any Tailscale ACL/configuration are documented. ## Dependencies - [#90](https://code.martials.no/Personal/cluster/issues/90) provides the RustFS service, bucket, and publisher policy; its CI IAM user must be provisioned before end-to-end S3 tests. - [#88](https://code.martials.no/Personal/cluster/issues/88) consumes RustFS from the Backstage dev/prod workloads; this issue focuses on CI runner connectivity. ## Out of scope - Moving RustFS from Nixidy/ArgoCD to a host-managed NixOS service. That would change deployment ownership without, by itself, providing CI network access.
Author
Owner

Progress

  • Confirmed the active Personal/cluster pipeline uses the global switch workflow and runs Docker-backed steps on Nidaros.
  • Read-only Docker probes on Nidaros show the RustFS ClusterIP (10.43.16.107:9000) is reachable from both the default bridge and a Woodpecker-style wp_*_default network. The default container resolver does not resolve rustfs-svc.infra.svc.cluster.local; pointing the container DNS at CoreDNS (10.43.0.10) resolves it, and the RustFS health endpoint returns OK.
  • This indicates no Tailscale route or service move is needed for this runner; a per-step DNS override (dns: 10.43.0.10) or an endpoint address is the likely fix. No cluster networking resources were changed.

Remaining

  • This was a Docker-network probe, not yet a run of the actual Woodpecker publisher workflow. Verify DNS and S3 publishing from that job after the publisher step/CI IAM identity is wired.
## Progress - Confirmed the active `Personal/cluster` pipeline uses the global `switch` workflow and runs Docker-backed steps on Nidaros. - Read-only Docker probes on Nidaros show the RustFS ClusterIP (`10.43.16.107:9000`) is reachable from both the default bridge and a Woodpecker-style `wp_*_default` network. The default container resolver does not resolve `rustfs-svc.infra.svc.cluster.local`; pointing the container DNS at CoreDNS (`10.43.0.10`) resolves it, and the RustFS health endpoint returns OK. - This indicates no Tailscale route or service move is needed for this runner; a per-step DNS override (`dns: 10.43.0.10`) or an endpoint address is the likely fix. No cluster networking resources were changed. ## Remaining - This was a Docker-network probe, not yet a run of the actual Woodpecker publisher workflow. Verify DNS and S3 publishing from that job after the publisher step/CI IAM identity is wired.
Sign in to join this conversation.
No milestone
No project
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Reference
Personal/cluster#96
No description provided.