Skip to content

fix(api): authorize personnel, leave and attendance reads - #34

Merged
patrickschiller merged 3 commits into
mainfrom
codex/fix-authentication-vulnerabilities-in-api
Oct 10, 2026
Merged

patrickschiller merged 3 commits into
mainfrom
codex/fix-authentication-vulnerabilities-in-api

Conversation

@patrickschiller

@patrickschiller patrickschiller commented Oct 10, 2026 •

Copy link
Copy Markdown
Owner

Employee profiles, balances and related absence/attendance reads must use the authenticated caller's record scope. This fix rejects anonymous account, leave-allowance and violation reads, and limits employee, account, vacation, absence, leave-allowance and violation data to self, direct reports for managers, or HR administrators. Unfiltered absence lists enforce the same scope.

An authenticated directory exposes only active employee IDs and names so vacation substitutes and manager project assignments remain available without exposing full personnel records. The OpenAPI contract and generated client are updated. The branch incorporates current main and preserves the 2.0.0 work-rule snapshots and break calculations.

Validation: Node 20 / pnpm 9.15.9; full workspace lint, typecheck, builds and 250 unit/integration tests; 20 release/database-safety tests; API end-to-end tests including anonymous access, all role scopes, query spoofing, stale/expired/forged sessions, and data minimization; UI regressions for substitute selection and manager/HR project assignments. No database migrations.

Signed-off-by: Codex <codex@openai.com>
Signed-off-by: Patrick Schiller <p@trickschiller.de>
…orkflows

Signed-off-by: Patrick Schiller <p@trickschiller.de>
@patrickschiller patrickschiller changed the title api: require authentication and enforce object-level authorization for employee and account endpoints fix(api): authorize personnel, leave and attendance reads Oct 10, 2026
@patrickschiller
patrickschiller marked this pull request as ready for review October 10, 2026 08:02
@chatgpt-codex-connector

chatgpt-codex-connector Bot commented Oct 10, 2026 •

Copy link
Copy Markdown

Codex Review Summary

This comment shows the latest Codex review activity on this pull request.

Review Status Commit Review trigger
📝 Code Review ✅ Completed 2026-10-10T08:05:24.159317Z b2cd313 Draft marked ready
ℹ️ About Codex in GitHub

Your team has set up Codex to review pull requests in this repo. Reviews are triggered when you

  • Open a pull request for review
  • Mark a draft as ready
  • Comment "@codex review" or "@codex security review".

Codex reacts with 👀 while any review is running, comments if it has suggestions, and reacts with 👍 once all reviews finish with no findings.

@patrickschiller
patrickschiller merged commit a6fb1d1 into main Oct 10, 2026
4 checks passed
@patrickschiller
patrickschiller deleted the codex/fix-authentication-vulnerabilities-in-api branch October 10, 2026 08:32
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant