resolve-docker-vulnerabilities

作成者: firebase

firebase-cliイメージのDocker脆弱性を解決するスキル。firebase-cli Dockerイメージの脆弱性を確認する必要がある場合にこのスキルを使用してください…

npx skills add https://github.com/firebase/firebase-tools --skill resolve-docker-vulnerabilities

Resolve Docker Vulnerabilities

This skill guides you through the process of listing images, checking for vulnerabilities, planning remediation, and verifying the fixes by publishing to a staging repository.

Workflow

1. Publish to Staging

Run the build on fir-tools-builds and publish to the staging repository in firebase-cli to see the baseline vulnerabilities after the build's own updates.

./scripts/publish/firebase-docker-image/run.sh --build-project fir-tools-builds --repo staging --target firebase-cli

2. Check Vulnerabilities

Check the vulnerability reports for the image just pushed to staging. You will need to find the digest of the image first.

gcloud artifacts docker images list us-docker.pkg.dev/firebase-cli/staging/firebase

Then check vulnerabilities using the digest:

gcloud artifacts vulnerabilities list us-docker.pkg.dev/firebase-cli/staging/firebase@sha256:<DIGEST>

To investigate which layers and file paths are causing the vulnerabilities, run the command with --format=json:

gcloud artifacts vulnerabilities list us-docker.pkg.dev/firebase-cli/staging/firebase@sha256:<DIGEST> --format=json

Look for fileLocation and layerDetails in the output to understand if the vulnerability is in:

  • Project dependencies (e.g., under /usr/local/node_packages/node_modules). Recommend updating the package.json and running the build again. You can use overrides as needed here to upgrade transitive dependencies to non-breaking versions.
  • Global tools (e.g., under /usr/local/lib/node_modules/npm). Recommend waiting for upstream fixes (which will be pulled in as soon as they are available).
  • External binaries (e.g., emulator JARs under /root/.cache/firebase/emulators). Recommend raising these issues to the team owning the emulator.

3. Plan Remediation

For each vulnerable package identified:

  • Determine if it can be updated in the Dockerfile.
  • Check if a fix is available.
  • Create a plan to address it (e.g., upgrading the base image, upgrading the specific package).

4. Present Plan to User

Present the proposed plan to the user for approval before making changes.

5. Apply Fix and Re-Verify

After making changes to the Dockerfile or related files, repeat Step 1 and Step 2 to publish a new staged image and verify that the vulnerabilities have been resolved.

firebaseのその他のスキル

developing-genkit-dart
firebase
Dart向け統合AI SDK。コード生成、構造化出力、ツール、フロー、エージェントを実現。単一インターフェースで生成、ツール定義、フローオーケストレーション、埋め込み、ストリーミングのコアAPIを提供。LLMプロバイダー(Google Gemini、Anthropic Claude、OpenAI GPT)、Firebase AI、Model Context Protocol、Chromeブラウザ統合、Shelf経由のHTTPサーバーホスティング向け8以上のプラグインを含む。フロー実行、トレース、モデル実験などのためのローカル開発UIを備えた組み込みCLI。
official
developing-genkit-js
firebase
Genkitのフロー、ツール、マルチモデルサポートを使用して、AIを活用したNode.js/TypeScriptアプリケーションを構築します。Genkitはプロバイダーに依存せず、プラグインを介してGoogle AI、OpenAI、Anthropic、Ollama、その他のLLMプロバイダーをサポートします。Zodを使用して型安全なスキーマでフローを定義し、生成リクエストを実行し、TypeScriptでマルチステップのAIワークフローを構成します。Genkit CLI v1.29.0以上が必要です。最近の主要なAPI変更により、現在のパターンについては、以前の知識ではなく、genkit docs:readおよびcommon-errors.mdを参照する必要があります...
official
extension-to-functions-codebase
firebase
インストール済みのFirebase Extension(または拡張機能のソース)を、スタンドアロンのCloud Functions for Firebaseコードベース、または公開可能なnpmパッケージに変換するためのスキル、…
official
firebase-ai-logic
firebase
クライアントサイドのGemini統合で、マルチモーダル推論、ストリーミング、デバイス上のハイブリッド実行を備えたウェブアプリ向け。テキストのみおよびマルチモーダル入力(画像、音声、動画、PDF)をサポート。20MBを超えるファイルはCloud Storage経由でルーティング。自動履歴付きチャットセッション、リアルタイム表示のためのストリーミング応答、構造化JSON出力の強制を含む。ChromeのGemini Nanoを介したデバイス上のハイブリッド推論を提供し、クラウド実行への自動フォールバックを備える。本番環境ではApp Checkが必要。
official
firebase-ai-logic-basics
firebase
Firebase AI Logic(Gemini API)をウェブアプリケーションに統合するための公式スキル。セットアップ、マルチモーダル推論、構造化出力、セキュリティをカバーします。
official
firebase-app-hosting-basics
firebase
Firebase App Hostingを使用して、Next.js、Angular、その他サポートされているフレームワークを用いたフルスタックWebアプリをデプロイおよび管理します。FirebaseプロジェクトがBlaze料金プランである必要があり、サーバーサイドレンダリング(SSR)およびインクリメンタル静的再生成(ISR)ワークフローをサポートします。バックエンド設定用のオプションのapphosting.yamlを伴うfirebase.json設定を介してデプロイするか、GitHub統合を通じて自動化された「git push to deploy」を有効にします。機密キーへの安全なアクセスのためのCLIコマンドによるシークレット管理を含みます。
official
firebase-auth-basics
firebase
Firebase Authenticationを複数のIDプロバイダーと安全なデータアクセスルールで設定します。メール/パスワード、電話番号、匿名、フェデレーションプロバイダー(Google、Facebook、Twitter、GitHub、Microsoft、Apple)、カスタム認証統合をサポートします。各認証ユーザーには一意のIDとJWTベースのトークン(短期間のIDトークンと長期間のリフレッシュトークン)が付与され、Firebaseサービスにアクセスできます。Googleサインイン、匿名、メール/パスワードのプロバイダーはCLI経由で有効化し、Firebase Consoleを使用します...
official
firebase-basics
firebase
Firebaseプロジェクトのセットアップと、AIエージェント統合のためのCLIワークフロー。事前にfirebase-local-env-setupスキルとFirebase CLIのインストールを完了している必要があります。コアワークフローは、firebase loginによる認証、一意のIDを使用したプロジェクト作成、および対話型のfirebase initコマンドによるサービスの初期化をカバーします。セットアップ中にFirestore、Functions、Hostingを含む機能選択をサポートし、自動的に設定ファイルを生成します。--helpフラグを使用した自己文書化CLI...
official