chore(govern): derive audit event IDs with SHA-256 instead of SHA-1

What does this MR do and why?

Changes deterministicUUID in govern audit sync from a SHA-1 UUIDv5 to a SHA-256 UUIDv8, the name-based UUID that RFC 9562 recommends in place of v5.

This prepares for the FIPS build of glab (!4207). Under GODEBUG=fips140=only, SHA-1 panics, so govern audit sync would crash. Without this change, the FIPS MR has to exempt the call from enforcement.

The ID stays deterministic and keeps the same UUID format. A new subtest pins the value, so it can't change by accident.

Related to https://gitlab.com/gitlab-org/cli/-/work_items/8682

Effect on existing data

GitLab deduplicates audit events by cloud_event_id. Events that an older glab already posted get a different ID when synced again, so re-syncing a session after upgrading creates duplicates, once. govern is experimental, so the impact should be small.

Question for reviewers

@jeanvdw does anything on the GitLab side recompute this ID or check that it's a v5 UUID? If so, this change needs a matching server change.

🤖 Generated with Claude Code

Merge request reports

Loading
Loading