Use supported OpsProof runtime stores
Homelab Main / validate (push) Failing after 1m27s Details
Homelab Main / running-update (push) Has been skipped Details
Homelab Main / debian-ops (push) Has been skipped Details

This commit is contained in:
juvenal.diaz 2026-12-04 15:24:48 -06:00
parent c1f3cadb6f
commit 66abbd29b8
3 changed files with 11 additions and 5 deletions

View File

@ -43,7 +43,9 @@ migrations, installs a hardened systemd unit, and verifies `/up`. Database
credentials are generated once and retained in the private OpsProof data
directory. Jeannie resolves the database account's UID and GID from the image
before preparing the bind mount, so it does not depend on a host-specific
numeric account. It does not replace Debian's system Go.
numeric account. The single OpsProof process uses Laravel Go's supported
in-memory cache and session stores; durable application records remain in
PostgreSQL. It does not replace Debian's system Go.
## Security boundary

View File

@ -5867,8 +5867,8 @@ COMPOSE_EOF
"SERVER_HOST=${bind_ip}" \
"SERVER_PORT=${http_port}" \
"DATABASE_URL=${database_url}" \
"SESSION_DRIVER=file" \
"CACHE_STORE=file" \
"SESSION_DRIVER=memory" \
"CACHE_STORE=memory" \
"QUEUE_CONNECTION=sync" \
"LOG_CHANNEL=stderr" \
"LOG_LEVEL=info" >"${install_dir}/.env"
@ -5878,8 +5878,8 @@ COMPOSE_EOF
APP_ENV=production \
APP_KEY="${app_key}" \
DATABASE_URL="${database_url}" \
CACHE_STORE=file \
SESSION_DRIVER=file \
CACHE_STORE=memory \
SESSION_DRIVER=memory \
QUEUE_CONNECTION=sync \
"${release_dir}/opsproof" migrate --force

View File

@ -64,6 +64,10 @@ class OpsProofPipelineTests(unittest.TestCase):
pipeline,
)
self.assertIn('DATABASE_URL="${database_url}"', pipeline)
self.assertIn('"SESSION_DRIVER=memory"', pipeline)
self.assertIn('"CACHE_STORE=memory"', pipeline)
self.assertNotIn('"SESSION_DRIVER=file"', pipeline)
self.assertNotIn('"CACHE_STORE=file"', pipeline)
self.assertIn('"${release_dir}/opsproof" migrate --force', pipeline)
self.assertIn(
'postgres_uid="$(sudo docker run --rm --entrypoint id "${postgres_image}" -u postgres)"',