Skip to content

Ernestl/seclog part5#6

Open
ernestl wants to merge 3 commits into
masterfrom
ernestl/seclog-part5
Open

Ernestl/seclog part5#6
ernestl wants to merge 3 commits into
masterfrom
ernestl/seclog-part5

Conversation

@ernestl

@ernestl ernestl commented Jun 4, 2026

Copy link
Copy Markdown
Owner

Thanks for helping us make a better snapd!
Have you signed the license agreement and read the contribution guide?

@ernestl ernestl marked this pull request as ready for review June 4, 2026 21:36
@ernestl

ernestl commented Jun 4, 2026

Copy link
Copy Markdown
Owner Author

@cursor review

@cursor

cursor Bot commented Jun 4, 2026

Copy link
Copy Markdown

Skipping Bugbot: Bugbot is disabled for this repository. Visit the Bugbot dashboard to update your settings.

@ernestl

ernestl commented Jun 4, 2026

Copy link
Copy Markdown
Owner Author

https://github.com/cursor review

@cursor

cursor Bot commented Jun 4, 2026

Copy link
Copy Markdown

Skipping Bugbot: Bugbot is disabled for this repository. Visit the Bugbot dashboard to update your settings.

@github-actions

github-actions Bot commented Jun 4, 2026

Copy link
Copy Markdown

Fri Jun 5 16:07:08 UTC 2026
The following results are from: https://github.com/ernestl/snapd/actions/runs/27025351456

No spread failures reported

@ernestl

ernestl commented Jun 5, 2026

Copy link
Copy Markdown
Owner Author

https://github.com/cursor review

@cursor

cursor Bot commented Jun 5, 2026

Copy link
Copy Markdown

Skipping Bugbot: Bugbot is disabled for this repository. Visit the Bugbot dashboard to update your settings.

@ernestl ernestl force-pushed the ernestl/seclog-part5 branch 5 times, most recently from 800b872 to 660ef64 Compare June 5, 2026 15:54
ernestl and others added 3 commits June 5, 2026 17:54
Add Peer, Endpoint, AuthzChecks types and LogAdminActivity /
LogUnauthorizedAccess for security audit events. Extend Reason with
HTTP code and semantic kind fields for structured error logging.

Co-authored-by: Cursor <[email protected]>
Return accessLevel from CheckAccess and emit authz_admin/authz_fail only
when authorization checks were evaluated. Skip audit on dispatch-only
byActionAccess failures via accessLevelNotEvaluated. Populate authz_checks
during checkAccess, derive audit reasons from apiError, and share JSON
action body parsing between audit logging and tracing.

Co-authored-by: Cursor <[email protected]>
Verify admin API authorization events are emitted for successful and
rejected calls over snapd.socket.

Co-authored-by: Cursor <[email protected]>
@ernestl ernestl force-pushed the ernestl/seclog-part5 branch from 660ef64 to 616cbc9 Compare June 5, 2026 15:56
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant