Skip to content

Commit

Permalink
backport of commit 4aca4e8 (#20071)
Browse files Browse the repository at this point in the history
Co-authored-by: claire bontempo <68122737+hellobontempo@users.noreply.github.com>
  • Loading branch information
1 parent e910f37 commit 9bfc9f3
Show file tree
Hide file tree
Showing 15 changed files with 22 additions and 19 deletions.
3 changes: 3 additions & 0 deletions changelog/20070.txt
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
```release-note:bug
ui: fixes remaining doc links to include /vault in path
```
6 changes: 3 additions & 3 deletions ui/app/templates/components/keymgmt/distribute.hbs
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@
<AlertInline @paddingTop={{true}} @sizeSmall={{true}} @type="danger" data-test-keymgmt-error="key">
{{this.validMatchError.key}}
To check compatibility,
<DocLink class="doc-link-subtle" @path="/docs/secrets/key-management#compatibility">refer to this table</DocLink>.
<DocLink class="doc-link-subtle" @path="/vault/docs/secrets/key-management#compatibility">refer to this table</DocLink>.
</AlertInline>
{{/if}}
</SearchSelect>
Expand Down Expand Up @@ -54,7 +54,7 @@
<AlertInline @paddingTop={{true}} @sizeSmall={{true}} @type="danger" data-test-keymgmt-error="new-key">
{{this.validMatchError.key}}
To check compatibility,
<DocLink class="doc-link-subtle" @path="/docs/secrets/key-management#compatibility">refer to this table</DocLink>.
<DocLink class="doc-link-subtle" @path="/vault/docs/secrets/key-management#compatibility">refer to this table</DocLink>.
</AlertInline>
{{/if}}
</div>
Expand All @@ -81,7 +81,7 @@
<AlertInline @paddingTop={{true}} @sizeSmall={{true}} @type="danger" data-test-keymgmt-error="provider">
{{this.validMatchError.provider}}
To check compatibility,
<DocLink class="doc-link-subtle" @path="/docs/secrets/key-management#compatibility">refer to this table</DocLink>.
<DocLink class="doc-link-subtle" @path="/vault/docs/secrets/key-management#compatibility">refer to this table</DocLink>.
</AlertInline>
{{/if}}
</SearchSelect>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,7 @@
An enforcement will define which auth types, auth mounts, groups, and/or entities will require this MFA method. Keep in
mind that only one of these conditions needs to be satisfied. For example, if an authentication method is added here,
all entities and groups which make use of that authentication method will be subject to an MFA request.
<DocLink @path="/docs/auth/login-mfa">Learn more here.</DocLink>
<DocLink @path="/vault/docs/auth/login-mfa">Learn more here.</DocLink>
{{/if}}
</p>
{{#if @isInline}}
Expand Down
2 changes: 1 addition & 1 deletion ui/app/templates/components/oidc/scope-form.hbs
Original file line number Diff line number Diff line change
Expand Up @@ -100,7 +100,7 @@
{{/if}}
<p class="has-top-margin-m">
The full list of template parameters can be found
<DocLink @path="/docs/concepts/oidc-provider#scopes">
<DocLink @path="/vault/docs/concepts/oidc-provider#scopes">
here.
</DocLink>
</p>
Expand Down
2 changes: 1 addition & 1 deletion ui/app/templates/components/pki/config-pki-ca.hbs
Original file line number Diff line number Diff line change
Expand Up @@ -252,7 +252,7 @@
<T.Content @defaultClass="tool-tip smaller-font">
<div class="box" data-test-hover-copy-tooltip-text>
Deleting a CA is only available via the CLI and API.
<DocLink @path="/api-docs/secret/pki#delete-issuer" class="doc-link-subtle">
<DocLink @path="/vault/api-docs/secret/pki#delete-issuer" class="doc-link-subtle">
Learn more
</DocLink>
</div>
Expand Down
4 changes: 2 additions & 2 deletions ui/app/templates/components/secret-form-show.hbs
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
@title="Version {{@modelForData.version}} of this secret has been permanently destroyed"
@message="A version that has been permanently deleted cannot be restored. You can see other versions of this secret in the History menu."
>
<DocLink @path="/docs/secrets/kv/kv-v2.html">
<DocLink @path="/vault/docs/secrets/kv/kv-v2">
Learn more
</DocLink>
</EmptyState>
Expand All @@ -13,7 +13,7 @@
@message="A version that has been deleted but can be undeleted using the Version {{@modelForData.version}} menu above.
You can also see other versions of this secret in the History menu."
>
<DocLink @path="/docs/secrets/kv/kv-v2.html">
<DocLink @path="/vault/docs/secrets/kv/kv-v2">
Learn more
</DocLink>
</EmptyState>
Expand Down
2 changes: 1 addition & 1 deletion ui/app/templates/vault.hbs
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@
</span>
{{/if}}
<span>
<DocLink @path="/docs/index.html" class="has-text-grey">
<DocLink @path="/vault" class="has-text-grey">
Documentation
</DocLink>
</span>
Expand Down
2 changes: 1 addition & 1 deletion ui/app/templates/vault/cluster/access/method/section.hbs
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@
{{#if (not (includes this.model.type (supported-managed-auth-backends)))}}
<div class="has-text-grey has-top-bottom-margin" data-test-doc-link>
The Vault UI only supports configuration for this authentication method. For management, the
<DocLink @path="/api/auth">API or CLI</DocLink>
<DocLink @path="/vault/api-docs">API or CLI</DocLink>
should be used.
</div>
{{/if}}
Expand Down
6 changes: 3 additions & 3 deletions ui/app/templates/vault/cluster/access/mfa/methods/create.hbs
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,7 @@
<h3 class="is-size-4 has-text-semibold">Settings</h3>
<p class="has-border-top-light has-top-padding-l">
{{this.description}}
<DocLink @path={{concat "/api-docs/secret/identity/mfa/" this.type}}>Learn more.</DocLink>
<DocLink @path={{concat "/vault/api-docs/secret/identity/mfa/" this.type}}>Learn more.</DocLink>
</p>
<Mfa::MethodForm @model={{this.method}} @validations={{this.methodErrors}} class="is-box-shadowless" />
<Mfa::MfaLoginEnforcementHeader
Expand All @@ -49,7 +49,7 @@
<p>
Multi-factor authentication (MFA) allows you to set up another layer of security on top of existing authentication
methods. Vault has four available methods.
<DocLink @path="/api-docs/secret/identity/mfa">Learn more.</DocLink>
<DocLink @path="/vault/api-docs/secret/identity/mfa">Learn more.</DocLink>
</p>
<div class="is-flex-row has-top-margin-xl">
{{#each this.methodNames as |methodName|}}
Expand Down Expand Up @@ -77,7 +77,7 @@
{{#if this.type}}
<p class="has-top-margin-l">
{{this.description}}
<DocLink @path={{concat "/api-docs/secret/identity/mfa/" this.type}}>Learn more.</DocLink>
<DocLink @path={{concat "/vault/api-docs/secret/identity/mfa/" this.type}}>Learn more.</DocLink>
</p>
{{! in a future release cards may be displayed to choose from either template or custom config for TOTP }}
{{! if template is selected a user could choose a predefined config for common authenticators and the values would be populated on the model }}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@
{{#if (eq model.name "allow_all")}}
<div class="is-size-8">
This is a built-in assignment that cannot be modified or deleted.
<DocLink @path="/docs/concepts/oidc-provider#assignments">
<DocLink @path="/vault/docs/concepts/oidc-provider#assignments">
Learn more
</DocLink>
</div>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -59,7 +59,7 @@
<EmptyState @title="No scopes yet" data-test-oidc-scope-empty-state>
<div>
<p>Use scope to define identity information about the authenticated user.
<DocLink @path="/docs/concepts/oidc-provider#scopes">
<DocLink @path="/vault/docs/concepts/oidc-provider#scopes">
Learn more.
</DocLink>
</p>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -15,6 +15,6 @@
<LinkTo @route="vault.cluster.secrets.backend.metadata" @model={{this.model.id}} class="link">
View Metadata
</LinkTo>
<DocLink @path="/api/secret/kv/kv-v2#create-update-metadata">More here</DocLink>
<DocLink @path="/vault/api-docs/secret/kv/kv-v2#create-update-metadata">More here</DocLink>
</EmptyState>
{{/if}}
2 changes: 1 addition & 1 deletion ui/lib/core/addon/components/doc-link.js
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ import ExternalLink from './external-link';
*
* @example
* ```js
<DocLink @path="/docs/secrets/kv/kv-v2.html">Learn about KV v2</DocLink>
<DocLink @path="/vault/docs/secrets/kv/kv-v2.html">Learn about KV v2</DocLink>
* ```
*
* @param {string} path="/" - The path to documentation on developer.hashicorp.com that the component should link to.
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,7 @@
<code>X-Vault-Namespace: {{R.namespace.path}}</code>. You can also use
<code>{{R.namespace.path}}</code>
as an API prefix. See
<DocLink @path="/api-docs#namespaces">docs</DocLink>
<DocLink @path="/vault/api-docs#namespaces">docs</DocLink>
for examples.
</NamespaceReminder>
<div id="{{this.elementId}}-swagger" class="swagger-ember"></div>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -71,7 +71,7 @@
Add secondary
</LinkTo>
{{/if}}
<DocLink @path="/docs/internals/replication.html">
<DocLink @path="/vault/docs/internals/replication">
Learn more
</DocLink>
</EmptyState>
Expand Down

0 comments on commit 9bfc9f3

Please sign in to comment.