Skip to content

P0 UDE: persistent Cloud volume and dedicated least-privilege Kubernetes service account #116

Todo

Description

@zeekay

src/commands/up/manifest.rs mounts /var/lib/cloud as emptyDir and uses namespace default SA; down scales Deployment to zero, so pod-local data can be deleted. Logs: KMS informer cannot list pods; platform cannot list batch jobs. src/commands/up/kube.rs apply_workload only applies Deployment/Service and src/commands/up/supervisor.rs attaches registry pull secret to default SA. Coordinate Cloud Makefile stop behavior. Implement dedicated namespaced cloud SA and minimal verified permissions for actual pod/job watches; if code lists across namespaces, configure namespace-scoped informers where possible rather than broad cluster access. Apply SA/Role/RoleBinding/PVC before Deployment in both cold and warm/native paths; attach pull secret to dedicated SA, no cluster-admin, no secret wildcard. Persistent volume backed by VM durable filesystem/local-path; first migration must preserve existing live emptyDir bytes and encryption key with explicit backup/restore and refuse unsafe migration; do not simply roll out and lose IAM/JetStream/data. down/stop keep state; only explicit reset wipes. E2E seed IAM user/record/event, down/up, stop/start, upgrade local image; prove records and event delivery persist, no RBAC denied, unauthorized access denied, no data loss on failed migration. Avoid deleting existing state on a normal start.

Activity

  1. linear commented on Nov 27, 2026

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

Metadata

Metadata

Assignees

Labels

No labels
No labels

Type

No type

Projects

No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions