Merged
Conversation
dnlloyd
reviewed
Jul 7, 2025
dnlloyd
reviewed
Jul 7, 2025
…fic directory for clarity and organization
…us file paths, ensure session directories exist
…s for consistency
Contributor
Contributor
Author
dnlloyd
reviewed
Jul 8, 2025
…h handling, centralize dynamic path setup, enhance logging and validation
…ry oshiv references, and ensure alignment with updated scripts. Introduce `oci_tenancy_map` functionality and improvements in color-coded tenancy management display. Streamline script functions, replacing redundant `oshiv` calls with direct oshell equivalents.
…able formatting, improve variable handling consistency
… TSV output and refine colored environment variable instructions for clarity.
dnlloyd
requested changes
Jul 9, 2025
…date tenancy map path logic, clean up oci_tenancy_map messaging, and remove redundant session status write.
… logging fallback in `oshell.sh`.
…fresher.sh` and `oshell.sh`. Streamline session listing by refining status file retrieval and simplifying profile identification logic.
dnlloyd
reviewed
Jul 9, 2025
dnlloyd
reviewed
Jul 9, 2025
dnlloyd
reviewed
Jul 9, 2025
dnlloyd
approved these changes
Jul 9, 2025
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.



Summary
This PR significantly refactors and enhances oshell’s OCI session authentication and management scripts, with a major focus on reliability, usability, and cross-platform compatibility. The improvements affect
oci_auth_refresher.sh,oshell.sh, documentation, and usage examples.Key Changes
1. Robust Session Lifecycle Management
$HOME/.oci/sessions/<profile>/oci-auth-refresher_<profile>.loginstead of~/Library/Logs.oci_auth_refresher.sh) is now reliably launched, tracked, and terminated per profile.ociexit [profile]terminates both the refresher process and the OCI session for the specified or current profile, with clear user feedback.2. Improved Cross-Platform Compatibility
oci_auth_refresher.shto support both GNU (date -d) and BSD/macOS (date -j -f) date utilities for timestamp handling.3. Enhanced User Experience
oshell.shFunctions: Refactored functions for clarity, parameter handling, and edge-case robustness.4. Documentation Improvements
.zshrcand shell integration notes for clarity and correctness.5. CI Improvements
.sh/.zshfiles in CI.How to Test
ociauth <profile>and confirm background refresher launches and logs are created.ociset <profile>and verify session management.ociexitandociexit <profile>; confirm both refresher and session are terminated.$HOME/.oci/sessions/<profile>/oci-auth-refresher_<profile>.log.Related Issues
Checklist