Skip to content

Commit 5a7c838

Browse files
update page detection documentation
1 parent 083aaba commit 5a7c838

File tree

1 file changed

+23
-0
lines changed

1 file changed

+23
-0
lines changed

PAGE_DETECTION_SPECS.md

Lines changed: 23 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1093,6 +1093,29 @@ public class ApplicationSyncService {
10931093

10941094
## 6. Permission Checks
10951095

1096+
The permissions naming convention are based on Google Cloud IAM's best practices, adapted for iGRP context.
1097+
1098+
```text
1099+
<service>.<resource>.<verb>
1100+
```
1101+
1102+
### Example
1103+
- `cadastro.contribuinte.create`
1104+
1105+
| Component | Description | Guidelines |
1106+
| ------------ |-----------------------------------------------| ----------------------------------------------------------------------------------------------------------- |
1107+
| **service** | Module that owns the resource. | Lowercase, short, consistent identifier for your app or subsystem (e.g. `finance`, `hr`, `project`, `app`). |
1108+
| **resource** | The entity or domain object being acted upon. | Lowercase, singular noun (e.g. `user`, `document`, `invoice`). |
1109+
| **verb** | The allowed operation. | Lowercase verb that expresses the action (e.g. `get`, `list`, `create`, `update`, `delete`). |
1110+
1111+
The RBAC checks are made through the Spring Security layer in the microservice. ABAC checks are made through the iGRP Access Management API via SDK integrated in the microservices projects.
1112+
1113+
The ABAC check process is as follows:
1114+
1115+
1. **Extract User Identity**: From the JWT token or session, extract the username.
1116+
2. **Extract Resource and Action**: From the incoming request, determine the permission required.
1117+
3. **Database Query**: Query the Access Management API database to check if the user has the required permission through its role.
1118+
10961119
## 7. Performance Analysis
10971120

10981121
### 7.1 Next.js Detection Performance

0 commit comments

Comments
 (0)