Spire agent should error if -insecureBootstrap and -trustBundleUrl are given #4530
Labels
good first issue
Issues with this label are good candidates for first-time contributions
help wanted
Issues with this label are ready to start work but are in need of someone to do it
priority/backlog
Issue is approved and in the backlog
1.7.2
Linux da497fc50492 5.10.124-linuxkit CLI authentication #1 SMP Thu Jun 30 08:19:10 UTC 2022 x86_64 GNU/Linux
agent
Docs say only one of the three options can be set at once, but the agent will not error out with that message if you try.
Eg
spire-agent run -config /hacked.conf -joinToken ... -insecureBootstrap -trustBundleUrl https://abc.xy:8081
will carry on trying to call the URL instead of bailing early.This noob user was confused for a while before more RTFM and realized it's an invalid usage.
The text was updated successfully, but these errors were encountered: