Skip to content

Add username and password handling from user mapping#33

Open
Hunaid2000 wants to merge 6 commits intomainfrom
user_mapping
Open

Add username and password handling from user mapping#33
Hunaid2000 wants to merge 6 commits intomainfrom
user_mapping

Conversation

@Hunaid2000
Copy link
Contributor

User/password options are in server options which is not according to the standard. We retrieve username and password from user mapping instead of server options.

Those using this FDW need to enable auth, setup roles/users (like root) on etcd, as mentioned in docs. Then create a user mapping for that user with password like

CREATE USER MAPPING FOR CURRENT_USER SERVER my_etcd_server OPTIONS (user 'root', password 'secret');

@Hunaid2000 Hunaid2000 marked this pull request as ready for review January 28, 2026 10:57
@Hunaid2000 Hunaid2000 requested a review from pashagolub January 28, 2026 10:57
'root' is a special role, so no need to grant permissions to it.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant