Skip to content

basalt / audit/src / AUDIT_KEY_ID_PATTERN

Variable: AUDIT_KEY_ID_PATTERN ​

> const AUDIT_KEY_ID_PATTERN: RegExp

Defined in: audit/src/chain.ts:91

The grammar of a key id: 1–64 characters of A-Z a-z 0-9 . _ -. It is written into every v2 hash (v2:hmac-sha256:<keyId>:<hex>), so : and whitespace are out, and it is kept short enough for a MySQL VARCHAR(191).

Released under the MIT License.