Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

SMQ-2568 - Check Domain enabled / disabled status during Authn or Authz #2586

Merged
merged 10 commits into from
Dec 24, 2024

Conversation

felixgateru
Copy link
Contributor

@felixgateru felixgateru commented Dec 11, 2024

What type of PR is this?

This is a feature as it adds check domain authorization for domain related operations by users.

What does this do?

This pr adds domain check authorization to existing authorization. The check domain is meant to ensure only domain admins can access a disabled domain and only super admins can access a frozen domain.

Which issue(s) does this PR fix/relate to?

Have you included tests for your changes?

Yes, tests have been added.

Did you document any new/modified feature?

No

Notes

None

domains/api/grpc/client.go Outdated Show resolved Hide resolved
@felixgateru felixgateru force-pushed the noissue-check-domain branch 3 times, most recently from accffa1 to 5b5ef9b Compare December 17, 2024 12:41
Copy link

codecov bot commented Dec 17, 2024

Codecov Report

Attention: Patch coverage is 0% with 1 line in your changes missing coverage. Please review.

Project coverage is 46.76%. Comparing base (4f73a52) to head (86d3787).
Report is 1 commits behind head on main.

Files with missing lines Patch % Lines
groups/middleware/authorization.go 0.00% 1 Missing ⚠️
Additional details and impacted files
@@            Coverage Diff             @@
##             main    #2586      +/-   ##
==========================================
+ Coverage   45.67%   46.76%   +1.09%     
==========================================
  Files         398      156     -242     
  Lines       50091    23988   -26103     
==========================================
- Hits        22879    11218   -11661     
+ Misses      24854    11806   -13048     
+ Partials     2358      964    -1394     

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

domains/middleware/authorization.go Outdated Show resolved Hide resolved
@felixgateru felixgateru marked this pull request as ready for review December 18, 2024 06:53
pkg/authz/domainssvc/domains.go Outdated Show resolved Hide resolved
@felixgateru felixgateru force-pushed the noissue-check-domain branch 3 times, most recently from 0f23321 to 3fa5055 Compare December 20, 2024 13:09
Comment on lines 6 to 8
import (
"context"
)
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Please make it inline

@felixgateru felixgateru force-pushed the noissue-check-domain branch 2 times, most recently from 9c88d26 to c4e4a5c Compare December 20, 2024 15:34
@dborovcanin dborovcanin merged commit 8e552d0 into absmach:main Dec 24, 2024
7 of 9 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.

Check Domain enabled / disabled status during Authn or Authz
3 participants