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

fix(common): missed using CARootsFilePathOption #12997

Merged
merged 4 commits into from
Oct 30, 2023

Conversation

coryan
Copy link
Contributor

@coryan coryan commented Oct 30, 2023

A number of credentials failed to use the CARootsFilePathOption as they should.

Use the storage integration test because it covers both gRPC and REST.


This change is Reviewable

@coryan coryan temporarily deployed to internal October 30, 2023 14:58 — with GitHub Actions Inactive
@coryan coryan temporarily deployed to internal October 30, 2023 15:58 — with GitHub Actions Inactive
A number of credentials failed to use the `CARootsFilePathOption` as
they should.

Use the storage integration test because it covers both gRPC and REST.
@coryan coryan force-pushed the fix-common-use-CARootsFilePathOption branch from 483fd8d to 7c9646e Compare October 30, 2023 16:16
@coryan coryan temporarily deployed to internal October 30, 2023 16:16 — with GitHub Actions Inactive
@coryan coryan marked this pull request as ready for review October 30, 2023 16:40
@coryan coryan requested a review from a team as a code owner October 30, 2023 16:40
@codecov
Copy link

codecov bot commented Oct 30, 2023

Codecov Report

Attention: 4 lines in your changes are missing coverage. Please review.

Comparison is base (86a09c6) 93.59% compared to head (b3be693) 93.59%.
Report is 3 commits behind head on main.

Additional details and impacted files
@@            Coverage Diff             @@
##             main   #12997      +/-   ##
==========================================
- Coverage   93.59%   93.59%   -0.01%     
==========================================
  Files        2068     2068              
  Lines      180931   180934       +3     
==========================================
- Hits       169350   169347       -3     
- Misses      11581    11587       +6     
Files Coverage Δ
...ud/internal/grpc_service_account_authentication.cc 83.33% <100.00%> (ø)
google/cloud/storage/testing/temp_file.h 100.00% <100.00%> (ø)
google/cloud/internal/unified_grpc_credentials.cc 70.00% <0.00%> (-4.47%) ⬇️

... and 3 files with indirect coverage changes

☔ View full report in Codecov by Sentry.
📢 Have feedback on the report? Share it here.

@coryan coryan temporarily deployed to internal October 30, 2023 17:52 — with GitHub Actions Inactive
* You should set this option both in the credentials and the client options.
* For example:
* @code
* using gc = ::google::cloud;
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

s/using/namespace/

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Done.

* does not use the default root of trust. Though it might be possible to
* set the `GRPC_DEFAULT_SSL_ROOTS_FILE_PATH` environment variable instead.
*
* You should set this option both in the credentials and the client options.
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

s/and the client options/and in the connection options/

They would not apply if passed to the client only, right?

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Done.

@coryan coryan temporarily deployed to internal October 30, 2023 20:31 — with GitHub Actions Inactive
@coryan coryan enabled auto-merge (squash) October 30, 2023 20:38
@coryan coryan merged commit 7cb1ec3 into googleapis:main Oct 30, 2023
58 of 59 checks passed
@coryan coryan deleted the fix-common-use-CARootsFilePathOption branch October 30, 2023 21:59
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.

3 participants