751 questions
1
vote
0
answers
31
views
Trouble decrypting CiphertextForRecipient after KMS GenerateDataKey
I'm building a route for my go (gin) server that generates a Data Encryption Key (DEK), following the principle of zero-trust (the backend never sees the plaintext).
Right now, the client generates a ...
0
votes
0
answers
57
views
How to setup AWS KMS with pulumi for log group?
I'm having hard time getting my KMS key working for my log group.
Right now I got this error in pulumi up:
policy: operation error KMS: PutKeyPolicy, [some other informations] ...
-4
votes
1
answer
78
views
What is the difference between a key managed by SQS vs a KMS key managed by SQS?
I'm looking into encrypting an SQS Queue that I've got using the CDK, and as options, there are
Encryption type
Description
UNENCRYPTED
Messages in the queue are not encrypted.
KMS_MANAGED
Server-side ...
3
votes
2
answers
577
views
Can aws_kms_ciphertext output be stable
In my terraform config I have aws_kms_ciphertext data sources whose ciphertext_blob attribute changes on every terraform apply.
As an example...
variable "profile" {
type = "string"
}
provider "...
2
votes
1
answer
9k
views
KMS Decrypt Permissions for AWS Lambda
I can't work it out and the docs are not being very helpful.
I have a lambda that needs to decrypt a value using KMS. I am using sam to deploy my lambda. Initial I tried adding a policy statement
...
20
votes
4
answers
25k
views
What are the differences between AWS Cloud HSM and KMS?
I am trying to understand the key management services in AWS (Amazon Web Services) and I can see that Amazon recommends more AWS Key Management Service (KMS) over Cloud Hardware Security Module (Cloud ...
0
votes
0
answers
29
views
Issues while creating an asymmetric customer managed key for key agreement
I want to create an asymmetric customer managed key for key agreement in Terraform.
The Terraform doc does not specify "KEY_AGREEMENT" as a valid value for key usage, although its provided ...
32
votes
5
answers
25k
views
How exactly does encryption key rotation work? [closed]
How exactly does encryption key rotation work? I understand it's a very good practice to continuously rotate your encryption keys for security purposes, but rotating a key would require too much work.
...
4
votes
2
answers
5k
views
Require KMS encryption with specific key ID in S3 bucket policy
I'm trying to require all objects put into a bucket to be encrypted with a specific KMS key. I've managed to require KMS encryption, but the key specification does not work. Here is the current policy ...
1
vote
1
answer
102
views
AWS Lambda: Unable to decrypt RDS Activity Stream using KMS (InvalidCiphertextException)
I have a CloudFormation template which I am using to configure lambda to decrypt AWS RDS database activity stream logs
I used the lambda function from: https://github.com/aws-samples/optimising-aws-...
0
votes
0
answers
24
views
AWS KMS Custom Key Store cannot connect to CloudHSM
I'm trying to set up an AWS KMS Custom Key Store using a CloudHSM cluster in eu-north-1, but I'm running into a silent failure: the key store remains in the DISCONNECTED state, and no ...
367
votes
13
answers
557k
views
boto3 client NoRegionError: You must specify a region error only sometimes
I have a boto3 client :
boto3.client('kms')
But it happens on new machines, They open and close dynamically.
if endpoint is None:
if region_name is None:
# Raise a more ...
0
votes
0
answers
61
views
How to make codebuild role in aws account make changes/access KMS keys in another aws account for a lambda function?
How to make codebuild role in aws account make changes/access KMS keys in another aws account for a lambda function?
We are facing below error message when we update lambda function in one aws account ...
2
votes
1
answer
1k
views
AWS BACKUP vaults for cross account in Terraform
I Need some help in configuring AWS backup vaults in multiple AWS accounts using terraform. I'm able to create backup vaults in 2 accounts with specific plan and schedule. but i cant see the backedup ...
0
votes
1
answer
179
views
AWS Athena S3 Access Failing Due to KMS Key Not Found in Cross-Account Setup [closed]
I'm trying to configure AWS Athena in the account A to query a dataset in account B. I updated the S3 bucket policy in account A to enforce secure transport and allow access from a specific IAM ...