|
|
@@ -227,6 +227,13 @@ func (sm *ProviderGCP) SetSecret(ctx context.Context, payload []byte, remoteRef
|
|
|
createSecretReq := &secretmanagerpb.CreateSecretRequest{
|
|
|
Parent: fmt.Sprintf("projects/%s", sm.projectID),
|
|
|
SecretId: remoteRef.GetRemoteKey(),
|
|
|
+ Secret: &secretmanagerpb.Secret{
|
|
|
+ Replication: &secretmanagerpb.Replication{
|
|
|
+ Replication: &secretmanagerpb.Replication_Automatic_{
|
|
|
+ Automatic: &secretmanagerpb.Replication_Automatic{},
|
|
|
+ },
|
|
|
+ },
|
|
|
+ },
|
|
|
}
|
|
|
|
|
|
secret, err := sm.SecretManagerClient.CreateSecret(ctx, createSecretReq)
|