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

kms: add context.Context to KMS API calls #15327

Merged
merged 1 commit into from
Jul 19, 2022
Merged

Conversation

aead
Copy link
Member

@aead aead commented Jul 18, 2022

Description

This commit adds a context.Context to the
the KMS {Stat, CreateKey, GenerateKey} API
calls.

The context will be used to terminate external calls
as soon as the client requests gets canceled.

A follow-up PR will add a context.Context to
the remaining DecryptKey API call.

Motivation and Context

KMS

How to test this PR?

Types of changes

  • Bug fix (non-breaking change which fixes an issue)
  • New feature (non-breaking change which adds functionality)
  • Optimization (provides speedup with no functional changes)
  • Breaking change (fix or feature that would cause existing functionality to change)

Checklist:

  • Fixes a regression (If yes, please add commit-id or PR # here)
  • Documentation updated
  • Unit tests added/updated

@aead aead requested a review from poornas July 18, 2022 07:46
This commit adds a `context.Context` to the
the KMS `{Stat, CreateKey, GenerateKey}` API
calls.

The context will be used to terminate external calls
as soon as the client requests gets canceled.

A follow-up PR will add a `context.Context` to
the remaining `DecryptKey` API call.

Signed-off-by: Andreas Auernhammer <hi@aead.dev>
@minio-trusted
Copy link
Contributor

Mint Automation

Test Result
mint-large-bucket.sh ✔️
mint-fs.sh ✔️
mint-gateway-s3.sh ✔️
mint-erasure.sh ✔️
mint-dist-erasure.sh ✔️
mint-compress-encrypt-dist-erasure.sh ✔️
mint-pools.sh ✔️
Deleting image on docker hub
Deleting image locally

aead added a commit to aead/minio that referenced this pull request Jul 18, 2022
This commit adds adds a `context.Context` to
the KMS `DecryptKey` API calls.

The context will be used to terminate external calls
as soon as the client requests gets canceled.

Follow up of minio#15327

Signed-off-by: Andreas Auernhammer <hi@aead.dev>
@aead aead mentioned this pull request Jul 18, 2022
7 tasks
@harshavardhana harshavardhana merged commit 242d062 into minio:master Jul 19, 2022
aead added a commit to aead/minio that referenced this pull request Jul 22, 2022
This commit adds adds a `context.Context` to
the KMS `DecryptKey` API calls.

The context will be used to terminate external calls
as soon as the client requests gets canceled.

Follow up of minio#15327

Signed-off-by: Andreas Auernhammer <hi@aead.dev>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

5 participants