Arviser

"How do you store and rotate secrets and API keys?": how a small SaaS team can answer it

Facts

Questionnaire answer
KB-Q-0007 · SaaS team security, Cloud and infrastructure
Topic
Storage, rotation and revocation of credentials, including model provider keys and agent tokens
Also asked as
"Where are production credentials kept?" · "How often do you rotate API keys?" · "What do you do when a key leaks?"
Sources read on
2026-11-29
Review rule
Every 3 months, and at once when a cited provider changes its page or MCP publishes a new specification version
Next review
2027-02-28

Short answer

The buyer wants to know how long a stolen key stays useful. Answer in three parts: where secrets live and who can read them, which credentials rotate or expire and on what schedule, and how fast you revoke a key that leaked. Name the credentials that never expire.

Before you copy anything

Before you copy anything. The answers below are example wording for imagined companies. Use them to see the shape of a good answer, then write what is true for your company today. An answer that describes a control you do not have is a misstatement to your customer, and it tends to surface in the next question or in the contract. Nothing on this page says that an answer meets a standard, a law or a particular customer's requirements, and none of it is legal advice.

Store, rotate, revoke: three separate answers

"We keep secrets in a vault" answers only the first part. A key that never changes stays valid in every copy, on a laptop or in a CI log. Rotation limits how long a copy works. Revocation at the provider ends it.

A short-lived credential needs no rotation schedule. GitHub's OpenID Connect tokens for workflows are one example: the cloud provider "issues a short-lived access token that is only valid for a single job, and then automatically expires" (GitHub Docs, OpenID Connect, read 2026-11-29). AWS says to "use temporary security credentials (such as IAM roles) instead of creating long-term credentials like access keys" (AWS, Manage access keys for IAM users, read 2026-11-29). If most machine access works this way, lead with that.

Deleting a leaked key from code does not end it. For a password, token or credential, GitHub says "as a first step you need to revoke and/or rotate that secret" (GitHub Docs, Removing sensitive data from a repository, read 2026-11-29). The same page warns that after a history rewrite the commits may still be reachable in clones and forks.

Defaults that leave a key valid

Providers' own statements as read on 2026-11-29. Defaults change and some differ by plan, so check the current page for your account.

Example answers

Our illustration. The companies, dates and names are invented.

5 people, no rotation schedule yet. A B2B form builder on one cloud account and one code host.

Secrets are stored in our cloud provider's secret manager and passed to the application at deploy time. A scan of our repositories' full history on 2 November 2026 found no live secrets. Two founders can read production secrets. Deploys use a short-lived role, not a stored access key. We do not yet rotate keys on a schedule. We rotate a credential when someone with access leaves and at once when we suspect a leak; the last rotation was on 14 October 2026, after a contractor left. Rotation every 90 days for our database password and model provider key starts on 31 January 2027.

Why it works: the "no" covers the schedule only, and the reviewer gets the trigger, the last date and a start date.

20 people, managed rotation and one documented exception. A logistics platform on AWS with an AI search feature.

Production secrets are in AWS Secrets Manager. The deployment role and three named engineers can read them; reads are logged. Database credentials rotate every 30 days through Secrets Manager rotation, which we turned on for each production database secret. CI deploys through OpenID Connect with no stored cloud keys. Our model provider is the OpenAI API: each environment has its own project key with an expiration date, and our organization sets a maximum key lifetime of 90 days. One exception: a shipping partner's API key has no expiry and no rotation API. We rotate it by hand every six months, last on 3 September 2026.

Why it works: each claim names its mechanism, and the key-lifetime setting is OpenAI's, so a copier on another provider uses what theirs offers.

50 people, few long-lived keys left. A data platform with enterprise customers and an assistant that reads customer documents.

Workloads authenticate with short-lived credentials from our cloud provider's identity service. Long-lived keys are blocked by organization policy, with two exceptions on the key inventory, each with an owner and a rotation date. Remaining secrets are readable only by the workload that uses them. Push protection is on for every repository, and only the security team can approve a bypass. Our leak runbook revokes and replaces a key before any history cleanup; its last drill, on 5 November 2026, took 22 minutes. Tokens our assistant uses to reach customer systems are issued per customer, scoped to the connected workspace, and expire after one hour.

Why it works: it counts the exceptions, and the drill date with a measured time shows the revocation path was tested.

Evidence to attach

Evidence What it shows At 5 people
Credential inventory: name, store, owner, lifetime, last rotated Nothing is unaccounted for A short table
Rotation settings or key expiry screen for each long-lived key Rotation is configured, not intended One screenshot per store
Secret scanning and push protection settings, plus the latest scan result Private repositories are covered Code host settings screen
Leak runbook with the last drill or real use Revocation works and how long it takes One page

Wording that makes a reviewer push back

Wording What it signals Say instead
"All secrets are encrypted." Storage only; nothing on who reads or how long keys live "Secrets are in ; can read them; reads are logged."
"We rotate keys regularly." No schedule and no evidence "Database credentials rotate every days through ; last rotated ."
"No secrets are in our code." Not checked "Push protection is on for all repositories; a history scan on found secrets, all revoked."

If your product has an AI feature

We call the model provider from our backend only, with one key per environment in our secret manager, replaced every 90 days (last on ). Our assistant reaches customer systems with tokens issued for our service alone, scoped to one workspace and valid for one hour. Checked on .

Next: How to answer an AI security questionnaire

Sources

Primary records first. Record identifiers link from the facts box.

Standards and specifications

Vendor documentation and statements

Corrections

No corrections.

Report an error to contact@arviser.com.

How this page was made: Claude Opus 5.5, an AI model, wrote this page from the sources listed. An independent AI check compared the claims with the sources, and the page was corrected after it. Vadim Nareyko approved the family template and the sample pages on 26 November 2026, from a summary in Russian. This page was not reviewed by Vadim Nareyko. On 28 November 2026 Vadim Nareyko decided that new pages in the family are published after the linters and an independent check, without that review.

Text and data on this page: CC BY 4.0. Quoted third-party material keeps its own terms.

Send written scope or question (Free)