feat: Add automatic credential renewal with intelligent scheduling#181
Open
inderpartap wants to merge 3 commits intodowjones:mainfrom
Open
feat: Add automatic credential renewal with intelligent scheduling#181inderpartap wants to merge 3 commits intodowjones:mainfrom
inderpartap wants to merge 3 commits intodowjones:mainfrom
Conversation
Implements automatic renewal of AWS credentials before expiration, eliminating manual re-authentication throughout the workday. Key features: - Background daemon monitors specified profiles and auto-renews before expiration - Intelligent scheduling: sleeps until renewal needed (no constant polling) - Batch renewal: multiple profiles renewed with single Okta authentication - Config responsiveness: max_sleep_minutes ensures config changes picked up promptly - macOS launchd integration: service survives system sleep/wake - Device token support: passwordless renewal after initial authentication - Expiration tracking: stores credential expiration in ~/.aws/credentials New CLI commands: - tokendito --auto-renew-enable --auto-renew-profiles <names> - tokendito --auto-renew-disable - tokendito --auto-renew-status - tokendito-renew-daemon (standalone daemon command) Configuration stored in tokendito.ini: [auto-renewal] enabled = true profiles = profile1, profile2 renewal_threshold_minutes = 30 check_interval_minutes = 10 max_sleep_minutes = 60 Platform support: - macOS: Full support with automatic launchd service - Linux/Windows: Manual daemon execution (systemd/Task Scheduler recommended)
inderpartap
commented
Mar 20, 2026
Author
There was a problem hiding this comment.
To be removed.
Consider this as an in-depth explanation of the feature set while the PR is in-review. We'll clean up the docs when it's ready to be merged
70bb69c to
cf0ec3a
Compare
25ab2c4 to
8058069
Compare
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
Implements automatic renewal of AWS credentials before expiration, eliminating manual re-authentication throughout the workday.
Key Features
--multi-profilesNew CLI Commands
Configuration
Settings stored in
tokendito.ini:Technical Details
Intelligent Scheduling
Batch Renewal Efficiency
tokendito --multi-profiles profile1 --multi-profiles profile2 ...Platform Support
Test Coverage
Documentation
docs/AUTO_RENEWAL.md: Complete user guideTest Plan
Breaking Changes
None. This is a new feature with no impact on existing functionality.
Related Issues
Implements credential auto-renewal functionality requested for continuous development workflows.
🤖 Generated with Claude Code