Users register, sign in and manage their own tasks: create, edit, filter by status and delete. Each request is authenticated with a signed JWT, and every query is scoped to the signed-in user, so nobody can read another person's tasks. Every change also publishes an event that the microservices use to send email notifications, keep a per-task history, manage file attachments and flag misuse with AI. Email addresses and links are blocked in task text.
- Stateless JWT authentication with Spring Security and BCrypt-hashed passwords
- REST API for tasks with validation and consistent JSON errors
- Angular front end with route guards and an HTTP interceptor that sends the login token only to the app's own API
- A Details panel on every task with its change history and file attachments: upload, download and delete, straight from the browser to S3
- One deployable jar serving both the API and the compiled Angular app
- Configuration through environment variables, so the same build runs locally and on AWS
- Infrastructure described in a CloudFormation template
- Task events published to SNS after each commit, on their own thread pool, so a messaging outage never blocks saving a task
- Five Java 17 Lambda microservices: email notifications (SES), activity history (DynamoDB), a history API, file attachments and AI moderation
- CloudFront used as the API gateway, routing /api/activity and /api/attachments to Lambda and everything else to Spring Boot
- Least-privilege IAM: each service only gets the actions it needs on its own topic, queue, table or bucket
- Private S3 bucket for attachments: 10-minute pre-signed URLs, every file scoped to its owner, 10 MB limit
- Daily "due tomorrow" email reminders scheduled inside the Spring Boot app
- Misuse prevention: a custom Bean Validation annotation blocks email addresses and links in task text, including disguised ones like name(at)site(dot)com, with the same check in the Angular form
- AI moderation microservice: every new or edited task is checked with Amazon Bedrock Guardrails; flagged tasks are stored in DynamoDB and the admin gets an email alert, without slowing down the user
| Symptom | Fix |
|---|---|
| 502 Bad Gateway | App listened on the wrong port; moved settings to environment variables and set PORT=5000 |
| Unknown database 'taskmanager' | Corrected the JDBC URL and created the schema on first start |
| Login failed behind CloudFront | Added the HTTPS origin to the CORS allow-list |
| Logged out after refresh | Custom cache policy that forwards the Authorization header |
| Not authorized to perform SNS:Publish | Inline IAM policy on the server role allowing Publish to one topic only |
| Event history stayed empty | Split the chain with a manual SNS message, then granted DynamoDB PutItem to the consumer |
| S3 AccessDenied on file upload | Pre-signed URLs inherit the Lambda role, so the role got scoped S3 access |
| Tests failed: unable to determine dialect | In-memory H2 database for tests, so the build never needs MySQL |
| Not authorized: bedrock:ApplyGuardrail on guardrail-profile | New guardrails run through a cross-region profile, so the role needed the profile and the guardrail in every US region |