submitter

package
v0.0.1 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Jun 3, 2026 License: GPL-3.0 Imports: 39 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var LogID_Daedalus = [sha256.Size]byte{0x1d, 0x02, 0x4b, 0x8e, 0xb1, 0x49, 0x8b, 0x34, 0x4d, 0xfd, 0x87, 0xea, 0x3e, 0xfc, 0x09, 0x96, 0xf7, 0x50, 0x6f, 0x23, 0x5d, 0x1d, 0x49, 0x70, 0x61, 0xa4, 0x77, 0x3c, 0x43, 0x9c, 0x25, 0xfb}

Functions

This section is empty.

Types

type Bucket

type Bucket int
const (
	EXCLUDED Bucket = iota
	DISPREFERRED_MMDBLOWN
	DISPREFERRED_LOWUPTIME
	DISPREFERRED_RECENTBADRESPONSE
	DISPREFERRED_RECENTTIMEOUT
	DISPREFERRED_RECENT5XX
	DISPREFERRED_RECENT4XX
	DISPREFERRED_SLOWRESPONSES
	NEUTRAL
	PREFERRED_BYCONFIG
)

func (Bucket) MarshalJSON

func (bucket Bucket) MarshalJSON() ([]byte, error)

type CTLintResult

type CTLintResult struct {
	Finding  string `json:"finding"`
	Severity string `json:"severity"`
}

type LogType

type LogType int
const (
	LOGTYPE_RFC6962 LogType = iota
	LOGTYPE_STATIC
)

func (LogType) MarshalJSON

func (logType LogType) MarshalJSON() ([]byte, error)

type StrategyMember

type StrategyMember struct {
	SubmissionURL      string        `json:"submissionURL,omitempty"`
	MonitoringURL      string        `json:"monitoringURL,omitempty"`
	Operator           string        `json:"operator,omitempty"`
	LogName            string        `json:"logName,omitempty"`
	LogType            LogType       `json:"logType"`
	MMD                int32         `json:"mmd,omitempty"`
	Bucket             Bucket        `json:"bucket"`
	DispreferredDetail string        `json:"dispreferredDetail,omitempty"`
	RandomWeight       int           `json:"randomWeight,omitempty"`
	Outcome            string        `json:"outcome,omitempty"`
	BeganAfter         time.Duration `json:"beganAfter,omitempty"`
	TimeTaken          time.Duration `json:"timeTaken,omitempty"`
}

type SubmissionRequest

type SubmissionRequest struct {
	ctgo.AddChainRequest
	PolicyCompliant             bool `json:"policyCompliant,omitempty"`
	Mimics                      bool `json:"mimics,omitempty"`
	TestLogs                    bool `json:"testLogs,omitempty"`
	Operators                   int  `json:"operators,omitempty"`
	SCTs                        int  `json:"scts,omitempty"`
	RequireAtLeastOneRFC6962SCT bool `json:"requireAtLeastOneRFC6962SCT,omitempty"`
	PreferAtLeastOneStaticSCT   bool `json:"preferAtLeastOneStaticSCT,omitempty"`
	Verbose                     bool `json:"verbose,omitempty"`
}

func NewSubmissionRequest

func NewSubmissionRequest() *SubmissionRequest

type SubmissionResponse

type SubmissionResponse struct {
	LogResponse     []ctgo.AddChainResponse `json:"logResponse"`
	FinalTBSCertB64 string                  `json:"finalTBSCertB64,omitempty"`
	CTLint          []CTLintResult          `json:"ctlint,omitempty"`
	Strategy        []StrategyMember        `json:"strategy,omitempty"`
}

func Handler

func Handler(fhctx *fasthttp.RequestCtx, ctx context.Context, apiEndpoint endpoint.Endpoint, submissionRequest *SubmissionRequest) (*SubmissionResponse, error)

type TBSCertificate

type TBSCertificate struct {
	Version            int `asn1:"optional,explicit,default:1,tag:0"`
	SerialNumber       *big.Int
	SignatureAlgorithm pkix.AlgorithmIdentifier
	Issuer             asn1.RawValue
	Validity           validity
	Subject            asn1.RawValue
	PublicKey          asn1.RawValue
	UniqueId           asn1.BitString   `asn1:"optional,tag:1"`
	SubjectUniqueId    asn1.BitString   `asn1:"optional,tag:2"`
	Extensions         []pkix.Extension `asn1:"optional,explicit,tag:3"`
}

type ValidateChainCacheMap

type ValidateChainCacheMap map[[sha256.Size]byte]bool

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL