Skip to content

Commit ddeac28

Browse files
Merge branch 'main' into 'deploy/base'
update page detection documentation See merge request igrp-3_0/igrp-platform-access-management!235
2 parents 3e383b5 + 39f41fa commit ddeac28

File tree

1 file changed

+1
-99
lines changed

1 file changed

+1
-99
lines changed

PAGE_DETECTION_SPECS.md

Lines changed: 1 addition & 99 deletions
Original file line numberDiff line numberDiff line change
@@ -1116,105 +1116,7 @@ The ABAC check process is as follows:
11161116
2. **Extract Resource and Action**: From the incoming request, determine the permission required.
11171117
3. **Database Query**: Query the Access Management API database to check if the user has the required permission through its role.
11181118

1119-
## 7. Performance Analysis
1120-
1121-
### 7.1 Next.js Detection Performance
1122-
1123-
| Approach | Memory Impact | CPU Impact | Detection Time |
1124-
|----------|---------------|------------|----------------|
1125-
| Static Analysis | Low | Low | < 1s |
1126-
| Runtime API | Medium | Medium | < 100ms |
1127-
| Hybrid | Medium | Low-Medium | < 1s |
1128-
1129-
### 7.2 Spring Boot Detection Performance
1130-
1131-
| Approach | Memory Impact | CPU Impact | Detection Time |
1132-
|----------|---------------|------------|----------------|
1133-
| Reflection | Medium | Medium | 100-500ms |
1134-
| Annotation Processing | Low | Low | < 100ms |
1135-
| Actuator Integration | Low | Low | < 50ms |
1136-
1137-
### 7.3 Overall System Performance Considerations
1138-
1139-
1. **Caching Strategies**: Implement caching for detection results
1140-
2. **Incremental Detection**: Only detect changed resources
1141-
3. **Background Processing**: Perform detection asynchronously
1142-
4. **Rate Limiting**: Protect detection endpoints from abuse
1143-
1144-
## 8. Security Considerations
1145-
1146-
1. **Authentication**: Secure detection endpoints
1147-
2. **Authorization**: Limit access to resource metadata
1148-
3. **Data Sanitization**: Prevent information leakage
1149-
4. **Input Validation**: Protect against injection attacks
1150-
1151-
## 9. Test Scenarios
1152-
1153-
### 9.1 Unit Tests
1154-
1155-
1. **Next.js CLI Tool Tests**
1156-
- Page detection accuracy
1157-
- Route parameter handling
1158-
- Metadata generation correctness
1159-
1160-
2. **Spring Boot Scanner Tests**
1161-
- Controller detection
1162-
- Annotation parsing
1163-
- Endpoint mapping
1164-
1165-
3. **Resource Mapping Tests**
1166-
- Entity conversion accuracy
1167-
- Type mapping validation
1168-
- URL normalization
1169-
1170-
### 9.2 Integration Tests
1171-
1172-
1. **Docker Build Tests**
1173-
- Multi-stage build success
1174-
- Artifact passing between stages
1175-
- Provider-agnostic deployment
1176-
1177-
2. **API Endpoint Tests**
1178-
- Detection endpoint accessibility
1179-
- Response format validation
1180-
- Authentication/authorization
1181-
1182-
3. **Access Management Integration Tests**
1183-
- Resource registration success
1184-
- Error handling
1185-
- Update scenarios
1186-
1187-
### 9.3 Performance Tests
1188-
1189-
1. **Detection Time Tests**
1190-
- Baseline performance measurements
1191-
- Scaling with number of resources
1192-
- Concurrent detection scenarios
1193-
1194-
2. **Resource Impact Tests**
1195-
- Memory consumption
1196-
- CPU utilization
1197-
- Network overhead
1198-
1199-
### 9.4 Cross-Provider Tests
1200-
1201-
1. **AWS Deployment Tests**
1202-
2. **Azure Deployment Tests**
1203-
3. **GCP Deployment Tests**
1204-
4. **On-Premises Deployment Tests**
1205-
1206-
## 10. Recommended Implementation
1207-
1208-
Based on the analysis, the recommended approach is:
1209-
1210-
1. **Next.js**: Hybrid detection (build-time + runtime API)
1211-
2. **Spring Boot**: Actuator integration with custom endpoint
1212-
3. **Docker**: Multi-stage build with detection stage
1213-
4. **Security**: JWT authentication for detection endpoints
1214-
1215-
This combination provides the best balance of accuracy, performance, and provider flexibility.
1216-
1217-
## 11. References
1119+
## 7. References
12181120

12191121
1. Next.js Documentation: "https://nextjs.org/docs"
12201122
2. Spring Boot Actuator: "https://docs.spring.io/spring-boot/docs/current/reference/html/actuator.html"

0 commit comments

Comments
 (0)