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

Don't store broken roles in the cache.json #963

Merged
merged 1 commit into from
Jul 10, 2024
Merged

Conversation

synfinatic
Copy link
Owner

If you had a role defined in config.yaml we would present the role in the list command, even if it didn't exist. Now we generate a warning and filter them out.

Fixes: #962

Copy link

codecov bot commented Jul 10, 2024

Codecov Report

Attention: Patch coverage is 26.66667% with 11 lines in your changes missing coverage. Please review.

Project coverage is 84.36%. Comparing base (e542e22) to head (4c770f4).

Additional details and impacted files

Impacted file tree graph

@@            Coverage Diff             @@
##             main     #963      +/-   ##
==========================================
+ Coverage   84.14%   84.36%   +0.22%     
==========================================
  Files          42       42              
  Lines        3058     3057       -1     
==========================================
+ Hits         2573     2579       +6     
+ Misses        392      384       -8     
- Partials       93       94       +1     
Flag Coverage Δ
unittests 84.36% <26.67%> (+0.22%) ⬆️

Flags with carried forward coverage won't be shown. Click here to find out more.

Files Coverage Δ
internal/config/config.go 100.00% <ø> (ø)
sso/cache.go 56.64% <26.67%> (+2.06%) ⬆️

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 e542e22...4c770f4. Read the comment docs.

If you had a role defined in config.yaml we would present
the role in the `list` command, even if it didn't exist.  Now
we generate a warning and filter them out.

Fixes: #962
@synfinatic synfinatic force-pushed the update-delete-roles branch from 7f33f94 to 4c770f4 Compare July 10, 2024 19:53
@synfinatic synfinatic merged commit 37ccd16 into main Jul 10, 2024
6 of 7 checks passed
@synfinatic synfinatic deleted the update-delete-roles branch July 10, 2024 20:06
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.

aws-sso cache does not remove roles I no longer have access to
1 participant