19 Commits

Author SHA1 Message Date
Ludovic Vielle
5cff72ce5b Add Parameter Store to bootstrap resolver
probod-bootstrap could only resolve aws:// Secrets Manager refs.
Add awsps:// for SSM Parameter Store (GetParameter with decryption)
and awssm:// as an explicit Secrets Manager prefix. Keep aws:// for
backward compatibility. Values are cached per run per backend.
Update Helm, .env.example, and probod-bootstrap changelog.

Signed-off-by: Ludovic Vielle <ludovic@probo.com>
2026-06-29 14:39:13 +02:00
Ludovic Vielle
2b8f6f5b3b Add Secrets Manager resolution to probod-bootstrap
Introduce a Resolver that owns env lookup and typed parsing for
probod-bootstrap. Env values prefixed with aws://<secret-id> are
fetched from AWS Secrets Manager (plaintext SecretString); each
secret ID is cached per run. Builder now takes a Resolver only.

Prefix every probod-bootstrap input with PROBOD_ so bootstrap config
does not collide with unrelated process environment (for example
AWS_* used by other tooling). Secrets Manager authentication uses
the standard AWS SDK default chain (AWS_REGION, IAM role, profile);
PROBOD_AWS_* vars configure S3 in the generated config only.

Update Helm deployment env names, GNUmakefile dev-config, Lima
provision, e2e testutil, compose.prod.yaml, and docs.

Deployments must rename bootstrap env vars to PROBOD_* (e.g.
AUTH_COOKIE_SECRET → PROBOD_AUTH_COOKIE_SECRET).

BREAKING CHANGE: all env vars are now prefixed by `PROBOD_`.

Signed-off-by: Ludovic Vielle <ludovic@probo.com>
2026-06-24 20:24:53 +02:00
Bryan Frimin
9237ad8ce2 Fix entrypoint to regenerate config when env vars are updated
When PROBOD_ENCRYPTION_KEY is set, always run probod-bootstrap to regenerate
the config file. This ensures that updated environment variables take effect
even when a stale config file exists on a persistent volume (e.g., PVC).
Previously, an existing config file would be reused unconditionally, causing
env var changes to be ignored on container restart.

Signed-off-by: Bryan Frimin <bryan@getprobo.com>
2026-03-18 19:12:06 +01:00
Bryan Frimin
63bf983e59 Refactor entrypoint
Signed-off-by: Bryan Frimin <bryan@getprobo.com>
2026-03-06 12:11:12 +01:00
Aurélien Sibiril
8e728f3373 fix: add trust-center config section to entrypoint.sh
Signed-off-by: Aurélien Sibiril <aureliensibiril@users.noreply.github.com>
Signed-off-by: Sacha Al Himdani <sacha@getprobo.com>
2026-03-03 17:19:03 +01:00
Zain Ahmad Khan
a05ba46f82 S3 Storage Path Style Fix
Signed-off-by: Zain Ahmad Khan <niazi_zain@hotmail.com>

AWS_USE_PATH_STYLE for docker had a code missing in entrypoint.sh which If not provided doesn't let us use minio or any other Storage with Probo Docker.
2026-01-27 17:48:43 +04:00
pwnslinger
2dca209959 fix entrypoint to set email passwd/username
Signed-off-by: pwnslinger <mahmadi@sorenhq.com>
Signed-off-by: Bryan Frimin <bryan@getprobo.com>
2025-11-26 08:41:40 +01:00
pwnslinger
8714a5902b Fix: Correct SAML config path in entrypoint script
- Fix entrypoint.sh to place SAML config under auth.saml instead of root level,
  resolving "SP certificate and private key are not configured" error

Fixes #541

Signed-off-by: pwnslinger <mahmadi@sorenhq.com>
Signed-off-by: Bryan Frimin <bryan@getprobo.com>
2025-11-20 13:48:00 +01:00
Bryan Frimin
f8b33fa451 Fix ca-cert-bundle entrypoint.sh
Signed-off-by: Bryan Frimin <bryan@getprobo.com>
2025-11-14 20:15:17 +01:00
Bryan Frimin
f573e639ac Fix missing AUTH_COOKIE_SECURE implementation
Signed-off-by: Bryan Frimin <bryan@getprobo.com>
2025-11-14 12:46:34 +01:00
Bryan Frimin
e1a244e0ca Fix broken pipeline
Signed-off-by: Bryan Frimin <bryan@getprobo.com>
2025-11-14 11:54:31 +01:00
Bryan Frimin
0b2420b6b8 Fix support PostgreSQL CA bundle in Helm charts with file path option
Signed-off-by: Bryan Frimin <bryan@getprobo.com>
2025-11-14 11:12:15 +01:00
Bryan Frimin
80349a3b3b Add support for PostgreSQL CA bundle from local file
Add PG_CA_BUNDLE_PATH environment variable to load PostgreSQL TLS CA
certificates from a file path. The bundle is read at startup and injected
into the generated configuration file, enabling secure connections to
PostgreSQL instances with custom CA certificates.

Signed-off-by: Bryan Frimin <bryan@getprobo.com>
2025-11-13 23:34:13 +01:00
Thomas Stocker
9adc975369 feat: update entrypoint to autogenerate SAML certificate and private key
Signed-off-by: Thomas Stocker <thomas.stocker.pro@gmail.com>
2025-11-13 21:24:13 +01:00
Thomas Stocker
53965631c8 fix: cert printing config issue
Signed-off-by: Thomas Stocker <thomas.stocker.pro@gmail.com>
2025-11-13 21:24:13 +01:00
Thomas Stocker
4638c72a11 feat: add saml config only if one env var is set
Signed-off-by: Thomas Stocker <thomas.stocker.pro@gmail.com>
2025-11-13 21:24:12 +01:00
Thomas Stocker
5b24292198 feat: add SAML config generation in entrypoint
Signed-off-by: Thomas Stocker <thomas.stocker.pro@gmail.com>
2025-11-13 21:24:12 +01:00
Bryan Frimin
74a005ba7f Update documentation
Signed-off-by: Bryan Frimin <bryan@getprobo.com>
2025-10-31 16:01:11 +01:00
Thomas Stocker
4bf5343143 feat: add cfg generation on docker run using ENV vars
Signed-off-by: Thomas Stocker <thomas.stocker.pro@gmail.com>
2025-10-31 15:58:25 +01:00