Skip to content

PR_26177_CHARLIE_007-runtime-configuration-complete#216

Merged
ToolboxAid merged 1 commit into
mainfrom
PR_26177_CHARLIE_007-runtime-configuration-complete
Jun 26, 2026
Merged

PR_26177_CHARLIE_007-runtime-configuration-complete#216
ToolboxAid merged 1 commit into
mainfrom
PR_26177_CHARLIE_007-runtime-configuration-complete

Conversation

@ToolboxAid

Copy link
Copy Markdown
Owner

Summary

  • complete runtime configuration diagnostics for System Health
  • distinguish configured API URL from explicit Local API URL derivation
  • report safe server-owned source/status rows for Local API URL, site URL, Storage/R2 endpoint, and projects prefix
  • add Local /local/projects/ to the approved project storage prefix contract

Validation

  • node --check scripts/start-local-api-server.mjs
  • node --check src/dev-runtime/server/local-api-router.mjs
  • node --check src/dev-runtime/storage/storage-config.mjs
  • node --check tests/dev-runtime/AdminHealthOperations.test.mjs
  • node --check tests/dev-runtime/LocalApiStartupLogging.test.mjs
  • node --check tests/dev-runtime/StorageConfig.test.mjs
  • node --test tests/dev-runtime/LocalApiStartupLogging.test.mjs tests/dev-runtime/StorageConfig.test.mjs tests/dev-runtime/PublicEnvironmentConfig.test.mjs tests/dev-runtime/PublicApiUrlClient.test.mjs tests/dev-runtime/AdminHealthOperations.test.mjs tests/api/admin-system-health/contract.test.mjs
  • npx playwright test tests/playwright/tools/AdminHealthOperationsPage.spec.mjs --workers=1
  • git diff --check

Artifacts

  • tmp/PR_26177_CHARLIE_007-runtime-configuration-complete_delta.zip
  • docs_build/dev/reports/PR_26177_CHARLIE_007-runtime-configuration-complete.md

@ToolboxAid ToolboxAid marked this pull request as ready for review June 26, 2026 14:04
@ToolboxAid ToolboxAid merged commit d9d6f89 into main Jun 26, 2026
1 check passed

@chatgpt-codex-connector chatgpt-codex-connector Bot left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

💡 Codex Review

Here are some automated review suggestions for this pull request.

Reviewed commit: d1a7b2d076

ℹ️ About Codex in GitHub

Your team has set up Codex to review pull requests in this repo. Reviews are triggered when you

  • Open a pull request for review
  • Mark a draft as ready
  • Comment "@codex review".

If Codex has suggestions, it will comment; otherwise it will react with 👍.

Codex can also answer questions or update the PR. Try commenting "@codex address that feedback".

projectsPrefix: "",
bucket: envValue(env, "GAMEFOUNDRY_STORAGE_BUCKET"),
endpoint: safeStorageEndpointValue(envValue(env, "GAMEFOUNDRY_STORAGE_ENDPOINT")),
projectsPrefix: normalizeStorageProjectsPrefix(envValue(env, "GAMEFOUNDRY_STORAGE_PROJECTS_PREFIX")),

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

P2 Badge Validate partial storage prefixes before exposing them as safe

When any required storage credential is missing, this early return skips the allowed-prefix validation but still publishes the normalized GAMEFOUNDRY_STORAGE_PROJECTS_PREFIX in safe. In a partial environment such as a configured endpoint/bucket with missing keys and GAMEFOUNDRY_STORAGE_PROJECTS_PREFIX=/qa/projects/, ownerStorageStatus() later treats any non-empty safe.projectsPrefix as PASS, so System Health/R2 readiness can show an unapproved storage lane as configured instead of warning about the invalid prefix. Validate the prefix before returning partial safe data or carry a validation error/status for it.

Useful? React with 👍 / 👎.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant