-
I would like to programatically generate an api key - any advice how to do this with this operator? |
Beta Was this translation helpful? Give feedback.
Replies: 7 comments 16 replies
-
If you didn't set any api key, the EMQX Operator will generate a default api key, you can get it after deploy EMQX customer resource, like |
Beta Was this translation helpful? Give feedback.
-
Hi,
I would like to set an additional one (multiple).
Kind regards, Klemen
Poslano iz Outlook za Android<https://aka.ms/AAb9ysg>
Classified as Business
…________________________________
From: Rory ***@***.***>
Sent: Thursday, September 21, 2023 5:45:02 PM
To: emqx/emqx-operator ***@***.***>
Cc: Klemen Kobetic ***@***.***>; Author ***@***.***>
Subject: Re: [emqx/emqx-operator] Generate an api key (programatically) (Discussion #953)
If you didn't set any api key, the EMQX Operator will generate a default api key, you can get it after deploy EMQX customer resource, like kubectl get secret
—
Reply to this email directly, view it on GitHub<#953 (comment)>, or unsubscribe<https://github.com/notifications/unsubscribe-auth/AWKTNTP6X26YQOZUPD6LGWLX3ROH5ANCNFSM6AAAAAA5BSQENQ>.
You are receiving this because you authored the thread.Message ID: ***@***.***>
|
Beta Was this translation helpful? Give feedback.
-
Hi @KlemenDanfoss you can add you owner api key in EMQX customer resource by |
Beta Was this translation helpful? Give feedback.
-
Hi @Rory-Z , I would like to set additional keys (also) after deployment. For now it says that 'bootstrap APIKey cannot be updated' Using operator 2.1.2 and emqx 5.0.24. |
Beta Was this translation helpful? Give feedback.
-
Instead of creating new topic, I just add here. I try to add my own bootstrapAPIKey, but the values have to be read from k8s secret. I use the following CRD:
The bootstrapAPIKeys works fine if I just provide plane key/secret, but from obvious reasons I cannot commit such creds to Github. Any ideas how to solve it? I need to add own bootstrapAPIKey which is used by other microservice |
Beta Was this translation helpful? Give feedback.
-
Hi @badsector3 @KlemenDanfoss the bootstrapAPIKeys will support secret in coming soon, any ideas for the following CRD example :
Please note that secret resources are only valid when emqx is started. Once emqx is completed, they become meaningless, whether modified or deleted. |
Beta Was this translation helpful? Give feedback.
-
Hi @badsector3 , the EMQX Operator 2.2.4 has been released, and now we can set the boot strap API keys from k8s secret, you can check https://github.com/emqx/emqx-operator/releases/tag/2.2.4 |
Beta Was this translation helpful? Give feedback.
Hi @badsector3 , the EMQX Operator 2.2.4 has been released, and now we can set the boot strap API keys from k8s secret, you can check https://github.com/emqx/emqx-operator/releases/tag/2.2.4