-
Notifications
You must be signed in to change notification settings - Fork 4.3k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Browse files
Browse the repository at this point in the history
* Styling for empty-state and splash-page * Update shamir-flow language and trigger onError on non-400 error * Add license terminated screen to unseal * Add changelog
- Loading branch information
Showing
8 changed files
with
86 additions
and
29 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,3 @@ | ||
```release-note:improvement | ||
ui: Add specific error message if unseal fails due to license | ||
``` |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -21,5 +21,5 @@ | |
} | ||
|
||
.splash-page-header { | ||
padding: $size-6 $size-5; | ||
padding: $size-6 0; | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,26 +1,60 @@ | ||
<SplashPage as |Page|> | ||
<Page.header> | ||
<h1 class="title is-3"> | ||
Unseal Vault | ||
</h1> | ||
</Page.header> | ||
<Page.content> | ||
<AlertBanner | ||
@type="warning" | ||
@title="{{capitalize model.name}} is {{if model.unsealed 'unsealed' 'sealed'}}" | ||
@message="You can unseal the vault by entering a portion of the master key. Once all portions are entered, the vault will be unsealed." | ||
@class="unseal-warning" | ||
data-test-cluster-status | ||
/> | ||
<ShamirFlow | ||
@action="unseal" | ||
@onUpdate={{action 'setUnsealState'}} | ||
@onShamirSuccess={{action 'transitionToCluster'}} | ||
@buttonText="Unseal" | ||
@thresholdPath="t" | ||
@isComplete={{action 'isUnsealed'}} | ||
@threshold={{model.sealThreshold}} | ||
@progress={{model.sealProgress}} | ||
/> | ||
</Page.content> | ||
</SplashPage> | ||
{{#if showLicenseError}} | ||
<NavHeader as |Nav|> | ||
<Nav.home> | ||
<HomeLink @class="navbar-item splash-page-logo has-text-white"> | ||
<LogoEdition /> | ||
</HomeLink> | ||
</Nav.home> | ||
<Nav.items> | ||
<div class="navbar-item status-indicator-button" data-status="{{if activeCluster.unsealed "good" "bad"}}"> | ||
<StatusMenu @label="Status" @onLinkClick={{action Nav.closeDrawer}} /> | ||
</div> | ||
</Nav.items> | ||
</NavHeader> | ||
<div class="section is-flex-v-centered-tablet is-flex-1 is-fullwidth"> | ||
<div class="columns is-centered is-gapless is-fullwidth"> | ||
<EmptyState | ||
class="empty-state-transparent" | ||
@title="License required" | ||
@subTitle="Vault license has terminated" | ||
@icon="disabled" | ||
@bottomBorder={{true}} | ||
@message="Your Vault license has terminated and Vault is sealed. To unseal, add a current license to your configuration and restart Vault." | ||
> | ||
<p class="align-right"><a href="https://learn.hashicorp.com/tutorials/nomad/hashicorp-enterprise-license" rel="noreferrer noopener">License documentation</a></p> | ||
</EmptyState> | ||
</div> | ||
</div> | ||
{{else}} | ||
<SplashPage as |Page|> | ||
<Page.header> | ||
<h1 class="title is-3"> | ||
Unseal Vault | ||
</h1> | ||
</Page.header> | ||
<Page.content> | ||
<div class="box is-borderless is-shadowless is-marginless"> | ||
<p class="title is-5">{{capitalize model.name}} is {{if model.unsealed 'unsealed' 'sealed'}}</p> | ||
<p> | ||
Unseal Vault by entering portions of the unseal key. This can be done via multiple mechanisms on multiple computers. Once all portions are entered, the root key will be decrypted and Vault will unseal. | ||
</p> | ||
</div> | ||
<ShamirFlow | ||
@action="unseal" | ||
@onUpdate={{action 'setUnsealState'}} | ||
@onLicenseError={{action 'handleLicenseError'}} | ||
@onShamirSuccess={{action 'transitionToCluster'}} | ||
@buttonText="Unseal" | ||
@thresholdPath="t" | ||
@isComplete={{action 'isUnsealed'}} | ||
@threshold={{model.sealThreshold}} | ||
@progress={{model.sealProgress}} | ||
/> | ||
</Page.content> | ||
<Page.footer> | ||
<div class="box is-borderless is-shadowless"> | ||
<p><a target="_blank" rel="noreferrer noopener" href="https://www.vaultproject.io/docs/concepts/seal">Seal/unseal documentation</a></p> | ||
</div> | ||
</Page.footer> | ||
</SplashPage> | ||
{{/if}} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters