From 00163ad8949a13e8b5d4909ae028a5b9d4c18c74 Mon Sep 17 00:00:00 2001 From: marcos-silva-rodrigues Date: Tue, 9 Sep 2025 11:17:45 -0300 Subject: [PATCH 1/3] UPDATE: network policies --- deploy/helmfiles/prd.yaml | 7 +++++-- deploy/helmfiles/stg.yaml | 2 +- 2 files changed, 6 insertions(+), 3 deletions(-) diff --git a/deploy/helmfiles/prd.yaml b/deploy/helmfiles/prd.yaml index 1f91354..c15d72c 100644 --- a/deploy/helmfiles/prd.yaml +++ b/deploy/helmfiles/prd.yaml @@ -49,5 +49,8 @@ releases: value: dea2c27f-0973-4588-a2e0-9e31b64c7ffd - name: replicaCount value: 1 - # - name: maestro.restricted_ip - # value: "177.52.172.0/24,189.84.160.157/32,186.237.171.146/32,10.70.1.0/24" + # 10.70.0.0/16 internal network + # 137.131.167.254/32 loadbalancer + # 159.112.184.81/32 cluster ip for the uptime request ingest + - name: maestro.restricted_ip + value: "177.52.172.0/24, 189.84.160.157/32, 186.237.171.146/32, 137.131.167.254/32, 10.70.0.0/16, 159.112.184.81/32" diff --git a/deploy/helmfiles/stg.yaml b/deploy/helmfiles/stg.yaml index 693e7b1..906b450 100644 --- a/deploy/helmfiles/stg.yaml +++ b/deploy/helmfiles/stg.yaml @@ -27,4 +27,4 @@ charts: - name: resources value: null - name: maestro.restricted_ip - value: "137.131.167.254/32,10.70.0.0/16,163.176.242.27/32" + value: "137.131.167.254/32, 10.70.0.0/16, 159.112.184.81/32" From f1d56e4c2cd63b563f860858663274b71e53d941 Mon Sep 17 00:00:00 2001 From: marcos-silva-rodrigues Date: Mon, 15 Sep 2025 10:34:36 -0300 Subject: [PATCH 2/3] UPDATE: uptime internal ip --- deploy/helmfiles/prd.yaml | 2 +- deploy/helmfiles/stg.yaml | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/deploy/helmfiles/prd.yaml b/deploy/helmfiles/prd.yaml index c15d72c..b606fb1 100644 --- a/deploy/helmfiles/prd.yaml +++ b/deploy/helmfiles/prd.yaml @@ -53,4 +53,4 @@ releases: # 137.131.167.254/32 loadbalancer # 159.112.184.81/32 cluster ip for the uptime request ingest - name: maestro.restricted_ip - value: "177.52.172.0/24, 189.84.160.157/32, 186.237.171.146/32, 137.131.167.254/32, 10.70.0.0/16, 159.112.184.81/32" + value: "177.52.172.0/24, 189.84.160.157/32, 186.237.171.146/32, 137.131.167.254/32, 10.70.0.0/16, 159.112.184.81/32, 10.244.0.0/16" diff --git a/deploy/helmfiles/stg.yaml b/deploy/helmfiles/stg.yaml index 906b450..bad3302 100644 --- a/deploy/helmfiles/stg.yaml +++ b/deploy/helmfiles/stg.yaml @@ -27,4 +27,4 @@ charts: - name: resources value: null - name: maestro.restricted_ip - value: "137.131.167.254/32, 10.70.0.0/16, 159.112.184.81/32" + value: "137.131.167.254/32, 10.70.0.0/16, 159.112.184.81/32, 10.244.0.0/16" From ffddceec3b31741c342fdb9c8ff88abb923369d6 Mon Sep 17 00:00:00 2001 From: Marcos Rodrigues Date: Thu, 16 Oct 2025 17:17:01 -0300 Subject: [PATCH 3/3] FEAT: roles --- src/authentication/permissions.enum.ts | 38 ++++++++++++++++++++++++++ 1 file changed, 38 insertions(+) diff --git a/src/authentication/permissions.enum.ts b/src/authentication/permissions.enum.ts index a41a434..2426df7 100644 --- a/src/authentication/permissions.enum.ts +++ b/src/authentication/permissions.enum.ts @@ -116,6 +116,44 @@ export const PERMISSIONS_GROUPS = { }, }, }, + IMPORT_FILES: { + title: { + 'pt-br': 'Coletar | Importar arquivos', + 'en-us': 'Collect | Import files', + 'es-es': 'Colecta | Importar archivos', + }, + permissions: { + VIEW: { + seqid: 48, + claim: 'import-file:view', + usage: PermissionUsages.PUBLIC, + name: { + 'pt-br': 'Importar arquivos', + 'en-us': 'Import files', + 'es-es': 'Importar archivos', + }, + }, + }, + }, + AI_CHAT: { + title: { + 'pt-br': 'AutodriveDDF', + 'en-us': 'AutodriveDDF', + 'es-es': 'AutodriveDDF', + }, + permissions: { + VIEW: { + seqid: 49, + claim: 'ai-chat:view', + usage: PermissionUsages.PUBLIC, + name: { + 'pt-br': 'AutodriveDDF', + 'en-us': 'AutodriveDDF', + 'es-es': 'AutodriveDDF', + }, + }, + }, + }, CONNECTION: { title: { 'pt-br': 'Coletar | Fontes de dados',