Skip to content

[Security] Enforce direct-report access boundaries - #70

Draft
patrickschiller wants to merge 2 commits into
mainfrom
codex/security-access-boundaries
Draft

patrickschiller wants to merge 2 commits into
mainfrom
codex/security-access-boundaries

Conversation

@patrickschiller

Copy link
Copy Markdown
Owner

Summary\n\n- Restrict manager time-entry access to direct reports.\n- Require authentication and explicit roles for project and work-schedule reads.\n- Preserve Solo ownership rules while closing Team-mode read exposure.\n\n## Linked issue\n\nNone. Implements findings from Codex Security scan 38b23c4d-51a7-4e1e-b83f-33007bd0f77b.\n\n## Changes\n\n- Recheck direct-manager authorization inside time-entry write transactions.\n- Limit bookable-project reads to self, direct reports, or HR administrators.\n- Require Manager or HRAdmin for project reads and HRAdmin for work schedules.\n- Regenerate the OpenAPI security metadata.\n- Add focused Team and Solo regression coverage.\n\n## How was this tested?\n\n- Nx API and api-e2e typechecks passed.\n- Nx API and api-e2e lint passed with only existing warnings.\n- Five focused E2E suites passed: 59 tests.\n- Nx format check and git diff check passed.\n\n## Release notes\n\n- Security: Restrict manager and configuration reads to authorized employee scopes.\n\n## Upgrade impact\n\n- Database migration: None.\n- Breaking change: No; previously unauthorized access now returns 401 or 403.\n- Manual operator action: None.\n\n## Checklist\n\n- [x] All commits are signed off with git commit -s.\n- [x] Lint, typecheck, and relevant tests pass locally.\n- [x] New behaviour is covered by tests where appropriate.\n- [x] Release notes and upgrade impact are documented above.\n- [x] Existing Prisma migrations were not edited.\n- [x] No domain rules from base-instructions.md were changed.\n- [x] No new third-party dependencies were added.

This branch has not been deployed

No deployments
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