posit-dev / posit-dev/team-operator

Flightdeck hardcodes its Site lookup to the posit-team namespace

Open
#147 0 comments 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

Dominant language
Go
Stars
10
Forks
1
Avg merge
1d 8h
Merged PRs (30d)
4

Description

Summary

Flightdeck's readiness/Site lookup targets the posit-team namespace regardless of where its Site actually lives. For a Site deployed in any other namespace, flightdeck fails readiness forever.

Observed live on the pwb-team-operator EKS cluster (operator chart v1.22.0, 2026-07-08) with a Site named pr-11608 in namespace pr-11608:

level=ERROR msg="failed to fetch site" name=pr-11608 namespace=posit-team
  error="sites.core.posit.team \"pr-11608\" is forbidden: User
  \"system:serviceaccount:pr-11608:pr-11608-flightdeck\" cannot get resource
  \"sites\" in API group \"core.posit.team\" in the namespace \"posit-team\""
level=WARN msg="readiness check failed" ...

Note it queries namespace=posit-team even though the Site (and flightdeck's own RBAC, correctly scoped by the operator) are in pr-11608 — so the pod sits 0/1 Running indefinitely.

Context

With WATCH_NAMESPACES widened, the operator reconciles Sites in arbitrary namespaces (we run ephemeral per-PR Workbench preview Sites in pr-<n> namespaces — rstudio/rstudio-pro#11587). Everything else (workbench, per-Site database, storage, ingress) works namespaced; flightdeck is the one product that assumes posit-team.

Expected

Flightdeck should resolve its Site in its own namespace (e.g. from the downward API / its deployment's namespace) rather than a hardcoded posit-team.

Workaround

spec.flightdeck.enabled: false on non-posit-team Sites.

Contributor guide

Open the contributing guide

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

Research direction

Locate Flightdeck's readiness/Site lookup and search for the hardcoded posit-team namespace. Read how the deployment's namespace is exposed through the downward API, then update the lookup to use the Site's own namespace. Done means a Site in a non-posit-team namespace passes readiness instead of failing on an unauthorized lookup.

Written by the indexing model from the issue text.

Assessment

Tech stack
go, kubernetes
Domain
devops, infrastructure
Issue type
Bug
Difficulty
3/5
Estimated time
1-2 days
Activity status
Quiet
Clarity
Mostly clear
Newbie friendliness
68/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.