v4.5.12026-03-23
🚀 Enhancements
<details>
<summary>fix: remove 2>&1 stderr redirect from atmos auth env calls @osterman (#983)</summary>
Let stderr from atmos flow directly to the terminal for real-time feedback and error messages, while only capturing stdout (env exports) for evaluation by eval. This provides better user experience and cleaner separation of concerns in the use-identity() function.
</details>
<details>
<summary>fix: correct syntax errors and typos in shell scripts @RoseSecurity (#982)</summary>
## why
- This includes several minor fixes and improvements to shell scripts and the Debian Dockerfile to address typos and improve code correctness. The changes focus on correcting environment variable usage, fixing typos in argument names, and improving conditional checks.
what
Fixed a typo in the ARG definition by renaming DEBAINDATECODE to DEBIAN_DATECODE in os/debian/Dockerfile.debian.
Updated the FROM line to use the corrected DEBIANDATECODE argument.
Corrected the conditional check for bold formatting in geodesictputcacheinit by fixing the bracket placement in rootfs/etc/profile.d/10-colors.sh.
Improved path matching logic in fileonhost to correctly compare paths in rootfs/etc/profile.d/50-workspace.sh.
* Fixed quoting and conditional checks for KUBECONFIG in the Helm initialization script in rootfs/etc/profile.d/helm.sh.
Corrected the conditional check for GEODESICTFPROMPTENABLED in geodesic_prompt in rootfs/etc/profile.d/prompt.sh.
</details>
🧰 Included Tools
<details>
<summary>fix: correct syntax errors and typos in shell scripts @RoseSecurity (#982)</summary>
## why
- This includes several minor fixes and improvements to shell scripts and the Debian Dockerfile to address typos and improve code correctness. The changes focus on correcting environment variable usage, fixing typos in argument names, and improving conditional checks.
what
Fixed a typo in the ARG definition by renaming DEBAINDATECODE to DEBIAN_DATECODE in os/debian/Dockerfile.debian.
Updated the FROM line to use the corrected DEBIANDATECODE argument.
Corrected the conditional check for bold formatting in geodesictputcacheinit by fixing the bracket placement in rootfs/etc/profile.d/10-colors.sh.
Improved path matching logic in fileonhost to correctly compare paths in rootfs/etc/profile.d/50-workspace.sh.
* Fixed quoting and conditional checks for KUBECONFIG in the Helm initialization script in rootfs/etc/profile.d/helm.sh.
Corrected the conditional check for GEODESICTFPROMPTENABLED in geodesic_prompt in rootfs/etc/profile.d/prompt.sh.
</details>
Footnote
In every release, we update all unpinned packages to their latest packaged versions. These changes are not detailed here.
v4.5.02026-01-21
<details>
<summary>Use atmos for readme generation @goruha (#978)</summary>
## what
* Use atmos for readme generation
why
* Use atmos to generate readme instead of build-harness
</details>
🚀 Enhancements
<details>
<summary>fix: codespell typo fixes, replace unsafe array assignments, quote variable expansions to prevent globbing @RoseSecurity (#980)</summary>
## what
> [!NOTE]
> All modifications are non-functional improvements focused on reliability and security
- Codespell typo fixes
- Improve shell script quality and security by fixing unquoted variables and unsafe array splitting patterns identified by ShellCheck
- Replace unsafe array assignment patterns like array=($(command)) with the more robust mapfile -t array < <(command) syntax
- Quote all variable expansions to prevent word splitting and globbing
- Fix command substitutions that could break with special characters.
why
- Improve the reliability and security of Geodesic
references
- Shellcheck
</details>
<details>
<summary>Add Atmos auth integration to Geodesic @osterman (#979)</summary>
## Summary
This PR integrates Atmos authentication support into Geodesic by:
- Mounting Atmos-specific directories (.cache/atmos and .local/share/atmos) when they exist on the host
- Configuring Atmos XDG environment variables for proper credential and cache storage
- Adding a new use-identity helper function for seamless Atmos auth workflow
Changes
1. Wrapper Script (wrapper-body.sh)
- Added conditional mounting of .cache/atmos and .local/share/atmos directories
- Only mounts directories if they exist on the host to avoid unnecessary overhead
- Enables persistent SSO token caching and keyring storage across Geodesic sessions
2. Atmos Configuration (atmos.sh)
- Export ATMOSXDGCONFIGHOME, ATMOSXDGDATAHOME, and ATMOSXDGCACHE_HOME environment variables
- These direct Atmos to use the container's home directory paths that are mounted from the host
3. New use-identity Function
- Added in atmos.sh as a general-purpose function (not AWS-specific)
- Usage: use-identity [identity-name]
- use-identity alone brings up the interactive identity selector
- use-identity my-identity directly authenticates with that identity using --identity=my-identity syntax
- Integrates with AWS prompt refresh when available (checks for exportcurrentaws_role)
Test Plan
- [ ] Verify Atmos auth directories are mounted when present
- [ ] Test use-identity with no arguments (should show selector)
- [ ] Test use-identity my-identity (should authenticate directly)
- [ ] Verify SSO tokens persist across Geodesic sessions
- [ ] Verify keyring data persists across Geodesic sessions
- [ ] Confirm existing assume-role workflows still work
- [ ] Test with Geodesic container that has Atmos installed
</details>
🧰 Included Tools
<details>
<summary>fix: codespell typo fixes, replace unsafe array assignments, quote variable expansions to prevent globbing @RoseSecurity (#980)</summary>
## what
> [!NOTE]
> All modifications are non-functional improvements focused on reliability and security
- Codespell typo fixes
- Improve shell script quality and security by fixing unquoted variables and unsafe array splitting patterns identified by ShellCheck
- Replace unsafe array assignment patterns like array=($(command)) with the more robust mapfile -t array < <(command) syntax
- Quote all variable expansions to prevent word splitting and globbing
- Fix command substitutions that could break with special characters.
why
- Improve the reliability and security of Geodesic
references
- Shellcheck
</details>
<details>
<summary>Add Atmos auth integration to Geodesic @osterman (#979)</summary>
## Summary
This PR integrates Atmos authentication support into Geodesic by:
- Mounting Atmos-specific directories (.cache/atmos and .local/share/atmos) when they exist on the host
- Configuring Atmos XDG environment variables for proper credential and cache storage
- Adding a new use-identity helper function for seamless Atmos auth workflow
Changes
1. Wrapper Script (wrapper-body.sh)
- Added conditional mounting of .cache/atmos and .local/share/atmos directories
- Only mounts directories if they exist on the host to avoid unnecessary overhead
- Enables persistent SSO token caching and keyring storage across Geodesic sessions
2. Atmos Configuration (atmos.sh)
- Export ATMOSXDGCONFIGHOME, ATMOSXDGDATAHOME, and ATMOSXDGCACHE_HOME environment variables
- These direct Atmos to use the container's home directory paths that are mounted from the host
3. New use-identity Function
- Added in atmos.sh as a general-purpose function (not AWS-specific)
- Usage: use-identity [identity-name]
- use-identity alone brings up the interactive identity selector
- use-identity my-identity directly authenticates with that identity using --identity=my-identity syntax
- Integrates with AWS prompt refresh when available (checks for exportcurrentaws_role)
Test Plan
- [ ] Verify Atmos auth directories are mounted when present
- [ ] Test use-identity with no arguments (should show selector)
- [ ] Test use-identity my-identity (should authenticate directly)
- [ ] Verify SSO tokens persist across Geodesic sessions
- [ ] Verify keyring data persists across Geodesic sessions
- [ ] Confirm existing assume-role workflows still work
- [ ] Test with Geodesic container that has Atmos installed
</details>
Footnote
In every release, we update all unpinned packages to their latest packaged versions. These changes are not detailed here.
v4.4.02025-05-05
🚀 Enhancements
Split GEODESICDOCKEREXTRAARGS into GEODESICDOCKEREXTRALAUNCHARGS and GEODESICDOCKEREXTRAEXEC_ARGS @Nuru (#976)
what
- GEODESICDOCKEREXTRA_ARGS is deprecated. Geodesic distinguishes between options for launching a container
and options for exec’ing into a running one. Use GEODESICDOCKEREXTRALAUNCHARGS for container launch and
GEODESICDOCKEREXTRAEXECARGS for exec’ing into a running container.
- Add additional outputs to --verbose mode
- Minor cleanups for non-standard launch attempts
why
- Some arguments only apply at launch time, while others my vary with each exec into the same container
- More clarity around options being passed to docker
- Catch a few more edge cases
🧰 Included Tools
<details>
<summary>Update dependency crudini to v0.9.6 @[renovate[bot]](https://github.com/apps/renovate) (#975)</summary>
This PR contains the following updates:
| Package | Change | Age | Adoption | Passing | Confidence |
|---|---|---|---|---|---|
| crudini | ==0.9.5 -> ==0.9.6 | age | adoption | passing | confidence |
---
Release Notes
<details>
<summary>pixelb/crudini (crudini)</summary>
v0.9.6
Compare Source
- Support BOM correctly. Previously we would have stripped any Byte Order Mark, and incorrectly matched items on the first line.
- Extraneous blank lines are avoided when deleting a section. Previously blank lines preceeding a \[section] were not removed. Note this will collapse multiple empty lines preceding all sections.
- Support creating a section called "default". Previously this would have been disallowed, with an invalid section name error.
- Support ensuring a single space in all 'name = value' entries in the file with --ini-options=space. This is symmetric and opposite to the existing --ini-options=nospace option.
- Support ensuring a single blank line between sections, and no blank lines at the start or end of the file, with --ini-options=sectionspace.
</details>
---
Configuration
📅 Schedule: Branch creation - At any time (no schedule defined), Automerge - At any time (no schedule defined).
🚦 Automerge: Disabled by config. Please merge this manually once you are satisfied.
♻ Rebasing: Whenever PR becomes conflicted, or you tick the rebase/retry checkbox.
🔕 Ignore: Close this PR and you won't be reminded about this update again.
---
- [ ] <!-- rebase-check -->If you want to rebase/retry this PR, check this box
---
This PR was generated by Mend Renovate. View the repository job log.
<!--renovate-debug:eyJjcmVhdGVkSW5WZXIiOiIzOS4yMzguMCIsInVwZGF0ZWRJblZlciI6IjM5LjIzOC4wIiwidGFyZ2V0QnJhbmNoIjoibWFpbiIsImxhYmVscyI6W119-->
</details>
Footnote
In every release, we update all unpinned packages to their latest packaged versions. These changes are not detailed here.
v4.3.0 Fix excessive CPU usage introduced in v4.1.02025-02-27
🐛 Bug Fixes
This release fixes bugs introduced in v4.1.0-rc1. Because of the excessive CPU usage bug, versions 4.1.x and 4.2.x should not be used.
<details>
<summary>Fix Excessive CPU usage, fix --solo @Nuru (#974)</summary>
## what
- Fix shell monitoring introduced in v4.1.0 #970
- Fix --solo / ONE_SHELL=true option broken in v4.1.0 #970
why
- Bug caused shell monitor to burn CPU busy waiting on shell exits rather than sleep and poll
- Oversight in refactoring launch vs exec parameters left out terminal allocation for --solo option, causing Geodesic to immediately exit
</details>
Footnote
In every release, we update all unpinned packages to their latest packaged versions. These changes are not detailed here.
v4.2.1 Excessive CPU usage, do not use预发布2025-02-26
Do not use this version because it has the Excessive CPU usage bug. Upgrade to v4.3.0 or downgrade to v4.0.2.
🐛 Bug Fixes
<details>
<summary>Fix manual install to use APPNAME and INSTALLPATH properly @Nuru (#972)</summary>
- Fix manual install to use APPNAME and INSTALLPATH properly @Nuru (#972)
- Fix default app name in installation output @Nuru (#973)
## what
- Fix manual install to use APPNAME and INSTALLPATH properly
why
- When installing without the Makefile, displayed instructions and resulting install did not work
</details>
Footnote
In every release, we update all unpinned packages to their latest packaged versions. These changes are not detailed here.
v4.2.0 Fix Role Prompt, bypass buggy secrets check, add lsb_release预发布2025-02-26
Impotant:
Do not use this version because it has the Excessive CPU usage bug. Upgrade to v4.3.0 or downgrade to v4.0.2.
Summary
Due to https://github.com/moby/buildkit/issues/5775, if you are setting CHAMBERKMSKEY_ALIAS in your Dockerfile, you are likely getting a warning when you build the Docker image:
``
1 warning found (use docker --debug to expand):
- SecretsUsedInArgOrEnv: Do not use ARG or ENV instructions for sensitive data (ENV "CHAMBERKMSKEY_ALIAS")
`
To get around the spurious warning, Geodesic now lets you set CHAMBERKMSALIAS in your Docker file, and will convert that value to CHAMBERKMSKEY_ALIAS during startup processing.
🚀 Enhancements
Fix Role Prompt, bypass buggy secrets check, add lsb_release @Nuru (#971)
## what
- Fix the script for converting the current AWS IAM role to something short and meaningful for the shell command prompt
- Add support for converting Identity Center Permission Sets to profile names in the shell prompt
- Support setting CHAMBERKMSKEYALIAS via CHAMBERKMS_ALIAS
- Add the lsb-release package to provide lsb_release
why
- The code was buggy due too piecemeal changes resulting in unreachable code
- Many people are using Identity Center now
- Setting CHAMBERKMSKEY_ALIAS as is customary in Cloud Posse Dockerfiles triggers the SecretsUsedInArgOrEnv warning. While this is arguably a bug in the warning, this change allows concerned users to avoid the issue.
- Some tool installation scripts require lsb_release to be already installed
references
- chamber` KMS key alias
- https://github.com/moby/buildkit/issues/5775
Footnote
In every release, we update all unpinned packages to their latest packaged versions. These changes are not detailed here.
v4.1.0 Better terminal and shell process management预发布2025-02-21
Important
- Do not use this version because it introduced a bug causing Excessive CPU. Upgrade to v4.3.0 or downgrade to v4.0.2.
- This release also broke the --solo / ONE_SHELL=true option, which is also fixed in v4.3.0
Reminder
Geodesic is both a Docker image and a launch wrapper script. Often you can just update the image without updating the script. In this release, the script has changed greatly, and you must install the new script to work with the new image. (This does not affect CI/CD systems that always use the script without the wrapper.)
Changes of Greatest Note:
- Automatic detection of changes in the terminal's light/dark theme has been disabled by default and should be considered experimental. Manually update the theme by using set-terminal-theme [light | dark] if desired. Geodesic still tries to detect the theme when the shell is first launched, and this appears to be reasonably reliable.
- Significant internal changes have been made regarding configuring the shells launched into the container. Whereas previously the first shell set defaults and subsequent shells could change very little, now each shell can configure its own environment to the extent the configuration is not considered part of the launch configuration (such as attaching volumes).
- Internal changes have been made with regard to tracking shells so that the container exits promptly when the last shell exits and not before. This should make the process of quitting the shells and stopping the container faster and more reliable.
- Previously, you had to use a configuration override if you wanted to keep TFPLUGINCACHE_DIR from being set. Geodesic respects your setting, but if unset, Geodesic sets it to "${HOME}/.terraform.d/plugin-cache". To preserve backward compatibility, it is still set if left unset, but now if you set it to "false" or "disabled" Geodesic will unset it for you.
🚀 Enhancements and 🐛 Bug fixes
## what
- Better detection of terminal color settings at startup
- Added --light and --dark command line options to manually set terminal theme
- By default, disable attempt to detect terminal theme changes while running
- Make a better separation between settings that only affect the container when it launches and settings that can vary from exec'd shell to shell
- Correlate shells exec'd into the container with their wrapper processes
- Make detection of tracked shells much more efficient
- Provide an opt-out mechanism for setting TFPLUGINCACHE_DIR
<details><summary>why</summary>
why
- Because of a lack of consistent implementation of features in terminal emulators, automatically determining the terminal's appearance (e.g. light/dark theme) requires a case-by-case approach. Our implementation of the OSC protocol was basically correct, but did not account for the wide variations seen in practice. We now outsource this to the terminal-colorsaurus library, which is much further along in handling all the quirks.
- Mechanisms to detect changes in the appearance of a terminal while the shell is running are not even close to be standardized. Our attempts frequently failed. This feature has now been marked experimental and disabled by default because it does not work acceptably well and is not something we want to invest in.
- Geodesic now has a large number of settings. Many of them only affect the launch of the container (such as what volumes to mount and where). However, many of them can and should be allowed to vary from shell to shell in the same container (e.g. TERM). Previously, Geodesic mainly limited configuration to the launch of the container, and forced later shells to inherit that launch configuration. Now, to the extent practical, each shell can have different settings.
- Now that the Geodesic container can remain running after the initial shell exits, it becomes important to track the shells so that the container exits when and only when all shells have exited. The v4.0.0 implementation suffered from not being able to distinguish the shell the wrapper launched from the shells other wrappers launched, nor could it tell the shells launched by docker exec and the shells launch by other shells, and therefore it could not reliably report on the status of the container. Now each shell is matched with its wrapper process, and the shell monitor tracks shells according to whether or not they were launched by docker exec, making the whole process much more reliable and efficient.
- Cloud Posse highly recommends that Terraform users take advantage of the Terraform Provider Plugin Cache, and so Geodesic has been configuring it by setting the TFPLUGINCACHEDIR environment variable to a location on the host filesystem since the feature first became available. However, the cache does not have any protection against parallel modifications, so it is not always appropriate. Previously, Geodesic did not provide a good way to opt out of having the cache configured. Now you can set TFPLUGINCACHEDIR to "false" or "disabled" and Geodesic will honor that by unsetting the variable (leaving Terraform with its default non-caching behavior) rather than forcing you into using a cache.
references
- Survey of terminal emulator color query support
</details>
Footnote
In every release, we update all unpinned packages to their latest packaged versions. These changes are not detailed here.
v4.1.0-rc1预发布2025-02-20
This is a release candidate because there are a large number of changes without the corresponding large volume of testing, but we have confidence that it is an improvement over v4.0.2 in any case. Please report any feedback immediately in in the #geodesic channel in the Cloud Posse Slack workspace. (Invitations available here.)
Released as v4.1.0
https://github.com/cloudposse/geodesic/releases/tag/4.1.0
v4.0.22025-02-12
## what
- Move update of terminal color mode from signal handler to prompt command
- Fix typo in README (thanks @petabook)
- Rename os/alpine/requirements.txt -> os/alpine/requirements-Alpine-disabled.txt
- Allow the --workspace command-line option to use = or space, e.g. --workspace=$HOME/dev or --workspace $HOME/dev
why
- Fixes #967
- Fixes and supersedes #966 (which did not regenerate README.md)
- The Alpine implementation is obsolete but being kept for reference and historical context, how ever Dependabot keeps trying to update it with security patches. This removes one source of unnecessary updates.
- Better user experience
Footnote
In every release, we update all unpinned packages to their latest packaged versions. These changes are not detailed here.
v4.0.12025-02-07
🚀 Enhancements
<details>
<summary>Fix wrapper to be compatible with macOS' bash 3.2 @Nuru (#965)</summary>
## what
- Fix wrapper to be compatible with bash 3.2
why
- bash 3.2 was the last GPL licensed version and is what ships with macOS
references
- Fixes #964
</details>
<details>
<summary>Add extra caution to terminal color detection @Nuru (#963)</summary>
## what
- Add extra safeguards when querying terminal for color status
why
- Handle more unusual cases
- Reduce duplication of code
</details>
🏗️ Build/Release Maintenance
<details>
<summary>Better default forAPP_NAME @Nuru (#963)</summary>
## what
- Update demo gif
- Prefer NAMESPACE (if set) to basename $DOCKERIMAGE as default for APPNAME
why
- Better reflect common usage
</details>
Footnote
In every release, we update all unpinned packages to their latest packaged versions. These changes are not detailed here.