Skip to content

feat: add auditing for groups #4527

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 15 commits into from
Oct 19, 2022
Merged

feat: add auditing for groups #4527

merged 15 commits into from
Oct 19, 2022

Conversation

sreya
Copy link
Collaborator

@sreya sreya commented Oct 13, 2022

  • Adds auditing for most aspects of template RBAC. Group members will be submitted separately.
  • Cleans up the TemplateACL type by turning it into a driver and integrating it more directly into sqlc.

create group:

image

update group:

image

delete group:

image

update template acl:

image

fixes #4503

@sreya sreya requested a review from a team as a code owner October 19, 2022 00:21
@sreya sreya requested review from BrunoQuaresma and coadler and removed request for a team October 19, 2022 00:21
@bpmct bpmct requested a review from Kira-Pilot October 19, 2022 03:40
@@ -24,3 +24,22 @@ func (a *Actions) Scan(src interface{}) error {
func (a *Actions) Value() (driver.Value, error) {
return json.Marshal(a)
}

// TemplateACL is a map of ids to permissions.
type TemplateACL map[string][]rbac.Action
Copy link
Contributor

Choose a reason for hiding this comment

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

Could this be a map[uuid.UUID][]rbac.Action?

Copy link
Collaborator Author

Choose a reason for hiding this comment

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

possibly but it involves a lot of code changes, i'll try it out in a separate pr

@sreya sreya merged commit 0d1096d into main Oct 19, 2022
@sreya sreya deleted the jon/groupaudit branch October 19, 2022 07:00
@github-actions github-actions bot locked and limited conversation to collaborators Oct 19, 2022
@Kira-Pilot
Copy link
Member

🥳

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.

groups: add audit logging
3 participants