# LogtoResource.WithSecretVault

- Module: [CommunityToolkit.Aspire.Hosting.Logto](/reference/api/go/communitytoolkit.aspire.hosting.logto.md)
- Defined on: [LogtoResource](/reference/api/go/communitytoolkit.aspire.hosting.logto/logtoresource.md)
- Version: `13.6.1`
- Kind: `method`

Configures the Logto resource to use a secret vault with the specified key encryption key (KEK).

## Definition

```go
type LogtoResource interface {
    // ... omitted for brevity
    WithSecretVault(secretVaultKek string) LogtoResource
}
```

## Signature

```go
WithSecretVault(secretVaultKek string) LogtoResource
```

## Parameters

- `secretVaultKek` (`string`) -- The base64-encoded key encryption key (KEK) for the secret vault.

## Returns

[`LogtoResource`](/reference/api/go/communitytoolkit.aspire.hosting.logto/logtoresource.md) -- The resource builder for the configured Logto resource.

Returns a handle; failures surface later via `Err()`.

## Defined on

- [LogtoResource](/reference/api/go/communitytoolkit.aspire.hosting.logto/logtoresource.md) -- `handle`
