Skip to content

Commit bf60423

Browse files
committed
test: prove database passwords avoid persisted files
1 parent 0f81e60 commit bf60423

1 file changed

Lines changed: 1 addition & 0 deletions

File tree

tests/external-mysql-runtime-service.test.ts

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -150,6 +150,7 @@ try {
150150
const connectorResponse = await server.playground.run({ code: "<?php echo getenv('DB_PASSWORD');" })
151151
assert.equal(connectorResponse.text, generatedPassword, "generated password reaches PHP through the ephemeral run environment")
152152
assert.equal(bootstrapRuns[0]?.env?.DB_PASSWORD, generatedPassword)
153+
assert.equal(JSON.stringify(bootstrapCalls).includes(generatedPassword), false, "Playground startup options do not serialize the generated password")
153154
await server[Symbol.asyncDispose]()
154155
const mounts = bootstrapCalls[0]?.["mount-before-install"] ?? []
155156
const autoPrependPath = mounts.find((mount) => mount.vfsPath === "/internal/shared/wp-codebox-auto-prepend.php")?.hostPath

0 commit comments

Comments
 (0)