Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Allow multiple credentials for a single hostname #201

Open
cmessick opened this issue Apr 7, 2023 · 2 comments
Open

Allow multiple credentials for a single hostname #201

cmessick opened this issue Apr 7, 2023 · 2 comments

Comments

@cmessick
Copy link

cmessick commented Apr 7, 2023

Description

As a user, I'd like to be able to specify multiple credentials for a single hostname. I'm trying to listen to two separate topics on gcn-kafka that have the same hostname but separate credentials. Is that possible?

@cnweaver
Copy link
Contributor

cnweaver commented Apr 8, 2023

This should already be supported:

(hop-client) $ hop auth add                                                                                                                                                                                                          
2023-04-07 19:43:23,047 | hop : INFO : Generating configuration with user-specified username + password
Username: user-1
Password: 
Hostname (may be empty): example.com
Token endpoint (empty if not applicable): 
2023-04-07 19:43:37,871 | hop : INFO : Wrote configuration to: /Users/christopher/.config/hop/auth.toml
(hop-client) $ hop auth add                                                                                                                                                                                                          
2023-04-07 19:43:40,791 | hop : INFO : Generating configuration with user-specified username + password
Username: user-2
Password: 
Hostname (may be empty): example.com
Token endpoint (empty if not applicable): 
2023-04-07 19:43:52,645 | hop : INFO : Wrote configuration to: /Users/christopher/.config/hop/auth.toml
(hop-client) $ hop auth list                                                                                                                                                                                                         
user-1 for example.com
user-2 for example.com
(hop-client) $ hop list-topics kafka://[email protected]  # Should attempt to connect as user-1

@cmessick
Copy link
Author

cmessick commented Apr 11, 2023

@cnweaver It looks like that requires specifying specific users though. Unfortunately, the usernames generated by GCN-Kafka are randomly generated, and will be different across different deployments, so we don't have an easy way to implement specifying usernames at the stage where we instantiate the consumers and producers.

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

No branches or pull requests

2 participants