Skip to content

[PM-40514] Add custom attribute to check Organization abilities, use for risk insights endpoints - #8240

Open
lastbestdev wants to merge 10 commits into
mainfrom
vuln-685/dirt/access-intelligence-v1-endpoint-authz
Open

[PM-40514] Add custom attribute to check Organization abilities, use for risk insights endpoints #8240
lastbestdev wants to merge 10 commits into
mainfrom
vuln-685/dirt/access-intelligence-v1-endpoint-authz

Conversation

@lastbestdev

@lastbestdev lastbestdev commented Aug 20, 2026

Copy link
Copy Markdown
Contributor

🎟️ Tracking

https://bitwarden.atlassian.net/browse/PM-40514

📔 Objective

Adds a reusable custom attribute for checking the presence of an Organization ability before allowing an API request to process and return a result.

The original ticket is for patching up access to v1 Access Intelligence endpoints (aka Risk Insights), 5 of which were not checking the newly added Organization ability for feature access. The new attribute is applied to all Access Intelligence endpoints to gate access.

📸 Screenshots

N/A

@lastbestdev
lastbestdev requested a review from a team as a code owner August 20, 2026 23:50
@lastbestdev
lastbestdev requested a review from AlexRubik August 20, 2026 23:50
@github-actions

Copy link
Copy Markdown
Contributor

Claude Code is reviewing this pull request...

If this comment does not update with results, check the Actions log.

@lastbestdev lastbestdev added the t:bugfix Change Type - Bugfix label Aug 20, 2026
Comment thread src/Api/Dirt/Controllers/ReportsController.cs Outdated
@lastbestdev lastbestdev changed the title [VULN-685] Add custom attribute to check Organization abilities, use for risk insights endpoints [PM-40514] Add custom attribute to check Organization abilities, use for risk insights endpoints Aug 21, 2026
@codecov

codecov Bot commented Aug 21, 2026

Copy link
Copy Markdown

Codecov Report

✅ All modified and coverable lines are covered by tests.
✅ Project coverage is 63.31%. Comparing base (ac309aa) to head (6796de1).

Additional details and impacted files
@@            Coverage Diff             @@
##             main    #8240      +/-   ##
==========================================
+ Coverage   63.29%   63.31%   +0.01%     
==========================================
  Files        2401     2402       +1     
  Lines      104043   104071      +28     
  Branches     9426     9430       +4     
==========================================
+ Hits        65857    65891      +34     
+ Misses      35930    35926       -4     
+ Partials     2256     2254       -2     

☔ 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.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

t:bugfix Change Type - Bugfix

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant