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 की और Skills

developing-genkit-dart
firebase
We need to translate the given English text to Hindi. The text describes a unified AI SDK for Dart. We must preserve product names, protocol names, URLs, numbers, technical terms. The name "developing-genkit-dart" is not in the text, so we don't include it. We translate only the text inside <text>. No extra commentary, labels, etc. Let's break down the text: "Unified AI SDK for Dart enabling code generation, structured outputs, tools, flows, and agents. Provides core APIs for generation, tool definition, flow orchestration, embeddings, and streaming with a single interface Includes 8+ plugins for LLM providers (Google Gemini, Anthropic Claude, OpenAI GPT), Firebase AI, Model Context Protocol, Chrome browser integration, and HTTP server hosting via Shelf Built-in CLI with local development UI for flow execution, tracing, model experimentation, and..." We need to translate into Hindi. Keep technical terms like SDK, APIs, plugins, LLM, Google Gemini, Anthropic Claude, OpenAI GPT, Firebase AI, Model Context Protocol, Chrome,
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 परिवर्तनों के कारण
official
extension-to-functions-codebase
firebase
एक स्थापित Firebase एक्सटेंशन (या एक्सटेंशन स्रोत) को स्टैंडअलोन Cloud Functions for Firebase कोडबेस या प्रकाशन योग्य npm पैकेज में परिवर्तित करने के लिए स्किल,…
official
firebase-ai-logic
firebase
वेब ऐप्स के लिए क्लाइंट-साइड जेमिनी एकीकरण, जिसमें मल्टीमॉडल अनुमान, स्ट्रीमिंग और ऑन-डिवाइस हाइब्रिड निष्पादन शामिल है। केवल-टेक्स्ट और मल्टीमॉडल इनपुट (चित्र, ऑडियो, वीडियो, PDF) का समर्थन करता है; 20 MB से अधिक की फ़ाइलें क्लाउड स्टोरेज के माध्यम से रूट होती हैं। इसमें स्वचालित इतिहास वाले चैट सत्र, रीयल-टाइम प्रदर्शन के लिए स्ट्रीमिंग प्रतिक्रियाएँ और सं
official
firebase-ai-logic-basics
firebase
फायरबेस AI लॉजिक (Gemini API) को वेब एप्लिकेशन में एकीकृत करने के लिए आधिकारिक कौशल। सेटअप, मल्टीमॉडल इन्फ्रेंस, संरचित आउटपुट और सुरक्षा को शामिल करता है।
official
firebase-app-hosting-basics
firebase
Firebase App Hosting के साथ Next.js, Angular और अन्य समर्थित फ्रेमवर्क का उपयोग करके फुल-स्टैक वेब ऐप्स को डिप्लॉय और प्रबंधित करें। Blaze मूल्य योजना पर Firebase प्रोजेक्ट आवश्यक है; सर्वर-साइड रेंडरिंग (SSR) और इंक्रीमेंटल स्टैटिक रीजनरेशन (ISR) वर्कफ़्लो का समर्थन करता है। बैकएंड सेटअप के लिए वैकल्पिक apphosting.yaml के साथ firebase.json कॉन्फ़िगरेशन के माध्यम से डिप्लॉय करें, या GitHub एकीकरण के माध्यम से स्वचालित "git push to deploy
official
firebase-auth-basics
firebase
Firebase Authentication को कई पहचान प्रदाताओं और सुरक्षित डेटा एक्सेस नियमों के साथ सेट अप करें। ईमेल/पासवर्ड, फ़ोन नंबर, अनाम, फ़ेडरेटेड प्रदाताओं (Google, Facebook, Twitter, GitHub, Microsoft, Apple) और कस्टम ऑथ इंटीग्रेशन का समर्थन करता है। प्रत्येक प्रमाणित उपयोगकर्ता को Firebase सेवाओं तक पहुँचने के लिए एक अद्वितीय ID और JWT-आधारित टोकन (अल्पकालिक ID टोकन और दीर्घकालिक रिफ्रेश टोकन) प्राप्त होते हैं। Google Sign In, अनाम और ईमेल
official
firebase-basics
firebase
Firebase प्रोजेक्ट सेटअप और AI एजेंट एकीकरण के लिए CLI वर्कफ़्लो। firebase-local-env-setup स्किल और Firebase CLI इंस्टॉलेशन का पूर्व समापन आवश्यक है। मुख्य वर्कफ़्लो में firebase login के माध्यम से प्रमाणीकरण, अद्वितीय आईडी के साथ प्रोजेक्ट निर्माण, और इंटरैक्टिव firebase init कमांड के माध्यम से सेवा आरंभीकरण शामिल है। सेटअप के दौरान फीचर चयन का समर्थन करता है जिसमें Firestore, Functions, और Hosting शामिल हैं, जिसमें स्वचालित कॉन्फ़िगरेशन फ़
official