{"schemaVersion":1,"resourceType":"connector","slug":"secretscan","name":"Secret scanning","catalog":"secretscan","description":"Find leaked API keys, tokens and private keys in text from SQL, offline and with redacted output","language":"Go","categories":["security"],"repository":"https://github.com/Query-farm/vgi-secretscan","license":"MIT","generatedAt":"2026-12-01T18:22:16+00:00","runtime":{"engineVersion":"2.0.1","protocolVersion":"3.4"},"release":{"tag":"v0.5.0","publishedAt":"2026-11-25T06:06:48Z","url":"https://github.com/Query-farm/vgi-secretscan/releases/tag/v0.5.0"},"links":{"html":"https://query.farm/products/orchard/connectors/secretscan/","llms":"https://query.farm/products/orchard/connectors/secretscan/llms.txt","markdown":"https://query.farm/products/orchard/connectors/secretscan/index.md","json":"https://query.farm/products/orchard/api/v1/connectors/secretscan.json","objects":"https://query.farm/products/orchard/api/v1/connectors/secretscan/objects.json","search":"https://query.farm/products/orchard/api/v1/search.json?kind=object&connector=secretscan&q={query}"},"authentication":{"mode":"none_declared","guidance":"No service credentials are declared by this connector. Individual datasets, input files or deployments may have their own prerequisites.","interpretation":"Secret parameter required flags describe the upstream declaration; they do not override the service-level mode above. Keep secrets in environment variables or the deployment secret store. SQL values in angle brackets are placeholders, not automatic environment lookups. Native DuckDB and Haybarn 2.0.1 do not provide a SQL getenv() function, even when worker-supplied snippets mention it. Read environment variables in your application and pass credential values through client parameter bindings (for example, Python con.execute(\"CREATE SECRET stripe (TYPE stripe, api_key ?)\", [os.environ[\"STRIPE_API_KEY\"]]) after attaching the connector. Omit unused optional parameters and keep real values out of saved SQL and logs.","secrets":[]},"deployment":{"local":{"methods":[{"id":"github","label":"From GitHub","icon":"simple-icons:github","steps":[{"title":"Attach the release directly","description":"Downloads the latest release for your platform and caches it locally.","lang":"sql","code":"ATTACH 'secretscan' AS secretscan (\n  TYPE vgi,\n  LOCATION 'github-auto://Query-farm/vgi-secretscan'\n);"}]},{"id":"docker","label":"Docker","icon":"simple-icons:docker","steps":[{"title":"Attach the signed image","description":"Needs Docker, Podman or another OCI runtime. The extension runs the container and talks to it over stdio.","lang":"sql","code":"ATTACH 'secretscan' AS secretscan (\n  TYPE vgi,\n  LOCATION 'oci://ghcr.io/query-farm/vgi-secretscan:0.5.0'\n);"}]}],"pinnedMethods":[{"id":"github","label":"From GitHub","icon":"simple-icons:github","steps":[{"title":"Attach the release directly","description":"Uses the verified release each time you attach the connector.","lang":"sql","code":"ATTACH 'secretscan' AS secretscan (\n  TYPE vgi,\n  LOCATION 'github-auto://Query-farm/vgi-secretscan@v0.5.0'\n);"}]},{"id":"docker","label":"Docker","icon":"simple-icons:docker","steps":[{"title":"Attach the signed image","description":"Needs Docker, Podman or another OCI runtime. The extension runs the container and talks to it over stdio.","lang":"sql","code":"ATTACH 'secretscan' AS secretscan (\n  TYPE vgi,\n  LOCATION 'oci://ghcr.io/query-farm/vgi-secretscan:0.5.0'\n);"}]}]},"selfHost":{"instructions":"https://github.com/Query-farm/vgi-secretscan","connectionGuide":"https://query.farm/vgi/connect-to-a-worker/","guidance":"Deploy using the connector repository instructions and use its supported HTTP or SSH transport. Replace example URLs with your actual deployment; configure its authentication."},"queryFarm":{"available":true,"console":"https://auth.queryfarm.cloud/console/new?worker=secretscan","organizationMonthlyMinimumUsd":10,"pricing":"https://query.farm/products/orchard/hosted/"},"publicDemo":null},"setup":{"extensions":{"duckdb":"SET allow_extension_repositories = 'allowed';\n\nCREATE EXTENSION REPOSITORY IF NOT EXISTS query_farm\n    WITH PREFIX 'https://duckdb-extensions.query.farm';\n\nINSTALL vgi FROM query_farm;\nLOAD vgi FROM query_farm;","haybarn":"INSTALL vgi FROM community;\nLOAD vgi;"},"attachSql":"ATTACH 'secretscan' AS secretscan (\n  TYPE vgi,\n  LOCATION 'github-auto://Query-farm/vgi-secretscan'\n);","attachOptions":[],"note":"Install and load VGI, attach the connector using the catalog alias shown here, then create required secrets. Replace placeholders and omit unused optional secret parameters. Satisfy file, network and credential prerequisites before executing a query."},"example":{"title":"Find and identify exposed secrets in text","sql":"SELECT f.rule_id, f.match_redacted, f.start_offset, d.provider, d.category FROM secretscan.main.secret_scan('AWS_ACCESS_KEY_ID=AKIAZ3MZ7EXAMPLE4Q2T SLACK_TOKEN=xoxb-1234567890-1234567890123-AbCdEfGhIjKlMnOpQrStUvWx NPM_TOKEN=npm_Zq8xK2vN7rT4mW9pL3sY6bH1cJ5dF0gA8eRt') AS f LEFT JOIN secretscan.main.secret_detectors AS d USING (rule_id) ORDER BY f.start_offset;","requiresCredentials":null,"note":"Uses deliberately fake keys to demonstrate detection and redaction.","objects":[{"name":"secretscan.main.secret_scan","kind":"table_function","links":{"html":"https://query.farm/products/orchard/connectors/secretscan/#obj-main-secret_scan","markdown":"https://query.farm/products/orchard/connectors/secretscan/objects/table_function.bWFpbg.c2VjcmV0X3NjYW4.md","json":"https://query.farm/products/orchard/api/v1/connectors/secretscan/objects/table_function.bWFpbg.c2VjcmV0X3NjYW4.json"}},{"name":"secretscan.main.secret_detectors","kind":"view","links":{"html":"https://query.farm/products/orchard/connectors/secretscan/#obj-main-secret_detectors","markdown":"https://query.farm/products/orchard/connectors/secretscan/objects/view.bWFpbg.c2VjcmV0X2RldGVjdG9ycw.md","json":"https://query.farm/products/orchard/api/v1/connectors/secretscan/objects/view.bWFpbg.c2VjcmV0X2RldGVjdG9ycw.json"}}],"evidence":{"status":"captured_result","capturedAt":"2026-12-01T06:21:29+00:00","engineVersion":"2.0.1","protocolVersion":"3.4.0","releaseTag":"v0.5.0","sample":{"columns":["rule_id","match_redacted","start_offset","provider","category"],"types":["VARCHAR","VARCHAR","INTEGER","VARCHAR","VARCHAR"],"rows":[["aws-access-token","AKIA********4Q2T",18,"AWS","Cloud Keys"],["slack-bot-token","xoxb********UvWx",51,"Slack","Chat Tokens"],["npm-access-token","npm_********8eRt",116,null,null]],"more":false}},"artifact":null},"objects":{"total":3,"index":"https://query.farm/products/orchard/api/v1/connectors/secretscan/objects.json","search":"https://query.farm/products/orchard/api/v1/search.json?kind=object&connector=secretscan&q={query}"},"agentTasks":["Does the following text contain any leaked secret? Answer with a single boolean. Text: deploy AKIAZ3MZ7EXAMPLE4Q2T now","Does the following benign sentence contain any leaked secret? Answer with a single boolean. Text: the quick brown fox jumps over the lazy dog","Scan the following text for leaked secrets and tell me how many findings it produces. Text: deploy AKIAZ3MZ7EXAMPLE4Q2T now","Scan the following text for leaked secrets and report, for each finding, the matched rule id and the redacted match. Text: deploy AKIAZ3MZ7EXAMPLE4Q2T now","In the following text, does the high-confidence (confidence >= 0.9) leaked secret start partway through the string rather than at the very beginning — that is, at a byte offset greater than 0? Answer with a single boolean. Text: deploy AKIAZ3MZ7EXAMPLE4Q2T now","Scan the following text for leaked secrets and tell me whether it produces a finding from the Slack bot-token detector. Answer with a single boolean. Text: token xoxb-1234567890-1234567890123-AbCdEfGhIjKlMnOpQrStUvWx","Using the scanner's browsable detector registry, how many distinct secret detectors does it recognise in total?","Does the scanner's detector registry include any high-confidence (>= 0.9) detector for AWS? Answer with a single boolean."],"provenance":{"generatedAt":"2026-12-01T18:22:16+00:00","repository":"https://github.com/Query-farm/vgi-secretscan","harvest":{"status":"ok","method":"github-auto","error":null,"vgi_version":"9773130dde"},"catalogVerification":{"verified":true,"status":"passed","total":3,"passed":3,"failed":0,"needs_credentials":0,"location":"github-auto://Query-farm/vgi-secretscan@v0.5.0","transport":"github-auto","environment":{"vgi_extension_version":"9773130dde","haybarn_version":"2.0.1rc3","engine_version":"v2.0.1","python":"3.12.4","platform":"darwin_arm64","protocol_version":"3.4.0"},"checked_at":"2026-12-01T06:17:30+00:00"},"interpretation":"Catalog verification records the harvest environment. It is not proof that every query or current live API call succeeds. Only an example with captured_result has a saved result for that exact SQL."},"interpretation":["Missing, null, or undeclared metadata means unknown; do not invent defaults, credential scope, platform support or endpoint URLs.","Search is keyword retrieval, not proof of a capability. Read the exact object declaration before generating SQL.","A table and a table function can have the same name. Preserve parentheses and use the matching overload and schema.","Service credentials, external data availability and deployment authentication are separate requirements."]}