From 66abbd29b87cad295fc23cb22fa8203d55da5d2f Mon Sep 17 00:00:00 2001 From: "juvenal.diaz" Date: Fri, 4 Dec 2026 15:24:48 -0600 Subject: [PATCH] Use supported OpsProof runtime stores --- apps/opsproof/README.md | 4 +++- lib/jeannie/pipeline.sh | 8 ++++---- tests/jeannie/test_privacy_services_pipeline.py | 4 ++++ 3 files changed, 11 insertions(+), 5 deletions(-) diff --git a/apps/opsproof/README.md b/apps/opsproof/README.md index 6966845..4b18384 100644 --- a/apps/opsproof/README.md +++ b/apps/opsproof/README.md @@ -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 diff --git a/lib/jeannie/pipeline.sh b/lib/jeannie/pipeline.sh index 2d9458b..aeb8609 100644 --- a/lib/jeannie/pipeline.sh +++ b/lib/jeannie/pipeline.sh @@ -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 diff --git a/tests/jeannie/test_privacy_services_pipeline.py b/tests/jeannie/test_privacy_services_pipeline.py index a2d4c76..766515b 100644 --- a/tests/jeannie/test_privacy_services_pipeline.py +++ b/tests/jeannie/test_privacy_services_pipeline.py @@ -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)"',