EdgeMicro key/secret combinations - how do i find them in Edge and how do I expire them?

Not applicable

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 Solved
0 2 269
1 ACCEPTED SOLUTION

Not applicable

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

View solution in original post

2 REPLIES 2

Not applicable

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!