# How to set value of secret for connection to database

**URL:** <https://discuss.konghq.com/t/how-to-set-value-of-secret-for-connection-to-database/13713>\
**Category:** Questions\
**Tags:** kubernetes, kong-gateway\
**Created:** [September 4, 2025, 7:45am UTC](https://discuss.konghq.com/t/how-to-set-value-of-secret-for-connection-to-database/13713 "2025-09-04T07:45:05Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![edo\_nick](https://avatars.discourse-cdn.com/v4/letter/e/f04885/32.png) [@edo\_nick](https://discuss.konghq.com/u/edo_nick)\
**Post date:** [September 4, 2025, 7:45am UTC](https://discuss.konghq.com/t/how-to-set-value-of-secret-for-connection-to-database/13713/1 "2025-09-04T07:45:05Z")

</div>

Hi, I want to

`helm install kong2 kong/kong --values ./values_hybrid.yaml -n kong`

and I want secure connection credentials in scret.  
There are these parameter in value.yaml

> ```auto
> # Configure the database connection.
> database: "postgres"
> pg_host: "your-existing-postgres-host"
> pg_port: "5432"
> pg_user: "your-postgres-user"
> pg_password: "your-postgres-password"
> pg_database: "kong"
> 
> ```

but how do I set secret for connection to database?
