The current internal postgres password are shared through multiple secrets. For internal there is no way to override an existing secret
https://github.com/goharbor/harbor-helm/blob/main/templates/database/database-ss.yaml#L97
envFrom: - secretRef: name: "{{ template "harbor.database" . }}"
Add a logic to override the password.