tag:github.com,2008:https://github.com/gruntwork-io/bash-commons/releasesTags from bash-commons2024-07-29T16:42:05Ztag:github.com,2008:Repository/128768909/v0.2.42024-07-29T16:43:55Zv0.2.4arscitag:github.com,2008:Repository/128768909/v0.2.32024-07-23T22:40:56Zv0.2.3<p>ubuntu version updates (<a class="issue-link js-issue-link" href="https://github.com/gruntwork-io/bash-commons/pull/66">#66</a>)</p>
<p>- Remove ubuntu 16.04/18.04
<br />- Add support for ubuntu 22.04
<br />- Add test for no IMDS version specified</p>gcagle3tag:github.com,2008:Repository/128768909/v0.2.22024-06-28T22:26:21Zv0.2.2<p>Bug/fix-if-statement-67 (<a class="issue-link js-issue-link" href="https://github.com/gruntwork-io/bash-commons/pull/68">#68</a>)</p>
<p>* fixing unbound variable</p>
<p>Using -z in an if statement causes an unbound variable error if set -eu is declared but the variable has not been declared. Changing thing to -n which checks if the variable is declared and/or undefined.
<br />undefined is an empty string like bob=""
<br />undeclared is if it has never been declared at all</p>
<p>* Check for IMDS Endpoint</p>
<p>This checks of the IMDS Endpoint is available. If not if fails.</p>
<p>* Add error message when IMDS Endpoint is unavailable</p>
<p>Add an error message if the IMDS Metadata Endpoint is not available.</p>gcagle3tag:github.com,2008:Repository/128768909/v0.2.12024-06-27T19:21:42Zv0.2.1<p>fixing unbound variable (<a class="issue-link js-issue-link" href="https://github.com/gruntwork-io/bash-commons/pull/64">#64</a>)</p>
<p>Using -z in an if statement causes an unbound variable error if set -eu is declared but the variable has not been declared. Changing thing to -n which checks if the variable is declared and/or undefined.
<br />undefined is an empty string like bob=""
<br />undeclared is if it has never been declared at all</p>gcagle3tag:github.com,2008:Repository/128768909/v0.2.02024-06-27T19:20:50Zv0.2.0<p>Bug/check imds version 57 (<a class="issue-link js-issue-link" href="https://github.com/gruntwork-io/bash-commons/pull/60">#60</a>)</p>
<p>* Adde check for IMDS version</p>
<p>* move metadata below endpoint declaration</p>
<p>Moved check for IMDS version to below the metadata_endpoint declaration to be able to take advantage of it.</p>
<p>* updated default to IMDSv2</p>
<p>updated the comments to reflect IMDSv2 as the default.</p>
<p>* Add IMDS version 2 to README.md</p>
<p>Changing IMDSv2 to be default. Updating the README to reflect this change.</p>
<p>* dealing with IMDS being blocked</p>
<p>Taking in to account if a firewall is configured to block IMDS calls. And setting default to version 2.</p>
<p>* check IMDSv2 Token endpoint</p>
<p>Checks the IMDSv2 Token endpoint to verify if IMDSv2 is active and available.
<br />If not, checks to verify if IMDSv1 endpoint is active and available.</p>
<p>* wrap curl in variable</p>
<p>curl command failure cause script to abort. Wrapping inside a variable should allow the script to continue.</p>
<p>* adding sudo to curl</p>
<p>curl to IMDS endpoint fails as a normal user in some cases (including testing with docker-compose).</p>
<p>* identify version failure in output</p>
<p>Identify in the output if it was IMDSv1 or IMDSv2 that failed.</p>
<p>* remove version lock from Dockerfile</p>
<p>cnf-lint and pyrsistent unlocking version</p>
<p>* unlock cnf-lint and pyrsistent versions</p>
<p>Unlocking versions for cnf-lint and pyrsistent in Docker file for Ubuntu 20.04</p>
<p>* adding check for user override to IMDS version</p>
<p>Adding if statement to check if the IMDS version has been requested.</p>gcagle3tag:github.com,2008:Repository/128768909/v0.1.92021-10-22T13:43:06Zv0.1.9yorinasub17tag:github.com,2008:Repository/128768909/v0.1.82021-10-08T20:32:45Zv0.1.8zackprosertag:github.com,2008:Repository/128768909/v0.1.72021-06-11T17:44:08Zv0.1.7<p>Port functions from terraform-aws-zookeeper (<a class="issue-link js-issue-link" href="https://github.com/gruntwork-io/bash-commons/pull/37">#37</a>)</p>
<p>* Define string_substr function</p>
<p>* Add function that asserts whether the user has permissions to run sudo</p>
<p>* Add " for consistency</p>yorinasub17tag:github.com,2008:Repository/128768909/v0.1.62021-06-11T13:36:54Zv0.1.6<p>Fix build (<a class="issue-link js-issue-link" href="https://github.com/gruntwork-io/bash-commons/pull/36">#36</a>)</p>
<p>* Regression test for sudo functionality</p>
<p>* Add Ubuntu 20.04 and propagate exit code</p>
<p>* Fix for sudo bug</p>
<p>* Fix build failures</p>
<p>* Make sure shellcheck container errors are bubbled up</p>
<p>* Remove debug statement</p>
<p>* Fix docker-compose call for shellcheck</p>yorinasub17tag:github.com,2008:Repository/128768909/v0.1.52021-06-10T16:35:56Zv0.1.5yorinasub17