Skip to content

fix(access): send the backend every permission except the identity provider's own - #61

Merged
lorenzocorallo merged 2 commits into
mainfrom
fix/esign-projection
Oct 17, 2026
Merged

lorenzocorallo merged 2 commits into
mainfrom
fix/esign-projection

Conversation

@lorenzocorallo

@lorenzocorallo lorenzocorallo commented Oct 17, 2026 •

Copy link
Copy Markdown
Member

The backend projection only carried permissions with the admin:, tg:, wa:, groups:, web: and azure: prefixes, so new permissions created in the dashboard (e.g. esign:sign, esign:requests:manage) never reached the backend until someone edited the code.

The projection now carries every permission except the identity provider's own managed idp:* permissions. Subjects with no projected permission are still left out of the snapshot.

  • src/auth/access-projections.ts: drop prefixes
  • src/auth/access-snapshot.ts: filter with isManagedPermissionKey
  • test: a dashboard-created permission is projected, idp:* is not
  • RFC v3 §5.2 updated

The backend projection only carried the admin:, tg:, wa:, groups:, web: and azure: prefixes, so granted
esign:sign and esign:requests:manage never reached the backend and the dashboard hid the Signatures section.
@coderabbitai

coderabbitai Bot commented Oct 17, 2026 •

Copy link
Copy Markdown
Contributor

Review in Change Stack →

No actionable comments were generated in the recent review. 🎉

ℹ️ Recent review info
⚙️ Run configuration
  • Configuration used: Organization UI
  • Review profile: CHILL
  • Plan: Advanced
  • Run ID: 7bf428c3-6bdd-47e8-b5ca-58527c4dd0c8
📥 Commits

Reviewing files that changed from the base of the PR and between 8045a57 and a8297d8.

📒 Files selected for processing: 2
  • docs/idp-telegram-integration-rfc-v3.md
  • src/auth/access-projections.ts

Included review availability: This review used your included allowance. Your plan provides up to 1 included review per hour; 0 remain after this review.

Walkthrough

The backend access projection now includes the esign: permission prefix. The RFC documents the same change.

Changes

Backend access projection

Layer / File(s) Summary
Add the e-sign permission prefix
src/auth/access-projections.ts, docs/idp-telegram-integration-rfc-v3.md
The backend projection’s accepted prefixes now include esign:. The RFC also lists this prefix.

Priority: ➖ Normal

Change: Bug fix

Merge Risk: ⚪ Minimal · up to a8297

The change adds e-sign permissions to the backend projection and documents that behavior; no actionable merge-blocking risk is identified in the supplied context.

Pre-merge checks: Passed 4
Check name Status Explanation
Docstring Coverage Passed No functions found in the changed files to evaluate docstring coverage. Skipping docstring coverage check. Docstring coverage is scoped to functions touched by this diff. Analyzed 0 functions across 1…
Linked Issues check Passed Check skipped because no linked issues were found for this pull request.
Out of Scope Changes check Passed Check skipped because no linked issues were found for this pull request.
Title check Passed The title accurately describes the main change: the backend projection now receives permissions beyond the identity provider's own permissions, including the previously omitted esign: permissions.
Full details: Docstring Coverage

Explanation

No functions found in the changed files to evaluate docstring coverage. Skipping docstring coverage check. Docstring coverage is scoped to functions touched by this diff. Analyzed 0 functions across 1 files. (1 skipped: 1 unsupported.)

✨ Finishing Touches
📝 Generate docstrings
  • Commit to this branch
  • Create a new PR
  • Autofix · Keep fixing CodeRabbit findings and required CI, and resolving merge conflicts

Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out.

❤️ Share

Comment @coderabbitai help to get the list of available commands.

…ovider's own

Replaces the prefix allowlist with excluding the managed idp:* permissions, so a permission created in
the dashboard reaches the backend without a code change.
@lorenzocorallo lorenzocorallo changed the title fix(access): include esign permissions in the backend projection fix(access): send the backend every permission except the identity provider's own Oct 17, 2026
@lorenzocorallo
lorenzocorallo merged commit 3d9288f into main Oct 17, 2026
2 checks passed
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