Excellent video, Was not sure what environment variables with Lambda meant from text. I know now after watching this informative video. Thank you very much. Keep up the good work.
Good work. One question: If someone has access to this lambda function, he still can get the secret values by modifying the decrypt function and running the test. How to avoid that then?
Can you please clarify me, if a hacker got access to the console, why would he bother to reading the encrypted string when he simply can just feed this encrypted strings(or secretName) to your github decryptSecret function to get the plain secrets.
That is a great tutorial with a clear explanation. Btw, I had a question about lambda services, and really appreciate it if you can address it, " The Question that I want to encrypt my Script / Code that I posted on top of Lambda as function, so not everyone can see access and copy the script . is it possible? if yes, how can I do that?? Thanks in advance
Thank you! You briefly mentioned that you could change the environment variables based on whether we are running testnet or mainnet. Do we need to create separate lambda functions?
Thank you for the clear explanation! a doubt, you mentioned that secrets saved in cache, this means that if the lambda is executed multiple times, the cost of kms will not exceed the free trial?
There are some Python examples for env variables in the aws docs: docs.aws.amazon.com/lambda/latest/dg/configuration-envvars.html I don't know Python but the api should be similar.
Add the EncryptionContext as your lambda function name as below: const req = { CiphertextBlob: Buffer.from(process.env[secretName], 'base64'), EncryptionContext: { LambdaFunctionName: "your lambda function name" }, };
I can't believe I just found your channel, I'm glad I did though!
Excellent video, Was not sure what environment variables with Lambda meant from text. I know now after watching this informative video. Thank you very much. Keep up the good work.
Awesome video, it helped me a lot. Good job my friend
Good work. One question: If someone has access to this lambda function, he still can get the secret values by modifying the decrypt function and running the test. How to avoid that then?
thanks lot dude! super helpful video!
Very helpful, thank you very much!
Can you please clarify me, if a hacker got access to the console, why would he bother to reading the encrypted string when he simply can just feed this encrypted strings(or secretName) to your github decryptSecret function to get the plain secrets.
Awesome Explanation
That is a great tutorial with a clear explanation.
Btw, I had a question about lambda services, and really appreciate it if you can address it,
" The Question that I want to encrypt my Script / Code that I posted on top of Lambda as function, so not everyone can see access and copy the script
. is it possible? if yes, how can I do that??
Thanks in advance
Very useful! Can you try to implement same in python as well.
Very helpful Video ! Keep it up !
Thank you I need this video thanks a lot ❤
Thank you! You briefly mentioned that you could change the environment variables based on whether we are running testnet or mainnet. Do we need to create separate lambda functions?
Thank you for the clear explanation! a doubt, you mentioned that secrets saved in cache, this means that if the lambda is executed multiple times, the cost of kms will not exceed the free trial?
how can i set the environment variables that many functions use the same(commonly used)?
Thanks for the great vid. Do you have a Python example?
There are some Python examples for env variables in the aws docs:
docs.aws.amazon.com/lambda/latest/dg/configuration-envvars.html
I don't know Python but the api should be similar.
@@BiteSizeAcademy thanks but not like you’re fancy pants utils file 😉
many many thanks
Thanks this was great!
any chance you have a python example of this video ?
Precious!!! thanks a lot
KMS has min charge for 12$ a year for 1 single key. Why it is so expensive to store a key in KMS.
I followed the whole process as explained in the video but still getting this error while decrypting >>> "errorType": "InvalidCiphertextException",
Add the EncryptionContext as your lambda function name as below:
const req = { CiphertextBlob: Buffer.from(process.env[secretName], 'base64'), EncryptionContext: { LambdaFunctionName: "your lambda function name" }, };
@@parthasarathymurali3942 Thanks!!! Allmost 2h trying to solve this error..
very useful content
Is there a similar code in python?
Can we decrypt multiple keys in one API call?
Hello sir nice tutorial .
i need this requirement. but any code for decrypt function in JAVA