mirror of
https://github.com/anomalyco/opencode.git
synced 2026-06-01 19:05:38 +00:00
chore: simplify honeycomb alerts (#26142)
This commit is contained in:
8
packages/console/core/src/util/crypto.ts
Normal file
8
packages/console/core/src/util/crypto.ts
Normal file
@@ -0,0 +1,8 @@
|
||||
import { timingSafeEqual } from "node:crypto"
|
||||
|
||||
export function safeEqual(a: string, b: string): boolean {
|
||||
const encoder = new TextEncoder()
|
||||
const aBytes = encoder.encode(a)
|
||||
const bBytes = encoder.encode(b)
|
||||
return aBytes.length === bBytes.length && timingSafeEqual(aBytes, bBytes)
|
||||
}
|
||||
4
packages/console/core/sst-env.d.ts
vendored
4
packages/console/core/sst-env.d.ts
vendored
@@ -91,8 +91,8 @@ declare module "sst" {
|
||||
"type": "sst.sst.Secret"
|
||||
"value": string
|
||||
}
|
||||
"INCIDENT_WEBHOOK_SIGNING_SECRET": {
|
||||
"type": "sst.sst.Secret"
|
||||
"HoneycombWebhookSecret": {
|
||||
"type": "random.index/randomPassword.RandomPassword"
|
||||
"value": string
|
||||
}
|
||||
"R2AccessKey": {
|
||||
|
||||
Reference in New Issue
Block a user