Skip to content

getProject: SECURITY-GATE CheckAccess runs after createProjectGroup write (write-before-auth) #1393

Description

@ptone

Introduced by the merge of #1414 (project visibility eradication / membership-based access control). The SECURITY-GATE: CheckAccess block in getProject (pkg/hub/handlers_projects_core.go) was dropped/reordered during that merge, so createProjectGroup and createProjectMembersGroupAndPolicy currently run before the authorization check rather than after — a write-before-auth anti-pattern. Confirmed still live on current main.

Fix is written, reviewed, and open: fork PR #1391 ("fix(hub): restore SECURITY-GATE CheckAccess in getProject handler"), identical to the already-validated commit 13ac6cf on scion/proj-visibility-dev.

Per ptone: leaving PR#1391 open for now rather than merging immediately — the in-progress authz-foundation-refactor (Policy/RoleBinding unification) may obsolete this code path entirely, and the team on that work shouldn't be distracted with this right now. This issue exists so a future triage/validation sweep catches it and decides whether to merge #1391 as-is or fold the fix into the foundation refactor.

Activity

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

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions