mirror of
https://github.com/fleetdm/fleet
synced 2026-05-24 09:28:54 +00:00
Some checks failed
Build binaries / build-binaries (push) Waiting to run
Check automated documentation is up-to-date / check-doc-gen (push) Waiting to run
CodeQL / Analyze (push) Waiting to run
Deploy Fleet website / build (20.x) (push) Waiting to run
Apply latest configuration to dogfood with GitOps / fleet-gitops (push) Waiting to run
Test latest changes in fleetctl preview / test-preview (ubuntu-latest) (push) Waiting to run
golangci-lint / lint (push) Waiting to run
golangci-lint / lint-incremental (push) Waiting to run
Docker publish / publish (push) Waiting to run
Ingest maintained apps / build (push) Waiting to run
OSSF Scorecard / Validate Gradle wrapper (push) Waiting to run
OSSF Scorecard / Scorecard analysis (push) Waiting to run
Sync Maintained Apps Outputs to R2 / sync-to-r2 (push) Waiting to run
Test DB Changes / test-db-changes (push) Waiting to run
Run fleetd-chrome tests / test-fleetd-chrome (ubuntu-latest) (push) Waiting to run
Go Tests / test-go-extended-mysql (mysql:8.4.8, main) (push) Waiting to run
Go Tests / test-go-extended-mysql (mysql:8.4.8, mysql) (push) Waiting to run
Go Tests / test-go-extended-mysql (mysql:8.4.8, service) (push) Waiting to run
Go Tests / test-go-extended-mysql (mysql:8.4.8, vuln) (push) Waiting to run
Go Tests / test-go-nanomdm (push) Waiting to run
Go Tests / test-go-extended-mysql (mysql:8.0.42, integration-enterprise) (push) Waiting to run
Go Tests / test-go-extended-mysql (mysql:8.0.42, integration-mdm) (push) Waiting to run
Go Tests / test-go-extended-mysql (mysql:8.0.42, main) (push) Waiting to run
Go Tests / test-go-extended-mysql (mysql:8.0.42, mysql) (push) Waiting to run
Go Tests / test-go-extended-mysql (mysql:8.0.42, service) (push) Waiting to run
Go Tests / test-go-extended-mysql (mysql:8.0.42, vuln) (push) Waiting to run
Go Tests / test-go-extended-mysql (mysql:8.4.8, fleetctl) (push) Waiting to run
Go Tests / test-go-no-db (fast) (push) Waiting to run
Go Tests / test-go-no-db (scripts) (push) Waiting to run
Go Tests / test-go (mysql:8.0.44, fleetctl) (push) Waiting to run
Go Tests / test-go-extended-mysql (mysql:8.4.8, integration-core) (push) Waiting to run
Go Tests / test-go (mysql:8.0.44, integration-core) (push) Waiting to run
Go Tests / test-go (mysql:8.0.44, integration-enterprise) (push) Waiting to run
Go Tests / test-go (mysql:8.0.44, integration-mdm) (push) Waiting to run
Go Tests / test-go (mysql:8.0.44, main) (push) Waiting to run
Go Tests / test-go-extended-mysql (mysql:8.4.8, integration-enterprise) (push) Waiting to run
Go Tests / test-go (mysql:8.0.44, mysql) (push) Waiting to run
Go Tests / test-go (mysql:8.0.44, service) (push) Waiting to run
Go Tests / test-go (mysql:8.0.44, vuln) (push) Waiting to run
Go Tests / test-go (mysql:9.5.0, fleetctl) (push) Waiting to run
Go Tests / test-go (mysql:9.5.0, integration-core) (push) Waiting to run
Go Tests / test-go (mysql:9.5.0, integration-enterprise) (push) Waiting to run
Go Tests / test-go (mysql:9.5.0, integration-mdm) (push) Waiting to run
Go Tests / test-go (mysql:9.5.0, main) (push) Waiting to run
Go Tests / test-go-extended-mysql (mysql:8.4.8, integration-mdm) (push) Waiting to run
Go Tests / test-go (mysql:9.5.0, mysql) (push) Waiting to run
Go Tests / test-go (mysql:9.5.0, service) (push) Waiting to run
Go Tests / test-go (mysql:9.5.0, vuln) (push) Waiting to run
Go Tests / test-go-extended-mysql (mysql:8.0.42, fleetctl) (push) Waiting to run
Go Tests / test-go-extended-mysql (mysql:8.0.42, integration-core) (push) Waiting to run
Go Tests / upload-coverage (push) Blocked by required conditions
Go Tests / aggregate-result (push) Blocked by required conditions
JavaScript Tests / test-js (ubuntu-latest) (push) Waiting to run
JavaScript Tests / lint-js (ubuntu-latest) (push) Waiting to run
Test Mock Changes / test-mock-changes (push) Waiting to run
Test native tooling packaging / test-packaging (local, ubuntu-latest) (push) Waiting to run
Test native tooling packaging / test-packaging (remote, ubuntu-latest) (push) Waiting to run
Test packaging / test-packaging (macos-15) (push) Waiting to run
Test packaging / test-packaging (macos-26) (push) Waiting to run
Test packaging / test-packaging (ubuntu-latest) (push) Waiting to run
Test Puppet / test-puppet (push) Waiting to run
tfvalidate / terraform validate (push) Has been cancelled
Trivy vulnerability scan / discover (push) Has been cancelled
Trivy vulnerability scan / Trivy sarif report (push) Has been cancelled
Changes: - Removed the /meetups page, and added a redirect going to /gitops-workshop - Changed the route for the query generator back to /query-generator (was /report-generator), and updated links going to that page.
86 lines
5.4 KiB
Text
Vendored
86 lines
5.4 KiB
Text
Vendored
<div id="query-generator" v-cloak>
|
||
<div purpose="page-container">
|
||
<div purpose="page-content">
|
||
<div purpose="page-headline">
|
||
<h2>Query robot 🤖</h2>
|
||
<p>Not great with SQL? Our query robot can help you.</p>
|
||
</div>
|
||
<div purpose="query-form">
|
||
<ajax-form :handle-submitting="handleSubmittingForm" :cloud-error.sync="cloudError" :form-errors.sync="formErrors" :form-data="formData" :form-rules="formRules">
|
||
<div purpose="form" class="form-group">
|
||
<label for="instructions">Ask a question about your device</label>
|
||
<textarea class="form-control" type="textarea" :disabled="showGeneratedQuery" id="instructions" placeholder="E.g., is Filevault enabled?" :class="[formErrors.naturalLanguageQuestion ? 'is-invalid' : '']" v-model.trim="formData.naturalLanguageQuestion"></textarea>
|
||
<div class="invalid-feedback" v-if="formErrors.naturalLanguageQuestion" focus-first>Ask your question.</div>
|
||
</div>
|
||
<cloud-error v-if="cloudError">An error occurred while generating your query. Please <a href="/query-generator">reload this page and try again</a>.</cloud-error>
|
||
|
||
<div purpose="ai-note" v-if="!showGeneratedQuery">
|
||
<p>Fleet’s public query robot uses Anthropic <a href="https://github.com/fleetdm/fleet/blob/main/website/api/helpers/ai/prompt.js" target="_blank">under the hood</a>. Think before entering sensitive or confidential data in your prompts, as some data may not fall under your organization’s specific AI or data governance policies.</p>
|
||
</div>
|
||
<div purpose="note" v-if="!showGeneratedQuery">
|
||
<img src="/images/icon-info-16x16@2x.png" alt="An icon indicating that this section has important information">
|
||
<div>
|
||
<p>This will take at least 30 seconds to generate.</p>
|
||
</div>
|
||
</div>
|
||
<ajax-button purpose="submit-button" spinner="true" type="submit" :syncing="syncing" class="btn btn-primary mt-4 float-left" v-if="!cloudError && !showGeneratedQuery">Generate query</ajax-button>
|
||
</ajax-form>
|
||
</div>
|
||
<div v-show="showGeneratedQuery">
|
||
<h3>Here you go!</h3>
|
||
<p class="mb-2">Paste this into osqueryi or Fleet to try it out.</p>
|
||
<div purpose="codeblock">
|
||
<div purpose="codeblock-tabs" >
|
||
<a purpose="codeblock-tab" :class="[ selectedTab === 'macos' ? 'selected' : '']" @click="selectedTab = 'macos'" v-if="generatedQueries.macOSQuery">Apple</a>
|
||
<a purpose="codeblock-tab" :class="[ selectedTab === 'windows' ? 'selected' : '']" @click="selectedTab = 'windows'" v-if="generatedQueries.windowsQuery">Windows</a>
|
||
<a purpose="codeblock-tab" :class="[ selectedTab === 'linux' ? 'selected' : '']" @click="selectedTab = 'linux'" v-if="generatedQueries.linuxQuery">Linux</a>
|
||
<a purpose="codeblock-tab" :class="[ selectedTab === 'chromeos' ? 'selected' : '']" @click="selectedTab = 'chromeos'" v-if="generatedQueries.chromeOSQuery">ChromeOS</a>
|
||
<div purpose="copy-button-tab">
|
||
<div purpose="copy-button"></div>
|
||
</div>
|
||
</div>
|
||
<pre v-show="selectedTab === 'macos'"><code class="hljs sql"> {{generatedQueries.macOSQuery}}</code></pre>
|
||
<pre v-show="selectedTab === 'windows'"><code class="hljs sql"> {{generatedQueries.windowsQuery}}</code></pre>
|
||
<pre v-show="selectedTab === 'linux'"><code class="hljs sql"> {{generatedQueries.linuxQuery}}</code></pre>
|
||
<pre v-show="selectedTab === 'chromeos'"><code class="hljs sql"> {{generatedQueries.chromeOSQuery}}</code></pre>
|
||
</div>
|
||
<div purpose="caveats">
|
||
<div v-if="selectedTab === 'macos' && (generatedQueries.macOSCaveats !== undefined && generatedQueries.macOSCaveats !== '')">
|
||
<h3>Caveats</h3>
|
||
<ul>
|
||
<li><p>{{generatedQueries.macOSCaveats}}</p></li>
|
||
</ul>
|
||
</div>
|
||
<div v-if="selectedTab === 'windows' && (generatedQueries.windowsCaveats !== undefined && generatedQueries.windowsCaveats !== '')">
|
||
<h3>Caveats</h3>
|
||
<ul>
|
||
<li><p>{{generatedQueries.windowsCaveats}}</p></li>
|
||
</ul>
|
||
</div>
|
||
<div v-if="selectedTab === 'linux' && (generatedQueries.linuxCaveats !== undefined && generatedQueries.linuxCaveats !== '')">
|
||
<h3>Caveats</h3>
|
||
<ul>
|
||
<li><p>{{generatedQueries.linuxCaveats}}</p></li>
|
||
</ul>
|
||
</div>
|
||
<div v-if="selectedTab === 'chromeos' && (generatedQueries.chromeOSCaveats !== undefined && generatedQueries.chromeOSCaveats !== '')">
|
||
<h3>Caveats</h3>
|
||
<ul>
|
||
<li><p>{{generatedQueries.chromeOSCaveats}}</p></li>
|
||
</ul>
|
||
</div>
|
||
</div>
|
||
<div purpose="note">
|
||
<img src="/images/icon-info-16x16@2x.png" alt="An icon indicating that this section has important information">
|
||
<div>
|
||
<p>These AI-generated results may be incorrect. I have been known to hallucinate from time to time.
|
||
Check Fleet’s <a href="/tables" target="_blank">data tables</a>.</p>
|
||
</div>
|
||
</div>
|
||
<div class="btn btn-sm btn-primary" purpose="reset-button" @click="clickResetQueryGenerator()" v-if="">Start over</div>
|
||
</div>
|
||
|
||
</div>
|
||
</div>
|
||
</div>
|
||
<%- /* Expose server-rendered data as window.SAILS_LOCALS :: */ exposeLocalsToBrowser() %>
|