-
Notifications
You must be signed in to change notification settings - Fork 1
feat: initial audit logging to rmapi #143
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
Open
benjamsf
wants to merge
19
commits into
main
Choose a base branch
from
auditlog-to-rmapi
base: main
Could not load branches
Branch not found: {{ refName }}
Loading
Could not load tags
Nothing to show
Loading
Are you sure you want to change the base?
Some commits from the old base branch may be removed from the timeline,
and old review comments may become outdated.
Open
Changes from all commits
Commits
Show all changes
19 commits
Select commit
Hold shift + click to select a range
604aae8
feat: audit logging to /api/v1/people
benjamsf db4c338
chore: bump version
benjamsf 9187cf5
feat: audit log to /api/v1/firstuser
benjamsf 6292914
chore: update libpvarki and pyopenssl to match libpvarki 2.2.0 reqs
benjamsf cedce8d
feat: add temp util for request context, before we support this in li…
benjamsf 4d3f5c6
feat: utils/auditcontext.py until libpvarki auditlogging is thoughtfu…
benjamsf d81ce22
feat: auditlogging to /api/v1/enrollment endpoints
benjamsf fb40db7
feat: utils/auditlogging to provide ecs 1.6.0 compliant fields
benjamsf 61fcc31
fix: ecs1.6.0 conformity to fields we log
benjamsf 0b5afd5
feat: ecs 1.6.0-style auditlog to /api/v1/firstuser
benjamsf d501eb5
feat: ecs 1.6.0-style auditlogging to /api/v1/people
benjamsf 2171e09
feat: auditlogging to /api/v1/enduserpfx
benjamsf 30c360b
fix: remove patch revision from libpvarki & pyopenssl definition
benjamsf 3901ac8
feat: default actor to cert DN if available
benjamsf 703636e
feat: /api/enrollment default actor to DN when mTLS auth is expected
benjamsf 558f2e3
feat: /api/v1/people default actor to cert DN
benjamsf 056d574
feat: auditlogging to /api/v1/token
benjamsf c129dee
fix: Ensure DELETE /api/v1/people responds a 404 if we try to delete …
benjamsf 9239cc2
feat: actor from callsign on /api/v1/enrollment/invitecode/enroll suc…
benjamsf File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains hidden or 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
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -1,5 +1,5 @@ | ||
| [bumpversion] | ||
| current_version = 1.12.0 | ||
| current_version = 1.13.0 | ||
| commit = False | ||
| tag = False | ||
|
|
||
|
|
||
Large diffs are not rendered by default.
Oops, something went wrong.
This file contains hidden or 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
This file contains hidden or 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
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -1,3 +1,3 @@ | ||
| """python-rasenmaeher-api""" | ||
|
|
||
| __version__ = "1.12.0" # NOTE Use `bump2version --config-file patch` to bump versions correctly | ||
| __version__ = "1.13.0" # NOTE Use `bump2version --config-file patch` to bump versions correctly |
This file contains hidden or 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
Oops, something went wrong.
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.
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.
actor should be defaulted from the Certificate info header or just request context info
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.
defaulted to this in utils/auditcontext.py, so when actor is not defined we check if there's cert DN to be shown. If not, unknown. In cases without cert where we should log actor (Enrolling with invitecode and downloading a cert, auth is via JWT), it is set as callsign.
With /api/v1/enrollment/invitecode/enroll, in successpaths we take actor from the callsign the enrolling user posted. Failure paths log the target but actor ends up to be nil/unknown.