Communityコーディング&開発github.com

Taldres/laravel-waitlist

taldres/laravel-waitlist インストールの運用: アクセスおよび消去リクエストへの対応、リクエストに応じた目的の撤回、保持期間の適用、目的達成後のリスト消去、APP_KEY の waitlist:rekey によるローテーション、リストのエクスポート、本番稼働前のセットアップ確認。

laravel-waitlist とは?

このスキルは、Laravel パッケージ `taldres/laravel-waitlist` の日々のデータ保護タスクを自動化します。プライバシー関連のリクエスト(アクセス、消去、目的の撤回)への対応、データ保持期間の適用、`APP_KEY` の安全なローテーション、リストのエクスポート、そして本番稼働前のチェックを Artisan コマンドおよび PHP ファサードを通じて実行します。主な機能には、暗号化されたメールアドレスを扱うための専用メソッド (`forEmail()`) や、複数プロジェクトにわたる一貫した操作を保証する `allProjects()` スコープが含まれます。バックアップやキュー、プロバイダコピーなどの外部要素はスキルの範囲外であり、オペレーターは法的な処理や本人確認の責任を負います。このスキルは、GDPR 準拠のデータ管理を効率化するための実践的なガイドを提供します。

対応~Claude Code~Codex CLI~Cursor
npx skills add https://github.com/Taldres/laravel-waitlist/tree/HEAD/resources/boost/skills/laravel-waitlist-privacy-operations

Installed? Explore more コーディング&開発 skills: steipete/bluebubbles, steipete/eightctl, steipete/blucli · View all 6 →

お気に入りのAIに質問する

このエージェントスキルを事前に読み込んだ状態で新しいチャットを開きます。

ドキュメント

Laravel Waitlist: プライバシー運用

このスキルは、taldres/laravel-waitlist に関する日常的なデータ保護タスク(リスト上の人からのリクエスト対応、保持期間、キーローテーション、エクスポート、本番稼働前チェック)に使用します。

主な目的

  • パッケージの API とコマンドを使用して、リクエストが関係するすべてのプロジェクトにわたって各リクエストを実行し、パッケージの範囲外となるものを明確にすること

ワークフロー

アクセスリクエスト

php artisan waitlist:show [email protected] --pretty   # すべてのプロジェクトに適用; --json で機械可読なコピー
Waitlist::allProjects()->personalData('[email protected]'); // Collection<PersonalData>

消去リクエスト

php artisan waitlist:forget [email protected]          # すべてのプロジェクトに適用
Waitlist::allProjects()->forget('[email protected]');  // 消去されたエントリ数

消去は、アドレス、そのサイクルと同意を削除し、ログ行の識別フィールドをクリアします。エントリごとに EntryForgotten が発火され、リスナーがプロバイダでのコピーを削除するために使用します。バックアップ、キュー、ログ、エクスポート、およびプロバイダコピーは別途対応が必要です。

メールで届いた撤回

Waitlist::for('beta')->withdraw('[email protected]', 'newsletter'); // オプションの目的: プロジェクトの全リストに適用
Waitlist::for('beta')->unsubscribe('[email protected]');            // このリストを退会

目的達成後のリスト消去

php artisan waitlist:forget --list=beta --all          # 最初に確認あり; ターミナルがない場合は --force
Waitlist::for('beta')->forgetAll();

保持期間

waitlist:prune はパッケージのスケジュール(waitlist.retention.schedule、15 3 * * *; null はスケジューリングをあなたに任せ、決して実行できない cron 式は拒否されます)に従って実行されます。Laravel のスケジューラが実行されている必要があります(php artisan schedule:run を毎分)。waitlist.retention の期間:pending_days(30)、unsubscribed_days(1095)、request_metadata_days(30); null はデータを保持し、1970年より前(36500日の「永久」)に遡る期間は拒否されます。waitlist:prune は読み取り可能なすべての期間を適用し、適用できない期間を報告して実行を失敗させます。ログと終了コードを監視してください。これらは技術的なデフォルトであり、法的な推奨事項ではありません。アクティブな確認済みエントリと残りのレポート行は自動的に期限切れになりません。

