@backstage-community/plugin-vault 0.1.35 → 0.2.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/CHANGELOG.md CHANGED
@@ -1,5 +1,17 @@
1
1
  # @backstage-community/plugin-vault
2
2
 
3
+ ## 0.2.0
4
+
5
+ ### Minor Changes
6
+
7
+ - 5bbd06d: Backstage version bump to v1.34.1
8
+
9
+ ## 0.1.36
10
+
11
+ ### Patch Changes
12
+
13
+ - a9e36e9: Backstage version bump to v1.32.2
14
+
3
15
  ## 0.1.35
4
16
 
5
17
  ### Patch Changes
@@ -1 +1 @@
1
- {"version":3,"file":"api.esm.js","sources":["../src/api.ts"],"sourcesContent":["/*\n * Copyright 2020 The Backstage Authors\n *\n * Licensed under the Apache License, Version 2.0 (the \"License\");\n * you may not use this file except in compliance with the License.\n * You may obtain a copy of the License at\n *\n * http://www.apache.org/licenses/LICENSE-2.0\n *\n * Unless required by applicable law or agreed to in writing, software\n * distributed under the License is distributed on an \"AS IS\" BASIS,\n * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\n * See the License for the specific language governing permissions and\n * limitations under the License.\n */\nimport {\n DiscoveryApi,\n createApiRef,\n FetchApi,\n} from '@backstage/core-plugin-api';\nimport { NotFoundError, ResponseError } from '@backstage/errors';\n\n/**\n * @public\n */\nexport const vaultApiRef = createApiRef<VaultApi>({\n id: 'plugin.vault.service',\n});\n\n/**\n * Object containing the secret name and some links.\n * @public\n */\nexport type VaultSecret = {\n name: string;\n path: string;\n showUrl: string;\n editUrl: string;\n};\n\n/**\n * Interface for the VaultApi.\n * @public\n */\nexport interface VaultApi {\n /**\n * Returns a list of secrets used to show in a table.\n * @param secretPath - The path where the secrets are stored in Vault\n * @param options - Additional options to be passed to the Vault API, allows to override vault default settings in app config file\n */\n listSecrets(\n secretPath: string,\n options?: {\n secretEngine?: string;\n },\n ): Promise<VaultSecret[]>;\n}\n\n/**\n * Default implementation of the VaultApi.\n * @public\n */\nexport class VaultClient implements VaultApi {\n private readonly discoveryApi: DiscoveryApi;\n private readonly fetchApi: FetchApi;\n\n constructor({\n discoveryApi,\n fetchApi,\n }: {\n discoveryApi: DiscoveryApi;\n fetchApi: FetchApi;\n }) {\n this.discoveryApi = discoveryApi;\n this.fetchApi = fetchApi;\n }\n\n private async callApi<T>(\n path: string,\n query: { [key in string]: any },\n ): Promise<T> {\n const apiUrl = `${await this.discoveryApi.getBaseUrl('vault')}`;\n const response = await this.fetchApi.fetch(\n `${apiUrl}/${path}?${new URLSearchParams(query).toString()}`,\n {\n headers: {\n Accept: 'application/json',\n },\n },\n );\n if (response.ok) {\n return (await response.json()) as T;\n } else if (response.status === 404) {\n throw new NotFoundError(`No secrets found in path '${path}'`);\n }\n throw await ResponseError.fromResponse(response);\n }\n\n async listSecrets(\n secretPath: string,\n options?: {\n secretEngine?: string;\n },\n ): Promise<VaultSecret[]> {\n const query: { [key in string]: any } = {};\n const { secretEngine } = options || {};\n if (secretEngine) {\n query.engine = secretEngine;\n }\n\n const result = await this.callApi<{ items: VaultSecret[] }>(\n `v1/secrets/${encodeURIComponent(secretPath)}`,\n query,\n );\n return result.items;\n }\n}\n"],"names":[],"mappings":";;;AAyBO,MAAM,cAAc,YAAuB,CAAA;AAAA,EAChD,EAAI,EAAA,sBAAA;AACN,CAAC,EAAA;AAmCM,MAAM,WAAgC,CAAA;AAAA,EAC1B,YAAA,CAAA;AAAA,EACA,QAAA,CAAA;AAAA,EAEjB,WAAY,CAAA;AAAA,IACV,YAAA;AAAA,IACA,QAAA;AAAA,GAIC,EAAA;AACD,IAAA,IAAA,CAAK,YAAe,GAAA,YAAA,CAAA;AACpB,IAAA,IAAA,CAAK,QAAW,GAAA,QAAA,CAAA;AAAA,GAClB;AAAA,EAEA,MAAc,OACZ,CAAA,IAAA,EACA,KACY,EAAA;AACZ,IAAA,MAAM,SAAS,CAAG,EAAA,MAAM,KAAK,YAAa,CAAA,UAAA,CAAW,OAAO,CAAC,CAAA,CAAA,CAAA;AAC7D,IAAM,MAAA,QAAA,GAAW,MAAM,IAAA,CAAK,QAAS,CAAA,KAAA;AAAA,MACnC,CAAA,EAAG,MAAM,CAAA,CAAA,EAAI,IAAI,CAAA,CAAA,EAAI,IAAI,eAAgB,CAAA,KAAK,CAAE,CAAA,QAAA,EAAU,CAAA,CAAA;AAAA,MAC1D;AAAA,QACE,OAAS,EAAA;AAAA,UACP,MAAQ,EAAA,kBAAA;AAAA,SACV;AAAA,OACF;AAAA,KACF,CAAA;AACA,IAAA,IAAI,SAAS,EAAI,EAAA;AACf,MAAQ,OAAA,MAAM,SAAS,IAAK,EAAA,CAAA;AAAA,KAC9B,MAAA,IAAW,QAAS,CAAA,MAAA,KAAW,GAAK,EAAA;AAClC,MAAA,MAAM,IAAI,aAAA,CAAc,CAA6B,0BAAA,EAAA,IAAI,CAAG,CAAA,CAAA,CAAA,CAAA;AAAA,KAC9D;AACA,IAAM,MAAA,MAAM,aAAc,CAAA,YAAA,CAAa,QAAQ,CAAA,CAAA;AAAA,GACjD;AAAA,EAEA,MAAM,WACJ,CAAA,UAAA,EACA,OAGwB,EAAA;AACxB,IAAA,MAAM,QAAkC,EAAC,CAAA;AACzC,IAAA,MAAM,EAAE,YAAA,EAAiB,GAAA,OAAA,IAAW,EAAC,CAAA;AACrC,IAAA,IAAI,YAAc,EAAA;AAChB,MAAA,KAAA,CAAM,MAAS,GAAA,YAAA,CAAA;AAAA,KACjB;AAEA,IAAM,MAAA,MAAA,GAAS,MAAM,IAAK,CAAA,OAAA;AAAA,MACxB,CAAA,WAAA,EAAc,kBAAmB,CAAA,UAAU,CAAC,CAAA,CAAA;AAAA,MAC5C,KAAA;AAAA,KACF,CAAA;AACA,IAAA,OAAO,MAAO,CAAA,KAAA,CAAA;AAAA,GAChB;AACF;;;;"}
1
+ {"version":3,"file":"api.esm.js","sources":["../src/api.ts"],"sourcesContent":["/*\n * Copyright 2020 The Backstage Authors\n *\n * Licensed under the Apache License, Version 2.0 (the \"License\");\n * you may not use this file except in compliance with the License.\n * You may obtain a copy of the License at\n *\n * http://www.apache.org/licenses/LICENSE-2.0\n *\n * Unless required by applicable law or agreed to in writing, software\n * distributed under the License is distributed on an \"AS IS\" BASIS,\n * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\n * See the License for the specific language governing permissions and\n * limitations under the License.\n */\nimport {\n DiscoveryApi,\n createApiRef,\n FetchApi,\n} from '@backstage/core-plugin-api';\nimport { NotFoundError, ResponseError } from '@backstage/errors';\n\n/**\n * @public\n */\nexport const vaultApiRef = createApiRef<VaultApi>({\n id: 'plugin.vault.service',\n});\n\n/**\n * Object containing the secret name and some links.\n * @public\n */\nexport type VaultSecret = {\n name: string;\n path: string;\n showUrl: string;\n editUrl: string;\n};\n\n/**\n * Interface for the VaultApi.\n * @public\n */\nexport interface VaultApi {\n /**\n * Returns a list of secrets used to show in a table.\n * @param secretPath - The path where the secrets are stored in Vault\n * @param options - Additional options to be passed to the Vault API, allows to override vault default settings in app config file\n */\n listSecrets(\n secretPath: string,\n options?: {\n secretEngine?: string;\n },\n ): Promise<VaultSecret[]>;\n}\n\n/**\n * Default implementation of the VaultApi.\n * @public\n */\nexport class VaultClient implements VaultApi {\n private readonly discoveryApi: DiscoveryApi;\n private readonly fetchApi: FetchApi;\n\n constructor({\n discoveryApi,\n fetchApi,\n }: {\n discoveryApi: DiscoveryApi;\n fetchApi: FetchApi;\n }) {\n this.discoveryApi = discoveryApi;\n this.fetchApi = fetchApi;\n }\n\n private async callApi<T>(\n path: string,\n query: { [key in string]: any },\n ): Promise<T> {\n const apiUrl = `${await this.discoveryApi.getBaseUrl('vault')}`;\n const response = await this.fetchApi.fetch(\n `${apiUrl}/${path}?${new URLSearchParams(query).toString()}`,\n {\n headers: {\n Accept: 'application/json',\n },\n },\n );\n if (response.ok) {\n return (await response.json()) as T;\n } else if (response.status === 404) {\n throw new NotFoundError(`No secrets found in path '${path}'`);\n }\n throw await ResponseError.fromResponse(response);\n }\n\n async listSecrets(\n secretPath: string,\n options?: {\n secretEngine?: string;\n },\n ): Promise<VaultSecret[]> {\n const query: { [key in string]: any } = {};\n const { secretEngine } = options || {};\n if (secretEngine) {\n query.engine = secretEngine;\n }\n\n const result = await this.callApi<{ items: VaultSecret[] }>(\n `v1/secrets/${encodeURIComponent(secretPath)}`,\n query,\n );\n return result.items;\n }\n}\n"],"names":[],"mappings":";;;AAyBO,MAAM,cAAc,YAAuB,CAAA;AAAA,EAChD,EAAI,EAAA;AACN,CAAC;AAmCM,MAAM,WAAgC,CAAA;AAAA,EAC1B,YAAA;AAAA,EACA,QAAA;AAAA,EAEjB,WAAY,CAAA;AAAA,IACV,YAAA;AAAA,IACA;AAAA,GAIC,EAAA;AACD,IAAA,IAAA,CAAK,YAAe,GAAA,YAAA;AACpB,IAAA,IAAA,CAAK,QAAW,GAAA,QAAA;AAAA;AAClB,EAEA,MAAc,OACZ,CAAA,IAAA,EACA,KACY,EAAA;AACZ,IAAA,MAAM,SAAS,CAAG,EAAA,MAAM,KAAK,YAAa,CAAA,UAAA,CAAW,OAAO,CAAC,CAAA,CAAA;AAC7D,IAAM,MAAA,QAAA,GAAW,MAAM,IAAA,CAAK,QAAS,CAAA,KAAA;AAAA,MACnC,CAAA,EAAG,MAAM,CAAA,CAAA,EAAI,IAAI,CAAA,CAAA,EAAI,IAAI,eAAgB,CAAA,KAAK,CAAE,CAAA,QAAA,EAAU,CAAA,CAAA;AAAA,MAC1D;AAAA,QACE,OAAS,EAAA;AAAA,UACP,MAAQ,EAAA;AAAA;AACV;AACF,KACF;AACA,IAAA,IAAI,SAAS,EAAI,EAAA;AACf,MAAQ,OAAA,MAAM,SAAS,IAAK,EAAA;AAAA,KAC9B,MAAA,IAAW,QAAS,CAAA,MAAA,KAAW,GAAK,EAAA;AAClC,MAAA,MAAM,IAAI,aAAA,CAAc,CAA6B,0BAAA,EAAA,IAAI,CAAG,CAAA,CAAA,CAAA;AAAA;AAE9D,IAAM,MAAA,MAAM,aAAc,CAAA,YAAA,CAAa,QAAQ,CAAA;AAAA;AACjD,EAEA,MAAM,WACJ,CAAA,UAAA,EACA,OAGwB,EAAA;AACxB,IAAA,MAAM,QAAkC,EAAC;AACzC,IAAA,MAAM,EAAE,YAAA,EAAiB,GAAA,OAAA,IAAW,EAAC;AACrC,IAAA,IAAI,YAAc,EAAA;AAChB,MAAA,KAAA,CAAM,MAAS,GAAA,YAAA;AAAA;AAGjB,IAAM,MAAA,MAAA,GAAS,MAAM,IAAK,CAAA,OAAA;AAAA,MACxB,CAAA,WAAA,EAAc,kBAAmB,CAAA,UAAU,CAAC,CAAA,CAAA;AAAA,MAC5C;AAAA,KACF;AACA,IAAA,OAAO,MAAO,CAAA,KAAA;AAAA;AAElB;;;;"}
@@ -1 +1 @@
1
- {"version":3,"file":"EntityVaultCard.esm.js","sources":["../../../src/components/EntityVaultCard/EntityVaultCard.tsx"],"sourcesContent":["/*\n * Copyright 2020 The Backstage Authors\n *\n * Licensed under the Apache License, Version 2.0 (the \"License\");\n * you may not use this file except in compliance with the License.\n * You may obtain a copy of the License at\n *\n * http://www.apache.org/licenses/LICENSE-2.0\n *\n * Unless required by applicable law or agreed to in writing, software\n * distributed under the License is distributed on an \"AS IS\" BASIS,\n * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\n * See the License for the specific language governing permissions and\n * limitations under the License.\n */\n\nimport React from 'react';\nimport {\n useEntity,\n MissingAnnotationEmptyState,\n} from '@backstage/plugin-catalog-react';\nimport { isVaultAvailable } from '../../conditions';\nimport { VAULT_SECRET_PATH_ANNOTATION } from '../../constants';\nimport { EntityVaultTable } from '../EntityVaultTable';\n\nexport const EntityVaultCard = () => {\n const { entity } = useEntity();\n\n if (isVaultAvailable(entity)) {\n return <EntityVaultTable entity={entity} />;\n }\n return (\n <MissingAnnotationEmptyState annotation={VAULT_SECRET_PATH_ANNOTATION} />\n );\n};\n"],"names":[],"mappings":";;;;;;AAyBO,MAAM,kBAAkB,MAAM;AACnC,EAAM,MAAA,EAAE,MAAO,EAAA,GAAI,SAAU,EAAA,CAAA;AAE7B,EAAI,IAAA,gBAAA,CAAiB,MAAM,CAAG,EAAA;AAC5B,IAAO,uBAAA,KAAA,CAAA,aAAA,CAAC,oBAAiB,MAAgB,EAAA,CAAA,CAAA;AAAA,GAC3C;AACA,EACE,uBAAA,KAAA,CAAA,aAAA,CAAC,2BAA4B,EAAA,EAAA,UAAA,EAAY,4BAA8B,EAAA,CAAA,CAAA;AAE3E;;;;"}
1
+ {"version":3,"file":"EntityVaultCard.esm.js","sources":["../../../src/components/EntityVaultCard/EntityVaultCard.tsx"],"sourcesContent":["/*\n * Copyright 2020 The Backstage Authors\n *\n * Licensed under the Apache License, Version 2.0 (the \"License\");\n * you may not use this file except in compliance with the License.\n * You may obtain a copy of the License at\n *\n * http://www.apache.org/licenses/LICENSE-2.0\n *\n * Unless required by applicable law or agreed to in writing, software\n * distributed under the License is distributed on an \"AS IS\" BASIS,\n * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\n * See the License for the specific language governing permissions and\n * limitations under the License.\n */\n\nimport React from 'react';\nimport {\n useEntity,\n MissingAnnotationEmptyState,\n} from '@backstage/plugin-catalog-react';\nimport { isVaultAvailable } from '../../conditions';\nimport { VAULT_SECRET_PATH_ANNOTATION } from '../../constants';\nimport { EntityVaultTable } from '../EntityVaultTable';\n\nexport const EntityVaultCard = () => {\n const { entity } = useEntity();\n\n if (isVaultAvailable(entity)) {\n return <EntityVaultTable entity={entity} />;\n }\n return (\n <MissingAnnotationEmptyState annotation={VAULT_SECRET_PATH_ANNOTATION} />\n );\n};\n"],"names":[],"mappings":";;;;;;AAyBO,MAAM,kBAAkB,MAAM;AACnC,EAAM,MAAA,EAAE,MAAO,EAAA,GAAI,SAAU,EAAA;AAE7B,EAAI,IAAA,gBAAA,CAAiB,MAAM,CAAG,EAAA;AAC5B,IAAO,uBAAA,KAAA,CAAA,aAAA,CAAC,oBAAiB,MAAgB,EAAA,CAAA;AAAA;AAE3C,EACE,uBAAA,KAAA,CAAA,aAAA,CAAC,2BAA4B,EAAA,EAAA,UAAA,EAAY,4BAA8B,EAAA,CAAA;AAE3E;;;;"}
@@ -1 +1 @@
1
- {"version":3,"file":"EntityVaultTable.esm.js","sources":["../../../src/components/EntityVaultTable/EntityVaultTable.tsx"],"sourcesContent":["/*\n * Copyright 2020 The Backstage Authors\n *\n * Licensed under the Apache License, Version 2.0 (the \"License\");\n * you may not use this file except in compliance with the License.\n * You may obtain a copy of the License at\n *\n * http://www.apache.org/licenses/LICENSE-2.0\n *\n * Unless required by applicable law or agreed to in writing, software\n * distributed under the License is distributed on an \"AS IS\" BASIS,\n * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\n * See the License for the specific language governing permissions and\n * limitations under the License.\n */\nimport React from 'react';\nimport { Entity } from '@backstage/catalog-model';\nimport { Link, Table, TableColumn } from '@backstage/core-components';\nimport { useApi } from '@backstage/core-plugin-api';\nimport Box from '@material-ui/core/Box';\nimport Typography from '@material-ui/core/Typography';\nimport Edit from '@material-ui/icons/Edit';\nimport Visibility from '@material-ui/icons/Visibility';\nimport Alert from '@material-ui/lab/Alert';\nimport useAsync from 'react-use/esm/useAsync';\nimport { VaultSecret, vaultApiRef } from '../../api';\nimport {\n VAULT_SECRET_ENGINE_ANNOTATION,\n VAULT_SECRET_PATH_ANNOTATION,\n} from '../../constants';\n\nexport const vaultSecretConfig = (entity: Entity) => {\n const secretPath =\n entity.metadata.annotations?.[VAULT_SECRET_PATH_ANNOTATION];\n const secretEngine =\n entity.metadata.annotations?.[VAULT_SECRET_ENGINE_ANNOTATION];\n\n return { secretPath, secretEngine };\n};\n\nexport const EntityVaultTable = ({ entity }: { entity: Entity }) => {\n const vaultApi = useApi(vaultApiRef);\n const { secretPath, secretEngine } = vaultSecretConfig(entity);\n if (!secretPath) {\n throw Error(\n `The secret path is undefined. Please, define the annotation ${VAULT_SECRET_PATH_ANNOTATION}`,\n );\n }\n\n const { value, loading, error } = useAsync(async (): Promise<\n VaultSecret[]\n > => {\n return vaultApi.listSecrets(secretPath, { secretEngine });\n }, []);\n\n const columns: TableColumn[] = [\n { title: 'Secret', field: 'secret', highlight: true },\n { title: 'View URL', field: 'view', width: '10%' },\n { title: 'Edit URL', field: 'edit', width: '10%' },\n ];\n\n const data = (value || []).map(secret => {\n const secretName = `${secret.path.replace(`${secretPath}/`, '')}/${\n secret.name\n }`;\n\n return {\n secret: secretName,\n view: (\n <Link\n aria-label=\"View\"\n title={`View ${secretName}`}\n to={secret.showUrl}\n >\n <Visibility style={{ fontSize: 16 }} />\n </Link>\n ),\n edit: (\n <Link\n aria-label=\"Edit\"\n title={`Edit ${secretName}`}\n to={secret.editUrl}\n >\n <Edit style={{ fontSize: 16 }} />\n </Link>\n ),\n };\n });\n\n if (error) {\n return (\n <Alert severity=\"error\">\n Unexpected error while fetching secrets from path '{secretPath}':{' '}\n {error.message}\n </Alert>\n );\n }\n\n return (\n <Table\n title=\"Vault\"\n subtitle={`Secrets for ${entity.metadata.name} in ${secretPath}`}\n columns={columns}\n data={data}\n isLoading={loading}\n options={{\n padding: 'dense',\n pageSize: 10,\n emptyRowsWhenPaging: false,\n search: false,\n }}\n emptyContent={\n <Box style={{ textAlign: 'center', padding: '15px' }}>\n <Typography variant=\"body1\">\n No secrets found for {entity.metadata.name} in {secretPath}\n </Typography>\n </Box>\n }\n />\n );\n};\n"],"names":[],"mappings":";;;;;;;;;;;;AA+Ba,MAAA,iBAAA,GAAoB,CAAC,MAAmB,KAAA;AACnD,EAAA,MAAM,UACJ,GAAA,MAAA,CAAO,QAAS,CAAA,WAAA,GAAc,4BAA4B,CAAA,CAAA;AAC5D,EAAA,MAAM,YACJ,GAAA,MAAA,CAAO,QAAS,CAAA,WAAA,GAAc,8BAA8B,CAAA,CAAA;AAE9D,EAAO,OAAA,EAAE,YAAY,YAAa,EAAA,CAAA;AACpC,EAAA;AAEO,MAAM,gBAAmB,GAAA,CAAC,EAAE,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,WAAQ,uBACJ,EAAA,MAAA,CAAO,SAAS,IAAK,EAAA,MAAA,EAAK,UAClD,CACF,CAAA;AAAA,KAAA;AAAA,GAEJ,CAAA;AAEJ;;;;"}
1
+ {"version":3,"file":"EntityVaultTable.esm.js","sources":["../../../src/components/EntityVaultTable/EntityVaultTable.tsx"],"sourcesContent":["/*\n * Copyright 2020 The Backstage Authors\n *\n * Licensed under the Apache License, Version 2.0 (the \"License\");\n * you may not use this file except in compliance with the License.\n * You may obtain a copy of the License at\n *\n * http://www.apache.org/licenses/LICENSE-2.0\n *\n * Unless required by applicable law or agreed to in writing, software\n * distributed under the License is distributed on an \"AS IS\" BASIS,\n * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\n * See the License for the specific language governing permissions and\n * limitations under the License.\n */\nimport React from 'react';\nimport { Entity } from '@backstage/catalog-model';\nimport { Link, Table, TableColumn } from '@backstage/core-components';\nimport { useApi } from '@backstage/core-plugin-api';\nimport Box from '@material-ui/core/Box';\nimport Typography from '@material-ui/core/Typography';\nimport Edit from '@material-ui/icons/Edit';\nimport Visibility from '@material-ui/icons/Visibility';\nimport Alert from '@material-ui/lab/Alert';\nimport useAsync from 'react-use/esm/useAsync';\nimport { VaultSecret, vaultApiRef } from '../../api';\nimport {\n VAULT_SECRET_ENGINE_ANNOTATION,\n VAULT_SECRET_PATH_ANNOTATION,\n} from '../../constants';\n\nexport const vaultSecretConfig = (entity: Entity) => {\n const secretPath =\n entity.metadata.annotations?.[VAULT_SECRET_PATH_ANNOTATION];\n const secretEngine =\n entity.metadata.annotations?.[VAULT_SECRET_ENGINE_ANNOTATION];\n\n return { secretPath, secretEngine };\n};\n\nexport const EntityVaultTable = ({ entity }: { entity: Entity }) => {\n const vaultApi = useApi(vaultApiRef);\n const { secretPath, secretEngine } = vaultSecretConfig(entity);\n if (!secretPath) {\n throw Error(\n `The secret path is undefined. Please, define the annotation ${VAULT_SECRET_PATH_ANNOTATION}`,\n );\n }\n\n const { value, loading, error } = useAsync(async (): Promise<\n VaultSecret[]\n > => {\n return vaultApi.listSecrets(secretPath, { secretEngine });\n }, []);\n\n const columns: TableColumn[] = [\n { title: 'Secret', field: 'secret', highlight: true },\n { title: 'View URL', field: 'view', width: '10%' },\n { title: 'Edit URL', field: 'edit', width: '10%' },\n ];\n\n const data = (value || []).map(secret => {\n const secretName = `${secret.path.replace(`${secretPath}/`, '')}/${\n secret.name\n }`;\n\n return {\n secret: secretName,\n view: (\n <Link\n aria-label=\"View\"\n title={`View ${secretName}`}\n to={secret.showUrl}\n >\n <Visibility style={{ fontSize: 16 }} />\n </Link>\n ),\n edit: (\n <Link\n aria-label=\"Edit\"\n title={`Edit ${secretName}`}\n to={secret.editUrl}\n >\n <Edit style={{ fontSize: 16 }} />\n </Link>\n ),\n };\n });\n\n if (error) {\n return (\n <Alert severity=\"error\">\n Unexpected error while fetching secrets from path '{secretPath}':{' '}\n {error.message}\n </Alert>\n );\n }\n\n return (\n <Table\n title=\"Vault\"\n subtitle={`Secrets for ${entity.metadata.name} in ${secretPath}`}\n columns={columns}\n data={data}\n isLoading={loading}\n options={{\n padding: 'dense',\n pageSize: 10,\n emptyRowsWhenPaging: false,\n search: false,\n }}\n emptyContent={\n <Box style={{ textAlign: 'center', padding: '15px' }}>\n <Typography variant=\"body1\">\n No secrets found for {entity.metadata.name} in {secretPath}\n </Typography>\n </Box>\n }\n />\n );\n};\n"],"names":[],"mappings":";;;;;;;;;;;;AA+Ba,MAAA,iBAAA,GAAoB,CAAC,MAAmB,KAAA;AACnD,EAAA,MAAM,UACJ,GAAA,MAAA,CAAO,QAAS,CAAA,WAAA,GAAc,4BAA4B,CAAA;AAC5D,EAAA,MAAM,YACJ,GAAA,MAAA,CAAO,QAAS,CAAA,WAAA,GAAc,8BAA8B,CAAA;AAE9D,EAAO,OAAA,EAAE,YAAY,YAAa,EAAA;AACpC;AAEO,MAAM,gBAAmB,GAAA,CAAC,EAAE,MAAA,EAAiC,KAAA;AAClE,EAAM,MAAA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../src/conditions.ts"],"sourcesContent":["/*\n * Copyright 2020 The Backstage Authors\n *\n * Licensed under the Apache License, Version 2.0 (the \"License\");\n * you may not use this file except in compliance with the License.\n * You may obtain a copy of the License at\n *\n * http://www.apache.org/licenses/LICENSE-2.0\n *\n * Unless required by applicable law or agreed to in writing, software\n * distributed under the License is distributed on an \"AS IS\" BASIS,\n * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\n * See the License for the specific language governing permissions and\n * limitations under the License.\n */\nimport { Entity } from '@backstage/catalog-model';\nimport { VAULT_SECRET_PATH_ANNOTATION } from './constants';\n\n/**\n * Checks if an entity contains the annotation for Vault.\n * @param entity - The entity to check if the annotation exists\n * @returns If the annotation exists or not\n * @public\n */\nexport function isVaultAvailable(entity: Entity): boolean {\n return Boolean(\n entity.metadata.annotations?.hasOwnProperty(VAULT_SECRET_PATH_ANNOTATION),\n );\n}\n"],"names":[],"mappings":";;AAwBO,SAAS,iBAAiB,MAAyB,EAAA;AACxD,EAAO,OAAA,OAAA;AAAA,IACL,MAAO,CAAA,QAAA,CAAS,WAAa,EAAA,cAAA,CAAe,4BAA4B,CAAA;AAAA,GAC1E,CAAA;AACF;;;;"}
1
+ {"version":3,"file":"conditions.esm.js","sources":["../src/conditions.ts"],"sourcesContent":["/*\n * Copyright 2020 The Backstage Authors\n *\n * Licensed under the Apache License, Version 2.0 (the \"License\");\n * you may not use this file except in compliance with the License.\n * You may obtain a copy of the License at\n *\n * http://www.apache.org/licenses/LICENSE-2.0\n *\n * Unless required by applicable law or agreed to in writing, software\n * distributed under the License is distributed on an \"AS IS\" BASIS,\n * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\n * See the License for the specific language governing permissions and\n * limitations under the License.\n */\nimport { Entity } from '@backstage/catalog-model';\nimport { VAULT_SECRET_PATH_ANNOTATION } from './constants';\n\n/**\n * Checks if an entity contains the annotation for Vault.\n * @param entity - The entity to check if the annotation exists\n * @returns If the annotation exists or not\n * @public\n */\nexport function isVaultAvailable(entity: Entity): boolean {\n return Boolean(\n entity.metadata.annotations?.hasOwnProperty(VAULT_SECRET_PATH_ANNOTATION),\n );\n}\n"],"names":[],"mappings":";;AAwBO,SAAS,iBAAiB,MAAyB,EAAA;AACxD,EAAO,OAAA,OAAA;AAAA,IACL,MAAO,CAAA,QAAA,CAAS,WAAa,EAAA,cAAA,CAAe,4BAA4B;AAAA,GAC1E;AACF;;;;"}
@@ -1 +1 @@
1
- {"version":3,"file":"constants.esm.js","sources":["../src/constants.ts"],"sourcesContent":["/*\n * Copyright 2020 The Backstage Authors\n *\n * Licensed under the Apache License, Version 2.0 (the \"License\");\n * you may not use this file except in compliance with the License.\n * You may obtain a copy of the License at\n *\n * http://www.apache.org/licenses/LICENSE-2.0\n *\n * Unless required by applicable law or agreed to in writing, software\n * distributed under the License is distributed on an \"AS IS\" BASIS,\n * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\n * See the License for the specific language governing permissions and\n * limitations under the License.\n */\n\n/**\n * @public\n */\nexport const VAULT_SECRET_ENGINE_ANNOTATION = 'vault.io/secrets-engine';\n/**\n * @public\n */\nexport const VAULT_SECRET_PATH_ANNOTATION = 'vault.io/secrets-path';\n"],"names":[],"mappings":"AAmBO,MAAM,8BAAiC,GAAA,0BAAA;AAIvC,MAAM,4BAA+B,GAAA;;;;"}
1
+ {"version":3,"file":"constants.esm.js","sources":["../src/constants.ts"],"sourcesContent":["/*\n * Copyright 2020 The Backstage Authors\n *\n * Licensed under the Apache License, Version 2.0 (the \"License\");\n * you may not use this file except in compliance with the License.\n * You may obtain a copy of the License at\n *\n * http://www.apache.org/licenses/LICENSE-2.0\n *\n * Unless required by applicable law or agreed to in writing, software\n * distributed under the License is distributed on an \"AS IS\" BASIS,\n * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\n * See the License for the specific language governing permissions and\n * limitations under the License.\n */\n\n/**\n * @public\n */\nexport const VAULT_SECRET_ENGINE_ANNOTATION = 'vault.io/secrets-engine';\n/**\n * @public\n */\nexport const VAULT_SECRET_PATH_ANNOTATION = 'vault.io/secrets-path';\n"],"names":[],"mappings":"AAmBO,MAAM,8BAAiC,GAAA;AAIvC,MAAM,4BAA+B,GAAA;;;;"}
@@ -1 +1 @@
1
- {"version":3,"file":"plugin.esm.js","sources":["../src/plugin.ts"],"sourcesContent":["/*\n * Copyright 2020 The Backstage Authors\n *\n * Licensed under the Apache License, Version 2.0 (the \"License\");\n * you may not use this file except in compliance with the License.\n * You may obtain a copy of the License at\n *\n * http://www.apache.org/licenses/LICENSE-2.0\n *\n * Unless required by applicable law or agreed to in writing, software\n * distributed under the License is distributed on an \"AS IS\" BASIS,\n * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\n * See the License for the specific language governing permissions and\n * limitations under the License.\n */\nimport {\n createApiFactory,\n createComponentExtension,\n createPlugin,\n DiscoveryApi,\n discoveryApiRef,\n FetchApi,\n fetchApiRef,\n} from '@backstage/core-plugin-api';\n\nimport { vaultApiRef, VaultClient } from './api';\n\n/**\n * The vault plugin.\n * @public\n */\nexport const vaultPlugin = createPlugin({\n id: 'vault',\n apis: [\n createApiFactory({\n api: vaultApiRef,\n deps: { discoveryApi: discoveryApiRef, fetchApi: fetchApiRef },\n factory: ({\n discoveryApi,\n fetchApi,\n }: {\n discoveryApi: DiscoveryApi;\n fetchApi: FetchApi;\n }) =>\n new VaultClient({\n discoveryApi,\n fetchApi,\n }),\n }),\n ],\n});\n\n/**\n * Card used to show the list of Vault secrets.\n * @public\n */\nexport const EntityVaultCard = vaultPlugin.provide(\n createComponentExtension({\n name: 'EntityVaultCard',\n component: {\n lazy: () =>\n import('./components/EntityVaultCard').then(m => m.EntityVaultCard),\n },\n }),\n);\n"],"names":[],"mappings":";;;AA+BO,MAAM,cAAc,YAAa,CAAA;AAAA,EACtC,EAAI,EAAA,OAAA;AAAA,EACJ,IAAM,EAAA;AAAA,IACJ,gBAAiB,CAAA;AAAA,MACf,GAAK,EAAA,WAAA;AAAA,MACL,IAAM,EAAA,EAAE,YAAc,EAAA,eAAA,EAAiB,UAAU,WAAY,EAAA;AAAA,MAC7D,SAAS,CAAC;AAAA,QACR,YAAA;AAAA,QACA,QAAA;AAAA,OACF,KAIE,IAAI,WAAY,CAAA;AAAA,QACd,YAAA;AAAA,QACA,QAAA;AAAA,OACD,CAAA;AAAA,KACJ,CAAA;AAAA,GACH;AACF,CAAC,EAAA;AAMM,MAAM,kBAAkB,WAAY,CAAA,OAAA;AAAA,EACzC,wBAAyB,CAAA;AAAA,IACvB,IAAM,EAAA,iBAAA;AAAA,IACN,SAAW,EAAA;AAAA,MACT,IAAA,EAAM,MACJ,OAAO,2CAA8B,EAAE,IAAK,CAAA,CAAA,CAAA,KAAK,EAAE,eAAe,CAAA;AAAA,KACtE;AAAA,GACD,CAAA;AACH;;;;"}
1
+ {"version":3,"file":"plugin.esm.js","sources":["../src/plugin.ts"],"sourcesContent":["/*\n * Copyright 2020 The Backstage Authors\n *\n * Licensed under the Apache License, Version 2.0 (the \"License\");\n * you may not use this file except in compliance with the License.\n * You may obtain a copy of the License at\n *\n * http://www.apache.org/licenses/LICENSE-2.0\n *\n * Unless required by applicable law or agreed to in writing, software\n * distributed under the License is distributed on an \"AS IS\" BASIS,\n * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\n * See the License for the specific language governing permissions and\n * limitations under the License.\n */\nimport {\n createApiFactory,\n createComponentExtension,\n createPlugin,\n DiscoveryApi,\n discoveryApiRef,\n FetchApi,\n fetchApiRef,\n} from '@backstage/core-plugin-api';\n\nimport { vaultApiRef, VaultClient } from './api';\n\n/**\n * The vault plugin.\n * @public\n */\nexport const vaultPlugin = createPlugin({\n id: 'vault',\n apis: [\n createApiFactory({\n api: vaultApiRef,\n deps: { discoveryApi: discoveryApiRef, fetchApi: fetchApiRef },\n factory: ({\n discoveryApi,\n fetchApi,\n }: {\n discoveryApi: DiscoveryApi;\n fetchApi: FetchApi;\n }) =>\n new VaultClient({\n discoveryApi,\n fetchApi,\n }),\n }),\n ],\n});\n\n/**\n * Card used to show the list of Vault secrets.\n * @public\n */\nexport const EntityVaultCard = vaultPlugin.provide(\n createComponentExtension({\n name: 'EntityVaultCard',\n component: {\n lazy: () =>\n import('./components/EntityVaultCard').then(m => m.EntityVaultCard),\n },\n }),\n);\n"],"names":[],"mappings":";;;AA+BO,MAAM,cAAc,YAAa,CAAA;AAAA,EACtC,EAAI,EAAA,OAAA;AAAA,EACJ,IAAM,EAAA;AAAA,IACJ,gBAAiB,CAAA;AAAA,MACf,GAAK,EAAA,WAAA;AAAA,MACL,IAAM,EAAA,EAAE,YAAc,EAAA,eAAA,EAAiB,UAAU,WAAY,EAAA;AAAA,MAC7D,SAAS,CAAC;AAAA,QACR,YAAA;AAAA,QACA;AAAA,OACF,KAIE,IAAI,WAAY,CAAA;AAAA,QACd,YAAA;AAAA,QACA;AAAA,OACD;AAAA,KACJ;AAAA;AAEL,CAAC;AAMM,MAAM,kBAAkB,WAAY,CAAA,OAAA;AAAA,EACzC,wBAAyB,CAAA;AAAA,IACvB,IAAM,EAAA,iBAAA;AAAA,IACN,SAAW,EAAA;AAAA,MACT,IAAA,EAAM,MACJ,OAAO,2CAA8B,EAAE,IAAK,CAAA,CAAA,CAAA,KAAK,EAAE,eAAe;AAAA;AACtE,GACD;AACH;;;;"}
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@backstage-community/plugin-vault",
3
- "version": "0.1.35",
3
+ "version": "0.2.0",
4
4
  "description": "A Backstage plugin that integrates towards Vault",
