Repository navigation
fix(deploy): secret outside /run, app token past Next's fetch, quiet npm install - #70
Merged
Merged
Conversation
…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>
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
The site went down after podman 6.2 / crun 1.31 (CoreOS update on 2 Dec): with
ReadOnly=truea secret mounted under/runfails withcrun: open //run/secrets/github-app.pem: No such file or directory. Reproduced on a plainnode: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 toGITHUB_TOKEN, which the org refuses (lifetime > 366 days).package.json:overrideslet eslint-config-next's plugins use eslint 10 (lint passes), andallowScriptsdeniesunrs-resolver's postinstall;npm ciis now warning-free.Checked:
npm ciwith no warnings,eslintclean, 139/139 unit tests,next buildOK.🤖 Generated with Claude Code