Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
45 changes: 45 additions & 0 deletions secretstores/alicloud/parameterstore/metadata.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,45 @@
# yaml-language-server: $schema=../../../component-metadata-schema.json
schemaVersion: v1
type: secretstores
name: alicloud.parameterstore
version: v1
status: alpha
title: "AliCloud OSS Parameter Store"
urls:
- title: Reference
url: https://docs.dapr.io/reference/components-reference/supported-secret-stores/alicloud-oss-parameter-store/
authenticationProfiles:
- title: "Access Key Authentication"
description: "Authenticate using AliCloud access key and secret."
metadata:
- name: regionId
type: string
required: true
description: The AliCloud region ID.
example: "cn-hangzhou"
- name: accessKeyId
type: string
required: true
description: The AliCloud access key ID.
example: "access-key-id"
- name: accessKeySecret
type: string
required: true
description: The AliCloud access key secret.
example: "access-key-secret"
- name: securityToken
type: string
required: false
description: The AliCloud security token for temporary credentials.
example: "security-token"
metadata:
- name: version_id
type: string
required: false
description: The version ID of the parameter to retrieve. If not specified, the latest version is used.
example: "1"
- name: path
type: string
required: false
description: The path prefix for bulk operations. If not specified, root path (/) is used.
example: "/myapp/"
10 changes: 5 additions & 5 deletions secretstores/huaweicloud/csms/csms.go
Original file line number Diff line number Diff line change
Expand Up @@ -48,9 +48,9 @@ type csmsSecretStore struct {
}

type CsmsSecretStoreMetadata struct {
Region string
AccessKey string
SecretAccessKey string
Region string `json:"region"`
AccessKey string `json:"accessKey"`
SecretAccessKey string `json:"secretAccessKey"`
}

// NewHuaweiCsmsSecretStore returns a new Huawei csms secret store.
Expand Down Expand Up @@ -114,7 +114,7 @@ func (c *csmsSecretStore) BulkGetSecret(ctx context.Context, req secretstores.Bu
secret, err := c.GetSecret(ctx, secretstores.GetSecretRequest{
Name: secretName,
Metadata: map[string]string{
versionID: latestVersion,
versionID: latestVersion, // TODO: make this configurable
},
})
if err != nil {
Expand All @@ -130,7 +130,7 @@ func (c *csmsSecretStore) BulkGetSecret(ctx context.Context, req secretstores.Bu
// Get all secret names recursively.
func (c *csmsSecretStore) getSecretNames(ctx context.Context, marker *string) ([]string, error) {
request := &model.ListSecretsRequest{}
limit := pageLimit
limit := pageLimit // TODO: make this configurable
request.Limit = &limit
request.Marker = marker

Expand Down
35 changes: 35 additions & 0 deletions secretstores/huaweicloud/csms/metadata.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,35 @@
# yaml-language-server: $schema=../../../component-metadata-schema.json
schemaVersion: v1
type: secretstores
name: huaweicloud.csms
version: v1
status: alpha
title: "HuaweiCloud CSMS"
urls:
- title: Reference
url: https://docs.dapr.io/reference/components-reference/supported-secret-stores/huaweicloud-csms/
authenticationProfiles:
- title: "Access Key Authentication"
description: "Authenticate using HuaweiCloud access key and secret."
metadata:
- name: region
type: string
required: true
description: The HuaweiCloud region.
example: "cn-north-4"
- name: accessKey
type: string
required: true
description: The HuaweiCloud access key.
example: "access-key"
- name: secretAccessKey
type: string
required: true
description: The HuaweiCloud secret access key.
example: "secret-access-key"
metadata:
- name: version_id
type: string
required: false
description: The version ID of the secret to retrieve. If not specified, the latest version is used.
example: "1"
6 changes: 3 additions & 3 deletions secretstores/local/file/filestore.go
Original file line number Diff line number Diff line change
Expand Up @@ -31,9 +31,9 @@ import (
)

type localSecretStoreMetaData struct {
SecretsFile string
NestedSeparator string
MultiValued bool
SecretsFile string `json:"secretsFile"`
NestedSeparator string `json:"nestedSeparator"`
MultiValued bool `json:"multiValued"`
}

var _ secretstores.SecretStore = (*localSecretStore)(nil)
Expand Down
29 changes: 29 additions & 0 deletions secretstores/local/file/metadata.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,29 @@
# yaml-language-server: $schema=../../../component-metadata-schema.json
schemaVersion: v1
type: secretstores
name: local.file
version: v1
status: stable
title: "Local File Secret Store"
description: "Read secrets from a local JSON file for local development."
urls:
- title: Reference
url: https://docs.dapr.io/reference/components-reference/supported-secret-stores/file-secret-store/
metadata:
- name: secretsFile
type: string
required: true
description: Path to the JSON file containing secrets.
example: "secrets.json"
- name: nestedSeparator
type: string
required: false
description: Separator used for nested keys in the JSON file.
example: ":"
default: ":"
- name: multiValued
type: bool
required: false
description: If true, enables multiple key-values per secret feature.
example: false
default: false
40 changes: 40 additions & 0 deletions secretstores/tencentcloud/ssm/metadata.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,40 @@
# yaml-language-server: $schema=../../../component-metadata-schema.json
schemaVersion: v1
type: secretstores
name: tencentcloud.ssm
version: v1
status: alpha
title: "TencentCloud Secret Manager"
urls:
- title: Reference
url: https://docs.dapr.io/reference/components-reference/supported-secret-stores/
authenticationProfiles:
- title: "Secret Key Authentication"
description: "Authenticate using TencentCloud secret ID and key."
metadata:
- name: secretId
type: string
required: true
description: The TencentCloud secret ID.
example: "secret-id"
- name: secretKey
type: string
required: true
description: The TencentCloud secret key.
example: "secret-key"
- name: token
type: string
required: false
description: The TencentCloud temporary token for temporary credentials.
example: "token"
- name: region
type: string
required: true
description: The TencentCloud region.
example: "ap-guangzhou"
metadata:
- name: VersionID
type: string
required: false
description: The version ID of the secret to retrieve.
example: "1"
9 changes: 5 additions & 4 deletions secretstores/tencentcloud/ssm/ssm.go
Original file line number Diff line number Diff line change
Expand Up @@ -30,6 +30,7 @@ import (
)

const (
// TODO: lowercase these and add to metadata struct eventually
VersionID = "VersionID"
RequestID = "RequestID"
ValueType = "SecretValueType"
Expand All @@ -56,10 +57,10 @@ type ssmSecretStore struct {
}

type SsmMetadata struct {
SecretID string
SecretKey string
Token string
Region string
SecretID string `json:"secretId"`
SecretKey string `json:"secretKey"`
Token string `json:"token"`
Region string `json:"region"`
}

// NewSSM returns a new TencentCloud ssm secret store.
Expand Down