Skip to content

Per-tenant runner ServiceAccounts #550

Closed

Description

@athvin

Open work found in plan-to-aws.md §4.2 (now .claude/skills/infra-platform/references/plan-to-aws.md) · release mvp · estimate 2 eng-weeks

Tenant isolation at the S3 layer. The acceptance test is that a runner for tenant A, handed tenant B's prefix explicitly, gets AccessDenied.

How this was verified

The scaffolding exists: an er-runner ServiceAccount, the er-dev-runner-pod IAM role, and a per-namespace Pod Identity association (infra/terraform/envs/dev/pod_identity.tf) — Pod Identity, never IRSA, and the runner pod holds no Kubernetes credential at all.

What is missing is the per-tenant part. One role serves every runner, and its policy is data.aws_iam_policy_document.s3_user.json — the same grants the §9.2 interim service user carries. It does not discriminate by prefix, so the acceptance test above cannot pass today.

Two things that affect sequencing:

  • er_runner_pod_namespaces defaults to [], so no association exists until a namespace is listed.
  • The role is deliberately ahead of its first use: the engine cannot open an s3:// lake yet, so EFS at /srv/er is the data path. The isolation gap is therefore not yet reachable — and becomes urgent the moment the S3 lake opens.

Corrected 2026-11-05. This issue originally claimed "a grep for a per-tenant ServiceAccount or runner role across infra/ returns nothing". That was false — there are 16 serviceaccount matches under infra/ and a named runner role. The conclusion stands; the evidence did not, and it understated what is built, which is the exact bias this batch of work was correcting.

Verified against this repo on 2026-11-05. Re-verified 2026-11-07 against origin/main: pod_identity.tf (er_runner_pod_namespaces still [] at :82) and the shared er-dev-runner-pod role are unchanged; the gap stands as written.

Activity

  1. added
    mvp
    docs-backlog
    on Nov 5, 2026
  2. self-assigned this
    on Nov 9, 2026
  3. athvin commented on Nov 9, 2026

    @athvin
    OwnerAuthor

    Claimed — working in #1027 (draft), at 2026-11-09T05:49:22.834605+00:00. Closing that PR releases the claim.

  4. added 7 commits that reference this issue on Nov 9, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

Labels

docs-backlogmvp

Type

No type

Projects

No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions