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

BigtableOptionsFactory.fromConfiguration doesn't respect emulator credential settings #1947

Closed
precupqdm opened this issue Sep 20, 2018 · 3 comments
Assignees
Labels
api: bigtable Issues related to the googleapis/java-bigtable-hbase API.

Comments

@precupqdm
Copy link

I was attempting to use the google.bigtable.emulator.endpoint.host configuration option when I noticed I still needed application default credentials set up anyways. A quick debug shows that in BigtableOptionsFactory.fromConfiguration it configures the emulator settings, including enabling null credentials, and then overwrites them in the call to setChannelOptions later on in the function.

It does work if I set the following two options as well:

conf.set(BigtableOptionsFactory.BIGTABLE_NULL_CREDENTIAL_ENABLE_KEY, "true");
conf.set(BigtableOptionsFactory.BIGTABLE_USE_SERVICE_ACCOUNTS_KEY, "false");

If the intent was to need all three feel free to close and I'll be on my way, but it seemed unlikely given that the enableEmulator function sets them up.

@sduskis
Copy link
Contributor

sduskis commented Sep 20, 2018

Woops. We're looking at this.

rahulKQL added a commit to rahulKQL/java-bigtable-hbase that referenced this issue Sep 21, 2018
@sduskis
Copy link
Contributor

sduskis commented Sep 21, 2018

This should be fixed by #1948

@sduskis sduskis closed this as completed Sep 21, 2018
@precupqdm
Copy link
Author

Thanks for getting this fixed so quickly!

@google-cloud-label-sync google-cloud-label-sync bot added the api: bigtable Issues related to the googleapis/java-bigtable-hbase API. label Jan 31, 2020
gcf-owl-bot bot added a commit that referenced this issue Apr 4, 2024
)

Source-Link: googleapis/synthtool@349943b
Post-Processor: gcr.io/cloud-devrel-public-resources/owlbot-java:latest@sha256:033161f610016d155d58f96769ad5a821d203824684e8a13fc50be8c25a5f9cf
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
api: bigtable Issues related to the googleapis/java-bigtable-hbase API.
Projects
None yet
Development

No branches or pull requests

2 participants