Skip to content

Platform Integrations

This guide covers how to scan various platforms and services with Kingfisher.

Table of Contents

AWS S3

You can scan S3 objects directly:

kingfisher scan s3 bucket-name [--prefix path/]

Focus a scan and reuse downloaded objects

Repeat the four object filters to select multiple prefixes and extensions:

kingfisher scan s3 shared-bucket \
  --path-prefix configs/ --path-prefix deployments/ \
  --skip-path-prefix configs/generated/ \
  --file-extension json --file-extension yaml --file-extension env \
  --skip-file-extension bak --format json

Prefix comparisons are literal and case sensitive: configs also matches configs2/. Use a trailing slash (configs/) to select a directory. Extensions match the final filename suffix, ignore case, and accept a leading dot; env includes .env. Exclusions take precedence. Folder-marker objects are skipped. Filters are applied before GetObject, so excluded objects are never downloaded. --prefix keeps its existing single-scope meaning. When combined with --path-prefix, the scan uses their intersection and never expands that scope.

Included prefixes are pushed into ListObjectsV2 requests. Duplicate and nested prefixes collapse into disjoint listing scopes, and each scope paginates independently. An identity restricted by an IAM s3:prefix condition can scan its permitted scopes without listing the bucket root. Grant s3:ListBucket for those prefixes and s3:GetObject for the selected objects. The scoped listing itself checks access; no unscoped bucket-list probe is required.

Add --object-cache-dir ./s3-state to save page checkpoints and downloaded content:

kingfisher scan s3 shared-bucket --path-prefix configs/ \
  --object-cache-dir ./s3-state --profile security --format json

Repeat the command after interruption to resume each scoped listing from its last completed page. Completed pages are replayed from local content, so the new report includes those findings too. After a completed run, the next run lists afresh and downloads only new or changed objects, comparing ETag, last-modified time and size. Cached objects are scanned again under the current rules and deleted objects disappear from the report. Objects without an ETag are always downloaded. The cache root stores each source in a separate hashed subdirectory. S3, GCS, Azure Blob containers and Hugging Face buckets can share a root. Each source entry is bound to its exact selection policy; use a different root when changing that policy. Concurrent use of the same source entry is rejected. Page checkpoints append only that page’s metadata; a successful scan compacts the full manifest once, avoiding repeated rewrites of all earlier objects. An interrupted final append is discarded on resume, and its unfinished page is listed again.

The state directory contains source object content, which may include secrets; store it with the same access controls as the source. Object keys are hashed into local filenames, and cached content is checked against saved digests. Keep the complete directory to resume; deleting it starts a fresh scan. Resumption covers the interrupted listing, rather than an atomic snapshot of a bucket changing during the scan. If S3 expires a saved listing token, use a fresh state directory to list again.

Credential resolution happens in this order:

  1. KF_AWS_KEY and KF_AWS_SECRET environment variables (optionally KF_AWS_SESSION_TOKEN for temporary credentials)
  2. --profile pointing to a profile in ~/.aws/config (works with AWS SSO)
  3. anonymous access for public buckets

If --role-arn is supplied, the credentials from steps 1–2 are used to assume that role.

Examples

# using explicit keys
export KF_AWS_KEY=AKIA...
export KF_AWS_SECRET=g5nYW...
kingfisher scan s3 some-example-bucket

# Above can also be run as:
KF_AWS_KEY=AKIA... KF_AWS_SECRET=g5nYW... kingfisher scan s3 some-example-bucket

# using a local profile (e.g., SSO) that exists in your AWS profile (~/.aws/config)
kingfisher scan s3 some-example-bucket --profile default

# anonymous scan of a bucket, while providing an object prefix to only scan subset of the s3 bucket
kingfisher scan s3 awsglue-datasets \
  --prefix examples/us-legislators/all

# assuming a role when scanning
kingfisher scan s3 some-example-bucket \
  --role-arn arn:aws:iam::123456789012:role/MyRole

# anonymous scan of a public bucket
kingfisher scan s3 some-example-bucket

Docker example:

docker run --rm \
  -e KF_AWS_KEY=AKIA... \
  -e KF_AWS_SECRET=g5nYW... \
  ghcr.io/mongodb/kingfisher:latest \
    scan s3 bucket-name

Google Cloud Storage

Use the gcs scan subcommand to stream objects directly from Google Cloud Storage. Authentication uses Application Default Credentials, so you can provide a service-account JSON file via the GOOGLE_APPLICATION_CREDENTIALS environment variable or by passing --service-account. Public buckets work without credentials.

kingfisher scan gcs bucket-name

# scan a sub-tree inside the bucket
kingfisher scan gcs bucket-name --prefix path/to/data/

# supply a service-account key explicitly
kingfisher scan gcs bucket-name --service-account /path/to/key.json

Functional example:

kingfisher scan gcs cloud-samples-data --prefix "storage/"

GCS supports the same shared path and extension selection as S3, with prefixes sent directly to the object-list API. Repeat the flags to choose multiple scopes:

kingfisher scan gcs bucket-name \
  --path-prefix configs/ --path-prefix deployments/ \
  --skip-path-prefix configs/generated/ --file-extension env \
  --object-cache-dir ./object-cache --format json

--prefix intersects with --path-prefix. Exclusions are checked before object downloads. Cache checkpoints resume each scope independently; completed pages are replayed into the new report. Fresh runs list again and use object generation, modification time and size to reuse unchanged content. Downloads request the listed generation. If that generation disappears, Kingfisher refreshes the object metadata and retries once with the current generation. Deleted or repeatedly changing objects are skipped with a warning and reconsidered on the next scan; permission errors still fail the scan. Cached content always retains the generation actually downloaded. Objects without a generation or ETag are downloaded again.

Azure Blob Storage

Scan the current blobs in one container by passing its HTTPS URL. Use a URL without credentials or query parameters; keep SAS tokens in the environment. Sovereign-cloud and custom Blob endpoints work with the same syntax. For Azure DevOps repositories, use Azure Repos.

# Container-level SAS with read (r) and list (l) permissions
KF_AZURE_STORAGE_SAS="sv=...&sp=rl&sig=..." kingfisher scan azure-blob \
  https://myaccount.blob.core.windows.net/my-container --format json

# Apply shared selection before downloading and save resumable checkpoints/content
KF_AZURE_STORAGE_SAS="sv=...&sp=rl&sig=..." kingfisher scan azure-blob \
  https://myaccount.blob.core.windows.net/my-container \
  --path-prefix configs/ --path-prefix deploy/ --skip-path-prefix configs/generated/ \
  --file-extension env --file-extension json --skip-file-extension bak \
  --object-cache-dir ./object-cache --format json

