認証ポータルのログインやトークン更新、プロフィール、管理APIを利用するHTTPクライアントの仕様確認とトラブル対応を支援します。
- ポータル向けJSONログインを実装したいとき
- ブラウザーのトークン更新を調べたいとき
- ネイティブ認証APIを扱いたいとき
Caddyの認証・認可まわりで起きた設定や実行時の障害を、設定ファイル、ログ、バージョン、HTTPの証拠から切り分け、最小修正や調査報告にまとめます。
Diagnose caddy-security deployment and runtime failures from configs, logs, versions, and HTTP evidence. Use for focused fixes, unresolved support handoffs, or preparing break-fix issue reports.
実行スコア 未検証
インストール方法を見るcaddy-securityの導入時や実行中の障害について、症状と証拠をもとに原因を絞り込みます。Caddyfileの適応・プロビジョニング、ログイン、コールバック、認可、プロキシ、トークンやセッション検証など、どの段階で問題が起きるかを整理し、関連する設定、ログ、HTTP応答、バージョン情報を確認します。設定変更は必要最小限にし、確認できた事実と仮説を分けて報告します。解決できない場合は、再現に必要な情報をまとめた障害報告の準備もできます。
ログインできない、リダイレクトが繰り返される、OAuth/OIDCやSAMLのコールバックで失敗するなど、認証まわりの問題を調べるときに役立ちます。LDAP、MFA、APIキー、ポータルAPI、認可拒否など幅広い症状の確認にも使えます。外部プラグインや上流モジュールが原因で、すぐには修正できない問題の引き継ぎにも向いています。
診断時にはパスワード、トークン、Cookie、秘密鍵などを伏せます。実環境の設定をそのまま有効化せず、必要に応じて使い捨てのローカルデータで再現します。外部プラグインや上流の不具合は、このスキルだけで修正できるとは限りません。
この紹介文は、公開されている SKILL.md をもとに AI(OpenAI Codex)が作成しました。正確な仕様は下の原文を確認してください。
インストールする前に、エージェントに与えられる指示の中身を確認できます。
Use this skill to turn a failing caddy-security deployment into either a
concrete fix or a high-quality break-fix report. Treat the repository skills in
.codex/skills as the primary task documentation; https://docs.authcrunch.com
is legacy context, not the source of truth.
Follow the repository scope when reproducing or fixing a report. A failure traced to go-authcrunch or an external plugin does not permit sibling edits or sibling build/test commands. Keep reproductions and reports here, identify the required upstream fix as separate work, and continue any correction that can be completed in this module.
caddy version, caddy security version,
caddy list-modules --versions | rg '(auth|security)', operating environment,
recent changes, and last known working version. Use the actual installed
binary name; older binaries may lack security version.validate and run may open identity files or contact providers. Reproduce
with disposable local data before provisioning a supplied deployment config.tmp/breakfix/. A direct explanation or completed small fix does
not automatically require an issue artifact; honor the requested deliverable.Accept: application/json or format=json,
portal base path, latest sandbox_secret in challenge flows, token source
headers/cookies, /beacon versus /whoami semantics, and whether admin
endpoints have enable admin api plus an admin session.require mfa transforms,
registered TOTP/U2F tokens, sandbox expiration, repeated password failures,
MFA failure counters on the user record, and whether the user is being forced
to register an MFA token during login.403 invalid_request in a real browser: compare the
consent response's Referrer-Policy with the POST's actual Origin. Legacy
consent responses using no-referrer produce Origin: null, which the
provider's same-origin check rejects. HtmlUnit/HTTP-client success does not
rule this out. Preserve headless Chrome screenshots and network evidence; do not
rewrite Origin or relax CSRF/origin validation. Apply the explicit Caddy
consent response policy
only after confirming the deployment emits those legacy headers, then verify
both successful consent and rejection of cross-origin/forged-CSRF submissions.
The current provider owns its corrected response headers. If the consent
Origin is correct but Chrome aborts the callback
with net::ERR_ABORTED, inspect form-action: its source list must permit the
registered callback origin as well as self. Keep the exact redirect checks;
do not replace the source list with a wildcard. See the
conformance workflow.authorize with <policy> wiring,
token cookie/header availability, verify keys, ACL rules, roles, claim names,
bypass rules, and injected identity headers.X-Auth-Realm or configured realm header,
API key header name, one with ... realm ... line per accepted realm,
System API keys for remote portals, and whether the response is a 401 auth
failure or a browser-style redirect due to missing credentials.{env.*} tokens,
secret IDs, configured secrets manager modules, fallback behavior, and
resolved fixture expectations.When solving the issue directly, include:
When helping a reporter file a break-fix issue, fill or request the fields from
.github/ISSUE_TEMPLATE/break-fix.md: issue description, skill-guided
troubleshooting prompt and findings, full redacted Caddyfile, logs/errors,
version information, expected behavior, actual behavior, skill/documentation
gap, and additional context.
For break-fix issue preparation, create tmp/breakfix/ if it does not exist
and write a Markdown file named with this pattern:
YYYYMMDD_HHMM_<short-issue-slug>.md
Use the local timestamp at report creation time. Keep the slug short,
lowercase, and hyphen-separated, such as oauth-callback-loop or
ldap-bind-failure.
The Markdown file must contain enough information to create a GitHub issue from
.github/ISSUE_TEMPLATE/break-fix.md without reconstructing context from the
chat. Include these sections:
# breakfix: <concise title>## Describe the issue## Skill-guided troubleshooting## Configuration## Logs and errors## Version information## Expected behavior## Actual behavior## Skills or documentation gap## Additional contextPreserve fenced code blocks for Caddyfiles, logs, commands, and version output.
Redact secrets, tokens, cookies, passwords, and private keys, but keep names,
routes, roles, claims, issuer URLs, redirect paths, and module versions needed
for diagnosis. Use TODO only for fields the reporter still needs to provide.
If repository skill guidance was missing, incorrect, ambiguous, or not specific enough for the issue, capture:
Prefer turning repeated support issues into skill improvements so future agents can generate secure, production-ready guidance on the first attempt.
まだレビューはありません。使ってみた感想をお寄せください。
ログインなしで書き込めます。使ってみた感想、質問、動かなかった環境などを気軽にどうぞ。
まだコメントはありません。最初のコメントを書いてみませんか。
認証ポータルのログインやトークン更新、プロフィール、管理APIを利用するHTTPクライアントの仕様確認とトラブル対応を支援します。
caddy-securityのGoコードやCaddyモジュール、Caddyfileパーサー、HTTP連携の実装・レビューで、境界やライフサイクル、エラー処理の規約を確認するスキルです。
caddy-securityのCaddyfile全体を作成・点検し、認証方式に合う設定ガイドを選びながらsecurityアプリとHTTPルートを配線するスキルです。
Caddyの認証ポータルとルートへの認証処理を設定し、利用するログイン元やリダイレクト先の信頼条件、更新機能などを組み立てるスキルです。
認証ポータルのCookie名や接頭辞、属性、ドメインを設定し、認可ポリシーが探すトークンCookieとの対応を整えます。
別の端末でポータルログインを承認する機能を設定し、QRコードによる開始、本人確認、明示的な承認、取消、期限や再起動時の動作を確認します。