5
5
  "backstage": {
6
6
  "role": "frontend-plugin",
@@ -43,11 +43,11 @@
43
43
  "test": "backstage-cli package test"
44
44
  },
45
45
  "dependencies": {
46
- "@backstage/catalog-model": "^1.7.0",
47
- "@backstage/core-components": "^0.15.0",
48
- "@backstage/core-plugin-api": "^1.9.4",
49
- "@backstage/errors": "^1.2.4",
50
- "@backstage/plugin-catalog-react": "^1.13.1",
46
+ "@backstage/catalog-model": "^1.7.2",
47
+ "@backstage/core-components": "^0.16.2",
48
+ "@backstage/core-plugin-api": "^1.10.2",
49
+ "@backstage/errors": "^1.2.6",
50
+ "@backstage/plugin-catalog-react": "^1.15.0",
51
51
  "@material-ui/core": "^4.12.2",
52
52
  "@material-ui/icons": "^4.9.1",
53
53
  "@material-ui/lab": "4.0.0-alpha.61",
@@ -55,10 +55,10 @@
55
55
  "react-use": "^17.2.4"
56
56
  },
57
57
  "devDependencies": {
58
- "@backstage/cli": "^0.27.1",
59
- "@backstage/core-app-api": "^1.15.0",
60
- "@backstage/dev-utils": "^1.1.1",
61
- "@backstage/test-utils": "^1.6.0",
58
+ "@backstage/cli": "^0.29.4",
59
+ "@backstage/core-app-api": "^1.15.3",
60
+ "@backstage/dev-utils": "^1.1.5",
61
+ "@backstage/test-utils": "^1.7.3",
62
62
  "@testing-library/dom": "^10.0.0",
63
63
  "@testing-library/jest-dom": "^6.0.0",
64
64
  "@testing-library/react": "^15.0.0",
@@ -74,5 +74,12 @@
74
74
  "react-dom": "^16.13.1 || ^17.0.0 || ^18.0.0",
75
75
  "react-router-dom": "6.0.0-beta.0 || ^6.3.0"
76
76
  },
77
+ "typesVersions": {
78
+ "*": {
79
+ "index": [
80
+ "dist/index.d.ts"
81
+ ]
82
+ }
83
+ },
77
84
  "module": "./dist/index.esm.js"
78
85
  }