Heartland API Key

ID

heartland_key

Severity

critical

Vendor

Heartland

Family

API Token

Description

Heartland Payment Systems is a payment processing and technology provider.

It provides various SDKs as well as APIs to integrate with applications.

Security

Any hardcoded Heartland API Key is a potential secret reported by this detector.

Accidentally checking-in the key to source control repositories could compromise your Heartland account.

Examples

secretApiKey = skapi_cert_MbPdAQBL1l4A2ThZoTBKXEdEG1rIi7KAa6Yskn6Nzg

Mitigation / Fix

  1. Remove the API Key from the source code or committed configuration file.

  2. Follow your policy for handling leaked secrets, which typically require revoking the secret in the target system(s). The key can be revoked from your dashboard.

  3. If under a git repository, you may remove unwanted files from the repository history using tools like git filter-repo or BFG Repo-Cleaner. You may follow the procedure listed here for GitHub.

You should consider any sensitive data in commits with secrets as compromised.

Remember that secrets may be removed from history in your projects, but not in other users' cloned or forked repositories.