Skip to content

Commit

Permalink
shell escape account name in cli command
Browse files Browse the repository at this point in the history
  • Loading branch information
Justin Dell committed Nov 4, 2024
1 parent e266945 commit b4d395c
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/kamal/secrets/adapters/aws_secrets_manager.rb
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@ def fetch_secrets(secrets, account:, session:)
end

def get_from_secrets_manager(secrets, account:)
`aws secretsmanager batch-get-secret-value --secret-id-list #{secrets.map(&:shellescape).join(" ")} --profile #{account}`.tap do
`aws secretsmanager batch-get-secret-value --secret-id-list #{secrets.map(&:shellescape).join(" ")} --profile #{account.shellescape}`.tap do
raise RuntimeError, "Could not read #{secret} from AWS Secrets Manager" unless $?.success?
end
end
Expand Down

0 comments on commit b4d395c

Please sign in to comment.