# Account key; signing account is inferred from standard *.blob.core.* endpoints
KF_AZURE_STORAGE_KEY="..." kingfisher scan azure-blob \
  https://myaccount.blob.core.windows.net/my-container --format json

# Existing Microsoft Entra token for the Storage resource
KF_AZURE_STORAGE_TOKEN="..." kingfisher scan azure-blob \
  https://myaccount.blob.core.windows.net/my-container --format json

# Public container with anonymous list/read access: omit all storage credentials
kingfisher scan azure-blob https://myaccount.blob.core.windows.net/public --format json

# Azurite or a custom endpoint: specify the signing account explicitly
KF_AZURE_STORAGE_ACCOUNT="devstoreaccount1" KF_AZURE_STORAGE_KEY="..." \
  kingfisher scan azure-blob http://127.0.0.1:10000/devstoreaccount1/my-container --format json

Set exactly one authentication variable: KF_AZURE_STORAGE_SAS, KF_AZURE_STORAGE_KEY (base64 account key), or KF_AZURE_STORAGE_TOKEN (bearer access token). Set KF_AZURE_STORAGE_ACCOUNT with a key when using a custom hostname or emulator. These variables are separate from Azure Repos PATs. Entra tokens need Storage data-plane access, such as the Storage Blob Data Reader role; acquire a token for https://storage.azure.com/ that stays valid for the scan. Kingfisher uses the supplied token directly and does not acquire or refresh it. Anonymous scans require container-level public listing as well as blob reading.

Prefixes are container-relative and literal; repeat --path-prefix to scan several scopes. Nested scopes are collapsed, skip selectors win, and extensions are matched case-insensitively. Listing follows continuation markers even through empty pages and rejects cycles. Downloads first use the listed ETag as an If-Match condition. If a concurrent replacement returns HTTP 412, Kingfisher fetches the current blob once and caches it with its response ETag, never the stale listing identity. A blob deleted after listing is skipped with a warning and reconsidered on the next scan. Other download errors still fail the scan. --max-file-size is applied before downloads where sizes are available and while reading response bodies. Requests have a 30-second deadline unless --no-timeouts is set; throttling and service-unavailable responses have bounded retries.

--object-cache-dir shares the object cache behavior used by the other storage sources: resume completed pages after interruption, rescan cached content for complete reports, and download only changed blobs on a subsequent completed run. Protect the directory as sensitive scan input. The cache identity includes the endpoint and container, excludes credentials, and binds the selection and size policy. Start a different cache directory after changing that policy. Listings cover current blobs, excluding snapshots and deleted versions; archive-tier blobs must already be readable. HTTP is accepted only for loopback emulators, and redirects are rejected.

Docker

Kingfisher first tries to export a locally available image through the Docker Engine API using Bollard. If that fails, it tries the Docker CLI when available. Registry fallback via OCI requires confirmed local image absence, or both Docker surfaces being unavailable. Failed exports and inconclusive local lookups are reported as errors. Registry pulls and archive scans do not require Docker. Local image lookup uses a nonempty DOCKER_HOST first, then DOCKER_CONTEXT, then the active Docker context. Contexts requiring TLS certificate material or SSH use the Docker CLI fallback. TLS environment settings (DOCKER_TLS, DOCKER_TLS_VERIFY, and DOCKER_CERT_PATH) also use the Docker CLI fallback, which applies Docker's certificate and verification settings. This requires the Docker CLI, including when DOCKER_TLS_VERIFY is present but empty. Local images require daemon access; registry credentials apply only to pulls. Docker API export downloads are capped at 4 GiB unless --unlimited is set. Exceeding the limit fails the export without retrying through the CLI.

