Skip to content

[INFRA-776] - fix(argus): address post-merge review feedback - #55

Open
akshat5302 wants to merge 1 commit into
mainfrom
fix/argus-post-merge-review
Open

[INFRA-776] - fix(argus): address post-merge review feedback#55
akshat5302 wants to merge 1 commit into
mainfrom
fix/argus-post-merge-review

Conversation

@akshat5302

Copy link
Copy Markdown
Member

Summary

Follow-up to #53 (squash-merged before review comments landed). Addresses all 12 review comments from @gauthamp-ai and @pratapalakshmi:

  • Routing: add /argus/plane-argus:8100 to base nginx ingress and the traefik IngressRoute (mirroring /pi/); phoenix's index-coupled IngressRoute host patches updated in the same commit per the file's own rule.
  • Deployment hardening: drop strategy: Recreate (default RollingUpdate like siblings); add a startupProbe on /argus/healthz so a slow/hung DB connect no longer becomes a liveness CrashLoop; mount an emptyDir at /home/nonroot/data so CSV exports work under nonroot-security-context (fsGroup) — custom-ca now treats argus like email-service (append, not replace, volumes/volumeMounts).
  • APP_VERSION: default overlay's Job image target broadened to unscoped kind: Job (with a reject for plane-minio-bucket-create, which uses minio/mc) so plane-argus-migrator tracks APP_VERSION like managed/phoenix.
  • Config surface: ARGUS_TRUSTED_PROXIES and ARGUS_METRICS_ADDR are now overlay-configurable via replacements + vars.yaml.example entries in all three overlays.
  • Secrets examples: ARGUS_FINGERPRINT_SECRET examples fail closed ("", with generation + rotation-warning comments); ARGUS_DATABASE_URL examples mirror each overlay's own DATABASE_URL host and note it must target the same Plane database (argus has no Secrets Manager support).
  • Migrator Job: comment now documents spec.template immutability (delete before re-apply); timestamp year fixed.
  • Docs/scope: argus documented in kustomize/README.md and the phoenix README (required keys, private makeplane/argus-cloud image caveat); default/managed commented-out entries clarified as NOT enabled by default.

Test plan

  • kubectl kustomize succeeds for default, managed, and phoenix overlays (from .example files)
  • phoenix render: no Recreate, startupProbe present, argus-data + custom-ca volumes coexist, /argus/ traefik rule at correct index with subsequent routes intact
  • default render (argus temp-enabled): bumping APP_VERSION retags both plane-argus-wl and plane-argus-migrator; plane-minio-bucket-create untouched

🧙 Built with WOZCODE

- Route /argus/ via base nginx ingress and traefik ingress-route (mirrors /pi/);
  update phoenix's index-coupled IngressRoute host patches accordingly
- Drop strategy: Recreate (default RollingUpdate like sibling services)
- Add startupProbe so slow DB connects don't turn into liveness CrashLoops
- Mount an emptyDir at /home/nonroot/data for CSV exports (distroless nonroot
  image); teach custom-ca to append (not replace) argus volumes/volumeMounts
- Make ARGUS_TRUSTED_PROXIES and ARGUS_METRICS_ADDR overlay-configurable via
  replacements + vars.yaml.example entries
- Broaden default overlay's APP_VERSION Job image target to unscoped kind: Job
  (rejecting plane-minio-bucket-create) so plane-argus-migrator tracks APP_VERSION
- Fail-closed ARGUS_FINGERPRINT_SECRET examples ("" + generation/rotation notes);
  ARGUS_DATABASE_URL examples now mirror each overlay's DATABASE_URL host with a
  same-database + no-Secrets-Manager warning
- Fix migrator run-timestamp year and document Job template immutability
- Document argus in kustomize/README.md and phoenix README (required keys,
  private image caveat); tighten default/managed commented-out entries

Co-Authored-By: WOZCODE <contact@withwoz.com>
@makeplane

makeplane Bot commented Aug 28, 2026

Copy link
Copy Markdown

Linked to Plane Work Item(s)

This comment was auto-generated by Plane

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant