Documentation
¶
Overview ¶
Package stripe provides verifiers for Stripe API keys (live and test). It uses the Stripe Balance API GET /v1/balance endpoint with Basic auth to check key validity.
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type LiveKeyVerifier ¶
type LiveKeyVerifier struct {
// contains filtered or unexported fields
}
LiveKeyVerifier checks whether a Stripe live API key is active by calling the Stripe Balance API. It NEVER logs or persists raw key values.
func (*LiveKeyVerifier) Type ¶
func (v *LiveKeyVerifier) Type() string
Type returns the detector ID this verifier handles.
func (*LiveKeyVerifier) Verify ¶
func (v *LiveKeyVerifier) Verify(ctx context.Context, raw detector.RawFinding) finding.VerificationResult
Verify checks if the detected Stripe live API key is valid/active.
type TestKeyVerifier ¶
type TestKeyVerifier struct {
// contains filtered or unexported fields
}
TestKeyVerifier checks whether a Stripe test API key is active. It uses the same endpoint and logic as LiveKeyVerifier.
func (*TestKeyVerifier) Type ¶
func (v *TestKeyVerifier) Type() string
Type returns the detector ID this verifier handles.
func (*TestKeyVerifier) Verify ¶
func (v *TestKeyVerifier) Verify(ctx context.Context, raw detector.RawFinding) finding.VerificationResult
Verify checks if the detected Stripe test API key is valid/active.