mirror of
				https://github.com/optim-enterprises-bv/vault.git
				synced 2025-10-30 18:17:55 +00:00 
			
		
		
		
	Relplat 897 copywrite fixes for mutliple licenses (#23722)
This commit is contained in:
		| @@ -12,10 +12,5 @@ project { | ||||
|     "ui/node_modules/**", | ||||
|     "enos/modules/k8s_deploy_vault/raft-config.hcl", | ||||
|     "plugins/database/postgresql/scram/**", | ||||
|     # licensed under MPL - ignoring for now until the copywrite tool can support | ||||
|     # multiple licenses per repo. | ||||
|     "sdk/**", | ||||
|     "api/**", | ||||
|     "shamir/**'" | ||||
|   ] | ||||
| } | ||||
|   | ||||
							
								
								
									
										3
									
								
								.github/.secret_scanning.yml
									
									
									
									
										vendored
									
									
								
							
							
						
						
									
										3
									
								
								.github/.secret_scanning.yml
									
									
									
									
										vendored
									
									
								
							| @@ -1,3 +1,6 @@ | ||||
| # Copyright (c) HashiCorp, Inc. | ||||
| # SPDX-License-Identifier: BUSL-1.1 | ||||
|  | ||||
| paths-ignore: | ||||
|   - '**/*.mdx'      # any file ending in .mdx | ||||
|   - '**/*.md'       # any file ending in .md | ||||
|   | ||||
							
								
								
									
										19
									
								
								.github/workflows/copywrite.yml
									
									
									
									
										vendored
									
									
										Normal file
									
								
							
							
						
						
									
										19
									
								
								.github/workflows/copywrite.yml
									
									
									
									
										vendored
									
									
										Normal file
									
								
							| @@ -0,0 +1,19 @@ | ||||
| name: Check Copywrite Headers | ||||
|  | ||||
| on: | ||||
|   push: {} | ||||
|  | ||||
| jobs: | ||||
|   copywrite: | ||||
|     runs-on: ubuntu-latest | ||||
|     steps: | ||||
|       - uses: actions/checkout@8ade135a41bc03ea155e62e844d188df1ea18608 # v4.1.0 | ||||
|       - uses: hashicorp/setup-copywrite@867a1a2a064a0626db322392806428f7dc59cb3e # v1.1.2 | ||||
|         name: Setup Copywrite | ||||
|         with: | ||||
|           version: v0.16.4 | ||||
|           archive-checksum: c299f830e6eef7e126a3c6ef99ac6f43a3c132d830c769e0d36fa347fa1af254 | ||||
|       - name: Check Header Compliance | ||||
|         run: make ci-copywriteheaders | ||||
| permissions: | ||||
|   contents: read | ||||
							
								
								
									
										9
									
								
								Makefile
									
									
									
									
									
								
							
							
						
						
									
										9
									
								
								Makefile
									
									
									
									
									
								
							| @@ -317,3 +317,12 @@ ci-get-version-package: | ||||
| .PHONY: ci-prepare-legal | ||||
| ci-prepare-legal: | ||||
| 	@$(CURDIR)/scripts/ci-helper.sh prepare-legal | ||||
|  | ||||
| .PHONY: ci-copywriteheaders | ||||
| ci-copywriteheaders: | ||||
| 	copywrite headers --plan | ||||
| 	# Special case for MPL headers in /api, /sdk, and /shamir | ||||
| 	cd api && $(CURDIR)/scripts/copywrite-exceptions.sh | ||||
| 	cd sdk && $(CURDIR)/scripts/copywrite-exceptions.sh | ||||
| 	cd shamir && $(CURDIR)/scripts/copywrite-exceptions.sh | ||||
|  | ||||
|   | ||||
							
								
								
									
										8
									
								
								api/.copywrite.hcl
									
									
									
									
									
										Normal file
									
								
							
							
						
						
									
										8
									
								
								api/.copywrite.hcl
									
									
									
									
									
										Normal file
									
								
							| @@ -0,0 +1,8 @@ | ||||
