Commit 45248f5
authored
fix: pass through user-provided password in HiveServer2Hook for all auth modes (#62888)
* fix: pass through user-provided password in HiveServer2Hook regardless of auth mechanism
Previously, HiveServer2Hook.get_conn() only set the password when
auth_mechanism was LDAP, CUSTOM, or PLAIN. For all other auth modes
(including the default NONE), user-provided passwords were silently
dropped and pyhive would default to sending 'x' as the password.
Now the password is passed through whenever the user has explicitly
set one in the connection, regardless of the configured auth mechanism.
Fixes #62338
* ci: retrigger CI1 parent a998e28 commit 45248f5
File tree
2 files changed
+26
-2
lines changed- providers/apache/hive
- src/airflow/providers/apache/hive/hooks
- tests/unit/apache/hive/hooks
2 files changed
+26
-2
lines changedLines changed: 5 additions & 2 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
885 | 885 | | |
886 | 886 | | |
887 | 887 | | |
888 | | - | |
889 | | - | |
| 888 | + | |
| 889 | + | |
| 890 | + | |
| 891 | + | |
| 892 | + | |
890 | 893 | | |
891 | 894 | | |
892 | 895 | | |
| |||
Lines changed: 21 additions & 0 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
697 | 697 | | |
698 | 698 | | |
699 | 699 | | |
| 700 | + | |
| 701 | + | |
| 702 | + | |
| 703 | + | |
| 704 | + | |
| 705 | + | |
| 706 | + | |
| 707 | + | |
| 708 | + | |
| 709 | + | |
| 710 | + | |
| 711 | + | |
| 712 | + | |
| 713 | + | |
| 714 | + | |
| 715 | + | |
| 716 | + | |
| 717 | + | |
| 718 | + | |
| 719 | + | |
| 720 | + | |
700 | 721 | | |
701 | 722 | | |
702 | 723 | | |
| |||
0 commit comments