Skip to content

feat: audit oauth2 app management #12275

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

Merged
merged 3 commits into from
Feb 26, 2024
Merged

feat: audit oauth2 app management #12275

merged 3 commits into from
Feb 26, 2024

Conversation

code-asher
Copy link
Member

@code-asher code-asher commented Feb 22, 2024

This adds audit log entries for creating/editing/deleting apps and secrets.

screenshot

@code-asher code-asher force-pushed the asher/oauth2-audit branch 9 times, most recently from 3566955 to 1b6b495 Compare February 26, 2024 20:15
@code-asher code-asher marked this pull request as ready for review February 26, 2024 21:05
@code-asher code-asher requested a review from Emyrk February 26, 2024 21:05
Comment on lines 65 to 69
case ResourceTypeOAuth2ProviderApp:
return "OAuth2 app"
case ResourceTypeOAuth2ProviderAppSecret:
// OAuth2 secrets have a unique friendly string.
return "OAuth2 app secret"
Copy link
Member

Choose a reason for hiding this comment

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

The other ones are lowercase. Should this be too? Genuine question

Copy link
Member Author

@code-asher code-asher Feb 26, 2024

Choose a reason for hiding this comment

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

This is what shows up in the audit log entry, so we get admin created OAuth2 app, and I figured I should capitalize it properly with it being a full sentence and all but honestly I am not sure what the user expectation here is!

Copy link
Member Author

Choose a reason for hiding this comment

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

Part of me wants to lowercase just because I like the lowercase though.

Copy link
Member

Choose a reason for hiding this comment

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

Got it, your call

And remove an old comment.
@code-asher code-asher enabled auto-merge (squash) February 26, 2024 22:37
@code-asher code-asher merged commit f74532f into main Feb 26, 2024
@code-asher code-asher deleted the asher/oauth2-audit branch February 26, 2024 23:52
@github-actions github-actions bot locked and limited conversation to collaborators Feb 26, 2024
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants