Skip to content

Feature/cloudwatch - #18

Merged
IsaacTai13 merged 15 commits into
T13Forge:mainfrom
IsaacTai13:feature/cloudwatch
Oct 30, 2025
Merged

Feature/cloudwatch#18
IsaacTai13 merged 15 commits into
T13Forge:mainfrom
IsaacTai13:feature/cloudwatch

Conversation

@IsaacTai13

Copy link
Copy Markdown
Contributor

No description provided.

- Added LoggingAspect to record API entry and exit (method, URI, duration)
- Added AccessLogFilter to classify and log final request results:
  - INFO for successful 2xx responses
  - WARN for expected 4xx client errors
  - ERROR for unexpected 5xx server errors with stack traces
- Updated AccessLogFilter to merge general @AccessNote messages with per-request details
  (e.g., "Health Check failed - Query parameters are not allowed")
- Added helper to safely combine messages for 4xx and 5xx cases
- Ensured consistent formatting across success, warning, and error logs
Add fallback handling in AccessLogFilter for requests blocked by Spring Security.
Ensures 401 (Unauthorized) and 403 (Forbidden) responses are logged with meaningful
default messages and codes even when Security filters bypass controller logic.

- Added safe attribute reader to avoid literal "null" in logs
…mats

- Added logback-spring.xml to define structured JSON output for file logs
- Configured STDOUT appender with human-readable pattern for local debugging
- Introduced ACCESS logger for AccessLogFilter to log independently from root logger
- Enabled <springProperty> to dynamically read LOG_DIR from Spring environment
@IsaacTai13
IsaacTai13 force-pushed the feature/cloudwatch branch 4 times, most recently from f0fc1f3 to 1bc1d20 Compare October 30, 2025 06:53
…uring CI

- The server no longer includes a WWW-Authenticate challenge header,
so RestAssured's passive basic() auth was not retrying after 401.
Using preemptive().basic() ensures credentials are sent on the first request
- Added Spring Boot Actuator dependency
- Exposed `health`, `info`, and `metrics` endpoints in application.yml
- Introduced timedS3 wrapper to record S3 operation latency using Micrometer
- Enhanced Packer build with step-by-step validation to ensure each provisioner succeeds
- Let the script do it at once
@IsaacTai13
IsaacTai13 force-pushed the feature/cloudwatch branch 2 times, most recently from 538a8c5 to d83aa79 Compare October 30, 2025 18:49
@IsaacTai13
IsaacTai13 merged commit a7a219d into T13Forge:main Oct 30, 2025
2 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant