EdgeMicro key/secret combinations - how do i find them in Edge and how do I expire them? So during the EdgeMicro setup process you generate a key/secret combo and use that to communicate to Edge. How do I find the ones that have been granted and how do I expire them?
Solved! Go to Solution.
Hi Benjamin,
We have not exposed through CLI but there is a way to delete previously generated keys through API.
Your agent/config/default.yaml, should have a updated value for bootstrap property of form:
https://$router-ip/edgemicro/bootstrap/organization/$org/environment/$environment
The API to generate new set of keys then is a POST request to https://$router-ip/edgemicro/credential/organization/$org/environment/$end and delete a key is DELETE request. So following should work:
curl -X DELETE https://$router-ip/edgemicro/credential/organization/$org/environment/$environment -H "Content-Type:application/json" -d '{"key":"YOUR-KEY"} . Of course you would need your org admin credential to send as basic auth.
HTH,
Prabhat
Hi Benjamin,
We have not exposed through CLI but there is a way to delete previously generated keys through API.
Your agent/config/default.yaml, should have a updated value for bootstrap property of form:
https://$router-ip/edgemicro/bootstrap/organization/$org/environment/$environment
The API to generate new set of keys then is a POST request to https://$router-ip/edgemicro/credential/organization/$org/environment/$end and delete a key is DELETE request. So following should work:
curl -X DELETE https://$router-ip/edgemicro/credential/organization/$org/environment/$environment -H "Content-Type:application/json" -d '{"key":"YOUR-KEY"} . Of course you would need your org admin credential to send as basic auth.
HTH,
Prabhat
Thanks. I am not to the point where I need this yet - but since im going to write something to generate keys.. i need a way to revoke them 🙂
Cheers!
User | Count |
---|---|
2 | |
1 | |
1 | |
1 | |
1 |