Skip to content

Commit fec26b3

Browse files
Merge branch 'deploy/base' into 'github-release'
Deploy/base See merge request igrp-3_0/igrp-platform-access-management!242
2 parents 65293b9 + 71abb8c commit fec26b3

33 files changed

+1625
-126
lines changed

.env.example

Lines changed: 18 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -18,15 +18,25 @@ IGRP_KEYCLOAK_CLIENT_ID=access-management
1818
IGRP_KEYCLOAK_CLIENT_SECRET=************
1919
IGRP_KEYCLOAK_GRANT_TYPE=client_credentials
2020

21-
# File Storage configuration (Amazon AWS S3)
21+
# M2M Sync Token (used to authenticate requests from other modules/microservices to iGRP Access Management)
22+
IGRP_ACCESS_M2M_SYNC_TOKEN=my-m2m-sync-token
23+
24+
# File Storage configuration (Choose between 'minio' and 's3')
2225
IGRP_STORAGE_PROVIDER=s3
23-
S3_ENDPOINT=http://localhost:9000
24-
S3_SECURITY=false
25-
S3_ACCESS_KEY=admin
26-
S3_SECRET_KEY=admin12345678
27-
S3_BUCKET_NAME=igrp
28-
S3_PATH_STYLE_ACCESS=true
29-
S3_REGION=praia
26+
IGRP_STORAGE_SECURITY=false
27+
IGRP_STORAGE_ACCESS_KEY=admin
28+
IGRP_STORAGE_SECRET_KEY=admin12345678
29+
IGRP_STORAGE_BUCKET_NAME=igrp
30+
IGRP_STORAGE_PATH_STYLE_ACCESS=true
31+
IGRP_STORAGE_REGION=praia
32+
33+
# For AWS S3, override AWS endpoint (provide full URL including protocol, e.g., http://localhost:9000)
34+
# If not provided it will map from IGRP_STORAGE_ENDPOINT and IGRP_STORAGE_PORT, resulting in http://IGRP_STORAGE_ENDPOINT:IGRP_STORAGE_PORT
35+
IGRP_S3_AWS_ENDPOINT=http://localhost:9000
36+
37+
# For minIO, the endpoint and port should be provided separetely
38+
IGRP_STORAGE_ENDPOINT=localhost
39+
IGRP_STORAGE_PORT=9000
3040

3141
# Cache configuration (Redis)
3242
REDIS_HOST=redis
Lines changed: 106 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,106 @@
1+
{
2+
"type": "controller",
3+
"name": "M2M",
4+
"module": "m2m",
5+
"description": "Machine-to-Machine",
6+
"basePath": "api",
7+
"actions": [
8+
{
9+
"actionName": "syncPermissions",
10+
"path": "m2m/sync/permissions",
11+
"method": "POST",
12+
"requestBody": {
13+
"content": {
14+
"application/json": {
15+
"schema": {
16+
"type": "PermissionDTO",
17+
"collectionType": "list",
18+
"name": "data",
19+
"objectType": "dto",
20+
"module": "shared"
21+
}
22+
}
23+
}
24+
},
25+
"responses": {
26+
"204": {
27+
"name": "OK",
28+
"content": {
29+
"application/json": {
30+
"schema": {
31+
"type": "string",
32+
"name": "data",
33+
"collectionType": "none"
34+
}
35+
}
36+
}
37+
}
38+
}
39+
},
40+
{
41+
"actionName": "syncResources",
42+
"path": "m2m/sync/resources",
43+
"method": "POST",
44+
"requestBody": {
45+
"content": {
46+
"application/json": {
47+
"schema": {
48+
"type": "ResourceDTO",
49+
"collectionType": "none",
50+
"name": "data",
51+
"objectType": "dto",
52+
"module": "shared"
53+
}
54+
}
55+
}
56+
},
57+
"responses": {
58+
"204": {
59+
"name": "OK",
60+
"content": {
61+
"application/json": {
62+
"schema": {
63+
"type": "string",
64+
"name": "data",
65+
"collectionType": "none"
66+
}
67+
}
68+
}
69+
}
70+
}
71+
},
72+
{
73+
"actionName": "syncApplications",
74+
"path": "m2m/sync/applications",
75+
"method": "POST",
76+
"requestBody": {
77+
"content": {
78+
"application/json": {
79+
"schema": {
80+
"type": "ApplicationDTO",
81+
"collectionType": "none",
82+
"name": "data",
83+
"objectType": "dto",
84+
"module": "shared"
85+
}
86+
}
87+
}
88+
},
89+
"responses": {
90+
"204": {
91+
"name": "OK",
92+
"content": {
93+
"application/json": {
94+
"schema": {
95+
"type": "string",
96+
"name": "data",
97+
"collectionType": "none"
98+
}
99+
}
100+
}
101+
}
102+
}
103+
}
104+
],
105+
"id": "jws7h4f2af"
106+
}

.igrpstudio/m2m/dto/.gitkeep

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
This file is used to let Git track empty directories.

.igrpstudio/m2m/models/.gitkeep

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
This file is used to let Git track empty directories.

.igrpstudio/m2m/module.json

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,4 @@
1+
{
2+
"type": "module",
3+
"name": "m2m"
4+
}

.igrpstudio/shared/dto/PermissionDTO.json

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -29,7 +29,7 @@
2929
"isEmail": false,
3030
"isUrl": false,
3131
"primaryKey": false,
32-
"regex": "^[A-Za-z0-9_-]+$"
32+
"regex": "^[A-Za-z0-9._-]+$"
3333
},
3434
{
3535
"name": "description",
@@ -61,7 +61,7 @@
6161
"name": "departmentCode",
6262
"objectType": "java",
6363
"type": "string",
64-
"required": true,
64+
"required": false,
6565
"before": false,
6666
"after": false,
6767
"positive": false,

0 commit comments

Comments
 (0)