velum
velum copied to clipboard
Introduce admission webhook settings page
Allow user to enable AdmissionWebhook by using a new dedicated page.
To work this requires the following PR merged into the salt repo: https://github.com/kubic-project/salt/pull/555
The new UI has to be improved by @vitoravelino, right now it looks something like that:
The workflow is the following one:
- go this new page
- upload key and certificate
- enable the feature
- deploy the cluster
Notable things missing:
- [X] Validate input (required)
- [X] Fix UI
- [X] Add tests
- [x] Fix coverage
Current state with last commit:
@flavio This is good to be reviewed.
It looks to me, I like the workflow. However there's a bug:
- upload key and cert
- save
- disable the feature
- save -> accept the warning message from the popup window
- reload the page
- enable the feature -> the old key and cert are still shown
Basically we don't actually delete them from the database.
Also another bug: it's possible to upload empty files. The validation in place doesn't look for that
Fixed both cases, @flavio. Thanks!
I cannot be the one approving the PR because I'm the one who created it. But it LGTM
I guess we can proceed with the merge, right? I'll give my approval on behalf of @flavio since he created the PR and can't do that.
I updated the code with with the x509 validation and added pem/der key format validation. Suggestion for wording are welcome. I also made a minor refactoring to make things more readable.
Please review it again. Thanks!
@flavio, could you play with this again?
Just a short update to fix the merge conflicts. I still intend to setup an admission webhook and actually try out the code.
Just a short update to fix the merge conflicts. I still intend to setup an admission webhook and actually try out the code.
I don't see any conflicts. Is something going to change?
Sorry - I just meant I repushed the changes after a rebase due to conflicts in app/controllers/internal_api/v1/pillars_controller.rb
- the dex
connector apparently added some more pillars.
I've rebased this and should be good to be reviewed again.
LGTM with one small change (use fixture_file_upload
).
However given that the salt PR is on hold
I don't think we can merge this right now.
This GitHub PR is unactive since 30. Is this GitHub PR still needed? Please close or update it accordingly. This reminder is autogenerated by https://github.com/MalloZup/blacktango