-
Notifications
You must be signed in to change notification settings - Fork 28
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
Shutdown callback support for all credentials providers #26
Conversation
…into ImdsBootstrapRelease
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM, but one of the more auth-immersed folks should double check
include/aws/auth/credentials.h
Outdated
struct aws_byte_cursor access_key_id, | ||
struct aws_byte_cursor secret_access_key, | ||
struct aws_byte_cursor session_token); | ||
struct aws_credentials_provider_static_options *options); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
nit: const struct *options
*/ | ||
AWS_AUTH_API | ||
struct aws_signer *aws_signer_new_aws(struct aws_allocator *allocator); | ||
int aws_sign_request_aws( |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Worth having a typedef to cover all signers?
typedef int aws_signing_fn(.....);
int aws_sign_request_aws( | ||
struct aws_allocator *allocator, | ||
const struct aws_signable *signable, | ||
const struct aws_signing_config_base *base_config, |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This can be aws_signing_config_aws
now!
source/credentials_utils.c
Outdated
if (provider) { | ||
if (provider->shutdown_options.shutdown_callback) { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
[nit]
if (provider && provider->shutdown_options.shutdown_callback) {
* log errors in decoder * slight modifications to decoder, while we're in here thinking about what might go wrong.
By submitting this pull request, I confirm that my contribution is made under the terms of the Apache 2.0 license.