Skip to content

fix(deploy): secret outside /run, app token past Next's fetch, quiet npm install - #70

Merged
Lynder063 merged 1 commit into
mainfrom
fix/deploy-secret-and-app-token
Dec 4, 2026
Merged

Lynder063 merged 1 commit into
mainfrom
fix/deploy-secret-and-app-token

Conversation

@Lynder063

Copy link
Copy Markdown
Member

The site went down after podman 6.2 / crun 1.31 (CoreOS update on 2 Dec): with ReadOnly=true a secret mounted under /run fails with crun: open //run/secrets/github-app.pem: No such file or directory. Reproduced on a plain node:24-alpine, so no commit caused it.

  • deploy/openrac.container: the GitHub App key is mounted at /secrets/github-app.pem.
  • src/lib/githubApp.ts: the installation-token request uses Next's original fetch. With the patched one, every static render turned it into a dynamic-usage error (github_app_token_failed, Page changed from static to dynamic), and pages fell back to GITHUB_TOKEN, which the org refuses (lifetime > 366 days).
  • package.json: overrides let eslint-config-next's plugins use eslint 10 (lint passes), and allowScripts denies unrs-resolver's postinstall; npm ci is now warning-free.

Checked: npm ci with no warnings, eslint clean, 139/139 unit tests, next build OK.

🤖 Generated with Claude Code

…npm install

- crun 1.31 (podman 6.2) cannot mount a secret under /run when the container
  is ReadOnly; the example unit now mounts the GitHub App key at /secrets.
- The GitHub App token request used Next's patched fetch; during a static
  render Next turns its no-store fetch into a "page is dynamic" error, so the
  token was never made and pages fell back to GITHUB_TOKEN. It now uses the
  original fetch.
- package.json: let eslint-config-next's plugins take eslint 10 (lint passes)
  and deny unrs-resolver's postinstall, so `npm ci` prints no warnings.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
@Lynder063
Lynder063 merged commit 9bf8f2f into main Dec 4, 2026
1 check passed
@Lynder063
Lynder063 deleted the fix/deploy-secret-and-app-token branch December 4, 2026 08:02
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