fix: show newly created projects and resources in the activity feed#668
Merged
Merged
Conversation
Activity summary CEL templates on CREATE rules linked audit.objectRef.name, which is empty for resources created via generateName (the assigned name lands in responseObject.metadata.name). Summary evaluation then errored with "no such key: name", the activity was dead-lettered, and the create silently never appeared in the user's activity feed. Switch the create-rule link target to audit.responseObject.metadata.name so the real assigned name resolves for generateName resources. Key changes: - project-policy.yaml: confirmed 201 production create failures (projects are generateName-created, e.g. personal-project-2975bd7b) - organization, group, role, and service account create rules: same bug class, preventive fix - update and delete rules left unchanged; objectRef.name is reliably present on those (request path) and they never failed Mirrors datum-cloud/network-services-operator#223. Claude-Session: https://claude.ai/code/session_01KnYuL5Pf1R5ysZoxxNkKiu
JoseSzycho
approved these changes
Jun 25, 2026
mattdjenkinson
approved these changes
Jun 25, 2026
This was referenced Jun 25, 2026
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
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
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.
What this does
Creating a project should land in your activity feed — but when a project's name is generated automatically, that entry was quietly going missing. This makes new projects show up reliably, and applies the same little fix to a few related resources (organizations, groups, roles, service accounts) so they don't run into the same thing.
What changed
Projects are the one we confirmed in production; the rest are proactive.