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

PKI role create: fix issue with setting default key_bits on init and when key_type changes #17613

Merged
merged 7 commits into from
Oct 19, 2022

Conversation

Monkeychip
Copy link
Contributor

@Monkeychip Monkeychip commented Oct 19, 2022

There was an issue where the keyBit value was not being set on init nor was it being set when keyType changed, even though the dropdown options were changing.

I pulled all the conditional options work out of the model, and moved it all into a component. This should help clarify what's going on, and move semi-complication logic work out of the model. Also, it will help organize testing.

keyparams.mov

In the API you can see the default key_bits set for each key_type.

image

And the default key_type is rsa. You can test this in the current PKI. Even though we don't send this default value in the old PKI, the read view shows rsa and 2048.
image

@@ -10,10 +10,10 @@
/>
<Toolbar>
Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

These changes fix something that seemed to have broken after the ember upgrade.

Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Yes I had to refactor the ToolbarLink since passing positional params into LinkTo is no longer supported

Copy link
Contributor

@zofskeez zofskeez left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM! I think it was a good move to bring this into a component. Thanks

@Monkeychip Monkeychip merged commit c5b7047 into main Oct 19, 2022
@Monkeychip Monkeychip deleted the ui/VAULT-9428/key-bits-new-component branch October 19, 2022 21:28
jayant07-yb pushed a commit to jayant07-yb/hashicorp-vault-integrations that referenced this pull request Mar 15, 2023
…when key_type changes (hashicorp#17613)

* working

* fix issue with signature bits

* fix ember upgrade change

* clean up

* fix signature bits to number

* default value in model

* fix language
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.

None yet

2 participants