Skip to content

fix: show newly created projects and resources in the activity feed#668

Merged
scotwells merged 1 commit into
mainfrom
fix/activity-policy-generatename-summaries
Jun 25, 2026
Merged

fix: show newly created projects and resources in the activity feed#668
scotwells merged 1 commit into
mainfrom
fix/activity-policy-generatename-summaries

Conversation

@scotwells

@scotwells scotwells commented Jun 25, 2026

Copy link
Copy Markdown
Contributor

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

  • Create summaries now use the resource's assigned name, so they always show up.
  • Updates and deletes are untouched.

Projects are the one we confirmed in production; the rest are proactive.

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
@scotwells scotwells changed the title fix: show generateName creates in the activity feed fix: show newly created projects and resources in the activity feed Jun 25, 2026
@scotwells scotwells marked this pull request as ready for review June 25, 2026 16:49
@scotwells scotwells merged commit 2213316 into main Jun 25, 2026
5 checks passed
@scotwells scotwells deleted the fix/activity-policy-generatename-summaries branch June 25, 2026 16:55
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants