-
Notifications
You must be signed in to change notification settings - Fork 4.2k
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
UI: add allow_empty_principals
to ssh engine (fixes failing test)
#28484
Conversation
@@ -3,84 +3,73 @@ | |||
SPDX-License-Identifier: BUSL-1.1 | |||
~}} | |||
|
|||
<form {{on "submit" (perform this.save)}} aria-label="save ssh creds" data-test-configure-form> | |||
<div class="box is-fullwidth is-shadowless is-marginless"> |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
<p class="has-text-grey-dark"> | ||
NOTE: You must delete your existing certificate and key before saving new values. | ||
</p> |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
moved this down, inside the {{else}}
block
{{else}} | ||
{{! Model is not new and keys have already been created. Require user deletes the keys before creating new ones }} | ||
<div class="box is-fullwidth is-sideless is-marginless" data-test-edit-config-section> |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@@ -76,48 +76,41 @@ | |||
<MessageError @model={{this.model}} /> | |||
<NamespaceReminder @mode="sign" @noun="SSH key" /> | |||
{{#if this.model.attrs}} | |||
{{#each (take 1 this.model.attrs) as |attr|}} |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Build Results: |
@@ -40,6 +40,7 @@ const CA_FIELDS = [ | |||
'defaultExtensions', | |||
'allowBareDomains', | |||
'allowSubdomains', | |||
'allowEmptyPrincipals', |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
allow_empty_principals
to ssh engine (fix tests)allow_empty_principals
to ssh engine (fixes failing test)
CI Results: |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Nice!
Description
#28466 Added
allow_empty_principals
to the ssh engine. Though it's recommended to keep this valuefalse
we've added for parity with the backend. Also, an acceptance test was failing because avalid_principals
was not provided and is now required.TODO only if you're a HashiCorp employee
to N, N-1, and N-2, using the
backport/ent/x.x.x+ent
labels. If this PR is in the CE repo, you should only backport to N, using thebackport/x.x.x
label, not the enterprise labels.of a public function, even if that change is in a CE file, double check that
applying the patch for this PR to the ENT repo and running tests doesn't
break any tests. Sometimes ENT only tests rely on public functions in CE
files.
in the PR description, commit message, or branch name.
description. Also, make sure the changelog is in this PR, not in your ENT PR.