question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

KMS lookups give values $VAL wrapped as "b'$VAL'" when using python 3

See original GitHub issue

While attempting to encrypt a password ‘hello!’ per the directions here:

  1. the command given for encryption fails entirely
  2. after getting encryption working, Stacker populated incorrect values

using the suggested encryption command aws kms encrypt --key-id alias/DbConnectionKey --plaintext 'hello!' --output text --query CiphertextBlob results in:

Invalid base64: "hello!"

From there, I attempted to use aws kms encrypt --key-id alias/DbConnectionKey --plaintext fileb://<(echo -n 'hello!') --output text --query CiphertextBlob and used the result to create a secret via Stacker. In this secret, I see:

image

Does this need a different configuration than the one from the docs, or is there another way I should be doing this? I’m currently using Stacker 1.7.0 on python 3.5.3. I’ve also tried dropping the ‘!’ off the end and received the same behavior with just “hello”.

Issue Analytics

  • State:closed
  • Created 3 years ago
  • Comments:8 (7 by maintainers)

github_iconTop GitHub Comments

1reaction
phobologiccommented, Nov 5, 2020

I’ll go ahead and get a dot release out by this weekend.

1reaction
hauntingEchocommented, Nov 5, 2020

This has been resolved with 1.7.1

Read more comments on GitHub >

github_iconTop Results From Across the Web

Untitled
Nex star 3 aprilie 2014, Mini u lock bicycle, 2014 dave rankin invitational, Alte tabakstube knyrim stuttgart, Renee garvens? 24434 clothing, Boba fett...
Read more >
ALL AFNI program -help files
default values (0 except for scales, which default to 1). * At least 1 parameter must be given, or you get this help...
Read more >
Untitled
Gateway plus 3 testy chomikuj, Dr w t maheswaran, Leonidio klettern, Zauberpilze richtig ... Roman jurczak mala, Myavanti market, Editor written in python!...
Read more >
Diffusional Kurtosis Estimator: dke-questions - NITRC
I input dwi images with b=0,0.8,1.5 and 2.5, where b0 has one direction and the other b values have 18 directions. There are...
Read more >
CodeBLEU/test_files/Full_Reference_PY.txt ... - GitLab
#!/usr/bin/env python from subprocess import check_output from circuits.web import Controller, Server class Root(Controller): def index(self): return ...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found