mirror of
https://github.com/versity/versitygw.git
synced 2026-04-25 07:00:31 +00:00
Closes #1760 The admin subcommand accepts the `--access` and `--secret` flags as admin user credentials. This change makes these flags optional and allows the root user credentials to be used as admin credentials with lower precedence when the admin flags are omitted. Both invocation styles are now valid: ```bash versitygw admin --access user --secret pass -er http://127.0.0.1:7070 list-buckets ``` and ```bash versitygw --access user --secret pass admin -er http://127.0.0.1:7070 list-buckets ``` Additionally, if `ROOT_ACCESS_KEY` and `ROOT_SECRET_KEY` are already set, the following also works: ```bash versitygw admin -er http://127.0.0.1:7070 list-buckets ```