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

grpc: add basic htpasswd authentication support #212

Merged
merged 1 commit into from
Feb 26, 2020

Conversation

mostynb
Copy link
Collaborator

@mostynb mostynb commented Feb 26, 2020

Add basic htpasswd auth to the gRPC endpoint, for feature parity with the HTTP endpoint. Until now, gRPC has been unauthenticated.

To test, add the user/pass to bazel like so:
--remote_cache=grpc://user:pass@address:port/

Add basic htpasswd auth to the gRPC endpoint, for feature parity with
the HTTP endpoint. Until now, gRPC has been unauthenticated.

To test, add the user/pass to bazel like so:
	--remote_cache=grpc://user:pass@address:port/
@mostynb mostynb merged commit 1d85a0a into buchgr:master Feb 26, 2020
@mostynb mostynb deleted the grpc_basic_auth branch February 26, 2020 08:03
@abcdefstar
Copy link

Hi @mostynb,
I tried passing the user:pass from htpasswd file to the bazelrc file, -grpcs://user:pass@host:port --remote_header=x=test. But I get an error as ERROR: Failed to query remote execution capabilities: UNIMPLEMENTED: HTTP status code 404. Do we need to store these credentials as a secret in kubernetes ? I have added this as part of my deployment -

  • --htpasswd_file=/pathtomyfile
  • --allow_unauthenticated_reads

@mostynb
Copy link
Collaborator Author

mostynb commented Sep 2, 2022

Let's follow up in #575.

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.

2 participants