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

Unable to store empty strings as values #37

Open
fsoikin opened this issue Jan 19, 2021 · 0 comments
Open

Unable to store empty strings as values #37

fsoikin opened this issue Jan 19, 2021 · 0 comments

Comments

@fsoikin
Copy link
Contributor

fsoikin commented Jan 19, 2021

This happens because AWS refuses to encrypt empty payloads:

 λ confcrypt aws add -n FOO -v "" -t String -p -k <key> <file>.econf                                                                                                      

confcrypt: ServiceError (ServiceError' {
  _serviceAbbrev = Abbrev "KMS",
  _serviceStatus = Status {statusCode = 400, statusMessage = "Bad Request"}, 
  _serviceHeaders = [("x-amzn-RequestId","e68c2e4a-791c-4920-97e2-f4778afa963a"),("Cache-Control","no-cache, no-store, must-revalidate, private"),("Expires","0"),("Pragma","no-cache"),("Date","Tue, 19 Jan 2021 17:11:04 GMT"),("Content-Type","application/x-amz-json-1.1"),("Content-Length","175")], 
  _serviceCode = ErrorCode "Validation", 
  _serviceMessage = Just (ErrorMessage "1 validation error detected: Value at 'plaintext' failed to satisfy constraint: Member must have length greater than or equal to 1"), 
  _serviceRequestId = Just (RequestId "e68c2e4a-791c-4920-97e2-f4778afa963a")
})                                                                                                                  
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

No branches or pull requests

1 participant