I think that decrypt encrypted password after encrypted password is loaded 
into exporter 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 the 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/aa8b8328-c4e8-4cd1-b962-9bbab5650a6dn%40googlegroups.com.

Reply via email to