Documentation ¶
Index ¶
- Constants
- type APIAnnotationAlgFieldNone
- func (a *APIAnnotationAlgFieldNone) Aggregate(ann utils.TraceAnalyzerAnnotation) (updated bool)
- func (a *APIAnnotationAlgFieldNone) Name() string
- func (a APIAnnotationAlgFieldNone) Redacted() utils.TraceAnalyzerAPIAnnotation
- func (a APIAnnotationAlgFieldNone) Severity() string
- func (a *APIAnnotationAlgFieldNone) ToAPIFinding() oapicommon.APIFinding
- type APIAnnotationExpTooFar
- func (a *APIAnnotationExpTooFar) Aggregate(ann utils.TraceAnalyzerAnnotation) (updated bool)
- func (a *APIAnnotationExpTooFar) Name() string
- func (a APIAnnotationExpTooFar) Redacted() utils.TraceAnalyzerAPIAnnotation
- func (a APIAnnotationExpTooFar) Severity() string
- func (a *APIAnnotationExpTooFar) ToAPIFinding() oapicommon.APIFinding
- type APIAnnotationNoAlgField
- func (a *APIAnnotationNoAlgField) Aggregate(ann utils.TraceAnalyzerAnnotation) (updated bool)
- func (a *APIAnnotationNoAlgField) Name() string
- func (a APIAnnotationNoAlgField) Redacted() utils.TraceAnalyzerAPIAnnotation
- func (a APIAnnotationNoAlgField) Severity() string
- func (a *APIAnnotationNoAlgField) ToAPIFinding() oapicommon.APIFinding
- type APIAnnotationNoExpireClaim
- func (a *APIAnnotationNoExpireClaim) Aggregate(ann utils.TraceAnalyzerAnnotation) (updated bool)
- func (a *APIAnnotationNoExpireClaim) Name() string
- func (a APIAnnotationNoExpireClaim) Redacted() utils.TraceAnalyzerAPIAnnotation
- func (a APIAnnotationNoExpireClaim) Severity() string
- func (a *APIAnnotationNoExpireClaim) ToAPIFinding() oapicommon.APIFinding
- type APIAnnotationNotRecommendedAlg
- func (a *APIAnnotationNotRecommendedAlg) Aggregate(ann utils.TraceAnalyzerAnnotation) (updated bool)
- func (a *APIAnnotationNotRecommendedAlg) Name() string
- func (a APIAnnotationNotRecommendedAlg) Redacted() utils.TraceAnalyzerAPIAnnotation
- func (a APIAnnotationNotRecommendedAlg) Severity() string
- func (a *APIAnnotationNotRecommendedAlg) ToAPIFinding() oapicommon.APIFinding
- type APIAnnotationSensitiveContent
- func (a *APIAnnotationSensitiveContent) Aggregate(ann utils.TraceAnalyzerAnnotation) (updated bool)
- func (a *APIAnnotationSensitiveContent) Name() string
- func (a APIAnnotationSensitiveContent) Redacted() utils.TraceAnalyzerAPIAnnotation
- func (a APIAnnotationSensitiveContent) Severity() string
- func (a *APIAnnotationSensitiveContent) ToAPIFinding() oapicommon.APIFinding
- type APIAnnotationWeakSymetricSecret
- func (a *APIAnnotationWeakSymetricSecret) Aggregate(ann utils.TraceAnalyzerAnnotation) (updated bool)
- func (a *APIAnnotationWeakSymetricSecret) Name() string
- func (a APIAnnotationWeakSymetricSecret) Redacted() utils.TraceAnalyzerAPIAnnotation
- func (a APIAnnotationWeakSymetricSecret) Severity() string
- func (a *APIAnnotationWeakSymetricSecret) ToAPIFinding() oapicommon.APIFinding
- type AnnotationAlgFieldNone
- func (a *AnnotationAlgFieldNone) Name() string
- func (a *AnnotationAlgFieldNone) NewAPIAnnotation(path, method string) utils.TraceAnalyzerAPIAnnotation
- func (a AnnotationAlgFieldNone) Redacted() utils.TraceAnalyzerAnnotation
- func (a *AnnotationAlgFieldNone) Severity() string
- func (a *AnnotationAlgFieldNone) ToFinding() utils.Finding
- type AnnotationExpTooFar
- func (a *AnnotationExpTooFar) Name() string
- func (a *AnnotationExpTooFar) NewAPIAnnotation(path, method string) utils.TraceAnalyzerAPIAnnotation
- func (a AnnotationExpTooFar) Redacted() utils.TraceAnalyzerAnnotation
- func (a *AnnotationExpTooFar) Severity() string
- func (a *AnnotationExpTooFar) ToFinding() utils.Finding
- type AnnotationNoAlgField
- func (a *AnnotationNoAlgField) Name() string
- func (a *AnnotationNoAlgField) NewAPIAnnotation(path, method string) utils.TraceAnalyzerAPIAnnotation
- func (a AnnotationNoAlgField) Redacted() utils.TraceAnalyzerAnnotation
- func (a *AnnotationNoAlgField) Severity() string
- func (a *AnnotationNoAlgField) ToFinding() utils.Finding
- type AnnotationNoExpireClaim
- func (a *AnnotationNoExpireClaim) Name() string
- func (a *AnnotationNoExpireClaim) NewAPIAnnotation(path, method string) utils.TraceAnalyzerAPIAnnotation
- func (a AnnotationNoExpireClaim) Redacted() utils.TraceAnalyzerAnnotation
- func (a *AnnotationNoExpireClaim) Severity() string
- func (a *AnnotationNoExpireClaim) ToFinding() utils.Finding
- type AnnotationNotRecommendedAlg
- func (a *AnnotationNotRecommendedAlg) Name() string
- func (a *AnnotationNotRecommendedAlg) NewAPIAnnotation(path, method string) utils.TraceAnalyzerAPIAnnotation
- func (a AnnotationNotRecommendedAlg) Redacted() utils.TraceAnalyzerAnnotation
- func (a *AnnotationNotRecommendedAlg) Severity() string
- func (a *AnnotationNotRecommendedAlg) ToFinding() utils.Finding
- type AnnotationSensitiveContent
- func (a *AnnotationSensitiveContent) Name() string
- func (a *AnnotationSensitiveContent) NewAPIAnnotation(path, method string) utils.TraceAnalyzerAPIAnnotation
- func (a AnnotationSensitiveContent) Redacted() utils.TraceAnalyzerAnnotation
- func (a *AnnotationSensitiveContent) Severity() string
- func (a *AnnotationSensitiveContent) ToFinding() utils.Finding
- type AnnotationWeakSymetricSecret
- func (a *AnnotationWeakSymetricSecret) Name() string
- func (a *AnnotationWeakSymetricSecret) NewAPIAnnotation(path, method string) utils.TraceAnalyzerAPIAnnotation
- func (a AnnotationWeakSymetricSecret) Redacted() utils.TraceAnalyzerAnnotation
- func (a *AnnotationWeakSymetricSecret) Severity() string
- func (a *AnnotationWeakSymetricSecret) ToFinding() utils.Finding
- type WeakJWT
Constants ¶
View Source
const ( JWTNoAlgField = "JWT_NO_ALG_FIELD" JWTAlgFieldNone = "JWT_ALG_FIELD_NONE" JWTNotRecommendedAlg = "JWT_NOT_RECOMMENDED_ALG" JWTNoExpireClaim = "JWT_NO_EXPIRE_CLAIM" JWTExpTooFar = "JWT_EXP_TOO_FAR" //nolint:gosec JWTWeakSymetricSecret = "JWT_WEAK_SYMETRIC_SECRET" JWTSensitiveContent = "JWT_SENSITIVE_CONTENT" )
View Source
const ( AuthorizationHeader = "authorization" BearerAuth = "Bearer" MaxTokenAge = 5 * 24 * time.Hour )
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type APIAnnotationAlgFieldNone ¶
type APIAnnotationAlgFieldNone struct {
utils.BaseTraceAnalyzerAPIAnnotation
}
func NewAPIAnnotationAlgFieldNone ¶
func NewAPIAnnotationAlgFieldNone(path, method string) *APIAnnotationAlgFieldNone
func (*APIAnnotationAlgFieldNone) Aggregate ¶
func (a *APIAnnotationAlgFieldNone) Aggregate(ann utils.TraceAnalyzerAnnotation) (updated bool)
func (*APIAnnotationAlgFieldNone) Name ¶
func (a *APIAnnotationAlgFieldNone) Name() string
func (APIAnnotationAlgFieldNone) Redacted ¶
func (a APIAnnotationAlgFieldNone) Redacted() utils.TraceAnalyzerAPIAnnotation
func (APIAnnotationAlgFieldNone) Severity ¶
func (a APIAnnotationAlgFieldNone) Severity() string
func (*APIAnnotationAlgFieldNone) ToAPIFinding ¶
func (a *APIAnnotationAlgFieldNone) ToAPIFinding() oapicommon.APIFinding
type APIAnnotationExpTooFar ¶
type APIAnnotationExpTooFar struct { utils.BaseTraceAnalyzerAPIAnnotation ExpireInExample time.Duration `json:"expire_in_example"` }
func NewAPIAnnotationExpTooFar ¶
func NewAPIAnnotationExpTooFar(path, method string) *APIAnnotationExpTooFar
func (*APIAnnotationExpTooFar) Aggregate ¶
func (a *APIAnnotationExpTooFar) Aggregate(ann utils.TraceAnalyzerAnnotation) (updated bool)
func (*APIAnnotationExpTooFar) Name ¶
func (a *APIAnnotationExpTooFar) Name() string
func (APIAnnotationExpTooFar) Redacted ¶
func (a APIAnnotationExpTooFar) Redacted() utils.TraceAnalyzerAPIAnnotation
func (APIAnnotationExpTooFar) Severity ¶
func (a APIAnnotationExpTooFar) Severity() string
func (*APIAnnotationExpTooFar) ToAPIFinding ¶
func (a *APIAnnotationExpTooFar) ToAPIFinding() oapicommon.APIFinding
type APIAnnotationNoAlgField ¶
type APIAnnotationNoAlgField struct {
utils.BaseTraceAnalyzerAPIAnnotation
}
func NewAPIAnnotationNoAlgField ¶
func NewAPIAnnotationNoAlgField(path, method string) *APIAnnotationNoAlgField
func (*APIAnnotationNoAlgField) Aggregate ¶
func (a *APIAnnotationNoAlgField) Aggregate(ann utils.TraceAnalyzerAnnotation) (updated bool)
func (*APIAnnotationNoAlgField) Name ¶
func (a *APIAnnotationNoAlgField) Name() string
func (APIAnnotationNoAlgField) Redacted ¶
func (a APIAnnotationNoAlgField) Redacted() utils.TraceAnalyzerAPIAnnotation
func (APIAnnotationNoAlgField) Severity ¶
func (a APIAnnotationNoAlgField) Severity() string
func (*APIAnnotationNoAlgField) ToAPIFinding ¶
func (a *APIAnnotationNoAlgField) ToAPIFinding() oapicommon.APIFinding
type APIAnnotationNoExpireClaim ¶
type APIAnnotationNoExpireClaim struct {
utils.BaseTraceAnalyzerAPIAnnotation
}
func NewAPIAnnotationNoExpireClaim ¶
func NewAPIAnnotationNoExpireClaim(path, method string) *APIAnnotationNoExpireClaim
func (*APIAnnotationNoExpireClaim) Aggregate ¶
func (a *APIAnnotationNoExpireClaim) Aggregate(ann utils.TraceAnalyzerAnnotation) (updated bool)
func (*APIAnnotationNoExpireClaim) Name ¶
func (a *APIAnnotationNoExpireClaim) Name() string
func (APIAnnotationNoExpireClaim) Redacted ¶
func (a APIAnnotationNoExpireClaim) Redacted() utils.TraceAnalyzerAPIAnnotation
func (APIAnnotationNoExpireClaim) Severity ¶
func (a APIAnnotationNoExpireClaim) Severity() string
func (*APIAnnotationNoExpireClaim) ToAPIFinding ¶
func (a *APIAnnotationNoExpireClaim) ToAPIFinding() oapicommon.APIFinding
type APIAnnotationNotRecommendedAlg ¶
type APIAnnotationNotRecommendedAlg struct { utils.BaseTraceAnalyzerAPIAnnotation NotRecommendedAlgs map[string]bool `json:"not_recommended"` }
func NewAPIAnnotationNotRecommendedAlg ¶
func NewAPIAnnotationNotRecommendedAlg(path, method string) *APIAnnotationNotRecommendedAlg
func (*APIAnnotationNotRecommendedAlg) Aggregate ¶
func (a *APIAnnotationNotRecommendedAlg) Aggregate(ann utils.TraceAnalyzerAnnotation) (updated bool)
func (*APIAnnotationNotRecommendedAlg) Name ¶
func (a *APIAnnotationNotRecommendedAlg) Name() string
func (APIAnnotationNotRecommendedAlg) Redacted ¶
func (a APIAnnotationNotRecommendedAlg) Redacted() utils.TraceAnalyzerAPIAnnotation
func (APIAnnotationNotRecommendedAlg) Severity ¶
func (a APIAnnotationNotRecommendedAlg) Severity() string
func (*APIAnnotationNotRecommendedAlg) ToAPIFinding ¶
func (a *APIAnnotationNotRecommendedAlg) ToAPIFinding() oapicommon.APIFinding
type APIAnnotationSensitiveContent ¶
type APIAnnotationSensitiveContent struct { utils.BaseTraceAnalyzerAPIAnnotation SensitiveWordsInHeaders map[string]bool `json:"sensitive_words_in_headers"` SensitiveWordsInClaims map[string]bool `json:"sensitive_words_in_claims"` }
func NewAPIAnnotationSensitiveContent ¶
func NewAPIAnnotationSensitiveContent(path, method string) *APIAnnotationSensitiveContent
func (*APIAnnotationSensitiveContent) Aggregate ¶
func (a *APIAnnotationSensitiveContent) Aggregate(ann utils.TraceAnalyzerAnnotation) (updated bool)
func (*APIAnnotationSensitiveContent) Name ¶
func (a *APIAnnotationSensitiveContent) Name() string
func (APIAnnotationSensitiveContent) Redacted ¶
func (a APIAnnotationSensitiveContent) Redacted() utils.TraceAnalyzerAPIAnnotation
func (APIAnnotationSensitiveContent) Severity ¶
func (a APIAnnotationSensitiveContent) Severity() string
func (*APIAnnotationSensitiveContent) ToAPIFinding ¶
func (a *APIAnnotationSensitiveContent) ToAPIFinding() oapicommon.APIFinding
type APIAnnotationWeakSymetricSecret ¶
type APIAnnotationWeakSymetricSecret struct {
utils.BaseTraceAnalyzerAPIAnnotation
}
func NewAPIAnnotationWeakSymetricSecret ¶
func NewAPIAnnotationWeakSymetricSecret(path, method string) *APIAnnotationWeakSymetricSecret
func (*APIAnnotationWeakSymetricSecret) Aggregate ¶
func (a *APIAnnotationWeakSymetricSecret) Aggregate(ann utils.TraceAnalyzerAnnotation) (updated bool)
func (*APIAnnotationWeakSymetricSecret) Name ¶
func (a *APIAnnotationWeakSymetricSecret) Name() string
func (APIAnnotationWeakSymetricSecret) Redacted ¶
func (a APIAnnotationWeakSymetricSecret) Redacted() utils.TraceAnalyzerAPIAnnotation
func (APIAnnotationWeakSymetricSecret) Severity ¶
func (a APIAnnotationWeakSymetricSecret) Severity() string
func (*APIAnnotationWeakSymetricSecret) ToAPIFinding ¶
func (a *APIAnnotationWeakSymetricSecret) ToAPIFinding() oapicommon.APIFinding
type AnnotationAlgFieldNone ¶
type AnnotationAlgFieldNone struct{}
func NewAnnotationAlgFieldNone ¶
func NewAnnotationAlgFieldNone() *AnnotationAlgFieldNone
func (*AnnotationAlgFieldNone) Name ¶
func (a *AnnotationAlgFieldNone) Name() string
func (*AnnotationAlgFieldNone) NewAPIAnnotation ¶
func (a *AnnotationAlgFieldNone) NewAPIAnnotation(path, method string) utils.TraceAnalyzerAPIAnnotation
func (AnnotationAlgFieldNone) Redacted ¶
func (a AnnotationAlgFieldNone) Redacted() utils.TraceAnalyzerAnnotation
func (*AnnotationAlgFieldNone) Severity ¶
func (a *AnnotationAlgFieldNone) Severity() string
func (*AnnotationAlgFieldNone) ToFinding ¶
func (a *AnnotationAlgFieldNone) ToFinding() utils.Finding
type AnnotationExpTooFar ¶
type AnnotationExpTooFar struct { ExpireAt time.Time `json:"expire_at"` ExpireIn time.Duration `json:"expire_in"` }
func NewAnnotationExpTooFar ¶
func NewAnnotationExpTooFar(expireAt time.Time) *AnnotationExpTooFar
func (*AnnotationExpTooFar) Name ¶
func (a *AnnotationExpTooFar) Name() string
func (*AnnotationExpTooFar) NewAPIAnnotation ¶
func (a *AnnotationExpTooFar) NewAPIAnnotation(path, method string) utils.TraceAnalyzerAPIAnnotation
func (AnnotationExpTooFar) Redacted ¶
func (a AnnotationExpTooFar) Redacted() utils.TraceAnalyzerAnnotation
func (*AnnotationExpTooFar) Severity ¶
func (a *AnnotationExpTooFar) Severity() string
func (*AnnotationExpTooFar) ToFinding ¶
func (a *AnnotationExpTooFar) ToFinding() utils.Finding
type AnnotationNoAlgField ¶
type AnnotationNoAlgField struct{}
func NewAnnotationNoAlgField ¶
func NewAnnotationNoAlgField() *AnnotationNoAlgField
func (*AnnotationNoAlgField) Name ¶
func (a *AnnotationNoAlgField) Name() string
func (*AnnotationNoAlgField) NewAPIAnnotation ¶
func (a *AnnotationNoAlgField) NewAPIAnnotation(path, method string) utils.TraceAnalyzerAPIAnnotation
func (AnnotationNoAlgField) Redacted ¶
func (a AnnotationNoAlgField) Redacted() utils.TraceAnalyzerAnnotation
func (*AnnotationNoAlgField) Severity ¶
func (a *AnnotationNoAlgField) Severity() string
func (*AnnotationNoAlgField) ToFinding ¶
func (a *AnnotationNoAlgField) ToFinding() utils.Finding
type AnnotationNoExpireClaim ¶
type AnnotationNoExpireClaim struct{}
func NewAnnotationNoExpireClaim ¶
func NewAnnotationNoExpireClaim() *AnnotationNoExpireClaim
func (*AnnotationNoExpireClaim) Name ¶
func (a *AnnotationNoExpireClaim) Name() string
func (*AnnotationNoExpireClaim) NewAPIAnnotation ¶
func (a *AnnotationNoExpireClaim) NewAPIAnnotation(path, method string) utils.TraceAnalyzerAPIAnnotation
func (AnnotationNoExpireClaim) Redacted ¶
func (a AnnotationNoExpireClaim) Redacted() utils.TraceAnalyzerAnnotation
func (*AnnotationNoExpireClaim) Severity ¶
func (a *AnnotationNoExpireClaim) Severity() string
func (*AnnotationNoExpireClaim) ToFinding ¶
func (a *AnnotationNoExpireClaim) ToFinding() utils.Finding
type AnnotationNotRecommendedAlg ¶
type AnnotationNotRecommendedAlg struct { Algorithm string `json:"algorithm"` RecommendedAlgs []string `json:"recommended_algs"` }
func NewAnnotationNotRecommendedAlg ¶
func NewAnnotationNotRecommendedAlg(alg string, recommended []string) *AnnotationNotRecommendedAlg
func (*AnnotationNotRecommendedAlg) Name ¶
func (a *AnnotationNotRecommendedAlg) Name() string
func (*AnnotationNotRecommendedAlg) NewAPIAnnotation ¶
func (a *AnnotationNotRecommendedAlg) NewAPIAnnotation(path, method string) utils.TraceAnalyzerAPIAnnotation
func (AnnotationNotRecommendedAlg) Redacted ¶
func (a AnnotationNotRecommendedAlg) Redacted() utils.TraceAnalyzerAnnotation
func (*AnnotationNotRecommendedAlg) Severity ¶
func (a *AnnotationNotRecommendedAlg) Severity() string
func (*AnnotationNotRecommendedAlg) ToFinding ¶
func (a *AnnotationNotRecommendedAlg) ToFinding() utils.Finding
type AnnotationSensitiveContent ¶
type AnnotationSensitiveContent struct { SensitiveWordsInHeaders []string `json:"sensitive_words_in_headers"` SensitiveWordsInClaims []string `json:"sensitive_words_in_claims"` }
func NewAnnotationSensitiveContent ¶
func NewAnnotationSensitiveContent(sensitiveInHeaders, sensitiveInClaims []string) *AnnotationSensitiveContent
func (*AnnotationSensitiveContent) Name ¶
func (a *AnnotationSensitiveContent) Name() string
func (*AnnotationSensitiveContent) NewAPIAnnotation ¶
func (a *AnnotationSensitiveContent) NewAPIAnnotation(path, method string) utils.TraceAnalyzerAPIAnnotation
func (AnnotationSensitiveContent) Redacted ¶
func (a AnnotationSensitiveContent) Redacted() utils.TraceAnalyzerAnnotation
func (*AnnotationSensitiveContent) Severity ¶
func (a *AnnotationSensitiveContent) Severity() string
func (*AnnotationSensitiveContent) ToFinding ¶
func (a *AnnotationSensitiveContent) ToFinding() utils.Finding
type AnnotationWeakSymetricSecret ¶
type AnnotationWeakSymetricSecret struct { WeakKey []byte `json:"weak_key"` WeakKeyLen int `json:"weak_key_len"` }
func NewAnnotationWeakSymetricSecret ¶
func NewAnnotationWeakSymetricSecret(weakKey []byte) *AnnotationWeakSymetricSecret
func (*AnnotationWeakSymetricSecret) Name ¶
func (a *AnnotationWeakSymetricSecret) Name() string
func (*AnnotationWeakSymetricSecret) NewAPIAnnotation ¶
func (a *AnnotationWeakSymetricSecret) NewAPIAnnotation(path, method string) utils.TraceAnalyzerAPIAnnotation
func (AnnotationWeakSymetricSecret) Redacted ¶
func (a AnnotationWeakSymetricSecret) Redacted() utils.TraceAnalyzerAnnotation
func (*AnnotationWeakSymetricSecret) Severity ¶
func (a *AnnotationWeakSymetricSecret) Severity() string
func (*AnnotationWeakSymetricSecret) ToFinding ¶
func (a *AnnotationWeakSymetricSecret) ToFinding() utils.Finding
Click to show internal directories.
Click to hide internal directories.