Skip to content

Expose trusted actor roles in AccessContext for policy evaluation - #108

Merged
mckaragoz merged 4 commits into
CodeBeamOrg:devfrom
mckaragoz:AccessContextRoleEnhancement
Oct 25, 2026
Merged

mckaragoz merged 4 commits into
CodeBeamOrg:devfrom
mckaragoz:AccessContextRoleEnhancement

Conversation

@mckaragoz

Copy link
Copy Markdown
Contributor

Closes #99

Description

Summary

  • Introduce AccessActorRole to expose trusted role IDs and names through AccessContext.ActorRoles.
  • Centralize role resolution and exclude deleted roles.
  • Support role-aware policy evaluation across Server and Resource API authorization flows.
  • Preserve backward compatibility with existing role attributes.
  • Add focused tests for role resolution and authorization context behavior.

@codecov-commenter

codecov-commenter commented Oct 25, 2026 •

Copy link
Copy Markdown

Codecov Report

❌ Patch coverage is 90.78947% with 7 lines in your changes missing coverage. Please review.
✅ Project coverage is 86.11%. Comparing base (6723566) to head (733d576).
⚠️ Report is 1 commits behind head on dev.

Files with missing lines Patch % Lines
...ization/AspNetCore/ResourceAccessContextBuilder.cs 81.08% 4 Missing and 3 partials ⚠️
Additional details and impacted files
@@            Coverage Diff             @@
##              dev     #108      +/-   ##
==========================================
+ Coverage   86.08%   86.11%   +0.03%     
==========================================
  Files         668      673       +5     
  Lines       18389    18464      +75     
  Branches     2247     2255       +8     
==========================================
+ Hits        15830    15901      +71     
- Misses       1809     1812       +3     
- Partials      750      751       +1     

☔ View full report in Codecov by Harness.
📢 Have feedback on the report? Share it here.

🚀 New features to boost your workflow:
  • ❄️ Test Analytics: Detect flaky tests, report on failures, and find test suite problems.
  • 📦 JS Bundle Analysis: Save yourself from yourself by tracking and limiting bundle sizes in JS merges.

@mckaragoz
mckaragoz merged commit f3b76ed into CodeBeamOrg:dev Oct 25, 2026
3 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.

[Feature]: Expose trusted actor roles in AccessContext for policy evaluation

2 participants