google-cloud-cpp icon indicating copy to clipboard operation
google-cloud-cpp copied to clipboard

Support API Keys (aka x-api-key) in Cloud Bigtable

Open coryan opened this issue 5 years ago • 2 comments

Some applications need to set the x-api-key metadata header in Cloud Bigtable.

Without decorators or interceptors probably the best way is to add an api_key() attribute to ClientOptions which gets copied by each wrapper object and used in the MetadataUpdatePolicy.

coryan avatar Jun 12 '20 18:06 coryan

We can use the existing OptionsSpan to inject these as part of the metadata decorator.

coryan avatar Mar 10 '22 19:03 coryan

This may actually be x-goog-api-key. Keep open for now.

coryan avatar Aug 11 '22 18:08 coryan

Would like to do this, but have no time. Closing.

coryan avatar Jan 18 '23 19:01 coryan