-
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
Add access control logging #14540
Merged
mlepage-google
merged 8 commits into
project-chip:master
from
mlepage-google:access-control-logging
Feb 1, 2022
Merged
Add access control logging #14540
mlepage-google
merged 8 commits into
project-chip:master
from
mlepage-google:access-control-logging
Feb 1, 2022
Conversation
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Add a log statement in AccessControl::Check so we can see what params are being used to do the check. This looks like: AccessControl: checking f=1 a=c s=0xbc5c01 t= c=0x30 e=0 p=o With some CATs: AccessControl: checking f=1 a=c s=0xbc5c01 t=0xaaaa0001,0xbbbb0002 c=0x30 e=0 p=o Where AccessControl::Check is called, if there's an error, override it for now (grace period) but log it as an error: This looks like: AccessControl: overriding DENY (for now) Progress toward issue project-chip#14454
PR #14540: Size comparison from e2faf8f to 4b838dc Increases (27 builds for cyw30739, efr32, esp32, k32w, mbed, nrfconnect, p6, qpg, telink)
Full report (31 builds for cyw30739, efr32, esp32, k32w, mbed, nrfconnect, p6, qpg, telink)
|
msandstedt
reviewed
Jan 29, 2022
msandstedt
approved these changes
Jan 29, 2022
bzbarsky-apple
approved these changes
Jan 29, 2022
- Use ChipLogFormatX64/ChipLogValueX64 - Use ChipLogFormatMEI/ChipLogValueMEI
May as well match the other ones.
andy31415
approved these changes
Jan 31, 2022
We know result is non-negative.
PR #14540: Size comparison from fb256c5 to f688123 Increases (12 builds for cyw30739, k32w, linux, p6, qpg, telink)
Full report (13 builds for cyw30739, k32w, linux, p6, qpg, telink)
|
Otherwise, some platforms without logging complain they are unused.
PR #14540: Size comparison from fb256c5 to 89ca5f5 Increases (29 builds for cyw30739, efr32, esp32, k32w, linux, mbed, nrfconnect, p6, qpg, telink)
Full report (33 builds for cyw30739, efr32, esp32, k32w, linux, mbed, nrfconnect, p6, qpg, telink)
|
PR #14540: Size comparison from fb256c5 to 24de71e Increases (29 builds for cyw30739, efr32, esp32, k32w, linux, mbed, nrfconnect, p6, qpg, telink)
Full report (33 builds for cyw30739, efr32, esp32, k32w, linux, mbed, nrfconnect, p6, qpg, telink)
|
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Problem
Need a bit of visibility into what access control is doing before
we turn on enforcement.
Change overview
Add a log statement in AccessControl::Check so we can see what
params are being used to do the check.
This looks like:
AccessControl: checking f=1 a=c s=0x0000000000BC5C01 t= c=0x0000_0030 e=0 p=o
With some CATs:
AccessControl: checking f=1 a=c s=0x0000000000BC5C01 t=0xAAAA0001,0xBBBB0002 c=0x0000_0030 e=0 p=o
Where AccessControl::Check is called, if there's an error,
override it for now (grace period) but log it as an error.
This looks like:
AccessControl: overriding DENY (for now)
Progress toward issue #14454
Testing