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

documentation about postgres mode #1175

Open
v0lkan opened this issue Oct 15, 2024 · 0 comments
Open

documentation about postgres mode #1175

v0lkan opened this issue Oct 15, 2024 · 0 comments
Assignees
Labels
documentation Improvements or additions to documentation v0.29.0-candidate

Comments

@v0lkan
Copy link
Contributor

v0lkan commented Oct 15, 2024

// For postgres backing store, VSecM Safe should keep its initial config
// in memory until the database is there; and then it should save it to
// the database, too. -> Document this too!

^ plus other things. -- a mini recording would be useful too; especially showcasing recent changes

  1. create postgres-enabled manifests
  2. deploy everyting
  3. configure postgres
  4. run tests
  5. show db records.

more

helm install my-postgres bitnami/postgresql

CREATE TABLE "vsecm-secrets" (name TEXT PRIMARY KEY, data TEXT);

kubectl run my-postgres-postgresql-client --rm --tty -i --restart='Never' --namespace default --image docker.io/bitnami/postgresql:17.0.0-debian-12-r1 --env="PGPASSWORD=$POSTGRES_PASSWORD" \
  --command -- psql --host my-postgres-postgresql -U postgres -d postgres -p 5432

k exec $S -n vsecm-system -- safe
-w vsecm-safe
-s '{"config":{"backingStore":"postgres","dataSourceName":"postgresql://postgres:[email protected]:5432/postgres?sslmode=disable"}}'

2024/10/12 17:31:01 [WARN] iBCfGnni TODO: fetch from postgres store

@v0lkan v0lkan self-assigned this Oct 15, 2024
@v0lkan v0lkan added documentation Improvements or additions to documentation v0.29.0-candidate labels Oct 15, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
documentation Improvements or additions to documentation v0.29.0-candidate
Projects
None yet
Development

No branches or pull requests

1 participant