認証ポータルのログインやトークン更新、プロフィール、管理APIを利用するHTTPクライアントの仕様確認とトラブル対応を支援します。
- ポータル向けJSONログインを実装したいとき
- ブラウザーのトークン更新を調べたいとき
- ネイティブ認証APIを扱いたいとき
メール配信などで使う名前付きユーザー名・パスワードを設定し、環境変数やシークレットから値を読み込めます。
Configure reusable named username/password credentials for messaging consumers, including optional domains and runtime values. LDAP bind credentials belong to identity stores.
実行スコア 未検証
インストール方法を見るメール配信などの設定から参照できる、名前付きのユーザー名・パスワードを構成します。credentials <label> のラベルが認証情報の名前になり、ユーザー名とパスワードを指定します。必要に応じてドメインも追加できます。パスワードには環境変数の値や、別途設定したシークレットマネージャーの値を使えます。シークレットは認証情報そのものではなく、名前付き認証情報のパスワード欄に読み込み値として組み合わせます。
メール送信プロバイダーなど、利用側の設定から認証情報を名前で指定したいときに向いています。パスワードを設定ファイルに直接書かず、環境変数やシークレット管理に任せたい場合にも使えます。LDAPのバインド認証情報は対象外で、IDストア側に直接設定します。
認証情報のユーザー名とパスワードは必須です。シークレット参照を使う場合は、別途対応するsecrets設定が必要です。メールプロバイダー側で参照する名前と、認証情報ブロックのラベルを一致させます。
この紹介文は、公開されている SKILL.md をもとに AI(OpenAI Codex)が作成しました。正確な仕様は下の原文を確認してください。
インストールする前に、エージェントに与えられる指示の中身を確認できます。
Use this skill to configure reusable credentials <label> blocks. These are
parsed by caddyfile_credentials.go into go-authcrunch generic credentials.
The Caddyfile block label becomes authcrunch's required credential name.
Use credentials to create a named authcrunch credential object: a reusable
name, username, password, and optional domain tuple that another
configuration section can reference, such as an email messaging provider.
Use secrets to configure an external security.secrets manager and expose
lookup values with the secrets:<secret_id>:<key> syntax. A secret lookup is
not a credential object by itself; it is a placeholder-like value that
caddy-security resolves during provisioning.
The two can be combined: put password "secrets:smtp:password" inside a
credentials smtp_root block when the consumer needs a named credential, but
the password should come from a secrets manager.
configuration-secrets owns manager blocks
and lookup rules.
{
security {
credentials smtp_root {
username root
password {env.SMTP_PASSWORD}
domain example.com
}
}
}
The block accepts:
username <username>password <password>domain <name>Only generic username/password credentials are exposed through the Caddyfile.
Do not add name or kind inside the block; caddy-security injects name
from <label>, and unsupported inner keys fail parsing.
username and password are required by go-authcrunch after runtime
resolution. domain is optional. SMTP sending in go-authcrunch uses the
resolved username and password; include domain only when a downstream
consumer expects it.
All values are single tokens after Caddyfile parsing. Quote values containing spaces. Runtime environment and secret replacements also remain one argument; embedded spaces, quotes, and newlines must survive unchanged. Follow runtime resolution when changing the encoded-instruction path.
Use environment placeholders or secret lookups for passwords:
password {env.SMTP_PASSWORD}
password "secrets:smtp:password"
Secret lookups must use the secrets:<secret_id>:<key> shape and require a
matching secrets <plugin> <secret_id> block from configuration-secrets.
Caddy-security resolves {env.*} and secrets:*:* values before
go-authcrunch validates credentials.
Placeholders may be used in the block label and fields, but references must
resolve to the same final name. For example, a messaging provider's
credentials <credential_name> value must match the resolved credentials block
label.
Use labels that describe the consumer, such as smtp_root,
registration_smtp, or mailgun_smtp, rather than the secret value itself.
Email consumption follows configuration-messaging. Non-passwordless email providers require a
credentials <credential_name> reference; passwordless email providers must
not also set credentials.
LDAP bind settings are not wired through reusable credentials blocks. LDAP
identity stores configure bind credentials directly with their own username
and password directives.
Use these examples:
caddyfile_credentials_test.go.testdata/caddyfile_adapt/testcase_authenticate_with_credentials.Caddyfile.testdata/caddyfile_adapt/testcase_authenticate_with_registration.Caddyfile.TestResolveRuntimeAppConfigEncodedInstructions and the lifecycle E2E check
that an environment or secret-backed password containing spaces, quotes and a
newline remains one exact credential value. They also reject a missing secret;
the reload case preserves the serving deployment. These checks do not contact
SMTP or establish that a server accepts the credential. Validate SMTP delivery
separately when changing the consumer or its transport settings.
まだレビューはありません。使ってみた感想をお寄せください。
ログインなしで書き込めます。使ってみた感想、質問、動かなかった環境などを気軽にどうぞ。
まだコメントはありません。最初のコメントを書いてみませんか。
認証ポータルのログインやトークン更新、プロフィール、管理APIを利用するHTTPクライアントの仕様確認とトラブル対応を支援します。
Caddyの認証・認可まわりで起きた設定や実行時の障害を、設定ファイル、ログ、バージョン、HTTPの証拠から切り分け、最小修正や調査報告にまとめます。
caddy-securityのGoコードやCaddyモジュール、Caddyfileパーサー、HTTP連携の実装・レビューで、境界やライフサイクル、エラー処理の規約を確認するスキルです。
caddy-securityのCaddyfile全体を作成・点検し、認証方式に合う設定ガイドを選びながらsecurityアプリとHTTPルートを配線するスキルです。
Caddyの認証ポータルとルートへの認証処理を設定し、利用するログイン元やリダイレクト先の信頼条件、更新機能などを組み立てるスキルです。
認証ポータルのCookie名や接頭辞、属性、ドメインを設定し、認可ポリシーが探すトークンCookieとの対応を整えます。