Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Flush oudated roles/SSO instances from cache #493

Merged
merged 1 commit into from
Jul 28, 2023
Merged

Conversation

synfinatic
Copy link
Owner

Deleting or renaming an SSO instance in the config.yaml would result in those roles being left in the cache.json which would likely lead to conflicts when generating ~/.aws/config

We now prune any oudated SSO instances from the cache when they are removed from the config.yaml

Fixes: #479

@codecov
Copy link

codecov bot commented Jul 28, 2023

Codecov Report

Merging #493 (01d5f08) into main (2feee5c) will increase coverage by 0.08%.
The diff coverage is 92.86%.

Additional details and impacted files

Impacted file tree graph

@@            Coverage Diff             @@
##             main     #493      +/-   ##
==========================================
+ Coverage   77.71%   77.79%   +0.08%     
==========================================
  Files          23       23              
  Lines        2723     2737      +14     
==========================================
+ Hits         2116     2129      +13     
- Misses        538      539       +1     
  Partials       69       69              
Files Changed Coverage Δ
sso/cache.go 50.12% <92.86%> (+1.44%) ⬆️

Continue to review full report in Codecov by Sentry.

Legend - Click here to learn more
Δ = absolute <relative> (impact), ø = not affected, ? = missing data
Powered by Codecov. Last update 2feee5c...01d5f08. Read the comment docs.

@synfinatic synfinatic force-pushed the fix-auto-flush-cache branch from a22fb8b to 6702b6f Compare July 28, 2023 03:36
@synfinatic synfinatic force-pushed the fix-auto-flush-cache branch from 6702b6f to e6952bb Compare July 28, 2023 16:04
Deleting or renaming an SSO instance in the config.yaml
would result in those roles being left in the cache.json
which would likely lead to conflicts when generating
~/.aws/config

We now prune any oudated SSO instances from the cache
when they are removed from the config.yaml

Fixes: #479
@synfinatic synfinatic force-pushed the fix-auto-flush-cache branch from e6952bb to 01d5f08 Compare July 28, 2023 16:06
@synfinatic synfinatic merged commit 11f6527 into main Jul 28, 2023
@synfinatic synfinatic deleted the fix-auto-flush-cache branch July 28, 2023 16:27
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Improve cache control
1 participant