Skip to content

feat!: unify the Docker age-key plumbing on FNOX_AGE_KEY / fnox_age_key - #1199

Merged
exKAZUu merged 2 commits into
mainfrom
feat/unify-fnox-age-key
Aug 8, 2026
Merged

feat!: unify the Docker age-key plumbing on FNOX_AGE_KEY / fnox_age_key#1199
exKAZUu merged 2 commits into
mainfrom
feat/unify-fnox-age-key

Conversation

@exKAZUu

@exKAZUu exKAZUu commented Aug 8, 2026

Copy link
Copy Markdown
Member

Customer Summary

  • Docker ビルドへの age key 受け渡しをレガシー名 MISE_AGE_KEY / mise_age_key から、fnox の正式名 FNOX_AGE_KEY / fnox_age_key に完全統一します(後方互換なし)。
  • 呼び出し側での MISE_AGE_KEY=${FNOX_AGE_KEY} 手動マッピングが不要になり、マッピング忘れで鍵が渡らず静かに失敗するモードが消えます。

Technical Summary

  • dockerScripts.ts: project.env.FNOX_AGE_KEY が set のとき --secret id=fnox_age_key,env=FNOX_AGE_KEY を docker build に付与(旧: MISE_AGE_KEY 条件 + id=mise_age_key)。wb start の docker mode も --env FNOX_AGE_KEY を転送。
  • docs/expected-repository-rules.md: BuildKit secret id を fnox_age_key に更新し、wb が FNOX_AGE_KEY set 時に無条件で渡すことを明記。
  • BREAKING: mise_age_key を mount する Dockerfile(coto-world, smartse-zoom-bot)は fnox_age_key への追従が必要。本 PR merge 後に各リポジトリで対応します。

Why

  • MISE_AGE_KEY は mise の sops/age 時代の残骸で、fnox は読まない。CI は FNOX_AGE_KEY を step-scoped で提供済みのため、wb がそれを直接使えば橋渡し変数と手動マッピングが丸ごと不要になる(組織方針の「実装の極限まで単純化」に合致)。

Testing

  • bun verify(typecheck + lint)成功。リポジトリ内の MISE_AGE_KEY/mise_age_key 参照はソースから消滅(dist はビルド生成物)。

Drop the legacy MISE_AGE_KEY variable and mise_age_key BuildKit secret
id: wb's Docker entry points now pass `--secret
id=fnox_age_key,env=FNOX_AGE_KEY` whenever FNOX_AGE_KEY is set (the
variable fnox itself reads and the organization already standardizes
on), and `wb start`'s docker mode forwards FNOX_AGE_KEY. No backward
compatibility: Dockerfiles mounting mise_age_key must switch to
fnox_age_key. This removes the silent-failure mode where a caller
forgot to map FNOX_AGE_KEY to MISE_AGE_KEY and the build proceeded
without a key.

Co-authored-by: WillBooster (Claude Code) <agent@willbooster.com>
@exKAZUu exKAZUu self-assigned this Aug 8, 2026
@gemini-code-assist

Copy link
Copy Markdown
Contributor

Summary of Changes

Hello, I'm Gemini Code Assist1! I'm currently reviewing this pull request and will post my feedback shortly. In the meantime, here's a summary to help you and other reviewers quickly get up to speed!

This pull request simplifies the Docker build and runtime configuration by unifying the age key plumbing under the 'FNOX_AGE_KEY' identifier. By removing the manual mapping from legacy variables, the implementation reduces complexity and eliminates potential silent failures caused by missing mappings. This change is a breaking update that requires downstream repositories to align their Dockerfile configurations with the new naming standard.

Highlights

  • Docker Age Key Unification: Replaced the legacy 'MISE_AGE_KEY' with 'FNOX_AGE_KEY' for Docker build secrets and environment variable injection, standardizing on the official fnox naming convention.
  • Breaking Change: Removed backward compatibility for 'MISE_AGE_KEY'. Dockerfiles that previously mounted 'mise_age_key' must be updated to use 'fnox_age_key'.
  • Documentation Update: Updated 'docs/expected-repository-rules.md' to reflect the new BuildKit secret ID and the automated handling of 'FNOX_AGE_KEY'.
New Features

🧠 You can now enable Memory (public preview) to help Gemini Code Assist learn from your team's feedback. This makes future code reviews more consistent and personalized to your project's style. Click here to enable Memory in your admin console.

Using Gemini Code Assist

The full guide for Gemini Code Assist can be found on our documentation page, here are some quick tips.

Invoking Gemini

You can request assistance from Gemini at any point by creating a comment using either /gemini <command> or @gemini-code-assist <command>. Below is a summary of the supported commands on the current page.

Feature Command Description
Code Review /gemini review Performs a code review for the current pull request in its current state.
Pull Request Summary /gemini summary Provides a summary of the current pull request in its current state.
Comment @gemini-code-assist Responds in comments when explicitly tagged, both in pull request comments and review comments.
Help /gemini help Displays a list of available commands.

Customization

To customize the Gemini Code Assist for GitHub experience, repository maintainers can create a configuration file and/or provide a custom code review style guide (such as PEP-8 for Python) by creating and adding files to a .gemini/ folder in the base of the repository. Detailed instructions can be found here.

Limitations & Feedback

Gemini Code Assist may make mistakes. Please leave feedback on any instances where its feedback is incorrect or counterproductive. You can react with 👍 and 👎 on @gemini-code-assist comments. If you're interested in giving your feedback about your experience with Gemini Code Assist for GitHub and other Google products, sign up here.


The legacy key is cast aside, With FNOX now the only guide. No mapping needed, clean and bright, Our Docker builds are set aright.

Footnotes

  1. Review the Generative AI Prohibited Use Policy, and learn how to configure Gemini Code Assist in GitHub here. Gemini can make mistakes, so double check it and use code with caution.

@gemini-code-assist gemini-code-assist Bot left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

Code Review

This pull request updates the Docker build and run scripts to use FNOX_AGE_KEY instead of MISE_AGE_KEY for age-key secrets and environment variables. It also updates the corresponding documentation in docs/expected-repository-rules.md to reflect this change. There are no review comments, so I have no feedback to provide.

Runtime containers get their configuration from the individually
forwarded declared variables (or the platform's store), so drop the
--env forwarding entirely instead of renaming it; only the build-time
BuildKit secret remains.

Co-authored-by: WillBooster (Claude Code) <agent@willbooster.com>
@exKAZUu
exKAZUu merged commit 98da830 into main Aug 8, 2026
5 checks passed
@exKAZUu
exKAZUu deleted the feat/unify-fnox-age-key branch August 8, 2026 08:14
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