feat: add health probes and GDPR self-service export/delete - #66
Merged
Merged
Conversation
Implement the following features from Somzilla issues: Health module: - GET /health/live — liveness probe (200), rate-limit exempt - GET /health/ready — PostgreSQL readiness probe via Terminus (200/503), rate-limit exempt - HealthController with @ExemptTier() decorator GDPR self-service: - GET /users/me/export — exports profile (no password hash), notification preferences, and subscriptions - DELETE /users/me — soft-deletes user, revokes all refresh tokens, returns 204, audit logged Integration tests (10 total): - /health/live returns 200 - /health/ready returns 200 when DB is up - /health/live does not hit DB (static response) - /users/me/export returns 401 without auth - /users/me/export excludes password hash - /users/me/export includes preferences + subscriptions - /users/me/delete returns 204 and soft-deletes user - Deleted user cannot authenticate - Self-delete revokes refresh tokens Closes: Somzilla issues
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
This PR
Closes #62
Implement the following features from Somzilla issues:
Health module:
GDPR self-service:
Integration tests (10 total):
Closes: Somzilla issues