Skip to content

Commit a47da8e

Browse files
authored
feat: crypto comp registration fixes (#3954)
Signed-off-by: Samantha Coyle <[email protected]>
1 parent e61effe commit a47da8e

File tree

4 files changed

+105
-0
lines changed

4 files changed

+105
-0
lines changed
Lines changed: 26 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,26 @@
1+
# yaml-language-server: $schema=../../../component-metadata-schema.json
2+
schemaVersion: v1
3+
type: cryptography
4+
name: azure.keyvault
5+
version: v1
6+
status: alpha
7+
title: "Azure Key Vault"
8+
urls:
9+
- title: Reference
10+
url: https://docs.dapr.io/reference/components-reference/supported-cryptography/azure-key-vault/
11+
builtinAuthenticationProfiles:
12+
- name: "azuread"
13+
metadata:
14+
- name: vaultName
15+
type: string
16+
required: true
17+
description: |
18+
Name of the Azure Key Vault resource.
19+
example: "key-vault"
20+
- name: requestTimeout
21+
type: duration
22+
required: false
23+
description: |
24+
Timeout for network requests, as a Go duration string.
25+
example: "30s"
26+
default: "30s"

crypto/jwks/metadata.yaml

Lines changed: 36 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,36 @@
1+
# yaml-language-server: $schema=../../../component-metadata-schema.json
2+
schemaVersion: v1
3+
type: cryptography
4+
name: jwks
5+
version: v1
6+
status: alpha
7+
title: "JWKS"
8+
urls:
9+
- title: Reference
10+
url: https://docs.dapr.io/reference/components-reference/supported-cryptography/json-web-key-sets/
11+
metadata:
12+
- name: jwks
13+
type: string
14+
required: true
15+
description: |
16+
The JWKS to use. Can be one of:
17+
- The actual JWKS as a JSON-encoded string (optionally encoded with Base64-standard).
18+
- A URL to a HTTP(S) endpoint returning the JWKS.
19+
- A path to a local file containing the JWKS.
20+
example: "https://example.com/.well-known/jwks.json"
21+
- name: requestTimeout
22+
type: duration
23+
required: false
24+
description: |
25+
Timeout for network requests, as a Go duration string.
26+
example: "30s"
27+
default: "30s"
28+
- name: minRefreshInterval
29+
type: duration
30+
required: false
31+
description: |
32+
Minimum interval before the JWKS is refreshed, as a Go duration string.
33+
Only applies when the JWKS is fetched from a HTTP(S) URL.
34+
example: "10m"
35+
default: "10m"
36+
Lines changed: 25 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,25 @@
1+
# yaml-language-server: $schema=../../../component-metadata-schema.json
2+
schemaVersion: v1
3+
type: cryptography
4+
name: kubernetes.secrets
5+
version: v1
6+
status: alpha
7+
title: "Kubernetes Secrets"
8+
urls:
9+
- title: Reference
10+
url: https://docs.dapr.io/reference/components-reference/supported-cryptography/kubernetes-secrets/
11+
metadata:
12+
- name: defaultNamespace
13+
type: string
14+
required: false
15+
description: |
16+
Default namespace to retrieve secrets from.
17+
If unset, the namespace must be specified for each key, as `namespace/secretName/key`.
18+
example: "default"
19+
- name: kubeconfigPath
20+
type: string
21+
required: false
22+
description: |
23+
Path to a kubeconfig file.
24+
If empty, uses the default values.
25+
example: "/path/to/kubeconfig"

crypto/localstorage/metadata.yaml

Lines changed: 18 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,18 @@
1+
# yaml-language-server: $schema=../../../component-metadata-schema.json
2+
schemaVersion: v1
3+
type: cryptography
4+
name: localstorage
5+
version: v1
6+
status: alpha
7+
title: "Local Storage"
8+
urls:
9+
- title: Reference
10+
url: https://docs.dapr.io/reference/components-reference/supported-cryptography/local-storage/
11+
metadata:
12+
- name: path
13+
type: string
14+
required: true
15+
description: |
16+
Path to a local folder where keys are stored.
17+
Keys are loaded from PEM or JSON (each containing an individual JWK) files from this folder.
18+
example: "/path/to/keys"

0 commit comments

Comments
 (0)