|
@@ -51,6 +51,8 @@ final class TwigViewTest extends TestCase
|
|
|
'schemaVersion' => 3,
|
|
'schemaVersion' => 3,
|
|
|
'dbPath' => '/tmp/x',
|
|
'dbPath' => '/tmp/x',
|
|
|
'appEnv' => 'production',
|
|
'appEnv' => 'production',
|
|
|
|
|
+ 'appVersion' => '0.0.0-test',
|
|
|
|
|
+ 'appCreator' => 'Test Creator',
|
|
|
'oidcConfigured' => false,
|
|
'oidcConfigured' => false,
|
|
|
'localAdminEnabled' => true,
|
|
'localAdminEnabled' => true,
|
|
|
'authError' => false,
|
|
'authError' => false,
|
|
@@ -80,6 +82,8 @@ final class TwigViewTest extends TestCase
|
|
|
'schemaVersion' => 3,
|
|
'schemaVersion' => 3,
|
|
|
'dbPath' => '/tmp/x',
|
|
'dbPath' => '/tmp/x',
|
|
|
'appEnv' => 'production',
|
|
'appEnv' => 'production',
|
|
|
|
|
+ 'appVersion' => '0.0.0-test',
|
|
|
|
|
+ 'appCreator' => 'Test Creator',
|
|
|
'oidcConfigured' => false,
|
|
'oidcConfigured' => false,
|
|
|
'localAdminEnabled' => true,
|
|
'localAdminEnabled' => true,
|
|
|
'authError' => false,
|
|
'authError' => false,
|
|
@@ -105,6 +109,8 @@ final class TwigViewTest extends TestCase
|
|
|
'schemaVersion' => 3,
|
|
'schemaVersion' => 3,
|
|
|
'dbPath' => '/tmp/x',
|
|
'dbPath' => '/tmp/x',
|
|
|
'appEnv' => 'production',
|
|
'appEnv' => 'production',
|
|
|
|
|
+ 'appVersion' => '0.0.0-test',
|
|
|
|
|
+ 'appCreator' => 'Test Creator',
|
|
|
'oidcConfigured' => false,
|
|
'oidcConfigured' => false,
|
|
|
'localAdminEnabled' => true,
|
|
'localAdminEnabled' => true,
|
|
|
'authError' => false,
|
|
'authError' => false,
|
|
@@ -124,6 +130,8 @@ final class TwigViewTest extends TestCase
|
|
|
'schemaVersion' => 3,
|
|
'schemaVersion' => 3,
|
|
|
'dbPath' => '/var/data/app.sqlite',
|
|
'dbPath' => '/var/data/app.sqlite',
|
|
|
'appEnv' => 'production',
|
|
'appEnv' => 'production',
|
|
|
|
|
+ 'appVersion' => '0.0.0-test',
|
|
|
|
|
+ 'appCreator' => 'Test Creator',
|
|
|
'oidcConfigured' => true,
|
|
'oidcConfigured' => true,
|
|
|
'localAdminEnabled' => true,
|
|
'localAdminEnabled' => true,
|
|
|
'authError' => false,
|
|
'authError' => false,
|
|
@@ -131,12 +139,15 @@ final class TwigViewTest extends TestCase
|
|
|
]);
|
|
]);
|
|
|
|
|
|
|
|
self::assertStringContainsString('Sign in with Microsoft', $html);
|
|
self::assertStringContainsString('Sign in with Microsoft', $html);
|
|
|
- // R01-N02: the Runtime <details> panel must not leak PHP_VERSION,
|
|
|
|
|
- // dbPath, schema version, OIDC/local-admin flags to anonymous visitors.
|
|
|
|
|
|
|
+ // R01-N02: the Runtime <details> panel must not leak app metadata,
|
|
|
|
|
+ // dbPath, schema version, or OIDC/local-admin flags to anonymous
|
|
|
|
|
+ // visitors. PHP version was removed from the panel entirely; the
|
|
|
|
|
+ // app-version + creator strings now live there in its place.
|
|
|
self::assertStringNotContainsString('Runtime', $html);
|
|
self::assertStringNotContainsString('Runtime', $html);
|
|
|
self::assertStringNotContainsString('Schema version', $html);
|
|
self::assertStringNotContainsString('Schema version', $html);
|
|
|
self::assertStringNotContainsString('/var/data/app.sqlite', $html);
|
|
self::assertStringNotContainsString('/var/data/app.sqlite', $html);
|
|
|
- self::assertStringNotContainsString(PHP_VERSION, $html);
|
|
|
|
|
|
|
+ self::assertStringNotContainsString('0.0.0-test', $html);
|
|
|
|
|
+ self::assertStringNotContainsString('Test Creator', $html);
|
|
|
// R01-N31 falls out of the same gate: no /healthz hint either.
|
|
// R01-N31 falls out of the same gate: no /healthz hint either.
|
|
|
self::assertStringNotContainsString('/healthz', $html);
|
|
self::assertStringNotContainsString('/healthz', $html);
|
|
|
}
|
|
}
|