APP_KEY のローテーション

  1. 古いキーを APP_PREVIOUS_KEYS に設定し、新しい APP_KEY を設定してデプロイします。
  2. php artisan waitlist:rekey
  3. 古いキーが必要なキューされたジョブやバックアップがなくなったら削除します。

古いキーがないと、メールアドレスによる読み取りや検索ができなくなり、各退会トークンは次回必要になったときに置き換えられるため、以前に送信されたリンクはその時点から機能しなくなります。

エクスポート

php artisan waitlist:export beta --status=confirmed --path=storage/app/beta.csv

カラムは waitlist.export.columns から取得され、CsvExporter::EXPORTABLE(トークンなし)に制限されます。ファイルにはアドレスが平文で含まれています。使用後は削除してください。

処理記録

php artisan waitlist:privacy [--project=]

これは、設定されたパッケージストレージ、目的、各リストのメタデータフィールド、保持期間、およびパッケージイベントに登録されたリスナーを記述します。これは入力であり、完全な記録ではありません。インフラストラクチャを監査したり、すべての受信者を見つけたりするわけではありません。

本番稼働前チェック

  • APP_KEY がデータベースとは別にバックアップされている
  • ダブルオプトインがオン; 必要な場合を除き IP とユーザーエージェントはオフ
  • プロジェクトとリストごとのフィールド(->fields())は可能な限り少なく、疑わしい場合はなし
  • スケジューラが実行中; 保持期間が選択され、正当化されている
  • 設定読み取り: .env に空の WAITLIST_*= 行がない(空の値は拒否されます。デフォルトにするには行を削除してください)、パッケージ更新後は php artisan config:cache を再実行(ルート設定変更後は route:cache も)、ログに InvalidConfigurationException がない
  • サインアップフォームが Waitlist::purposes() または GET /waitlist/purposes をレンダリング; オプションの目的はチェックなし
  • 確認リスナーが Waitlist::confirmationMailed() を記録
  • すべてのメールに目的ごとの退会リンクとワンクリックヘッダーがある
  • ManageLinkRequested はアドレスにのみメール送信
  • キューされたリスナーは ShouldBeEncrypted を実装; EntryForgotten、EntryUnsubscribed、および ConsentWithdrawn がすべてのプロバイダに到達する
  • ルートが設定されている場合、ボット保護と信頼できるプロキシが設定されている

ルール、リファレンス、テンプレート

  • --project なしのコマンドは、show、forget、prune、privacy についてすべてのプロジェクトを対象とします。--project なしの --list は、デフォルトプロジェクトのそのリストを意味します。
  • 撤回、退会、消去、およびプルーニングは、通過するだけの設定(プライバシー、ガード、トークンリンク上のクライアント IP ヘッダー、アドレスの他のリストに対するメール正規化子のスイープ、リダイレクトの背後にあるカタログ、リンクレート制限)を待ちません。それらはフォールバックし、リクエスト、ジョブ、またはコマンドごとに 1 回だけ間違いを報告するため、設定変更後はログを読んでください。
  • オペレーターは、合法的な処理、本人確認、期限、および完全な回答に対して責任を負います。パッケージは法的アドバイスやコンプライアンス保証を提供しません: https://github.com/Taldres/laravel-waitlist/blob/main/docs/responsibility.md
  • ガイド: https://github.com/Taldres/laravel-waitlist/blob/main/docs/gdpr.md、https://github.com/Taldres/laravel-waitlist/blob/main/docs/encryption-and-keys.md

例

  • 「ユーザーがデータ削除を依頼しました」: リクエストを確認後、php artisan waitlist:forget <email> を実行し、プロバイダとエクスポートを確認します。
  • 「リリースしました。ベータリストは目的を果たしました」: waitlist:forget --list=beta --all。
  • 「APP_KEY をローテーションしたらルックアップが失敗するようになりました」: APP_PREVIOUS_KEYS に古いキーを復元し、waitlist:rekey を実行します。

