Repository navigation
feat: Infisical を取り除く - #690
Merged
Merged
Conversation
秘密は全部 SOPS(SopsSecret)に移したので、Infisical の本体・operator・push-bridge と、その道具と記述を消す。 - bootstrap: render.sh の infisical の chart・復号・inline(infisical-secrets)と infisical-values.sops.yaml。 .sops.yaml などの encrypted_regex から Infisical だけのキーを外す。apiserver-rbac から secrets.infisical.com - talos-boot: infisical の値のダミーと INFISICAL_VALUES、infisical の Pod と Postgres の確認 - deploy/infisical をまるごと(Argo CD が prune する)。smtp-relay の NetworkPolicy から infisical の namespace - matrix: hookshot の Infisical の webhook と hook-infisical - recovery: infisical.sh・infisical-ca.mjs と手順の 6・7。秘密は git の SOPS なので復元では何もしない - tools: t.ps1 のログインの中継、Dockerfile の infisical CLI、compose の INFISICAL_PROFILE - README・docs・各 deploy の README の置き場の記述を SOPS に。decisions.md に「秘密は SOPS で git に置く」 Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01T8TqVdo6LUrWKdVQgbScVU
|
Claude finished @5ym's task in 32s —— View job レビュー結果Infisical の除去として、ブロッカーになる問題は見つかりませんでした。 確認したこと
要確認(マージ後の運用)
テストは、CI の |
🍹
|
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.
秘密は全部 SOPS(sops-secrets-operator の
SopsSecret)に移した(#685〜#688)ので、Infisical を完全に取り除く。消したもの・直したもの
render.shの infisical の chart・復号・inline(infisical-secrets)・確認の needle・版の echo、infisical-values.sops.yaml(ファイルごと)。infisical の chart 専用だった
updatedAtを消す sed も外した(ほかの chart は出さない。手元で描いて 0 件を確認)。.sops.yamlとargocd-values.sops.yaml・cert-manager-values.sops.yamlのencrypted_regexから Infisical だけのキー(password・postgresPassword・ENCRYPTION_KEY・AUTH_SECRET・CLIENT_ID_GITHUB_LOGIN・CLIENT_SECRET_GITHUB_LOGIN)を外した(メタデータだけ。sops -dが通ることを確認)。apiserver-rbac.yamlの viewer からsecrets.infisical.com。README・talos.md・コメントINFISICAL_VALUES、infisical の Pod・PVC・再起動後の Postgres の確認(PV の経路は t-src / t-dst が見ている)HOOK_INFISICAL、secrets.sops.yamlのhook-infisical(sops unset)forgejo-secrets.yaml・argocd-creds.yamlの記述も)infisical.sh・infisical-ca.mjsを消し、README の 6(Infisical の DB)・7(Kubernetes auth の CA)を消して 8〜10 を 6〜8 に詰めた。秘密は git の SOPS、クラスタの鍵は machine config(bootstrap/sops-age.sops.yaml)なので復元では何もしないt.ps1のログインの中継(Start-LoginRelay。BOM 付き UTF-8・文字列 ASCII のまま。pwsh と 5.1 の Parser で構文 0 件)、Dockerfile の infisical CLI、compose のINFISICAL_PROFILE、tools.yml のinfisical --version、READMEbootstrap chartsから infisical の値のファイルdocs/decisions.mdの「infisical だけは ArgoCD に移せない」を「秘密は SOPS で git に置く(2026-11-02 に Infisical から替えた)」に、docs/cloudflare-tokens.mdの置き場README.md・entra-smtp.ts・notifications.ts)。il.doany.io のリダイレクト URI や DNS は Pulumi に無かった(DNS は external-dns が HTTPRoute から作っていたので、HTTPRoute の prune で消える)。main で pulumi up が走るが、差分は無いはずマージのあとにすること
deploy/infisical/を prune する(infisical-operator・infisical-push-bridge の Application、公開経路、VolSync、infisical-smtp)。operator の CRD が消えると、残っているInfisicalSecret(infisical・infisical-push-bridge の namespace の 3 つだけ)も消える。ほかの namespace の Secret は SopsSecret が持ち主なので消えない(マージ前に確認済み)tools/t --admin bootstrap/apply.sh --mode=no-reboot→talosctl upgrade-k8s(同じ版)。inline manifests のinfisicalとinfisical-secretsが消え、infisical の namespace(本体・Postgres・Redis)が消えるvolsync/infisical/data-postgresql-0のバックアップは残る(要らなければあとで消す)infisical・infisical-operator・infisical-push-bridgeの namespace を確認するserverの hookshot のinfisicalの受け口は設定から消えるだけ。Infisical 側の webhook は Infisical ごと無くなる🤖 Generated with Claude Code
https://claude.ai/code/session_01T8TqVdo6LUrWKdVQgbScVU