Documentation
¶
Index ¶
- Constants
- func Atlassian() *config.Rule
- func AuthenticatedURL() *config.Rule
- func Clojars() *config.Rule
- func FilterRules(selectedList, ignoreList, specialList []string) *[]Rule
- func GenericCredential() *config.Rule
- func GetDefaultRules() *[]Rule
- func GitHubApp() *config.Rule
- func HardcodedPassword() *config.Rule
- func PlaidAccessID() *config.Rule
- func PrivateKey() *config.Rule
- func SumoLogicAccessID() *config.Rule
- func SumoLogicAccessToken() *config.Rule
- func VaultServiceToken() *config.Rule
- type Rule
- type RuleCategory
- type ScoreParameters
Constants ¶
const TagAccessId = "access-id"
const TagAccessKey = "access-key"
const TagAccessToken = "access-token"
const TagApiKey = "api-key"
const TagApiToken = "api-token"
const TagClientId = "client-id"
const TagClientSecret = "client-secret"
const TagEncryptionKey = "encryption-key"
const TagPassword = "password"
const TagPrivateKey = "private-key"
const TagPublicKey = "public-key"
const TagPublicSecret = "public-secret"
const TagRefreshToken = "refresh-token"
const TagRegistrationToken = "registration-token"
const TagSecretKey = "secret-key"
const TagSensitiveUrl = "sensitive-url"
const TagTriggerToken = "trigger-token"
const TagUploadToken = "upload-token"
const TagWebhook = "webhook"
Variables ¶
This section is empty.
Functions ¶
func Atlassian ¶
Atlassian returns a corrected Atlassian rule that fixes the token validation issue. This overrides the default GitLeaks Atlassian rule to fix validation bugs.
func AuthenticatedURL ¶
func FilterRules ¶
func GenericCredential ¶
func GetDefaultRules ¶
func GetDefaultRules() *[]Rule
func HardcodedPassword ¶
func PlaidAccessID ¶
Using this local version because gitleaks has entropy as 3.5, which causes issues on this rule's validation
func PrivateKey ¶
func SumoLogicAccessID ¶
SumoLogicAccessID returns a corrected SumoLogic Access ID rule that fixes the token validation issue. This overrides the default GitLeaks SumoLogic rule to fix validation bugs.
func SumoLogicAccessToken ¶
SumoLogicAccessToken returns a corrected SumoLogic Access Token rule that fixes the token validation issue. This overrides the default GitLeaks SumoLogic rule to fix validation bugs.
func VaultServiceToken ¶
Using this local version because newer versions of gitleaks have an entropy value, which was set as too high It's here as prevention in case a newer version of gitleaks starts getting used and causes issues on this rule If gitleaks is updated on 2ms and the new version of this rule has entropy, set it to 3.0
Types ¶
type RuleCategory ¶
type RuleCategory string
const ( CategoryAuthenticationAndAuthorization RuleCategory = "Authentication and Authorization" CategoryCryptocurrencyExchange RuleCategory = "Cryptocurrency Exchange" CategoryFinancialServices RuleCategory = "Financial Services" CategoryPaymentProcessing RuleCategory = "Payment Processing" CategorySecurity RuleCategory = "Security" CategoryAPIAccess RuleCategory = "API Access" CategoryCICD RuleCategory = "CI/CD" CategoryCloudPlatform RuleCategory = "Cloud Platform" CategoryDatabaseAsAService RuleCategory = "Database as a Service" CategoryDevelopmentPlatform RuleCategory = "Development Platform" CategoryEmailDeliveryService RuleCategory = "Email Delivery Service" CategoryInfrastructureAsCode RuleCategory = "Infrastructure as Code (IaC)" CategoryPackageManagement RuleCategory = "Package Management" CategorySourceCodeManagement RuleCategory = "Source Code Management" CategoryWebHostingAndDeployment RuleCategory = "Web Hosting and Deployment" CategoryBackgroundProcessingService RuleCategory = "Background Processing Service" CategoryCDN RuleCategory = "CDN (Content Delivery Network)" CategoryContentManagementSystem RuleCategory = "Content Management System (CMS)" CategoryCustomerSupport RuleCategory = "Customer Support" CategoryDataAnalytics RuleCategory = "Data Analytics" CategoryFileStorageAndSharing RuleCategory = "File Storage and Sharing" CategoryIoTPlatform RuleCategory = "IoT platform" CategoryMappingAndLocationServices RuleCategory = "Mapping and Location Services" CategoryNetworking RuleCategory = "Networking" CategoryPhotoSharing RuleCategory = "Photo Sharing" CategorySaaS RuleCategory = "SaaS" CategoryShipping RuleCategory = "Shipping" CategorySoftwareDevelopment RuleCategory = "Software Development" CategoryAIAndMachineLearning RuleCategory = "AI and Machine Learning" CategoryApplicationMonitoring RuleCategory = "Application Monitoring" CategoryECommercePlatform RuleCategory = "E-commerce Platform" CategoryMarketingAutomation RuleCategory = "Marketing Automation" CategoryNewsAndMedia RuleCategory = "News and Media" CategoryOnlineSurveyPlatform RuleCategory = "Online Survey Platform" CategoryProjectManagement RuleCategory = "Project Management" CategorySearchService RuleCategory = "Search Service" CategorySocialMedia RuleCategory = "Social Media" CategoryGeneralOrUnknown RuleCategory = "general or unknown" )
type ScoreParameters ¶
type ScoreParameters struct {
Category RuleCategory
RuleType uint8
}