# X_SECRETS_KEY_MISMATCH

## Means

the secrets file was sealed with a different master key

## Typical cause

a key from another environment, or a `x secrets rotate` interrupted between its two writes. Both key ids are named in the cause

## Fix

`git checkout -- secrets.enc.json`, or point `ULTIMATE_SECRETS_KEY` at the key whose id the file names

[Encrypted secrets](/error-codes#encrypted-secrets)