| schema_version = 1 | ||||
|  | ||||
| project { | ||||
|   license        = "MPL-2.0" | ||||
|   copyright_year = 2023 | ||||
|  | ||||
|   header_ignore = [] | ||||
| } | ||||
| @@ -1,3 +1,6 @@ | ||||
| // Copyright (c) HashiCorp, Inc. | ||||
| // SPDX-License-Identifier: MPL-2.0 | ||||
|  | ||||
| package api | ||||
|  | ||||
| import ( | ||||
|   | ||||
| @@ -1,3 +1,6 @@ | ||||
| // Copyright (c) HashiCorp, Inc. | ||||
| // SPDX-License-Identifier: BUSL-1.1 | ||||
|  | ||||
| package audit | ||||
|  | ||||
| import ( | ||||
|   | ||||
| @@ -1,3 +1,6 @@ | ||||
| // Copyright (c) HashiCorp, Inc. | ||||
| // SPDX-License-Identifier: BUSL-1.1 | ||||
|  | ||||
| package schedule | ||||
|  | ||||
| import ( | ||||
|   | ||||
| @@ -1,3 +1,6 @@ | ||||
| // Copyright (c) HashiCorp, Inc. | ||||
| // SPDX-License-Identifier: BUSL-1.1 | ||||
|  | ||||
| //go:build !enterprise | ||||
|  | ||||
| package command | ||||
|   | ||||
| @@ -1,3 +1,6 @@ | ||||
| // Copyright (c) HashiCorp, Inc. | ||||
| // SPDX-License-Identifier: BUSL-1.1 | ||||
|  | ||||
| //go:build !enterprise | ||||
|  | ||||
| package server | ||||
|   | ||||
| @@ -1,3 +1,6 @@ | ||||
| // Copyright (c) HashiCorp, Inc. | ||||
| // SPDX-License-Identifier: BUSL-1.1 | ||||
|  | ||||
| //go:build !enterprise | ||||
|  | ||||
| package server | ||||
|   | ||||
| @@ -1,3 +1,6 @@ | ||||
| // Copyright (c) HashiCorp, Inc. | ||||
| // SPDX-License-Identifier: BUSL-1.1 | ||||
|  | ||||
| package server | ||||
|  | ||||
| import ( | ||||
|   | ||||
| @@ -1,3 +1,6 @@ | ||||
| // Copyright (c) HashiCorp, Inc. | ||||
| // SPDX-License-Identifier: BUSL-1.1 | ||||
|  | ||||
| //go:build !enterprise | ||||
|  | ||||
| package builtinplugins | ||||
|   | ||||
| @@ -1,3 +1,6 @@ | ||||
| // Copyright (c) HashiCorp, Inc. | ||||
| // SPDX-License-Identifier: BUSL-1.1 | ||||
|  | ||||
| //go:build !enterprise | ||||
|  | ||||
| package http | ||||
|   | ||||
| @@ -1,3 +1,6 @@ | ||||
| // Copyright (c) HashiCorp, Inc. | ||||
| // SPDX-License-Identifier: BUSL-1.1 | ||||
|  | ||||
| //go:build !enterprise | ||||
|  | ||||
| package http | ||||
|   | ||||
							
								
								
									
										14
									
								
								scripts/copywrite-exceptions.sh
									
									
									
									
									
										Executable file
									
								
							
							
						
						
									
										14
									
								
								scripts/copywrite-exceptions.sh
									
									
									
									
									
										Executable file
									
								
							| @@ -0,0 +1,14 @@ | ||||
| #!/bin/sh | ||||
|  | ||||
| # Used as a stopgap for copywrite bot in MPL-licensed subdirs, detects BUSL licensed | ||||
| # headers and deletes them, then runs the copywrite bot to utilize local subdir config | ||||
| # to inject correct headers. | ||||
|  | ||||
| find . -type f -name '*.go' | while read line; do | ||||
|   if grep "SPDX-License-Identifier: BUSL-1.1" $line; then | ||||
|     sed -i '' '/SPDX-License-Identifier: BUSL-1.1/d' $line | ||||
|     sed -i '' '/Copyright (c) HashiCorp, Inc./d' $line | ||||
|   fi | ||||
| done | ||||
|  | ||||
| copywrite headers --plan | ||||
							
								
								
									
										8
									
								
								sdk/.copywrite.hcl
									
									
									
									
									
										Normal file
									
								
							
							
						
						
									
										8
									
								
								sdk/.copywrite.hcl
									
									
									
									
									
										Normal file
									
								
							| @@ -0,0 +1,8 @@ | ||||
| schema_version = 1 | ||||
|  | ||||
| project { | ||||
|   license        = "MPL-2.0" | ||||
|   copyright_year = 2023 | ||||
|  | ||||
|   header_ignore = [] | ||||
| } | ||||
| @@ -1,3 +1,6 @@ | ||||
| // Copyright (c) HashiCorp, Inc. | ||||
| // SPDX-License-Identifier: MPL-2.0 | ||||
|  | ||||
| package testcluster | ||||
|  | ||||
| const ( | ||||
|   | ||||
| @@ -1,3 +1,6 @@ | ||||
| // Copyright (c) HashiCorp, Inc. | ||||
| // SPDX-License-Identifier: MPL-2.0 | ||||
|  | ||||
| package testcluster | ||||
|  | ||||
| import ( | ||||
|   | ||||
| @@ -1,3 +1,6 @@ | ||||
| // Copyright (c) HashiCorp, Inc. | ||||
| // SPDX-License-Identifier: MPL-2.0 | ||||
|  | ||||
| package testhelpers | ||||
|  | ||||
| import ( | ||||
|   | ||||
| @@ -1,3 +1,6 @@ | ||||
| // Copyright (c) HashiCorp, Inc. | ||||
| // SPDX-License-Identifier: MPL-2.0 | ||||
|  | ||||
| package testhelpers | ||||
|  | ||||
| import ( | ||||
|   | ||||
| @@ -1,3 +1,6 @@ | ||||
| // Copyright (c) HashiCorp, Inc. | ||||
| // SPDX-License-Identifier: MPL-2.0 | ||||
|  | ||||
| package logical | ||||
|  | ||||
| import ( | ||||
|   | ||||
							
								
								
									
										8
									
								
								shamir/.copywrite.hcl
									
									
									
									
									
										Normal file
									
								
							
							
						
						
									
										8
									
								
								shamir/.copywrite.hcl
									
									
									
									
									
										Normal file
									
								
							| @@ -0,0 +1,8 @@ | ||||
| schema_version = 1 | ||||
|  | ||||
| project { | ||||
|   license        = "MPL-2.0" | ||||
|   copyright_year = 2023 | ||||
|  | ||||
|   header_ignore = [] | ||||
| } | ||||
| @@ -1,3 +1,8 @@ | ||||
| /** | ||||
|  * Copyright (c) HashiCorp, Inc. | ||||
|  * SPDX-License-Identifier: BUSL-1.1 | ||||
|  */ | ||||
|  | ||||
| import Model, { attr } from '@ember-data/model'; | ||||
| import lazyCapabilities, { apiPath } from 'vault/macros/lazy-capabilities'; | ||||
| import { withFormFields } from 'vault/decorators/model-form-fields'; | ||||
|   | ||||
| @@ -1,3 +1,8 @@ | ||||
| /** | ||||
|  * Copyright (c) HashiCorp, Inc. | ||||
|  * SPDX-License-Identifier: BUSL-1.1 | ||||
|  */ | ||||
|  | ||||
| .secrets-engines-card { | ||||
|   min-height: 480px; | ||||
| } | ||||
|   | ||||
| @@ -1,3 +1,8 @@ | ||||
| {{! | ||||
|   Copyright (c) HashiCorp, Inc. | ||||
|   SPDX-License-Identifier: BUSL-1.1 | ||||
| ~}} | ||||
|  | ||||
| {{#if (eq @config.enabled "On")}} | ||||
|   <EmptyState | ||||
|     @title="No data received {{if @dateRangeMessage @dateRangeMessage}}" | ||||
|   | ||||
| @@ -1,3 +1,8 @@ | ||||
| {{! | ||||
|   Copyright (c) HashiCorp, Inc. | ||||
|   SPDX-License-Identifier: BUSL-1.1 | ||||
| ~}} | ||||
|  | ||||
| <Hds::Card::Container @hasBorder={{true}} class="has-padding-l" data-test-card="client-count"> | ||||
|   <div class="is-flex-between"> | ||||
|     <h3 class="title is-4 has-bottom-margin-xxs" data-test-client-count-title> | ||||
|   | ||||
| @@ -1,3 +1,8 @@ | ||||
| {{! | ||||
|   Copyright (c) HashiCorp, Inc. | ||||
|   SPDX-License-Identifier: BUSL-1.1 | ||||
| ~}} | ||||
|  | ||||
| <Hds::Card::Container @hasBorder={{true}} class="has-padding-l" data-test-card="learn-more"> | ||||
|   <h3 class="title is-4 has-bottom-margin-xxs" data-test-learn-more-title>Learn more</h3> | ||||
|   <div class="sub-text" data-test-learn-more-subtext> | ||||
|   | ||||
| @@ -1,3 +1,8 @@ | ||||
| {{! | ||||
|   Copyright (c) HashiCorp, Inc. | ||||
|   SPDX-License-Identifier: BUSL-1.1 | ||||
| ~}} | ||||
|  | ||||
| <Dashboard::VaultVersionTitle @version={{@version}} /> | ||||
|  | ||||
| <div class="has-bottom-margin-xl"> | ||||
|   | ||||
| @@ -1,3 +1,8 @@ | ||||
| {{! | ||||
|   Copyright (c) HashiCorp, Inc. | ||||
|   SPDX-License-Identifier: BUSL-1.1 | ||||
| ~}} | ||||
|  | ||||
| <Hds::Card::Container @hasBorder={{true}} class="has-padding-l" data-test-card="quick-actions"> | ||||
|   <h3 class="title is-4">Quick actions</h3> | ||||
|   {{#if this.filteredSecretEngines}} | ||||
|   | ||||
| @@ -1,3 +1,8 @@ | ||||
| {{! | ||||
|   Copyright (c) HashiCorp, Inc. | ||||
|   SPDX-License-Identifier: BUSL-1.1 | ||||
| ~}} | ||||
|  | ||||
| <Hds::Card::Container | ||||
|   @hasBorder={{true}} | ||||
|   class="has-padding-l {{if this.filteredSecretsEngines 'secrets-engines-card'}}" | ||||
|   | ||||
| @@ -1,3 +1,8 @@ | ||||
| {{! | ||||
|   Copyright (c) HashiCorp, Inc. | ||||
|   SPDX-License-Identifier: BUSL-1.1 | ||||
| ~}} | ||||
|  | ||||
| <div class="has-top-padding-xs has-bottom-padding-xs has-top-margin-m" data-test-feedback-form> | ||||
|   <small> | ||||
|     Don't see what you're looking for on this page? Let us know via our | ||||
|   | ||||
| @@ -1,3 +1,8 @@ | ||||
| {{! | ||||
|   Copyright (c) HashiCorp, Inc. | ||||
|   SPDX-License-Identifier: BUSL-1.1 | ||||
| ~}} | ||||
|  | ||||
| <Hds::Card::Container @hasBorder={{true}} class="has-padding-l" data-test-card="configuration-details"> | ||||
|   <h3 class="title is-4" data-test-dashboard-card-header="configuration">Configuration details</h3> | ||||
|  | ||||
|   | ||||
| @@ -1,3 +1,8 @@ | ||||
| {{! | ||||
|   Copyright (c) HashiCorp, Inc. | ||||
|   SPDX-License-Identifier: BUSL-1.1 | ||||
| ~}} | ||||
|  | ||||
| <PageHeader as |p|> | ||||
|   <p.levelLeft> | ||||
|     <h1 class="title is-3" data-test-dashboard-card-header="Vault version"> | ||||
|   | ||||
| @@ -1,3 +1,8 @@ | ||||
| {{! | ||||
|   Copyright (c) HashiCorp, Inc. | ||||
|   SPDX-License-Identifier: BUSL-1.1 | ||||
| ~}} | ||||
|  | ||||
| <Dashboard::Overview | ||||
|   @replication={{@model.replication}} | ||||
|   @secretsEngines={{@model.secretsEngines}} | ||||
|   | ||||
| @@ -1,3 +1,8 @@ | ||||
| /** | ||||
|  * Copyright (c) HashiCorp, Inc. | ||||
|  * SPDX-License-Identifier: BUSL-1.1 | ||||
|  */ | ||||
|  | ||||
| import Transform from '@ember-data/serializer/transform'; | ||||
|  | ||||
| /** | ||||
|   | ||||
| @@ -1,3 +1,8 @@ | ||||
| {{! | ||||
|   Copyright (c) HashiCorp, Inc. | ||||
|   SPDX-License-Identifier: BUSL-1.1 | ||||
| ~}} | ||||
|  | ||||
| {{! @onWrap is recommend to be a concurrency task! see <Page::Secret::Details> in KV addon for example }} | ||||
| <BasicDropdown @class="popup-menu" @horizontalPosition="auto-right" @verticalPosition="below" @onClose={{@onClose}} as |D|> | ||||
|   <D.Trigger data-test-copy-menu-trigger class="toolbar-link {{if D.isOpen 'is-active'}}" @htmlTag="button"> | ||||
|   | ||||
| @@ -1,3 +1,8 @@ | ||||
| {{! | ||||
|   Copyright (c) HashiCorp, Inc. | ||||
|   SPDX-License-Identifier: BUSL-1.1 | ||||
| ~}} | ||||
|  | ||||
| <div class="field"> | ||||
|   <p class="control has-icons-left"> | ||||
|     <input | ||||
|   | ||||
| @@ -1,3 +1,8 @@ | ||||
| {{! | ||||
|   Copyright (c) HashiCorp, Inc. | ||||
|   SPDX-License-Identifier: BUSL-1.1 | ||||
| ~}} | ||||
|  | ||||
| <div ...attributes> | ||||
|   <ToggleButton | ||||
|     @isOpen={{this.showConfig}} | ||||
|   | ||||
| @@ -1,3 +1,8 @@ | ||||
| /** | ||||
|  * Copyright (c) HashiCorp, Inc. | ||||
|  * SPDX-License-Identifier: BUSL-1.1 | ||||
|  */ | ||||
|  | ||||
| import Component from '@glimmer/component'; | ||||
| import { tracked } from '@glimmer/tracking'; | ||||
|  | ||||
|   | ||||
| @@ -1,3 +1,8 @@ | ||||
| /** | ||||
|  * Copyright (c) HashiCorp, Inc. | ||||
|  * SPDX-License-Identifier: BUSL-1.1 | ||||
|  */ | ||||
|  | ||||
| export function sanitizePath(path) { | ||||
|   //remove whitespace + remove trailing and leading slashes | ||||
|   return path.trim().replace(/^\/+|\/+$/g, ''); | ||||
|   | ||||
| @@ -1 +1,6 @@ | ||||
| /** | ||||
|  * Copyright (c) HashiCorp, Inc. | ||||
|  * SPDX-License-Identifier: BUSL-1.1 | ||||
|  */ | ||||
|  | ||||
| export { default } from 'core/components/copy-secret-dropdown'; | ||||
|   | ||||
| @@ -1 +1,6 @@ | ||||
| /** | ||||
|  * Copyright (c) HashiCorp, Inc. | ||||
|  * SPDX-License-Identifier: BUSL-1.1 | ||||
|  */ | ||||
|  | ||||
| export { ensureTrailingSlash, sanitizePath } from 'core/utils/sanitize-path'; | ||||
|   | ||||
| @@ -1,3 +1,8 @@ | ||||
| {{! | ||||
|   Copyright (c) HashiCorp, Inc. | ||||
|   SPDX-License-Identifier: BUSL-1.1 | ||||
| ~}} | ||||
|  | ||||
| {{#let (find-by "name" "path" @secret.allFields) as |attr|}} | ||||
|   {{#if @isEdit}} | ||||
|     <ReadonlyFormField @attr={{attr}} @value={{get @secret attr.name}} /> | ||||
|   | ||||
| @@ -1,3 +1,8 @@ | ||||
| {{! | ||||
|   Copyright (c) HashiCorp, Inc. | ||||
|   SPDX-License-Identifier: BUSL-1.1 | ||||
| ~}} | ||||
|  | ||||
| <Hds::Button | ||||
|   @text={{or @text (capitalize @mode)}} | ||||
|   @color="secondary" | ||||
|   | ||||
| @@ -1,3 +1,8 @@ | ||||
| {{! | ||||
|   Copyright (c) HashiCorp, Inc. | ||||
|   SPDX-License-Identifier: BUSL-1.1 | ||||
| ~}} | ||||
|  | ||||
| <form {{on "submit" (perform this.handleSearch)}}> | ||||
|   <Hds::SegmentedGroup as |S|> | ||||
|     <S.TextInput | ||||
|   | ||||
| @@ -1,3 +1,8 @@ | ||||
| {{! | ||||
|   Copyright (c) HashiCorp, Inc. | ||||
|   SPDX-License-Identifier: BUSL-1.1 | ||||
| ~}} | ||||
|  | ||||
| {{#each @metadata.formFields as |attr|}} | ||||
|   {{#if (eq attr.name "customMetadata")}} | ||||
|     <FormField @attr={{attr}} @model={{@metadata}} @modelValidations={{@modelValidations}} /> | ||||
|   | ||||
| @@ -1,3 +1,8 @@ | ||||
| {{! | ||||
|   Copyright (c) HashiCorp, Inc. | ||||
|   SPDX-License-Identifier: BUSL-1.1 | ||||
| ~}} | ||||
|  | ||||
| <PageHeader as |p|> | ||||
|   <p.top> | ||||
|     <Page::Breadcrumbs @breadcrumbs={{@breadcrumbs}} /> | ||||
|   | ||||
| @@ -1,3 +1,8 @@ | ||||
| {{! | ||||
|   Copyright (c) HashiCorp, Inc. | ||||
|   SPDX-License-Identifier: BUSL-1.1 | ||||
| ~}} | ||||
|  | ||||
| {{! renders a human readable date with a tooltip containing the API timestamp}} | ||||
| <ToolTip @verticalPosition="above" @horizontalPosition="center" as |T|> | ||||
|   <T.Trigger data-test-kv-version-tooltip-trigger tabindex="-1"> | ||||
|   | ||||
| @@ -1,3 +1,8 @@ | ||||
| {{! | ||||
|   Copyright (c) HashiCorp, Inc. | ||||
|   SPDX-License-Identifier: BUSL-1.1 | ||||
| ~}} | ||||
|  | ||||
| <BasicDropdown @class="popup-menu" @horizontalPosition="auto-right" @verticalPosition="below" as |D|> | ||||
|   <D.Trigger data-test-version-dropdown class="toolbar-link {{if D.isOpen ' is-active'}}"> | ||||
|     Version | ||||
|   | ||||
| @@ -1,3 +1,8 @@ | ||||
| {{! | ||||
|   Copyright (c) HashiCorp, Inc. | ||||
|   SPDX-License-Identifier: BUSL-1.1 | ||||
| ~}} | ||||
|  | ||||
| <KvPageHeader @breadcrumbs={{@breadcrumbs}} @mountName={{@mountConfig.id}}> | ||||
|   <:tabLinks> | ||||
|     <LinkTo @route="list" data-test-secrets-tab="Secrets">Secrets</LinkTo> | ||||
|   | ||||
| @@ -1,3 +1,8 @@ | ||||
| {{! | ||||
|   Copyright (c) HashiCorp, Inc. | ||||
|   SPDX-License-Identifier: BUSL-1.1 | ||||
| ~}} | ||||
|  | ||||
| <KvPageHeader @breadcrumbs={{@breadcrumbs}} @mountName={{@backend}}> | ||||
|   <:tabLinks> | ||||
|     <LinkTo @route={{this.router.currentRoute.localName}} data-test-secrets-tab="Secrets">Secrets</LinkTo> | ||||
|   | ||||
| @@ -1,3 +1,8 @@ | ||||
| {{! | ||||
|   Copyright (c) HashiCorp, Inc. | ||||
|   SPDX-License-Identifier: BUSL-1.1 | ||||
| ~}} | ||||
|  | ||||
| <KvPageHeader @breadcrumbs={{@breadcrumbs}} @pageTitle={{@path}}> | ||||
|   <:tabLinks> | ||||
|     <LinkTo @route="secret.details" data-test-secrets-tab="Secret">Secret</LinkTo> | ||||
|   | ||||
| @@ -1,3 +1,8 @@ | ||||
| {{! | ||||
|   Copyright (c) HashiCorp, Inc. | ||||
|   SPDX-License-Identifier: BUSL-1.1 | ||||
| ~}} | ||||
|  | ||||
| <KvPageHeader @breadcrumbs={{@breadcrumbs}} @pageTitle="Create New Version"> | ||||
|   <:toolbarFilters> | ||||
|     <Toggle | ||||
|   | ||||
| @@ -1,3 +1,8 @@ | ||||
| {{! | ||||
|   Copyright (c) HashiCorp, Inc. | ||||
|   SPDX-License-Identifier: BUSL-1.1 | ||||
| ~}} | ||||
|  | ||||
| <KvPageHeader @breadcrumbs={{@breadcrumbs}} @pageTitle={{@path}}> | ||||
|   <:tabLinks> | ||||
|     <LinkTo @route="secret.details" data-test-secrets-tab="Secret">Secret</LinkTo> | ||||
|   | ||||
| @@ -1,3 +1,8 @@ | ||||
| {{! | ||||
|   Copyright (c) HashiCorp, Inc. | ||||
|   SPDX-License-Identifier: BUSL-1.1 | ||||
| ~}} | ||||
|  | ||||
| <KvPageHeader @breadcrumbs={{@breadcrumbs}} @pageTitle="Edit Secret Metadata" /> | ||||
|  | ||||
| {{#if @metadata.canUpdateMetadata}} | ||||
|   | ||||
| @@ -1,3 +1,8 @@ | ||||
| {{! | ||||
|   Copyright (c) HashiCorp, Inc. | ||||
|   SPDX-License-Identifier: BUSL-1.1 | ||||
| ~}} | ||||
|  | ||||
| <KvPageHeader @breadcrumbs={{@breadcrumbs}} @pageTitle="Version Diff"> | ||||
|   <:toolbarFilters> | ||||
|     <span class="has-text-grey has-text-weight-semibold is-size-8">FROM:</span> | ||||
|   | ||||
| @@ -1,3 +1,8 @@ | ||||
| {{! | ||||
|   Copyright (c) HashiCorp, Inc. | ||||
|   SPDX-License-Identifier: BUSL-1.1 | ||||
| ~}} | ||||
|  | ||||
| <KvPageHeader @breadcrumbs={{@breadcrumbs}} @pageTitle={{@path}}> | ||||
|   <:tabLinks> | ||||
|     <LinkTo @route="secret.details" data-test-secrets-tab="Secret">Secret</LinkTo> | ||||
|   | ||||
| @@ -1,3 +1,8 @@ | ||||
| {{! | ||||
|   Copyright (c) HashiCorp, Inc. | ||||
|   SPDX-License-Identifier: BUSL-1.1 | ||||
| ~}} | ||||
|  | ||||
| <KvPageHeader @breadcrumbs={{@breadcrumbs}} @pageTitle={{@path}}> | ||||
|   <:tabLinks> | ||||
|     <LinkTo @route="secret.details" data-test-secrets-tab="Secret">Secret</LinkTo> | ||||
|   | ||||
| @@ -1,3 +1,8 @@ | ||||
| {{! | ||||
|   Copyright (c) HashiCorp, Inc. | ||||
|   SPDX-License-Identifier: BUSL-1.1 | ||||
| ~}} | ||||
|  | ||||
| <KvPageHeader @breadcrumbs={{@breadcrumbs}} @pageTitle="Create Secret"> | ||||
|   <:toolbarFilters> | ||||
|     <Toggle | ||||
|   | ||||
| @@ -1,3 +1,8 @@ | ||||
| /** | ||||
|  * Copyright (c) HashiCorp, Inc. | ||||
|  * SPDX-License-Identifier: BUSL-1.1 | ||||
|  */ | ||||
|  | ||||
| import Controller from '@ember/controller'; | ||||
|  | ||||
| export default class KvSecretDetailsController extends Controller { | ||||
|   | ||||
| @@ -1,3 +1,8 @@ | ||||
| /** | ||||
|  * Copyright (c) HashiCorp, Inc. | ||||
|  * SPDX-License-Identifier: BUSL-1.1 | ||||
|  */ | ||||
|  | ||||
| import Route from '@ember/routing/route'; | ||||
| import { inject as service } from '@ember/service'; | ||||
| import { hash } from 'rsvp'; | ||||
|   | ||||
| @@ -1,3 +1,8 @@ | ||||
| {{! | ||||
|   Copyright (c) HashiCorp, Inc. | ||||
|   SPDX-License-Identifier: BUSL-1.1 | ||||
| ~}} | ||||
|  | ||||
| <Page::Configuration | ||||
|   @engineConfig={{this.model.engineConfig}} | ||||
|   @mountConfig={{this.model.mountConfig}} | ||||
|   | ||||
| @@ -1 +1,6 @@ | ||||
| {{! | ||||
|   Copyright (c) HashiCorp, Inc. | ||||
|   SPDX-License-Identifier: BUSL-1.1 | ||||
| ~}} | ||||
|  | ||||
| <Page::Secrets::Create @secret={{this.model.secret}} @metadata={{this.model.metadata}} @breadcrumbs={{this.breadcrumbs}} /> | ||||
| @@ -1,3 +1,8 @@ | ||||
| {{! | ||||
|   Copyright (c) HashiCorp, Inc. | ||||
|   SPDX-License-Identifier: BUSL-1.1 | ||||
| ~}} | ||||
|  | ||||
| <KvPageHeader @breadcrumbs={{this.breadcrumbs}} @mountName={{this.mountName}}> | ||||
|   <:tabLinks> | ||||
|     <LinkTo @route="list" data-test-secrets-tab="Secrets">Secrets</LinkTo> | ||||
|   | ||||
| @@ -1,3 +1,8 @@ | ||||
| {{! | ||||
|   Copyright (c) HashiCorp, Inc. | ||||
|   SPDX-License-Identifier: BUSL-1.1 | ||||
| ~}} | ||||
|  | ||||
| <Page::List | ||||
|   @secrets={{this.model.secrets}} | ||||
|   @backend={{this.model.backend}} | ||||
|   | ||||
| @@ -1,3 +1,8 @@ | ||||
| {{! | ||||
|   Copyright (c) HashiCorp, Inc. | ||||
|   SPDX-License-Identifier: BUSL-1.1 | ||||
| ~}} | ||||
|  | ||||
| <Page::List | ||||
|   @secrets={{this.model.secrets}} | ||||
|   @backend={{this.model.backend}} | ||||
|   | ||||
| @@ -1,3 +1,8 @@ | ||||
| {{! | ||||
|   Copyright (c) HashiCorp, Inc. | ||||
|   SPDX-License-Identifier: BUSL-1.1 | ||||
| ~}} | ||||
|  | ||||
| <Page::Secret::Edit | ||||
|   @secret={{this.model.newVersion}} | ||||
|   @previousVersion={{this.model.secret.version}} | ||||
|   | ||||
| @@ -1,3 +1,8 @@ | ||||
| {{! | ||||
|   Copyright (c) HashiCorp, Inc. | ||||
|   SPDX-License-Identifier: BUSL-1.1 | ||||
| ~}} | ||||
|  | ||||
| <Page::Secret::Details | ||||
|   @path={{this.model.path}} | ||||
|   @secret={{this.model.secret}} | ||||
|   | ||||
| @@ -1,3 +1,8 @@ | ||||
| {{! | ||||
|   Copyright (c) HashiCorp, Inc. | ||||
|   SPDX-License-Identifier: BUSL-1.1 | ||||
| ~}} | ||||
|  | ||||
| <Page::Secret::Metadata::VersionDiff | ||||
|   @metadata={{this.model.metadata}} | ||||
|   @path={{this.model.path}} | ||||
|   | ||||
| @@ -1,3 +1,8 @@ | ||||
| {{! | ||||
|   Copyright (c) HashiCorp, Inc. | ||||
|   SPDX-License-Identifier: BUSL-1.1 | ||||
| ~}} | ||||
|  | ||||
| <Page::Secret::Metadata::Edit | ||||
|   @metadata={{this.model.metadata}} | ||||
|   @breadcrumbs={{this.breadcrumbs}} | ||||
|   | ||||
| @@ -1,3 +1,8 @@ | ||||
| {{! | ||||
|   Copyright (c) HashiCorp, Inc. | ||||
|   SPDX-License-Identifier: BUSL-1.1 | ||||
| ~}} | ||||
|  | ||||
| <Page::Secret::Metadata::Details | ||||
|   @metadata={{this.model.metadata}} | ||||
|   @path={{this.model.path}} | ||||
|   | ||||
| @@ -1,3 +1,8 @@ | ||||
| {{! | ||||
|   Copyright (c) HashiCorp, Inc. | ||||
|   SPDX-License-Identifier: BUSL-1.1 | ||||
| ~}} | ||||
|  | ||||
| <Page::Secret::Metadata::VersionHistory | ||||
|   @metadata={{this.model.metadata}} | ||||
|   @path={{this.model.path}} | ||||
|   | ||||
| @@ -1,3 +1,8 @@ | ||||
| {{! | ||||
|   Copyright (c) HashiCorp, Inc. | ||||
|   SPDX-License-Identifier: BUSL-1.1 | ||||
| ~}} | ||||
|  | ||||
| <Page::Secret::Paths | ||||
|   @path={{this.model.path}} | ||||
|   @backend={{this.model.backend}} | ||||
|   | ||||
| @@ -1 +1,6 @@ | ||||
| /** | ||||
|  * Copyright (c) HashiCorp, Inc. | ||||
|  * SPDX-License-Identifier: BUSL-1.1 | ||||
|  */ | ||||
|  | ||||
| export { default } from 'kv/utils/kv-breadcrumbs'; | ||||
|   | ||||
| @@ -1 +1,6 @@ | ||||
| /** | ||||
|  * Copyright (c) HashiCorp, Inc. | ||||
|  * SPDX-License-Identifier: BUSL-1.1 | ||||
|  */ | ||||
|  | ||||
| export { default } from 'kv/utils/kv-deleted'; | ||||
|   | ||||
| @@ -1,3 +1,8 @@ | ||||
| {{! | ||||
|   Copyright (c) HashiCorp, Inc. | ||||
|   SPDX-License-Identifier: BUSL-1.1 | ||||
| ~}} | ||||
|  | ||||
| <OverviewCard | ||||
|   @cardTitle="Accounts checked-out" | ||||
|   @subText="The accounts that are currently on lease with this token or exist in a library set with check-in enforcement disabled." | ||||
|   | ||||
| @@ -1,3 +1,8 @@ | ||||
| /** | ||||
|  * Copyright (c) HashiCorp, Inc. | ||||
|  * SPDX-License-Identifier: BUSL-1.1 | ||||
|  */ | ||||
|  | ||||
| import Component from '@glimmer/component'; | ||||
| import { tracked } from '@glimmer/tracking'; | ||||
| import { inject as service } from '@ember/service'; | ||||
|   | ||||
| @@ -1,3 +1,8 @@ | ||||
| {{! | ||||
|   Copyright (c) HashiCorp, Inc. | ||||
|   SPDX-License-Identifier: BUSL-1.1 | ||||
| ~}} | ||||
|  | ||||
| <EmptyState | ||||
|   data-test-config-cta | ||||
|   @title="LDAP not configured" | ||||
|   | ||||
| @@ -1,3 +1,8 @@ | ||||
| {{! | ||||
|   Copyright (c) HashiCorp, Inc. | ||||
|   SPDX-License-Identifier: BUSL-1.1 | ||||
| ~}} | ||||
|  | ||||
| <TabPageHeader @model={{@backendModel}} @breadcrumbs={{@breadcrumbs}}> | ||||
|   <:toolbarActions> | ||||
|     {{#if @configModel}} | ||||
|   | ||||
| @@ -1,3 +1,8 @@ | ||||
| /** | ||||
|  * Copyright (c) HashiCorp, Inc. | ||||
|  * SPDX-License-Identifier: BUSL-1.1 | ||||
|  */ | ||||
|  | ||||
| import Component from '@glimmer/component'; | ||||
| import { inject as service } from '@ember/service'; | ||||
| import { task } from 'ember-concurrency'; | ||||
|   | ||||
| @@ -1,3 +1,8 @@ | ||||
| {{! | ||||
|   Copyright (c) HashiCorp, Inc. | ||||
|   SPDX-License-Identifier: BUSL-1.1 | ||||
| ~}} | ||||
|  | ||||
| <PageHeader as |p|> | ||||
|   <p.top> | ||||
|     <Page::Breadcrumbs @breadcrumbs={{@breadcrumbs}} /> | ||||
|   | ||||
| @@ -1,3 +1,8 @@ | ||||
| /** | ||||
|  * Copyright (c) HashiCorp, Inc. | ||||
|  * SPDX-License-Identifier: BUSL-1.1 | ||||
|  */ | ||||
|  | ||||
| import Component from '@glimmer/component'; | ||||
| import { tracked } from '@glimmer/tracking'; | ||||
| import { action } from '@ember/object'; | ||||
|   | ||||
| @@ -1,3 +1,8 @@ | ||||
| {{! | ||||
|   Copyright (c) HashiCorp, Inc. | ||||
|   SPDX-License-Identifier: BUSL-1.1 | ||||
| ~}} | ||||
|  | ||||
| <TabPageHeader @model={{@backendModel}} @breadcrumbs={{@breadcrumbs}}> | ||||
|   <:toolbarFilters> | ||||
|     {{#if (and (not @promptConfig) @libraries)}} | ||||
|   | ||||
| @@ -1,3 +1,8 @@ | ||||
| {{! | ||||
|   Copyright (c) HashiCorp, Inc. | ||||
|   SPDX-License-Identifier: BUSL-1.1 | ||||
| ~}} | ||||
|  | ||||
| <PageHeader as |p|> | ||||
|   <p.top> | ||||
|     <Page::Breadcrumbs @breadcrumbs={{@breadcrumbs}} /> | ||||
|   | ||||
| @@ -1,3 +1,8 @@ | ||||
| {{! | ||||
|   Copyright (c) HashiCorp, Inc. | ||||
|   SPDX-License-Identifier: BUSL-1.1 | ||||
| ~}} | ||||
|  | ||||
| <PageHeader as |p|> | ||||
|   <p.top> | ||||
|     <Page::Breadcrumbs @breadcrumbs={{@breadcrumbs}} /> | ||||
|   | ||||
| @@ -1,3 +1,8 @@ | ||||
| /** | ||||
|  * Copyright (c) HashiCorp, Inc. | ||||
|  * SPDX-License-Identifier: BUSL-1.1 | ||||
|  */ | ||||
|  | ||||
| import Component from '@glimmer/component'; | ||||
| import { tracked } from '@glimmer/tracking'; | ||||
| import { action } from '@ember/object'; | ||||
|   | ||||
| @@ -1,3 +1,8 @@ | ||||
| {{! | ||||
|   Copyright (c) HashiCorp, Inc. | ||||
|   SPDX-License-Identifier: BUSL-1.1 | ||||
| ~}} | ||||
|  | ||||
| <PageHeader as |p|> | ||||
|   <p.top> | ||||
|     <Page::Breadcrumbs @breadcrumbs={{@breadcrumbs}} /> | ||||
|   | ||||
| @@ -1,3 +1,8 @@ | ||||
| /** | ||||
|  * Copyright (c) HashiCorp, Inc. | ||||
|  * SPDX-License-Identifier: BUSL-1.1 | ||||
|  */ | ||||
|  | ||||
| import Component from '@glimmer/component'; | ||||
| import { action } from '@ember/object'; | ||||
| import { inject as service } from '@ember/service'; | ||||
|   | ||||
| @@ -1,3 +1,8 @@ | ||||
| {{! | ||||
|   Copyright (c) HashiCorp, Inc. | ||||
|   SPDX-License-Identifier: BUSL-1.1 | ||||
| ~}} | ||||
|  | ||||
| <div class="is-grid has-top-margin-l grid-2-columns grid-gap-2"> | ||||
|   <div> | ||||
|     <Hds::Card::Container @level="mid" @hasBorder={{true}} class="has-padding-l is-flex-half border-radius-2"> | ||||
|   | ||||
| @@ -1,3 +1,8 @@ | ||||
| /** | ||||
|  * Copyright (c) HashiCorp, Inc. | ||||
|  * SPDX-License-Identifier: BUSL-1.1 | ||||
|  */ | ||||
|  | ||||
| import Component from '@glimmer/component'; | ||||
| import { tracked } from '@glimmer/tracking'; | ||||
| import { inject as service } from '@ember/service'; | ||||
|   | ||||
| @@ -1,3 +1,8 @@ | ||||
| {{! | ||||
|   Copyright (c) HashiCorp, Inc. | ||||
|   SPDX-License-Identifier: BUSL-1.1 | ||||
| ~}} | ||||
|  | ||||
| {{#each @model.displayFields as |field|}} | ||||
|   {{#let (get @model field.name) as |value|}} | ||||
|     {{#if (eq field.name "disable_check_in_enforcement")}} | ||||
|   | ||||
| @@ -1,3 +1,8 @@ | ||||
| {{! | ||||
|   Copyright (c) HashiCorp, Inc. | ||||
|   SPDX-License-Identifier: BUSL-1.1 | ||||
| ~}} | ||||
|  | ||||
| <TabPageHeader @model={{@backendModel}} @breadcrumbs={{@breadcrumbs}}> | ||||
|   <:toolbarActions> | ||||
|     {{#if @promptConfig}} | ||||
|   | ||||
| @@ -1,3 +1,8 @@ | ||||
| {{! | ||||
|   Copyright (c) HashiCorp, Inc. | ||||
|   SPDX-License-Identifier: BUSL-1.1 | ||||
| ~}} | ||||
|  | ||||
| <PageHeader as |p|> | ||||
|   <p.top> | ||||
|     <Page::Breadcrumbs @breadcrumbs={{@breadcrumbs}} /> | ||||
|   | ||||
| @@ -1,3 +1,8 @@ | ||||
| /** | ||||
|  * Copyright (c) HashiCorp, Inc. | ||||
|  * SPDX-License-Identifier: BUSL-1.1 | ||||
|  */ | ||||
|  | ||||
| import Component from '@glimmer/component'; | ||||
| import { tracked } from '@glimmer/tracking'; | ||||
| import { action } from '@ember/object'; | ||||
|   | ||||
| @@ -1,3 +1,8 @@ | ||||
| {{! | ||||
|   Copyright (c) HashiCorp, Inc. | ||||
|   SPDX-License-Identifier: BUSL-1.1 | ||||
| ~}} | ||||
|  | ||||
| <PageHeader as |p|> | ||||
|   <p.top> | ||||
|     <Page::Breadcrumbs @breadcrumbs={{@breadcrumbs}} /> | ||||
|   | ||||
| @@ -1,3 +1,8 @@ | ||||
| /** | ||||
|  * Copyright (c) HashiCorp, Inc. | ||||
|  * SPDX-License-Identifier: BUSL-1.1 | ||||
|  */ | ||||
|  | ||||
| import Component from '@glimmer/component'; | ||||
|  | ||||
| import type { | ||||
|   | ||||
| @@ -1,3 +1,8 @@ | ||||
| {{! | ||||
|   Copyright (c) HashiCorp, Inc. | ||||
|   SPDX-License-Identifier: BUSL-1.1 | ||||
| ~}} | ||||
|  | ||||
| <PageHeader as |p|> | ||||
|   <p.top> | ||||
|     <Page::Breadcrumbs @breadcrumbs={{@breadcrumbs}} /> | ||||
|   | ||||
| @@ -1,3 +1,8 @@ | ||||
| /** | ||||
|  * Copyright (c) HashiCorp, Inc. | ||||
|  * SPDX-License-Identifier: BUSL-1.1 | ||||
|  */ | ||||
|  | ||||
| import Component from '@glimmer/component'; | ||||
| import { action } from '@ember/object'; | ||||
| import { inject as service } from '@ember/service'; | ||||
|   | ||||
| @@ -1,3 +1,8 @@ | ||||
| {{! | ||||
|   Copyright (c) HashiCorp, Inc. | ||||
|   SPDX-License-Identifier: BUSL-1.1 | ||||
| ~}} | ||||
|  | ||||
| <TabPageHeader @model={{@backendModel}} @breadcrumbs={{@breadcrumbs}}> | ||||
|   <:toolbarFilters> | ||||
|     {{#if (and (not @promptConfig) @roles.meta.total)}} | ||||
|   | ||||
Some files were not shown because too many files have changed in this diff Show More
		Reference in New Issue
	
	Block a user
	 modrake
					modrake