Files
orca/cloud/apps/relay/src/relay-host-log-digest.ts
Jinwoo Hong 3eec77c11a chore(cloud): add the relay fence broker, ops console, Terraform root, scripts, and 24 cloud-* workflows (#18413)
Phase 6 of the relay split: the relay's deploy/operate surface moves under cloud/ with 24 cloud-* workflows gated on ORCA_CLOUD_OPERATIONS_ENABLED, the Cloud SQL rollout lease action, the relay Terraform root (dual-accept identities for both repositories), scripts, docs, CODEOWNERS, and a terraform validate job in Cloud Verify.
2026-09-03 06:55:14 -04:00

8 lines
325 B
TypeScript

import { createHash } from 'node:crypto'
// Store-level 503s were previously silent; the digest keeps per-host log
// correlation possible without emitting the raw relay host id.
export function relayHostLogDigest(relayHostId: string): string {
return createHash('sha256').update(relayHostId).digest('hex').slice(0, 12)
}