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

[v16] WebDiscover: Improve RDS enrollment flow #45688

Merged
merged 3 commits into from
Aug 22, 2024
Merged

Conversation

kimlisa
Copy link
Contributor

@kimlisa kimlisa commented Aug 22, 2024

backport #44671 and #45179 to branch/v16

requires #45667

manual backport because of very painful storybook difference and design changes

there were so many conflicts that i'll go through the tests again 😢

Test plan:

  • self hosted rds flow single enrollment
  • self hosted rds flow auto enrollment (check proper event emit)
  • cloud rds flow single enrollment
  • cloud rds flow auto enrollment (check proper event emit)
  • ec2 ssm self-hosted flow (since the discovery config file got touched)

changelog: Improve web UI enroll RDS flow where VPC, subnets, and security groups are now selectable

@public-teleport-github-review-bot

@kimlisa - this PR will require admin approval to merge due to its size. Consider breaking it up into a series smaller changes.

@ravicious
Copy link
Member

Should we wait for you to finish testing before approving? What troubles you had with the backport? If it's mostly related to the design components changes, it might be a good idea to forward this feedback to Bartosz.

@kimlisa
Copy link
Contributor Author

kimlisa commented Aug 22, 2024

Should we wait for you to finish testing before approving? What troubles you had with the backport? If it's mostly related to the design components changes, it might be a good idea to forward this feedback to Bartosz.

nah, i just want to run some tests and compare my PR merged into master side by side to gain my confidence back. most conflicts were easily resolvable (though I'm not sure why it was caused in the first place), it was the story where i had to stop and re-use the old storybook methods

- user selects a vpc to see RDS's
- restrict deploying service to user selected vpc
- allow and require selecting subnets and security groups
- refactor EnrollRdsDatabase.tsx into SingleEnrollment and AutoEnrollment
- for self hosted, move configuring discovery config into own step
- fixes a query bug where not all db servers were returning because
  possible duplicates were not accounted for (fixed by removing limit,
  default limit is 1k which should be plenty)
* Don't default to auto discover
* Allow redpeploy when auto deploying and improve pending deploy hints
* Allow overwrite existing dbs and skip on heartbeat timeout during enrollment
* Remove allowing custom labels
* Emit rest of discovery config event
Previously intended to determine if user already auto enrolled,
but now that single and auto enrollment sets the same kind of
labels for db_service, there is no distinction and can let
user be blocked incorrectly.
@kimlisa kimlisa added this pull request to the merge queue Aug 22, 2024
Merged via the queue into branch/v16 with commit d048d08 Aug 22, 2024
37 of 38 checks passed
@kimlisa kimlisa deleted the lisa/v16/improve-rds branch August 22, 2024 23:26
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.

4 participants