Portal

secret_in_sample

Severity: warn, labelled Probably a test or placeholder value. Something that looks like a key is in a sample, test or documentation file.

What Kaviris saw

A key-shaped value that nobody verified, in a file meant as an example or documentation: *.example, *.sample, *.template, *.dist, docker-compose*.yml, compose*.yaml or *.md, or in test code and its fixtures (tests/, __tests__/, *.test.ts, *_test.go and the like). A Stripe test secret key in such a file is treated as a placeholder too.

Why it is labelled a test value

Sample and test files often hold placeholders like sk_test_… or your-key-here. The label is only our guess: Kaviris never blocks a deploy for a secret, and your app's secrets are your responsibility (see secret_scan).

What to do

Look at the location and make sure it is a placeholder. If it is a real key, replace it with a placeholder and rotate the key.

A live key or a verified credential in a sample file is labelled Probably real, as secret_in_source.

All refusal codes

This page as Markdown