-
Notifications
You must be signed in to change notification settings - Fork 2.1k
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
Set up an kInternalDeviceAccess
Auth mode to be used by internal requests when building subject descriptors
#37174
base: master
Are you sure you want to change the base?
Conversation
src/access/AccessControl.cpp
Outdated
@@ -98,6 +98,8 @@ char GetAuthModeStringForLogging(AuthMode authMode) | |||
{ | |||
case AuthMode::kNone: | |||
return 'n'; | |||
case AuthMode::kInternal: |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I think there needs to be other checks elsewhere to grant Administer to kInternal
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I did a grep where kPASE nad kCASE was used and could not find any obvious places. This is one of my concerns: I am not actually really sure where these are needed or not. I believe IM does the validation, so by the time we get to DataModel providers we do not care anymore, so I think this is fine for the purpose of Provider access.
PR #37174: Size comparison from 04f1688 to 069f927 Full report (71 builds for bl602, bl702, bl702l, cc13x4_26x4, cc32xx, cyw30739, efr32, esp32, linux, nrfconnect, nxp, psoc6, qpg, stm32, telink, tizen)
|
PR #37174: Size comparison from 04f1688 to 84816e1 Full report (71 builds for bl602, bl702, bl702l, cc13x4_26x4, cc32xx, cyw30739, efr32, esp32, linux, nrfconnect, nxp, psoc6, qpg, stm32, telink, tizen)
|
kInternal
Auth mode to be used by internal requests when building subject descriptorskInternalDeviceAccess
Auth mode to be used by internal requests when building subject descriptors
This is to allow
SubjectDescriptor
settings to trickle down marked as internal requests rather than pretending PASE or CASE without a real remote node requesting interactions.Updated the PR-RPC implementation to use this flag for its reads/writes of attributes (this is on top of setting the kInternal flag for the read/write requests).
Testing
Letting CI to validate this, as the intent is "no regressions"