アンチパターン

  • SQL または WaitlistEntry::query()->delete() で行を削除すること。消去はパッケージを通じて行う必要があり、ログが削除され、EntryForgotten が発火します。
  • where('email', ...) での検索: アドレスは暗号化されています。forEmail() またはファサードを使用してください。
  • 複数のプロジェクトにまたがる人物に対して Waitlist::forget()(デフォルトプロジェクトのみ)で消去すること。
  • APP_PREVIOUS_KEYS なしで APP_KEY をローテーションすること。
  • waitlist:privacy の出力を完全な第 30 条記録として提示すること。

Individual skills in this repo

This repo contains 13 individual skills — each has its own dedicated page.

Taldres/laravel-waitlist

Use this skill when reviewing Laravel package compatibility across composer constraints, PHP versions, Laravel versions, Testbench versions, dependency stability lanes, Windows CI, or matrix-sensitive code and workflow changes.

Taldres/laravel-waitlist

Use this skill when creating or updating the bundled Laravel Boost skill under resources/boost/skills from the package implementation and package documentation. Trigger after public APIs, commands, config, routes, views, publish tags, README content, or examples change.

Taldres/laravel-waitlist

Use this skill when preparing Laravel package releases: CHANGELOG.md updates, generated release notes, GitHub release workflows, version checks, tags, release validation, or release automation changes. Never publish autonomously.

Taldres/laravel-waitlist

Use this skill when adding Laravel package capabilities or wiring them through the service provider: commands, migrations, routes, config merges, views, translations, assets, middleware, publish tags, workbench files, or console-only behavior.

Taldres/laravel-waitlist

Use this skill when writing, editing, fixing, or reviewing package tests with Pest 4/5 and Orchestra Testbench, including TDD, feature tests, unit tests, type coverage, arch tests, workbench behavior, commands, routes, config, migrations, and publishable resources.

Taldres/laravel-waitlist

Integrate taldres/laravel-waitlist in a Laravel application: define purposes, lists and fields, build the signup form, send the confirmation mail from events, add a preference page, and keep consent, retention and encryption intact.

Taldres/laravel-waitlist

Build the pages of a taldres/laravel-waitlist integration: the signup form with the registered wording, and the confirm, unsubscribe and preference pages, either in Laravel controllers (Blade, Livewire, Inertia) or in an SPA or static site over the package's JSON API, including CORS and bot protection.

Taldres/laravel-waitlist

Turn a taldres/laravel-waitlist waitlist into a launch: invite people in batches in signup order, let invited addresses register, announce the launch to everyone who agreed, and erase the list once its purpose is fulfilled.

Taldres/laravel-waitlist

Send the mails of a taldres/laravel-waitlist integration: the double opt-in confirmation, the preference page link, a welcome mail, launch mails and newsletters to the people who agreed, with the right unsubscribe links, one-click headers and a sender per project.

Taldres/laravel-waitlist

Run the waitlists of several products in one Laravel app with taldres/laravel-waitlist projects: define projects, scope facade calls with project(), resolve the project of HTTP signups, send mail per project, handle requests across all projects, or keep projects in a database for a central waitlist API.

Taldres/laravel-waitlist

Keep a newsletter tool such as Brevo, Mailchimp or Mailcoach in step with a taldres/laravel-waitlist waitlist: add confirmed contacts per purpose, remove them on withdrawal and erasure, and carry unsubscribes made at the provider back into the waitlist via a webhook.

Taldres/laravel-waitlist

Build waitlist statistics with taldres/laravel-waitlist: signups and confirmations per day for charts, totals and confirmation rates for a period, the confirmed count on any past day, and how many people are on a list right now, for dashboards, admin pages and API endpoints.

Taldres/laravel-waitlist

Write feature tests for an application's taldres/laravel-waitlist integration: get the plain tokens from events, assert the confirmation and other mails, test the signup, confirm and unsubscribe flows in PHP and over the package's HTTP routes, and bypass rate limits and bot checks in tests.

関連スキル