You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: blog/2025-02-17-sftp/index.md
+51Lines changed: 51 additions & 0 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -240,6 +240,57 @@ With this, a folder with the Helm Chart dependencies called `charts` and a `Char
240
240
241
241
A folder called **templates** is also needed. There will be created both `externalsecret.yaml` and `secretstore.yaml`. This will allow us to manage the secrets we have previously stored in our **AWS Secret Manager**.
242
242
243
+
244
+
## postgresql
245
+
It's necessary to configure our postgres. To do so, access to the Postgres database is done through the `sftpgo-postgresql` secret.
GRANT ALL PRIVILEGES ON DATABASE "sftpgo.db" TO sftpgo;
282
+
GRANT USAGE, CREATE ON SCHEMA public TO sftpgo;
283
+
ALTER SCHEMA public OWNER TO sftpgo;
284
+
exit
285
+
```
286
+
287
+
</br>
288
+
289
+
With this we would already have the necessary configuration inside postgres.
290
+
> **Remember**: Each time the password and user are changed in the secret manager, we must (in addition to killing it in argocd) perform the above steps again inside postgres.
291
+
292
+
<br>
293
+
243
294
### secretstore.yaml
244
295
245
296
The secret store is necessary to be able to manage our secrets. Its code would look something like the following:
0 commit comments