Documentation
¶
Overview ¶
Package infura provides a verifier for Infura API keys. It uses the Infura JSON-RPC endpoint POST /v3/{token} to check key validity.
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Verifier ¶
type Verifier struct {
// contains filtered or unexported fields
}
Verifier checks whether an Infura API key is active by calling the Infura JSON-RPC endpoint. It NEVER logs or persists raw key values.
func (*Verifier) Verify ¶
func (v *Verifier) Verify(ctx context.Context, raw detector.RawFinding) finding.VerificationResult
Verify checks if the detected Infura API key is valid/active. The key is embedded in the request URL, so it is set as Redact to keep it out of any transport error text.
Click to show internal directories.
Click to hide internal directories.