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

feat: add support for role based auth flag #2519

Merged
merged 8 commits into from
Oct 10, 2022

Conversation

koladilip
Copy link
Contributor

@koladilip koladilip commented Oct 3, 2022

Description

Currently we are not able to delete already stored secrets from Config BE DB so we are adding for support roleBasedAuth flag so that users can easily switch between AWS Access Keys and Roles. This enables to revert back to Access keys if users are getting any troubles after migrating to the AWS roles.

Notion Ticket

https://www.notion.so/AWS-FTR-Support-RoleBasedAuth-Flag-5cfd191922ae4f6eb4a8fc75dca40ac3

Security

  • The code changed/added as part of this pull request won't create any security issues with how the software is being used.

Currently we are not able to delete already stored secrets from
Config BE DB so we are adding support role based auth flag so
that users can easily switch between AWS Access Keys and Roles.
@koladilip koladilip force-pushed the feat.add-support-for-role-based-auth-flag branch from 34411ab to 91f425d Compare October 3, 2022 15:39
@codecov
Copy link

codecov bot commented Oct 4, 2022

Codecov Report

Base: 45.36% // Head: 45.35% // Decreases project coverage by -0.00% ⚠️

Coverage data is based on head (8aacef3) compared to base (ded763c).
Patch coverage: 62.50% of modified lines in pull request are covered.

Additional details and impacted files
@@            Coverage Diff             @@
##           master    #2519      +/-   ##
==========================================
- Coverage   45.36%   45.35%   -0.01%     
==========================================
  Files         175      175              
  Lines       36377    36387      +10     
==========================================
+ Hits        16502    16503       +1     
- Misses      18799    18808       +9     
  Partials     1076     1076              
Impacted Files Coverage Δ
warehouse/slave.go 1.25% <0.00%> (ø)
warehouse/upload.go 17.29% <0.00%> (-0.02%) ⬇️
utils/awsutils/session.go 96.66% <100.00%> (+4.07%) ⬆️
enterprise/reporting/setup.go 38.09% <0.00%> (-14.29%) ⬇️
services/stats/stats.go 88.48% <0.00%> (-1.82%) ⬇️
enterprise/reporting/reporting.go 8.33% <0.00%> (-1.44%) ⬇️

Help us with your feedback. Take ten seconds to tell us how you rate us. Have a feature suggestion? Share it here.

☔ View full report at Codecov.
📢 Do you have feedback about the report comment? Let us know in this issue.

@koladilip
Copy link
Contributor Author

Tested on dev cluster and changes are working as expected.

@koladilip koladilip merged commit 810bb5d into master Oct 10, 2022
@koladilip koladilip deleted the feat.add-support-for-role-based-auth-flag branch October 10, 2022 05:50
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants