How hayder-ben-abdelhamid/nextwork-security-secretsmanager works
This is a small FastAPI demonstration app for retrieving AWS credentials from Secrets Manager and using them to list S3 buckets. The main runtime path is a request to the bucket endpoint, which uses credentials loaded by config.py and returns bucket names or an error. A separate route serves the landing page, and the app mounts static assets. The README also describes secret rotation and Git history cleanup as learning topics; no runtime implementation of those workflows is shown. Relationships below are grounded in the sampled source.
Main entry points: app.py FastAPI routes · config.py Credential config · index.html Landing page · style.css Static stylesheet
Components 7
Web app
- FastAPI routes
app.py - Landing page
index.html - Static stylesheet
static/style.css
Credentials
- Credential config
config.py
AWS resources
- Secrets Manager
- S3 buckets
Other components
- Web user
Connections 8
- Web user → FastAPI routes: sends requests
app.py - FastAPI routes → Landing page: reads page
app.py - FastAPI routes → Web user: serves responses
app.py - FastAPI routes → Static stylesheet: mounts static files
app.py - FastAPI routes → Credential config: reads credentials
app.py - Credential config → Secrets Manager: retrieves secret
config.py - FastAPI routes → S3 buckets: lists buckets
app.py - S3 buckets → FastAPI routes: returns bucket data
app.py