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

docs: add samples for API key auth #14740

Draft
wants to merge 1 commit into
base: main
Choose a base branch
from

Conversation

dbolduc
Copy link
Member

@dbolduc dbolduc commented Sep 27, 2024

Part of the work for #14733

Add a sample for apikeys_create_api_key (cloud docs) and apikeys_authenticate_api_key (cloud docs)

These API keys give access to our project's billing account. So we make sure not to print the key_string, and periodically remove old keys that may leak.


This change is Reviewable

@product-auto-label product-auto-label bot added the samples Issues that are directly related to samples. label Sep 27, 2024
Copy link

codecov bot commented Sep 27, 2024

Codecov Report

Attention: Patch coverage is 90.90909% with 6 lines in your changes missing coverage. Please review.

Project coverage is 93.45%. Comparing base (4868f0a) to head (b41e8b2).
Report is 1 commits behind head on main.

Files with missing lines Patch % Lines
examples/api_key.cc 90.90% 6 Missing ⚠️
Additional details and impacted files
@@            Coverage Diff             @@
##             main   #14740      +/-   ##
==========================================
- Coverage   93.46%   93.45%   -0.01%     
==========================================
  Files        2323     2324       +1     
  Lines      208128   208218      +90     
==========================================
+ Hits       194518   194591      +73     
- Misses      13610    13627      +17     
Flag Coverage Δ
93.45% <90.90%> (-0.01%) ⬇️

Flags with carried forward coverage won't be shown. Click here to find out more.

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

@dbolduc dbolduc marked this pull request as ready for review September 27, 2024 22:51
@dbolduc dbolduc requested a review from a team as a code owner September 27, 2024 22:51
Copy link

snippet-bot bot commented Sep 27, 2024

Here is the summary of changes.

You are about to add 4 region tags.

This comment is generated by snippet-bot.
If you find problems with this result, please file an issue at:
https://github.com/googleapis/repo-automation-bots/issues.
To update this comment, add snippet-bot:force-run label or use the checkbox below:

  • Refresh this comment

@dbolduc dbolduc marked this pull request as draft September 28, 2024 02:37
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
samples Issues that are directly related to samples.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant