Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[pgadmin4] use certificates from different location #247

Open
slavb18 opened this issue Mar 19, 2024 · 2 comments
Open

[pgadmin4] use certificates from different location #247

slavb18 opened this issue Mar 19, 2024 · 2 comments

Comments

@slavb18
Copy link

slavb18 commented Mar 19, 2024

I am trying to use autocert certificates in database connections

Currently certificates stored in /var/run/autocert.step.sm on pod

But pgadmin see files only in /var/lib/pgadmin/storage/{server} folder.

Here are pod mounts:

   /var/lib/pgadmin from pgadmin-data (rw)                                                                                                                       │
   /var/run/autocert.step.sm from certs (ro)

How can I use certificates from /var/run/autocert.step.sm in database connectons without copying them to /var/lib/pgadmin/storage/{server} folder?

@rowanruseler
Copy link
Owner

Hi @slavb18, thank you for creating an issue.

Would this part of the values.yaml help you?:

extraSecretMounts: []
# - name: pgpassfile
# secret: pgpassfile
# subPath: pgpassfile
# mountPath: "/var/lib/pgadmin/storage/pgadmin/file.pgpass"
# readOnly: true

You can modify the values, specifically the mountPath in your case.

@slavb18
Copy link
Author

slavb18 commented Dec 2, 2024

Hi @slavb18, thank you for creating an issue.

Would this part of the values.yaml help you?:

extraSecretMounts: []
# - name: pgpassfile
# secret: pgpassfile
# subPath: pgpassfile
# mountPath: "/var/lib/pgadmin/storage/pgadmin/file.pgpass"
# readOnly: true

You can modify the values, specifically the mountPath in your case.

Thank you, thisis for static secrets, unfortunately I cannot modify mount point in autocert.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants