generated from TBD54566975/tbd-project-template
-
Notifications
You must be signed in to change notification settings - Fork 8
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
feat: integrate asm and db into controller (#1697)
Fixes #1692 This PR integrates AWS secrets manager (ASM) and DB project resolver/config provider into the controller. Please note that `ftl dev` does not support these yet. Manual test with localstack: ```bash ftl🐚 ➜ ftl git:(gak/asm-in-controller) ✗ export AWS_REGION=us-west-2 export AWS_ACCESS_KEY_ID=test AWS_SECRET_ACCESS_KEY=test AWS_ENDPOINT_URL=http://localhost:4566 ftl🐚 ➜ ftl git:(gak/asm-in-controller) ✗ ftl-controller info: Web console available at: http://localhost:8892 info: HTTP ingress server listening on: http://localhost:8891 warn:heartbeatController: failed to heartbeat controller: duplicate key value violates unique constraint "controller_endpoint_not_dead_idx": conflict etc... ``` Another terminal using AWS secrets: ```bash ftl🐚 ➜ ftl git:(gak/asm-in-controller) echo -n '{"user": "sup!", "pass": "<0001f9be>"}' | LOG_LEVEL=trace ftl secret set my.module --asm trace: Loading config from /Users/gak/src/ftl/ftl-project.toml trace: /xyz.block.ftl.v1.AdminService/SecretSet (unary) ftl🐚 ➜ ftl git:(gak/asm-in-controller) ✗ ftl secret list my.module ftl🐚 ➜ ftl git:(gak/asm-in-controller) ✗ ftl secret get my.module {"user": "sup!", "pass": "🦾"} ``` And config via db: ```bash ftl🐚 ➜ ftl git:(gak/asm-in-controller) ftl config set myconfig hithere --db ftl🐚 ➜ ftl git:(gak/asm-in-controller) ftl config list myconfig ftl🐚 ➜ ftl git:(gak/asm-in-controller) ftl config get myconfig hithere ```
- Loading branch information
Showing
7 changed files
with
251 additions
and
206 deletions.
There are no files selected for viewing
This file contains 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
Large diffs are not rendered by default.
Oops, something went wrong.
This file contains 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
This file contains 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
This file contains 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
This file contains 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
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.