To use Podman, point DOCKER_HOST at its running Docker-compatible API socket (for rootless Linux, unix://$XDG_RUNTIME_DIR/podman/podman.sock). A nonempty DOCKER_HOST takes precedence over DOCKER_CONTEXT. Podman socket discovery and a podman CLI fallback are not enabled.

To skip local image lookup, registry access, and docker save, scan a Docker or OCI image archive directly with --archive. Archive inputs include files produced by docker save. Supported archive formats are .tar, .tar.gz, .tar.gzip, .tgz, .tar.bz2, .tar.bzip2, and .tar.xz.

Registry authentication happens in this order:

  1. KF_DOCKER_TOKEN env var
  2. If it contains user:pass, it's used as Basic auth
  3. Otherwise it's sent as a Bearer token
  4. Docker registry credentials
  5. Checks credHelpers (per-registry) and credsStore in ~/.docker/config.json or DOCKER_CONFIG/config.json.
  6. Falls back to the legacy auths → auth (base64) entries.
  7. Anonymous (no credentials)

Examples

# 1) Scan public or already-pulled image
kingfisher scan docker ghcr.io/owasp/wrongsecrets/wrongsecrets-master:latest-master

# 2) For private registries, explicitly set KF_DOCKER_TOKEN:
#    - Basic auth:     "user:pass"
#    - Bearer only:    "TOKEN"
export KF_DOCKER_TOKEN="AWS:$(aws ecr get-login-password --region us-east-1)"
kingfisher scan docker some-private-registry.dkr.ecr.us-east-1.amazonaws.com/base/amazonlinux2023:latest

# 3) Or rely on your Docker CLI login/keychain:
#    (e.g. aws ecr get-login-password … | docker login …)
kingfisher scan docker private.registry.example.com/my-image:tag

# 4) Scan a Docker image archive created by docker save:
docker save ghcr.io/owasp/wrongsecrets/wrongsecrets-master:latest-master -o image.tar
kingfisher scan docker --archive image.tar
gzip -k image.tar
kingfisher scan docker --archive image.tar.gz

Deprecated Older documentation may refer to legacy provider flags such as --github-user, --gitlab-group, --bitbucket-workspace, --slack-query, --jira-url, --confluence-url, --s3-bucket, --gcs-bucket, and --docker-image. Use the kingfisher scan <provider> subcommands below instead.

GitHub

GitHub API reads during discovery and repository-artifact fetching retry HTTP 5xx, 429, and rate-limited 403 responses automatically. Each request allows up to three retries and two minutes of total retry waiting. Kingfisher honors Retry-After and exhausted-quota X-RateLimit-Reset headers; a cooldown beyond the remaining wait budget is reported immediately. Without a cooldown header, server errors use exponential backoff with jitter, and rate limits wait at least one minute. Authentication and permission errors are not retried.

Scan a GitHub organization

kingfisher scan github --organization my-org
kingfisher scan github --organization my-org --repo-clone-limit 500

Public repositories can be scanned anonymously. For private repositories and higher API limits, set KF_GITHUB_TOKEN to a personal access token or an already-minted GitHub App installation token.

For long-running organization scans, configure a GitHub App instead:

export KF_GITHUB_APP_ID="123456"
export KF_GITHUB_APP_INSTALLATION_ID="789012"
export KF_GITHUB_APP_PRIVATE_KEY_PATH='~/.config/kingfisher/app.pem'

kingfisher scan github --organization my-org

The App installation needs read access to repository contents. Kingfisher caches installation tokens in memory and shares them across API and clone workers. Before a clone or update, workers reuse the token or coordinate a single refresh within one minute of expiry. Token exchanges retry transient errors and rate limits with bounded backoff; failed refreshes share a cooldown to avoid request bursts. Set the private key directly in KF_GITHUB_APP_PRIVATE_KEY when a secret manager supplies PEM content instead of a file. Set only one of the private-key variables.

KF_GITHUB_APP_PRIVATE_KEY_PATH performs a lexical, single-pass expansion of the current user's leading ~/ or ~\ and environment variables written as $NAME, ${NAME}, or %NAME%, where NAME uses letters, digits, and underscores. This supports Unix paths such as $HOME/.config/kingfisher/app.pem and Windows paths such as %USERPROFILE%\AppData\Local\kingfisher\app.pem. Undefined or empty variables are rejected. The expansion never invokes a shell, performs command substitution, or recursively expands variable values. Use $$ for a literal $ and %% for a literal %.

All three App values are required. A complete App configuration takes precedence over KF_GITHUB_TOKEN; an incomplete configuration is rejected.

Monitor public GitHub events for users

Use --public-events to scan recent public activity for one or more GitHub users. Repeat --user for multiple actors, or pass --user-file with one username per line. Blank lines and lines beginning with # are ignored, and a leading @ is accepted.

For PushEvent, Kingfisher scans each commit SHA in the event. For branch creation events, it scans the created branch. For repository creation events, it scans the whole repository. Set KF_GITHUB_TOKEN when possible to raise API rate limits.

# Monitor two users for public events from the last 12 hours
kingfisher scan github --public-events \
  --user alice \
  --user bob \
  --event-lookback-hours 12

# Monitor a file of users
cat > github-users.txt <<'EOF'
alice
bob
# team aliases are fine as comments
@charlie
EOF

KF_GITHUB_TOKEN="ghp_…" kingfisher scan github --public-events \
  --user-file github-users.txt \
  --event-lookback-hours 24 \
  --repo-clone-limit 200 \
  --github-exclude alice/*-archive

Include a GitHub user's gists

Add --include-gists to enumerate public gists for each specified user and clone and scan them with full Git history by default:

kingfisher scan github --user alice --include-gists --format json
kingfisher scan github --user alice --include-gists --list-only

Gists count toward --repo-clone-limit and use the same clone and history options as repositories. --repo-type and --github-exclude filter repositories, not gists. The flag requires --user and cannot be combined with --public-events. Enumeration uses GitHub's public user gists endpoint and the configured API URL and authentication. Unlike the gist file snapshots fetched by --repo-artifacts, cloned gists include earlier revisions.

Skip specific GitHub repositories during enumeration

Repeat --github-exclude for every repository you want to ignore when scanning users or organizations. You can provide exact repositories like OWNER/REPO or gitignore-style glob patterns such as owner/*-archive (matching is case-insensitive).

kingfisher scan github --organization my-org \
  --github-exclude my-org/huge-repo \
  --github-exclude my-org/*-archive

Scan remote GitHub repository

Pass a repository URL as a positional scan target to clone and scan its files and history. (The legacy --git-url flag still works but is deprecated.) When the URL targets GitHub and you pass --include-contributors, Kingfisher enumerates repository contributors and attempts to clone the public repos owned by those contributors—a common offensive and blue-team pivot when developers leak secrets in personal or side projects. By default Kingfisher excludes forks; pass --github-repo-type all to include them or --github-repo-type fork for forks only. Use --repo-clone-limit to cap how many repositories are cloned during this enumeration.

NOTE: This may cause you to be temporarily rate-limited by GitHub. Providing a token (KF_GITHUB_TOKEN) will provide a higher rate limit.

To inspect related server-side data, supply --repo-artifacts. This flag pulls down the repository's issues (including pull requests), wiki, and any public gists owned by the repository owner and scans them for secrets. Fetching these extras counts against API rate limits and private artifacts require a KF_GITHUB_TOKEN.

Use --git-clone-dir to choose where cloned repositories land and --keep-clones to preserve them for follow-on analysis.

Why can scanning a remote URL report fewer findings than scanning a local checkout?.

Remote clones default to --mirror/bare mode so Kingfisher only reads the Git history. When you point Kingfisher at an existing working tree (for example kingfisher scan ./repo), it enumerates both the filesystem contents and the Git history. Any secrets that are present in the checked-out files therefore appear twice: once from the working tree path and once from the commit where the secret entered the history. To replicate the remote behavior locally, either scan a bare clone or disable history scanning with --git-history none when targeting a working tree.

# Scan the repository only
kingfisher scan github.com/org/repo

# Scan the repository plus contributor repos, but cap the crawl
kingfisher scan https://github.com/org/repo.git \
  --include-contributors \
  --repo-clone-limit 250

# Keep clones for later manual inspection
kingfisher scan https://github.com/org/repo.git \
  --git-clone-dir ./kingfisher-clones \
  --keep-clones

# Include issues, wiki, and owner gists
kingfisher scan https://github.com/org/repo.git --repo-artifacts

# Private repositories or artifacts
KF_GITHUB_TOKEN="ghp_…" kingfisher scan https://github.com/org/private_repo.git --repo-artifacts

Scan a GitHub Enterprise / self-hosted GitHub instance

For GitHub Enterprise Server (GHES) or any self-hosted GitHub install, you need two flags:

  • --api-url <URL> (on kingfisher scan github) — points the enumeration / clone flow at the custom API root (typically https://ghe.example.com/api/v3/).
  • --endpoint github=<URL> — points the token validation / revocation flow at the same instance, so any GitHub PATs Kingfisher discovers in the scanned source are checked against your GHE rather than api.github.com.
# 1. Scan every org repo on GHE and validate discovered tokens against the same instance
KF_GITHUB_TOKEN="ghp_…" kingfisher scan github \
  --organization my-org \
  --api-url https://ghe.corp.example.com/api/v3/ \
  --endpoint github=https://ghe.corp.example.com

# 2. Scan a single GHE repo by URL (positional target)
KF_GITHUB_TOKEN="ghp_…" kingfisher scan https://ghe.corp.example.com/org/repo.git \
  --endpoint github=https://ghe.corp.example.com

# 3. Scan ALL orgs on a GHE instance (requires non-default --api-url)
KF_GITHUB_TOKEN="ghp_…" kingfisher scan github \
  --all-orgs \
  --api-url https://ghe.corp.example.com/api/v3/ \
  --endpoint github=https://ghe.corp.example.com

# 4. GHE on a private network — add --allow-internal-ips so the validator
#    can reach RFC1918 / loopback hosts (SSRF guard is on by default).
KF_GITHUB_TOKEN="ghp_…" kingfisher scan github \
  --organization my-org \
  --api-url https://ghe.internal/api/v3/ \
  --endpoint github=https://ghe.internal \
  --allow-internal-ips

# 5. Validate a single PAT against GHE without scanning anything
kingfisher validate --rule github-pat \
  --endpoint github=https://ghe.corp.example.com \
  "<your-github-pat>"

# 6. Revoke through a Kingfisher custom rule that defines revocation
kingfisher revoke --rules-path ./custom-rules.yml --rule custom.github.pat \
  --endpoint github=https://ghe.corp.example.com \
  "<your-github-pat>"

--api-url is the GHE cloning root that Kingfisher walks to enumerate orgs, repos, and contributors. --endpoint github=… is the validator root used to live-check discovered tokens. They are usually the same host, but they're separate flags because some deployments front-load auth (an SSO portal for repo access vs. a direct API endpoint for token validation).

GitLab

Scan GitLab group (requires KF_GITLAB_TOKEN)

kingfisher scan gitlab --group my-group
# include repositories from all nested subgroups
kingfisher scan gitlab --group my-group --include-subgroups
kingfisher scan gitlab --group my-group --repo-clone-limit 500

Scan GitLab user

kingfisher scan gitlab --user johndoe

Include GitLab snippets and their history

Add --include-snippets to include accessible personal snippets for each --user and project snippets from the repositories selected by users or groups:

kingfisher scan gitlab --user alice --include-snippets --format json
kingfisher scan gitlab --group my-group --include-subgroups --include-snippets --format json
kingfisher scan gitlab --user alice --include-snippets --list-only

Snippets are cloned as Git repositories and scanned with full history by default, including files deleted from the latest revision. Clone and history options apply to snippets too, and snippets count toward --repo-clone-limit. Project exclusions also exclude that project's snippets; they do not filter personal snippets. --repo-type selects projects, not personal snippets.

Discovery uses the configured GitLab instance's GraphQL snippets API and KF_GITLAB_TOKEN when set. Only snippets visible to that caller are included; authenticated requests can include private snippets. Snippets without a Git clone URL are skipped with a warning. This adds historical coverage beyond the project snippet snapshots fetched by --repo-artifacts.

Snippet discovery makes sequential, paginated GraphQL requests for each selected project. Large groups can take longer to enumerate and consume more API requests.

Skip specific GitLab projects during enumeration

Repeat --gitlab-exclude for every project path you want to ignore when scanning users or groups. Specify project paths as group/project (case-insensitive) or use gitignore-style glob patterns like group/**/archive-* to drop families of projects across nested subgroups.

kingfisher scan gitlab --group my-group \
  --gitlab-exclude my-group/huge-project \
  --gitlab-exclude my-group/**/archive-*

Scan remote GitLab repository by URL

A Git URL target by itself clones the project repository. When the URL targets GitLab and you pass --include-contributors, Kingfisher enumerates contributors and tries to clone their other public projects to catch secrets that escape the main repo. Apply --repo-clone-limit to cap the total repos cloned during this pivot.

NOTE: This may cause you to be temporarily rate-limited by GitLab. Providing a token (KF_GITLAB_TOKEN) will provide a higher rate limit.

To include server-side artifacts owned by the project, add --repo-artifacts. Kingfisher will retrieve the project's issues, wiki, and snippets and scan them for secrets. These extra requests may take longer and require a KF_GITLAB_TOKEN for private projects.

Use --git-clone-dir to choose where cloned projects land and --keep-clones to preserve them for later review.

# Scan the repository only
kingfisher scan gitlab.com/group/project.git

# Scan the repository plus contributor projects, but cap the crawl
kingfisher scan https://gitlab.com/group/project.git \
  --include-contributors \
  --repo-clone-limit 250

# Keep clones for later manual inspection
kingfisher scan https://gitlab.com/group/project.git \
  --git-clone-dir ./kingfisher-clones \
  --keep-clones

# Include issues, wiki, and snippets
kingfisher scan https://gitlab.com/group/project.git --repo-artifacts

# Private projects or artifacts
KF_GITLAB_TOKEN="glpat-…" kingfisher scan https://gitlab.com/group/private_project.git --repo-artifacts

Scan a self-hosted (Omnibus / Cloud Native) GitLab instance

For GitLab self-hosted (Omnibus, Helm, or Cloud Native), pair the enumeration flag with a matching validation endpoint:

  • --api-url <URL> (on kingfisher scan gitlab) — points the enumeration / clone flow at the custom GitLab root (typically https://gitlab.example.com/).
  • --endpoint gitlab=<URL> — points the token validation / revocation flow at the same instance, so any GitLab PATs found in the scanned source are checked against your self-hosted GitLab rather than gitlab.com.
# 1. Scan a self-hosted group and validate discovered tokens against the same instance
KF_GITLAB_TOKEN="glpat-…" kingfisher scan gitlab \
  --group my-group \
  --include-subgroups \
  --api-url https://gitlab.corp.example.com/ \
  --endpoint gitlab=https://gitlab.corp.example.com

# 2. Scan a single self-hosted GitLab project by URL
KF_GITLAB_TOKEN="glpat-…" kingfisher scan https://gitlab.corp.example.com/group/project.git \
  --endpoint gitlab=https://gitlab.corp.example.com

# 3. Scan ALL groups on a self-hosted GitLab (requires non-default --api-url)
KF_GITLAB_TOKEN="glpat-…" kingfisher scan gitlab \
  --all-groups \
  --api-url https://gitlab.corp.example.com/ \
  --endpoint gitlab=https://gitlab.corp.example.com

# 4. Self-hosted GitLab on a private network — add --allow-internal-ips so
#    the validator can reach RFC1918 / loopback hosts.
KF_GITLAB_TOKEN="glpat-…" kingfisher scan gitlab \
  --group my-group \
  --api-url https://gitlab.internal/ \
  --endpoint gitlab=https://gitlab.internal \
  --allow-internal-ips

# 5. Validate a single PAT against self-hosted GitLab without scanning anything
kingfisher validate --rule gitlab-pat \
  --endpoint gitlab=https://gitlab.corp.example.com \
  "<your-gitlab-pat>"

# 6. Revoke through a Kingfisher custom rule that defines revocation
kingfisher revoke --rules-path ./custom-rules.yml --rule custom.gitlab.pat \
  --endpoint gitlab=https://gitlab.corp.example.com \
  "<your-gitlab-pat>"

Many endpoints at once: --endpoint-config

If you maintain a fleet of self-hosted instances (GHE, self-hosted GitLab, Gitea, Jira DC, Confluence, Artifactory), put them in a single YAML file and reference it instead of repeating --endpoint on every command:

# kingfisher-endpoints.yml
endpoints:
  github: https://ghe.corp.example.com
  gitlab: https://gitlab.corp.example.com
  gitea: https://gitea.corp.example.com
  jira: https://jira.corp.example.com
  confluence: https://wiki.corp.example.com
  artifactory: http://artifactory.internal:8081
KF_GITHUB_TOKEN="ghp_…" KF_GITLAB_TOKEN="glpat-…" kingfisher scan github \
  --organization my-org \
  --api-url https://ghe.corp.example.com/api/v3/ \
  --endpoint-config ./kingfisher-endpoints.yml \
  --allow-internal-ips

Tip: bake the endpoints into kingfisher.yaml

Once you've worked out the right flags, capture them as project defaults so every scan uses the same config:

kingfisher config init \
  --github-api-url https://ghe.corp.example.com/api/v3/ \
  --gitlab-api-url https://gitlab.corp.example.com/ \
  --endpoint github=https://ghe.corp.example.com \
  --endpoint gitlab=https://gitlab.corp.example.com \
  --allow-internal-ips \
  > kingfisher.yaml

# Then every scan inherits the same self-hosted defaults:
KF_GITHUB_TOKEN="ghp_…" kingfisher scan github --organization my-org \
  --config ./kingfisher.yaml

List GitLab repositories

kingfisher scan gitlab --group my-group --list-only
# include repositories from all nested subgroups
kingfisher scan gitlab --group my-group --include-subgroups --list-only
# skip specific projects when listing or scanning (supports glob patterns)
kingfisher scan gitlab --group my-group --gitlab-exclude my-group/**/legacy-* --list-only

Azure Repos

Azure Repos uses shared Git path selection. The same options work for GitHub, GitLab, Bitbucket, Gitea and Hugging Face repositories:

kingfisher scan azure --organization my-org --path-prefix configs/ \
  --skip-path-prefix configs/generated/ --file-extension env --format json

Selection uses repository-relative paths before reading Git blobs. Only selected appearances of shared blobs enter the report. Repository cloning still transfers Git objects; path selection does not make the clone a partial file download. Use azure-blob for Azure Blob Storage containers. --object-cache-dir applies to S3, GCS, Azure Blob and Hugging Face storage scans.

Scan Azure Repos organization or collection (requires KF_AZURE_TOKEN or KF_AZURE_PAT)

kingfisher scan azure --azure-organization my-org

# Azure Repos Server example
KF_AZURE_PAT="pat" kingfisher scan azure --azure-organization DefaultCollection --base-url https://ado.internal.example/tfs/

Scan specific Azure Repos projects

Projects are specified as ORGANIZATION/PROJECT. Repeat the flag for multiple projects.

kingfisher scan azure --azure-project my-org/payments \
  --azure-project my-org/core-platform

Skip specific Azure repositories during enumeration

Repeat --azure-exclude to ignore repositories when scanning organizations or projects. Use identifiers like ORGANIZATION/PROJECT/REPOSITORY. Repositories that share the same name as their project can be excluded with ORGANIZATION/PROJECT, and gitignore-style patterns such as my-org/*/archive-* are also supported.

kingfisher scan azure --azure-organization my-org \
  --azure-exclude my-org/payments/legacy-service \
  --azure-exclude my-org/**/archive-*

List Azure repositories

kingfisher scan azure --azure-organization my-org --list-only
# list repositories for specific projects
kingfisher scan azure --azure-project my-org/app --azure-project my-org/api --list-only
# skip specific repositories while listing (supports glob patterns)
kingfisher scan azure --azure-organization my-org --azure-exclude my-org/**/experimental-* --list-only

Gitea

Scan Gitea organization (requires KF_GITEA_TOKEN)

kingfisher scan gitea --organization my-org
# self-hosted example
KF_GITEA_TOKEN="gtoken" kingfisher scan gitea --organization platform --api-url https://gitea.internal.example/api/v1/

Scan Gitea user

kingfisher scan gitea --user johndoe

Skip specific Gitea repositories during enumeration

Repeat --gitea-exclude for each repository you want to ignore when scanning users or organizations. Accepts owner/repo identifiers or gitignore-style glob patterns like team/**/archive-*.

kingfisher scan gitea --organization my-org \
  --gitea-exclude my-org/legacy-repo \
  --gitea-exclude my-org/**/archive-*

Scan remote Gitea repository by URL

A Git URL target clones the repository and scans its history. Adding --repo-artifacts also clones the repository wiki if one exists. Private repositories and wikis require KF_GITEA_TOKEN (and KF_GITEA_USERNAME when cloning via HTTPS).

# Scan the repository only
kingfisher scan https://gitea.com/org/repo.git

# Include the repository wiki (if present)
KF_GITEA_TOKEN="gtoken" KF_GITEA_USERNAME="org" \
  kingfisher scan https://gitea.com/org/repo.git --repo-artifacts

List Gitea repositories

kingfisher scan gitea --organization my-org --list-only
# enumerate every organization visible to the authenticated user
KF_GITEA_TOKEN="gtoken" kingfisher scan gitea --all-organizations --list-only
# self-hosted example
KF_GITEA_TOKEN="gtoken" kingfisher scan gitea --user johndoe --api-url https://gitea.internal.example/api/v1/ --list-only

Bitbucket

Scan Bitbucket workspace

kingfisher scan bitbucket --workspace my-team
# include Bitbucket Cloud repositories from every accessible workspace
KF_BITBUCKET_TOKEN="$BITBUCKET_TOKEN" \
  kingfisher scan bitbucket --all-workspaces

Scan Bitbucket user

kingfisher scan bitbucket --user johndoe

Include Bitbucket Cloud snippets and their history

Add --include-snippets to clone and scan snippets owned by the selected workspaces, including personal workspaces selected with --user:

kingfisher scan bitbucket --workspace my-workspace --include-snippets --format json
kingfisher scan bitbucket --user alice --include-snippets --list-only

The option also works with --all-workspaces. Discovery uses the configured Bitbucket authentication and includes public snippets plus private snippets the caller can access. Tokens need snippet read access (snippet for OAuth or read:snippet:bitbucket for API tokens), as described in the Bitbucket snippets API.

Snippets use the normal Git clone and history options, with full history scanned by default. Repository type filters and --bitbucket-exclude do not filter workspace snippets. Bitbucket Server/Data Center does not support this option; Kingfisher reports an error if it is requested there.

--project does not select snippet owners. Use --workspace, --user, or --all-workspaces for snippet discovery; project-only selections are skipped with a warning.

Skip specific Bitbucket repositories during enumeration

Use --bitbucket-exclude to ignore repositories while scanning users, workspaces, or projects. Patterns accept either owner/repo (case-insensitive) or gitignore-style globs such as workspace/**/archive-*.

kingfisher scan bitbucket --workspace my-team \
  --bitbucket-exclude my-team/legacy-repo \
  --bitbucket-exclude my-team/**/archive-*

Scan remote Bitbucket repository by URL

A Git URL target clones the repository and scans its files and history. To inspect Bitbucket artifacts such as issues, add --repo-artifacts. Private artifacts require credentials (see Authenticate to Bitbucket).

# Scan the repository only
kingfisher scan https://bitbucket.org/hashashash/secretstest.git

# Include repository issues
KF_BITBUCKET_TOKEN="$BITBUCKET_TOKEN" \
  kingfisher scan https://bitbucket.org/workspace/project.git --repo-artifacts

List Bitbucket repositories

kingfisher scan bitbucket --workspace my-team --list-only
# enumerate all accessible workspaces or projects
KF_BITBUCKET_TOKEN="$BITBUCKET_TOKEN" \
  kingfisher scan bitbucket --all-workspaces --list-only
# filter out repositories using glob patterns
kingfisher scan bitbucket --workspace my-team --bitbucket-exclude my-team/**/experimental-* --list-only

Authenticate to Bitbucket

Kingfisher supports Bitbucket Cloud and Bitbucket Server credentials:

  • Workspace API token (Cloud) – set KF_BITBUCKET_TOKEN. Kingfisher automatically uses the token for Bitbucket REST APIs and authenticates git operations as x-token-auth.
  • Bitbucket Server token – set KF_BITBUCKET_USERNAME and either KF_BITBUCKET_TOKEN or KF_BITBUCKET_PASSWORD.
  • Legacy app password (Cloud) – set KF_BITBUCKET_USERNAME and KF_BITBUCKET_APP_PASSWORD.
  • OAuth/PAT token – set KF_BITBUCKET_OAUTH_TOKEN.

These credentials match the options described in the ghorg setup guide.

Bitbucket no longer supports App Tokens as of September 9, 2025: https://support.atlassian.com/bitbucket-cloud/docs/api-tokens/

As of September 9, 2025, app passwords can no longer be created. Use API tokens with scopes instead. All existing app passwords will be disabled on June 9, 2026. Migrate any integrations before then to avoid disruptions.

Self-hosted Bitbucket Server

Use --api-url to point Kingfisher at your server's REST endpoint, for example https://bitbucket.example.com/rest/api/1.0/. Provide credentials with KF_BITBUCKET_USERNAME plus either KF_BITBUCKET_TOKEN or KF_BITBUCKET_PASSWORD, and pass --tls-mode=off when connecting to HTTP or an instance whose certificate cannot be verified (--ignore-certs remains a deprecated alias).

KF_BITBUCKET_USERNAME="scanner" KF_BITBUCKET_TOKEN="$BITBUCKET_TOKEN" \
  kingfisher scan bitbucket --project SEC \
  --api-url https://bitbucket.example.com/rest/api/1.0/

Kingfisher prefers the HTTP/HTTPS clone link returned by the Server API, including links labeled http whose URL uses HTTPS. This allows token- or password-authenticated HTTPS cloning without requiring an SSH key when the API also returns an SSH clone link.

Hugging Face

Hugging Face hosts git repositories for models, datasets, and Spaces, plus mutable Xet-backed storage buckets. Kingfisher scans all four resource types.

Scan Hugging Face user

kingfisher scan huggingface --huggingface-user <username>

Scan Hugging Face organization

kingfisher scan huggingface --huggingface-organization <orgname>

Scan specific Hugging Face resources

Scan individual repositories by ID (owner/name) or by passing the full HTTPS URL:

kingfisher scan huggingface --huggingface-model <owner/model>
kingfisher scan huggingface --huggingface-dataset https://huggingface.co/datasets/<owner>/<dataset>
kingfisher scan huggingface --huggingface-space <owner/space>

Scan an entire bucket or a prefix using an ID, Hub URL, or hf:// URI:

kingfisher scan huggingface --bucket <owner/bucket>
kingfisher scan huggingface --bucket hf://buckets/<owner>/<bucket>/<prefix>
kingfisher scan huggingface \
    --huggingface-bucket https://huggingface.co/buckets/<owner>/<bucket>/tree/<prefix>

User and organization scans automatically include their visible buckets. Bucket objects honor --max-file-size, --exclude, and --no-binary. Buckets are mutable and non-versioned, so only their current contents are scanned.

Use --huggingface-exclude to omit results returned by user or organization enumeration. Prefix values with model:, dataset:, space:, or bucket: when you only want to skip a specific resource type.

Focus Hugging Face buckets and reuse downloaded objects

kingfisher scan huggingface --bucket owner/data \
  --path-prefix configs/ --path-prefix deployments/ \
  --skip-path-prefix configs/generated/ --file-extension json \
  --object-cache-dir ./object-cache --format json

The selection intersects any prefix in the bucket URI. Overlapping targets and prefixes are combined before listing, and object filters run before downloads. The existing --exclude globs and file-size limit still apply. Page checkpoints resume an interrupted listing and replay completed pages into a complete report. Later runs list again and use content hashes, or an available ETag, to reuse unchanged files. Files without a version identifier are downloaded again. Pagination links must stay on the configured listing origin and path; cycles fail clearly. Path and extension selection also applies to models, datasets and Spaces through their shared Git scanner.

List Hugging Face scan targets

kingfisher scan huggingface --huggingface-user <username> --list-only

Repository targets are printed as HTTPS git URLs and buckets as hf://buckets/<owner>/<bucket>.

Authenticate to Hugging Face

Private repositories and buckets require an access token provided through the KF_HUGGINGFACE_TOKEN environment variable. For git authentication the helper also honours KF_HUGGINGFACE_USERNAME (default hf_user).

Jira

Kingfisher checks API reachability and credentials before downloading issue artifacts. Requests use a 30-second timeout unless --no-timeouts is set. Rate-limited requests retry at most three times, honoring numeric Retry-After values up to 30 seconds per retry, then fail with an explicit error.

Use repeatable --skip-project KEY flags to omit projects regardless of key casing. Exclusions are combined with your JQL through the same paginated search; ORDER BY is preserved. For example:

kingfisher scan jira --url https://example.atlassian.net \
  --jql 'updated >= -30d ORDER BY updated DESC' \
  --skip-project archive --skip-project SANDBOX --all --format json

Site URLs may include a reverse-proxy context such as /jira, or an explicit API root such as /jira/rest/api/2 or /rest/api/3. URLs must not contain query parameters or fragments; use --jql for search expressions. Standard Cloud sites use the Cloud cursor search API; for Cloud on a custom domain, pass its /rest/api/3 root explicitly. Server/Data Center uses offset pagination and makes no Cloud-only per-project status requests.

Migration note: Jira API requests no longer follow HTTP redirects, including same-origin redirects, to avoid forwarding credentials to unintended endpoints. If a reverse proxy redirects the site root to a context path (for example, a 302 from / to /jira), set --url to the final canonical URL including that context path. Redirects to login pages instead require correcting credentials or access.

Scan Jira issues matching a JQL query

KF_JIRA_TOKEN="token" kingfisher scan jira --url https://jira.company.com \
    --jql "project = TEST AND status = Open" \
    --max-results 500

Include Jira comments and changelog entries

KF_JIRA_TOKEN="token" kingfisher scan jira --url https://jira.company.com \
    --jql "project = TEST AND status = Open" \
    --include-comments \
    --include-changelog

--include-comments writes and scans per-issue comments.json artifacts.
--include-changelog writes and scans per-issue changelog.json artifacts.

Scan the last 1,000 Jira issues

KF_JIRA_TOKEN="token" kingfisher scan jira --url https://jira.mongodb.org \
  --jql 'ORDER BY created DESC' \
  --max-results 1000

Jira Cloud

Use the full *.atlassian.net site URL for --url. Kingfisher detects Jira Cloud from the hostname and automatically issues JQL searches against the enhanced /rest/api/3/search/jql endpoint instead of the legacy /rest/api/2/search endpoint, which Atlassian has removed for Cloud sites.

Jira Cloud API tokens authenticate with HTTP Basic auth (account email + token), not a bearer token. Set KF_JIRA_USER to your Jira Cloud account email alongside KF_JIRA_TOKEN to switch Kingfisher to Basic auth:

KF_JIRA_USER="user@example.com" KF_JIRA_TOKEN="token" \
  kingfisher scan jira --url https://example.atlassian.net \
    --jql "project = TEST AND status = Open" \
    --max-results 500

Generate the API token from id.atlassian.com. Jira Server/Data Center Personal Access Tokens keep working as a bearer token when KF_JIRA_USER is unset.

Searches request fields=*all, so issue descriptions and custom text fields are scanned on both Cloud and Server/Data Center. Jira Cloud's search endpoint returns only id, key, summary, and status when fields is left unset, which would silently exclude descriptions from the scan.

--max-results is a total, not a page size: searches page through results 100 issues at a time until that many issues have been collected, following Jira Cloud's cursor or Server/Data Center's offset as appropriate.

Pass --all instead of --max-results to keep paging for as long as Jira returns issues, stopping only on the last page:

KF_JIRA_USER="user@example.com" KF_JIRA_TOKEN="token" \
  kingfisher scan jira --url https://example.atlassian.net \
    --jql "project = TEST" \
    --all

kingfisher scan confluence --all does the same for CQL queries. The two flags are mutually exclusive.

Confluence

Pagination follows the server's cursor or offset links, including through empty permission-filtered pages; repeated links fail clearly. Pagination stays on the configured API origin and context path. URLs may include /wiki, another self-hosted context, or an explicit /rest/api root. On a custom domain serving Cloud under /wiki, include that path explicitly. Rate limits retry at most three times with bounded delays, and requests time out after 30 seconds unless --no-timeouts is set.

Scan Confluence pages matching a CQL query

# Bearer token
KF_CONFLUENCE_TOKEN="token" kingfisher scan confluence --url https://confluence.company.com \
    --cql "label = secret" \
    --max-results 500

# Basic auth with username and token
KF_CONFLUENCE_USER="user@example.com" KF_CONFLUENCE_TOKEN="token" \
  kingfisher scan confluence --url https://confluence.company.com \
    --cql "text ~ 'password'" \
    --max-results 500

Use the base URL of your Confluence site for --url. Kingfisher automatically adds /rest/api to the end, so https://example.com/wiki and https://example.com both work depending on your server configuration. For Confluence Cloud, pass the site URL as-is (--url https://example.atlassian.net): Cloud serves its API under a /wiki context path, and Kingfisher adds that segment for *.atlassian.net hosts, so both that form and the explicit https://example.atlassian.net/wiki work. Also set KF_CONFLUENCE_USER to your Cloud account email — Confluence Cloud API tokens require Basic auth, not a bearer token. Kingfisher paginates results by following the server-issued next link rather than an offset, since Confluence Cloud removed offset-based (start) pagination for this endpoint.

Generate a personal access token and set it in the KF_CONFLUENCE_TOKEN environment variable. By default, Kingfisher sends the token as a bearer token in the Authorization header.

To use basic authentication instead, also set KF_CONFLUENCE_USER to your Confluence email address; Kingfisher will then send the username and KF_CONFLUENCE_TOKEN as a Basic auth header. If the server responds with a redirect to a login page, the credentials are invalid or lack the required permissions.

Slack

Scan Slack messages and files matching a search query

KF_SLACK_TOKEN="<your-slack-user-token>" kingfisher scan slack "from:username has:link" \
    --max-results 1000

KF_SLACK_TOKEN="<your-slack-user-token>" kingfisher scan slack "akia" \
    --max-results 1000

Kingfisher applies the query to both Slack message search and file search, then downloads matching files that Slack exposes through an authenticated private URL. --max-results applies separately to messages and files. The token must be a user token with the search:read and files:read scopes. Bot tokens (those beginning with xoxb-) cannot call the Slack search API.

Microsoft Teams

Scan Teams messages matching a search query

KF_TEAMS_TOKEN="eyJ0..." kingfisher scan teams "password OR api_key" \
    --max-results 1000

KF_TEAMS_TOKEN="eyJ0..." kingfisher scan teams "akia" \
    --max-results 1000

The token must be a Microsoft Graph API access token with ChannelMessage.Read.All (application) or Chat.Read (delegated) permissions.

Note: Microsoft Graph does not support personal Microsoft accounts for Teams chat operations. Teams scanning requires a Microsoft 365 work or school account; free/personal Teams accounts are not supported by the Graph API.

Obtaining a token:

  1. Register an application in Azure Active Directory (Microsoft Entra ID)
  2. Grant ChannelMessage.Read.All (application) or Chat.Read (delegated) API permission
  3. Obtain an access token using one of:
  4. Azure CLI: az account get-access-token --resource https://graph.microsoft.com --query accessToken -o tsv
  5. Client credentials flow for application permissions
  6. Authorization code flow for delegated permissions

Postman

Kingfisher fetches Postman workspaces, collections, and environments via the public Postman API (https://api.getpostman.com/) and scans the JSON for hard-coded credentials. The most common high-value findings are:

  • Bearer tokens, API keys, and basic-auth passwords inside collection request auth blocks
  • Hard-coded credentials inside pre-request and test scripts
  • Saved example responses that echo tokens
  • "Secret"-typed environment variables — Postman's secret flag is a UI-mask only, the API returns the plaintext value to any read-capable key

Scan every workspace, collection, and environment visible to the API key

KF_POSTMAN_TOKEN="PMAK-..." kingfisher scan postman --all

Scan a specific workspace (by ID or web URL)

KF_POSTMAN_TOKEN="PMAK-..." kingfisher scan postman \
    --workspace 11111111-2222-3333-4444-555555555555

KF_POSTMAN_TOKEN="PMAK-..." kingfisher scan postman \
    --workspace https://www.postman.com/team-handle/workspace/abc-uid-123

Scan a single collection or environment

KF_POSTMAN_TOKEN="PMAK-..." kingfisher scan postman \
    --collection 12345678-abcd-efgh-ijkl-mnopqrstuvwx

KF_POSTMAN_TOKEN="PMAK-..." kingfisher scan postman \
    --environment 12345678-abcd-efgh-ijkl-mnopqrstuvwx

Include mocks and monitors

Mocks and monitors are scanned only when explicitly requested (they are lower-yield surfaces):

KF_POSTMAN_TOKEN="PMAK-..." kingfisher scan postman --all \
    --include-mocks-monitors

Self-hosted / enterprise endpoint

KF_POSTMAN_TOKEN="PMAK-..." kingfisher scan postman --all \
    --api-url https://postman.internal.example.com/

The token is sent as the X-Api-Key header. Either KF_POSTMAN_TOKEN or POSTMAN_API_KEY is accepted (the latter matches the env var Postman's own docs reference). Mint a key from postman.com → Settings → API keys.

Top-level kingfisher scan --postman-* flags remain accepted as hidden aliases for backward compatibility, but new usage should prefer the kingfisher scan postman subcommand shown above.

Out of scope: Postman Vault secrets are client-side and not reachable via the API. The Postman API Network does not expose a search endpoint; supply specific public-workspace IDs via kingfisher scan postman --workspace to scan public surfaces.

Environment Variables

Variable Purpose
KF_GITHUB_TOKEN GitHub personal access token or pre-minted App installation token
KF_GITHUB_APP_ID GitHub App ID used to mint installation tokens
KF_GITHUB_APP_INSTALLATION_ID GitHub App installation ID
KF_GITHUB_APP_PRIVATE_KEY GitHub App RSA private key as PEM content
KF_GITHUB_APP_PRIVATE_KEY_PATH Expandable path to a GitHub App RSA private key PEM file (alternative to KF_GITHUB_APP_PRIVATE_KEY)
KF_GITLAB_TOKEN GitLab Personal Access Token
KF_GITEA_TOKEN Gitea Personal Access Token
KF_GITEA_USERNAME Username for private Gitea clones (used with KF_GITEA_TOKEN)
KF_AZURE_TOKEN / KF_AZURE_PAT Azure Repos Personal Access Token
KF_AZURE_USERNAME Username to use with Azure Repos PATs (defaults to pat when unset)
KF_AZURE_STORAGE_SAS Azure Blob SAS query string with read/list permission
KF_AZURE_STORAGE_KEY Azure Storage base64 account key
KF_AZURE_STORAGE_ACCOUNT Signing account for Blob account keys on custom endpoints or emulators
KF_AZURE_STORAGE_TOKEN Microsoft Entra bearer access token for the Storage resource
KF_BITBUCKET_TOKEN Bitbucket Cloud workspace API token or Bitbucket Server PAT
KF_BITBUCKET_USERNAME Optional Bitbucket username for legacy app passwords or server tokens
KF_BITBUCKET_APP_PASSWORD Legacy Bitbucket app password (deprecated September 9, 2025; disabled June 9, 2026)
KF_BITBUCKET_OAUTH_TOKEN Bitbucket OAuth or PAT token
KF_HUGGINGFACE_TOKEN Hugging Face access token for API enumeration and git cloning
KF_HUGGINGFACE_USERNAME Optional username for Hugging Face git operations (defaults to hf_user)
KF_JIRA_TOKEN Jira API token
KF_JIRA_USER Jira account email; when set, sends KF_JIRA_TOKEN as Basic auth (required for Jira Cloud API tokens)
KF_CONFLUENCE_TOKEN Confluence API token
KF_CONFLUENCE_USER Confluence account email; when set, sends KF_CONFLUENCE_TOKEN as Basic auth (required for Confluence Cloud API tokens)
KF_SLACK_TOKEN Slack API token
KF_TEAMS_TOKEN Microsoft Graph API token for Teams message search
KF_POSTMAN_TOKEN / POSTMAN_API_KEY Postman API key (sent as X-Api-Key) for workspace, collection, and environment scanning
KF_DOCKER_TOKEN Docker registry token (user:pass or bearer token). If unset, credentials from the Docker keychain are used
KF_AWS_KEY, KF_AWS_SECRET, and KF_AWS_SESSION_TOKEN AWS credentials for S3 bucket scanning. Session token is optional, for temporary credentials

Set them temporarily per command:

KF_GITLAB_TOKEN="glpat-…" kingfisher scan gitlab --group my-group

Or export for the session:

export KF_GITLAB_TOKEN="glpat-…"

To authenticate Jira requests:

export KF_JIRA_TOKEN="token"
# Jira Cloud API tokens additionally require the account email:
export KF_JIRA_USER="user@example.com"

To authenticate Confluence requests:

export KF_CONFLUENCE_TOKEN="token"

If no token is provided Kingfisher still works for public repositories.