Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
10 changes: 8 additions & 2 deletions .gitleaks.toml
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,14 @@ title = "project gitleaks config"
[extend]
useDefault = true # Uses the standard built-in gitleaks config as a base.

[[allowlists]]
description = "System password permission UUIDs"
targetRules = ["generic-api-key"]
condition = "AND"
paths = ['''^src/datasets/system/access-control/role-permission-assignment\.dataset\.ts$''']
regexTarget = "match"
regexes = ['''^(?:REAUTHENTICATION_CONFIRM_PASSWORD|PASSWORD_CHANGE)\s*=\s*"[0-9a-f]{8}-[0-9a-f]{4}-4[0-9a-f]{3}-[89ab][0-9a-f]{3}-[0-9a-f]{12}"$''']

[[allowlists]]
description = "Demo leave operation identifiers"
targetRules = ["generic-api-key"]
Expand All @@ -11,8 +19,6 @@ paths = ['''^src/datasets/demo/hr/(hr-request|leave-ledger-entry)\.dataset\.ts$'
regexTarget = "secret"
regexes = ['''^(?:(?:reserve|consume)/)?leave/(?:nimbus/E[0-9]{3}|orbit/[XF][0-9]{3})$''']



# Global allowlist — applies to ALL rules, except those
# explicitly scoped via targetRules in [[allowlists]].
[[allowlists]]
Expand Down
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
"description": "Shared Kafka/gRPC contracts and common enums between MonadIAM services",
"author": "Daniil Egorov (https://github.com/Lambdius)",
"license": "UNLICENSED",
"version": "3.4.1",
"version": "3.4.2",
"types": "dist/index.d.ts",
"main": "dist/index.js",
"exports": {
Expand Down
14 changes: 7 additions & 7 deletions src/constants.ts
Original file line number Diff line number Diff line change
@@ -1,12 +1,12 @@
/* eslint-disable prettier/prettier */
export const SYSTEM_REALM_ID = "00000001-0000-4000-8000-100000000001";
export const SYSTEM_ACCOUNT_ID = "00000000-0000-4000-8000-000000000000";
export const ADMIN_ACCOUNT_ID = "00000000-0000-4000-8000-000000000001";
export const USER_ACCOUNT_ID = "00000000-0000-4000-8000-100000000002";
export const SYSTEM_REALM_ID = "74e70d3a-5130-4b3a-9ab6-cbfe430a5813";
export const SYSTEM_ACCOUNT_ID = "816e9410-83ee-47dd-ad0b-1e5c3348a2ac";
export const ADMIN_ACCOUNT_ID = "a295ae38-22e2-466a-8e2f-87a2fbc4fe69";
export const USER_ACCOUNT_ID = "1cafe3f2-a928-4c08-b833-fc46629e579e";
/* eslint-enable prettier/prettier */

/* eslint-disable prettier/prettier */
export const ROOT_ROLE_ID = "00000002-0000-4000-8000-100000000001";
export const SYSTEM_USER_ROLE_ID = "00000002-0000-4000-8000-100000000002";
export const ADMINISTRATOR_ROLE_ID = "00000002-0000-4000-8000-100000000003";
export const ROOT_ROLE_ID = "b1f1dee0-0f8f-49b2-9f21-0da13992e804";
export const SYSTEM_USER_ROLE_ID = "24624d70-9933-449f-a3b4-aed53cf7ec74";
export const ADMINISTRATOR_ROLE_ID = "18ee76b9-e8cc-46e7-acdb-f16d189e2c79";
/* eslint-enable prettier/prettier */
Loading
Loading