In a recent blog post, Launch Darkly provides insight into the potential use case of a kill switch
feature flag. A kill switch
seamlessly enables or disables a feature from the Launch Darkly dashboard. Launch Darkly suggests leveraging kill switches
to ease compliance and regulation management, such as configuring data retention based on the user's geographic location. use-launch-darkly-to-ease-data-governance
demonstrates how to use Auth0's geolocation features, distributed AWS resources, and Launch Darkly to store user data dynamically.
- Node.js(20.10.0)
- Typescript
- Express.js
- Auth0 Express OpenID Connect
- AWS SDK
- LD Node.js SDK
- Multer
- dotenv
The scope is limited to showcasing how to leverage Auth0 Actions, AWS S3 Buckets, and Launch Darkly kill switches to dynamically toggle the storage location based on the user's geographic information. Given the minimalistic approach, the project lacks several improvements, such as rate-limiting the upload route, scanning the user upload for malicious input, implementing randomly-generated file names, and improving error handling. Please continue to watch
the project for updates.
- Clean up.
- Add tests.
- Scan file uploads.
- Add API rate-limiting.
- Randomly generate user file names.
- Improve error handling.