Asymmetric encryption most likely.

I was thinking maybe user can generate their secret key pair file by 
themself,  and let exporter to read it.

After deployment , when exporter is running , just remove  those keys and 
keep it in somewhere else and save.

When reboot or update , user can reset those keys to related dir. 

在2024年8月29日星期四 UTC+8 19:26:06<Ben Kochie> 写道:

> Are you going to use symmetric or asymmetric encryption? Encryption and 
> decryption require secret keys. How would that work? Where would you put 
> the new secret key?
>
> On Thu, Aug 29, 2024 at 12:43 PM ming yi <[email protected]> wrote:
>
>> I think that decrpt encrypted password after encrypted password is loaded 
>> into eporter is a possible way , it would enventually look like bleow:
>>
>> Assume I have a password 123 , after encryption , it may be a random 
>> number "S@)&SALVYALW.....". I then wirte this random number into 
>> configuration file.
>>
>> When  started , before make th MySQL connection , exporter will decrypt 
>> this random number after it is loaded. After decryption process , exporter 
>> will have a correct password to make the MySQL connection.
>>
> 在2024年8月28日星期三 UTC+8 14:27:47<Ben Kochie> 写道:
>>
>>> How would the exporter decrypt that in order to use it for 
>>> authentication? The exporter needs the password in order to make the MySQL 
>>> connection.
>>>
>>> On Wed, Aug 28, 2024 at 8:24 AM ming yi <[email protected]> wrote:
>>>
>>>> Hi,
>>>> I was wondering if i can open a pull for adding an encrypt/decrypt 
>>>> feature to mysql_export,which is used to save password as encrpted form.
>>>>
>>>> For example,my password was 123 and now i want encrypt it using rsa 
>>>> algorithm and then write it to .my.cnf file. It finally would look like 
>>>> below (juse for illustrate):
>>>>
>>>> [client]
>>>> user = root
>>>> password = "sSAKMSAWAS="
>>>>
>>>> Ming
>>>>
>>>> -- 
>>>> You received this message because you are subscribed to the Google 
>>>> Groups "Prometheus Developers" group.
>>>> To unsubscribe from this group and stop receiving emails from it, send 
>>>> an email to [email protected].
>>>> To view this discussion on the web visit 
>>>> https://groups.google.com/d/msgid/prometheus-developers/f1ad1743-a87f-4962-9631-2a70bccbc509n%40googlegroups.com
>>>>  
>>>> <https://groups.google.com/d/msgid/prometheus-developers/f1ad1743-a87f-4962-9631-2a70bccbc509n%40googlegroups.com?utm_medium=email&utm_source=footer>
>>>> .
>>>>
>>> -- 
>> You received this message because you are subscribed to the Google Groups 
>> "Prometheus Developers" group.
>> To unsubscribe from this group and stop receiving emails from it, send an 
>> email to [email protected].
>>
> To view this discussion on the web visit 
>> https://groups.google.com/d/msgid/prometheus-developers/e9389c58-2843-4c4a-91ef-702a5d497916n%40googlegroups.com
>>  
>> <https://groups.google.com/d/msgid/prometheus-developers/e9389c58-2843-4c4a-91ef-702a5d497916n%40googlegroups.com?utm_medium=email&utm_source=footer>
>> .
>>
>

-- 
You received this message because you are subscribed to the Google Groups 
"Prometheus Developers" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
To view this discussion on the web visit 
https://groups.google.com/d/msgid/prometheus-developers/33856476-63e6-4bf4-a2e3-8e6075bc3c25n%40googlegroups.com.

Reply via email to