Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

chore: enforce orgid in audit logs where required#12283

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 ourterms of service andprivacy statement. We’ll occasionally send you account related emails.

Already on GitHub?Sign in to your account

Merged
Emyrk merged 4 commits intomainfromstevenmasley/org_audit
Feb 26, 2024

Conversation

Emyrk
Copy link
Member

@EmyrkEmyrk commentedFeb 23, 2024
edited
Loading

What this does

Populates and requires theorganizationID field to audit logs where it can be set.

Some resources are not scoped to an org. This is ok imo, but from a UI perspective, we might have org vs site audit log views in the future.

Closes#11930

@EmyrkEmyrk marked this pull request as ready for reviewFebruary 23, 2024 17:15
@EmyrkEmyrk requested a review fromjohnstcnFebruary 23, 2024 17:15
Comment on lines +210 to +214
// In unit tests we panic to fail the tests
panic(fmt.Sprintf("missing required organization ID for resource %q", resourceName))
}
log.Error(ctx, "missing required organization ID for resource in audit log",
slog.F("resource", resourceName),
Copy link
Member

@johnstcnjohnstcnFeb 23, 2024
edited
Loading

Choose a reason for hiding this comment

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

maybe no harm to also include resource type?

Edit: %T does that, the varnameresourceName threw me off

maybe we can do%+v in unit tests? or would that be too much?

Emyrk reacted with thumbs up emoji
Copy link
MemberAuthor

@EmyrkEmyrkFeb 26, 2024
edited
Loading

Choose a reason for hiding this comment

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

I think %+v is too much and we'd have to be careful with any secrets.

johnstcn reacted with thumbs up emoji
@EmyrkEmyrk merged commitf44c89d intomainFeb 26, 2024
@EmyrkEmyrk deleted the stevenmasley/org_audit branchFebruary 26, 2024 14:27
@github-actionsgithub-actionsbot locked and limited conversation to collaboratorsFeb 26, 2024
Sign up for freeto subscribe to this conversation on GitHub. Already have an account?Sign in.
Reviewers

@johnstcnjohnstcnjohnstcn approved these changes

Assignees

@EmyrkEmyrk

Labels
None yet
Projects
None yet
Milestone
No milestone
Development

Successfully merging this pull request may close these issues.

Org scoped audit logs
2 participants
@Emyrk@johnstcn

[8]ページ先頭

©2009-2025 Movatter.jp