This PR enhances the
[wskadmin-next](https://github.com/apache/incubator-openwhisk/blob/master/tools/admin/README-NEXT.md)
tooling with `--force` and `--revoke` flags that allow updating user auth key.
## Description
Currently wskadmin (and next) allow adding a namespace with or without specific
auth key.
In some cases, it is handy to allow updating existing namespace with specific
auth key, or regenerating new key.
There are 2 flags being added in this PR:
- `--revoke`, abbreviated `-r`: regenerate a new key for the user / namespace,
UUID remains the same
- `--force`, abbreviated `-f`:
- with `--auth uuid:key`: the new auth value is updated for the user
- without `--auth`: an auth of new UUID and key is randomly generated
## Related issue and scope
- #3965
## My changes affect the following components
- [ ] API
- [ ] Controller
- [ ] Message Bus (e.g., Kafka)
- [ ] Loadbalancer
- [ ] Invoker
- [ ] Intrinsic actions (e.g., sequences, conductors)
- [ ] Data stores (e.g., CouchDB)
- [ ] Tests
- [ ] Deployment
- [ ] CLI
- [x] General tooling
- [ ] Documentation
## Types of changes
- [ ] Bug fix (generally a non-breaking change which closes an issue).
- [x] Enhancement or new feature (adds new functionality).
- [ ] Breaking change (a bug fix or enhancement which changes existing
behavior).
## Checklist:
- [x] I signed an [Apache
CLA](https://github.com/apache/incubator-openwhisk/blob/master/CONTRIBUTING.md).
- [x] I reviewed the [style
guides](https://github.com/apache/incubator-openwhisk/wiki/Contributing:-Git-guidelines#code-readiness)
and followed the recommendations (Travis CI will check :).
- [x] I added tests to cover my changes.
- [x] My changes require further changes to the documentation.
- [x] I updated the documentation where necessary.
[ Full content available at:
https://github.com/apache/incubator-openwhisk/pull/4005 ]
This message was relayed via gitbox.apache.org for [email protected]