Hide Environment Variables From Your History Published by Nathan Webster on 28 October 2022 Here’s a neat little trick I learned today; if you want to hide the value of an Environment variable from your history/logs, put a space before the export command! Photo by Arnold Francisca on Unsplash Here’s an example: export NATHAN=fooecho $NATHANfoo export NATHAN=barecho $NATHANbarhistory10083 export NATHAN=foo10084 echo $NATHAN10084 echo $NATHAN Particularly helpful if you are using secrets as Environment variables and you don’t want these to make it through to centralised logging platforms. Enjoy! Tags: Engineering, Tips Back to Blog Tweet
Here’s a neat little trick I learned today; if you want to hide the value of an Environment variable from your history/logs, put a space before the export command! Photo by Arnold Francisca on Unsplash Here’s an example: export NATHAN=fooecho $NATHANfoo export NATHAN=barecho $NATHANbarhistory10083 export NATHAN=foo10084 echo $NATHAN10084 echo $NATHAN Particularly helpful if you are using secrets as Environment variables and you don’t want these to make it through to centralised logging platforms. Enjoy!
Daemon Does Vegas - Top Tips for attending AWS re:Invent AWS re:Invent is back with a bang for 2023 and this year, Daemon will be there! Read More
Daemon Does Vegas - Proposed Agenda - Retail Track Daemon loves the Retail sector and we’re very proud to play a key part in technology strategy and... Read More
AI assistants and better cloud migration: reconnecting at AWS re:Invent At Daemon, we pride ourselves on being at the forefront of digital transformation. We want our... Read More