-
|
Hi, I have the following configuration: [providers.aws-user]
prefix = "user/XYZ/"
profile = "fnox"
region = "eu-north-1"
type = "aws-sm"
[providers.aws-shared]
prefix = "dev/"
profile = "fnox"
region = "eu-north-1"
type = "aws-sm"
[leases.bedrock]
create_command = "./generate-bedrock-token.py"
duration = "12h"
type = "command"
[leases.github]
app_id = "<app-id>"
installation_id = "<installation-id>"
type = "github-app"
[leases.github.permissions]
contents = "read"
pull_requests = "write"
[secrets]
AWS_REGION = { default = "us-east-1", description = "AWS Bedrock region to use." }
FNOX_GITHUB_APP_PRIVATE_KEY = { description = "Private key for GitHub App authentication.", provider = "aws-shared", value = "github-app-private-key" }In my (shell) environment, I already have the following set-up: When I run I can switch to using a I am not sure, though, if this is the correct behavior. Is this a bug or just an intended feature of |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment 1 reply
-
|
Thanks for the detailed report! Let me walk through what's happening with each command based on your config.
|
Beta Was this translation helpful? Give feedback.
Debugging the command via
RUST_LOG=debugactually helped!The root cause is that we needed to have the
BatchGetSecretValuepolicy, on top of theListSecretspermission, as in the following:[ { "Sid": "AllowListAll", "Effect": "Allow", "Action": "secretsmanager:ListSecrets", "Resource": "*" }, { "Sid": "AllowBatchReadSecrets", "Effect": "Allow", "Action": "secretsmanager:BatchGetSecretValue", "Resource": "*" } ]for
fnox execto work properly. However,BatchGetSecretValuepermission is not documented. This is a missing documentation issue rather than an implementation bug/issue.