MySQL Forums
Forum List  »  Security

Re: Problem with caching_sha2_password and proxy/proxied user
Posted by: Silvio Schloeffel
Date: January 27, 2025 09:51AM

To make it clear:

- with test_user_6 and sha265:password:
mysql> SELECT USER(), CURRENT_USER();
+-------------------+-----------------------+
| USER() | CURRENT_USER() |
+-------------------+-----------------------+
| test_user_6@db-01 | bc_monitoring_proxy@% |
+-------------------+-----------------------+
1 row in set (0,00 sec)

mysql> select @@proxy_user;
+-------------------------------------------+
| @@proxy_user |
+-------------------------------------------+
| 'test_user_6'@'10.234.16.0/255.255.255.0' |
+-------------------------------------------+
1 row in set (0,00 sec)


- with test_user_7 and caching _sha2_password:
mysql> SELECT USER(), CURRENT_USER();
+-------------------+---------------------------------------+
| USER() | CURRENT_USER() |
+-------------------+---------------------------------------+
| test_user_7@db-01 | test_user_7@10.234.16.0/255.255.255.0 |
+-------------------+---------------------------------------+
1 row in set (0,01 sec)

mysql> select @@proxy_user;
+--------------+
| @@proxy_user |
+--------------+
| NULL |
+--------------+
1 row in set (0,00 sec)


I mean, if caching_sha2 is the replacement for sha256 (marked as deprecated) and also if this is declared as the new standard this should work.

Best

Silvio

Options: ReplyQuote


Subject
Views
Written By
Posted
Re: Problem with caching_sha2_password and proxy/proxied user
55
January 27, 2025 09:51AM


Sorry, only registered users may post in this forum.

Content reproduced on this site is the property of the respective copyright holders. It is not reviewed in advance by Oracle and does not necessarily represent the opinion of Oracle or any other party.