> For the complete documentation index, see [llms.txt](https://titan-core.gitbook.io/titan-core/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://titan-core.gitbook.io/titan-core/resources/password_secret.md).

# PasswordSecret

[Snowflake Documentation](https://docs.snowflake.com/en/sql-reference/sql/create-secret)

A Secret defines a set of sensitive data that can be used for authentication or other purposes. This class defines a password secret.

## Examples

### Python

```python
secret = PasswordSecret(
    name="some_secret",
    username="some_username",
    password="some_password",
    comment="some_comment",
    owner="SYSADMIN",
)
```

### YAML

```yaml
secrets:
  - name: some_secret
    secret_type: PASSWORD
    username: some_username
    password: some_password
    comment: some_comment
    owner: SYSADMIN
```

## Fields

* `name` (string, required) - The name of the secret.
* `username` (string) - The username for the secret.
* `password` (string) - The password for the secret.
* `comment` (string) - A comment for the secret.
* `owner` (string or [Role](/titan-core/resources/role.md)) - The owner of the secret. Defaults to SYSADMIN.
