Skip to content

docs: propose restricting private repo access before external onboarding - #183

Open
marcusburghardt wants to merge 1 commit into
complytime:mainfrom
marcusburghardt:restrict-private-repo-access
Open

docs: propose restricting private repo access before external onboarding#183
marcusburghardt wants to merge 1 commit into
complytime:mainfrom
marcusburghardt:restrict-private-repo-access

Conversation

@marcusburghardt

Copy link
Copy Markdown
Member

Summary

This PR contains only planning/spec artifacts for admin review. No configuration or implementation changes are included.

Problem

Our org sets default_repository_permission: read, which gives every org member implicit read access to all repositories including private ones (nunya, roadmap). When we onboard external contributors, they will automatically see private repos with sensitive information.

Proposed solution

  1. Change default_repository_permission to none -- org members only access repos through explicit team grants
  2. Bring private repos into peribolos config -- codify access via closed teams with PR review, drift detection, and git audit trail
  3. Three-phase migration -- create teams first, then change default, then retire the nunya-access secret team

Trade-off

The current model hides the access structure but weakly protects the content (any org member sees everything). The proposed model exposes organizational metadata (repo names, team memberships) in the public config but strongly protects the actual content.

See the full threat model in design.md and testable requirements in specs/private-repo-access-control/spec.md.

Artifacts included

File Purpose
proposal.md Why this change is needed
design.md Technical decisions, alternatives considered, threat model
specs/private-repo-access-control/spec.md Formal requirements with WHEN/THEN scenarios
tasks.md Phased implementation checklist

Action requested

Review the proposal and risk analysis. If agreed, implementation follows in separate PRs.

Add OpenSpec change artifacts (proposal, design, spec, tasks) for
restricting access to private repositories (nunya, roadmap) in
preparation for onboarding external contributors to the org.

Key proposal points:
- Change default_repository_permission from read to none
- Bring private repos into peribolos-managed config with closed teams
- Retire the manually-managed nunya-access secret team
- Three-phase migration to avoid access gaps

This PR contains only spec/planning artifacts for admin review.
No configuration or implementation changes are included.

Assisted-by: OpenCode (claude-opus-4-6)
Signed-off-by: Marcus Burghardt <maburgha@redhat.com>
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