TUN-528: Move cloudflared into a separate repo

This commit is contained in:
Areg Harutyunyan
2018-05-01 18:45:06 -05:00
parent e8c621a648
commit d06fc520c7
4726 changed files with 1763680 additions and 0 deletions

View File

@@ -0,0 +1,111 @@
// Code generated by protoc-gen-go. DO NOT EDIT.
// source: google/cloud/websecurityscanner/v1alpha/crawled_url.proto
package websecurityscanner // import "google.golang.org/genproto/googleapis/cloud/websecurityscanner/v1alpha"
import proto "github.com/golang/protobuf/proto"
import fmt "fmt"
import math "math"
import _ "google.golang.org/genproto/googleapis/api/annotations"
// Reference imports to suppress errors if they are not otherwise used.
var _ = proto.Marshal
var _ = fmt.Errorf
var _ = math.Inf
// This is a compile-time assertion to ensure that this generated file
// is compatible with the proto package it is being compiled against.
// A compilation error at this line likely means your copy of the
// proto package needs to be updated.
const _ = proto.ProtoPackageIsVersion2 // please upgrade the proto package
// A CrawledUrl resource represents a URL that was crawled during a ScanRun. Web
// Security Scanner Service crawls the web applications, following all links
// within the scope of sites, to find the URLs to test against.
type CrawledUrl struct {
// Output only.
// The http method of the request that was used to visit the URL, in
// uppercase.
HttpMethod string `protobuf:"bytes,1,opt,name=http_method,json=httpMethod,proto3" json:"http_method,omitempty"`
// Output only.
// The URL that was crawled.
Url string `protobuf:"bytes,2,opt,name=url,proto3" json:"url,omitempty"`
// Output only.
// The body of the request that was used to visit the URL.
Body string `protobuf:"bytes,3,opt,name=body,proto3" json:"body,omitempty"`
XXX_NoUnkeyedLiteral struct{} `json:"-"`
XXX_unrecognized []byte `json:"-"`
XXX_sizecache int32 `json:"-"`
}
func (m *CrawledUrl) Reset() { *m = CrawledUrl{} }
func (m *CrawledUrl) String() string { return proto.CompactTextString(m) }
func (*CrawledUrl) ProtoMessage() {}
func (*CrawledUrl) Descriptor() ([]byte, []int) {
return fileDescriptor_crawled_url_49d80ce587eb50ce, []int{0}
}
func (m *CrawledUrl) XXX_Unmarshal(b []byte) error {
return xxx_messageInfo_CrawledUrl.Unmarshal(m, b)
}
func (m *CrawledUrl) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
return xxx_messageInfo_CrawledUrl.Marshal(b, m, deterministic)
}
func (dst *CrawledUrl) XXX_Merge(src proto.Message) {
xxx_messageInfo_CrawledUrl.Merge(dst, src)
}
func (m *CrawledUrl) XXX_Size() int {
return xxx_messageInfo_CrawledUrl.Size(m)
}
func (m *CrawledUrl) XXX_DiscardUnknown() {
xxx_messageInfo_CrawledUrl.DiscardUnknown(m)
}
var xxx_messageInfo_CrawledUrl proto.InternalMessageInfo
func (m *CrawledUrl) GetHttpMethod() string {
if m != nil {
return m.HttpMethod
}
return ""
}
func (m *CrawledUrl) GetUrl() string {
if m != nil {
return m.Url
}
return ""
}
func (m *CrawledUrl) GetBody() string {
if m != nil {
return m.Body
}
return ""
}
func init() {
proto.RegisterType((*CrawledUrl)(nil), "google.cloud.websecurityscanner.v1alpha.CrawledUrl")
}
func init() {
proto.RegisterFile("google/cloud/websecurityscanner/v1alpha/crawled_url.proto", fileDescriptor_crawled_url_49d80ce587eb50ce)
}
var fileDescriptor_crawled_url_49d80ce587eb50ce = []byte{
// 235 bytes of a gzipped FileDescriptorProto
0x1f, 0x8b, 0x08, 0x00, 0x00, 0x00, 0x00, 0x00, 0x02, 0xff, 0x8c, 0x90, 0x31, 0x4b, 0x04, 0x31,
0x10, 0x85, 0x59, 0x4f, 0x04, 0xc7, 0x42, 0x49, 0xb5, 0x88, 0xa0, 0xd8, 0x28, 0x08, 0x09, 0x62,
0x25, 0x76, 0x67, 0x2d, 0x1c, 0x8a, 0x85, 0x36, 0xc7, 0x6c, 0x36, 0x64, 0x17, 0xe6, 0x32, 0x61,
0x36, 0xeb, 0x71, 0xbf, 0xc5, 0x3f, 0x2b, 0x9b, 0x2c, 0x58, 0x5c, 0xa1, 0xdd, 0xf0, 0x1e, 0xdf,
0xcb, 0x47, 0xe0, 0xd1, 0x33, 0x7b, 0x72, 0xc6, 0x12, 0x8f, 0xad, 0xd9, 0xba, 0x66, 0x70, 0x76,
0x94, 0x3e, 0xed, 0x06, 0x8b, 0x21, 0x38, 0x31, 0x5f, 0xf7, 0x48, 0xb1, 0x43, 0x63, 0x05, 0xb7,
0xe4, 0xda, 0xf5, 0x28, 0xa4, 0xa3, 0x70, 0x62, 0x75, 0x53, 0x50, 0x9d, 0x51, 0xbd, 0x8f, 0xea,
0x19, 0x3d, 0xbf, 0x98, 0xdf, 0xc0, 0xd8, 0x1b, 0x0c, 0x81, 0x13, 0xa6, 0x9e, 0xc3, 0x50, 0x66,
0xae, 0xdf, 0x00, 0x9e, 0xcb, 0xf6, 0xbb, 0x90, 0xba, 0x84, 0x93, 0x2e, 0xa5, 0xb8, 0xde, 0xb8,
0xd4, 0x71, 0x5b, 0x57, 0x57, 0xd5, 0xed, 0xf1, 0x2b, 0x4c, 0xd1, 0x4b, 0x4e, 0xd4, 0x19, 0x2c,
0x46, 0xa1, 0xfa, 0x20, 0x17, 0xd3, 0xa9, 0x14, 0x1c, 0x36, 0xdc, 0xee, 0xea, 0x45, 0x8e, 0xf2,
0xbd, 0xfc, 0xae, 0xe0, 0xce, 0xf2, 0x46, 0xff, 0x53, 0x71, 0x79, 0xfa, 0xab, 0xb0, 0x9a, 0xac,
0x56, 0xd5, 0xe7, 0xc7, 0xcc, 0x7a, 0x26, 0x0c, 0x5e, 0xb3, 0x78, 0xe3, 0x5d, 0xc8, 0xce, 0xa6,
0x54, 0x18, 0xfb, 0xe1, 0xcf, 0x8f, 0x7b, 0xda, 0xaf, 0x9a, 0xa3, 0xbc, 0xf2, 0xf0, 0x13, 0x00,
0x00, 0xff, 0xff, 0x7b, 0x55, 0xd9, 0x73, 0x7d, 0x01, 0x00, 0x00,
}

View File

@@ -0,0 +1,322 @@
// Code generated by protoc-gen-go. DO NOT EDIT.
// source: google/cloud/websecurityscanner/v1alpha/finding.proto
package websecurityscanner // import "google.golang.org/genproto/googleapis/cloud/websecurityscanner/v1alpha"
import proto "github.com/golang/protobuf/proto"
import fmt "fmt"
import math "math"
import _ "google.golang.org/genproto/googleapis/api/annotations"
// Reference imports to suppress errors if they are not otherwise used.
var _ = proto.Marshal
var _ = fmt.Errorf
var _ = math.Inf
// This is a compile-time assertion to ensure that this generated file
// is compatible with the proto package it is being compiled against.
// A compilation error at this line likely means your copy of the
// proto package needs to be updated.
const _ = proto.ProtoPackageIsVersion2 // please upgrade the proto package
// Types of Findings.
type Finding_FindingType int32
const (
// The invalid finding type.
Finding_FINDING_TYPE_UNSPECIFIED Finding_FindingType = 0
// A page that was served over HTTPS also resources over HTTP. A
// man-in-the-middle attacker could tamper with the HTTP resource and gain
// full access to the website that loads the resource or to monitor the
// actions taken by the user.
Finding_MIXED_CONTENT Finding_FindingType = 1
// The version of an included library is known to contain a security issue.
// The scanner checks the version of library in use against a known list of
// vulnerable libraries. False positives are possible if the version
// detection fails or if the library has been manually patched.
Finding_OUTDATED_LIBRARY Finding_FindingType = 2
// This type of vulnerability occurs when the value of a request parameter
// is reflected at the beginning of the response, for example, in requests
// using JSONP. Under certain circumstances, an attacker may be able to
// supply an alphanumeric-only Flash file in the vulnerable parameter
// causing the browser to execute the Flash file as if it originated on the
// vulnerable server.
Finding_ROSETTA_FLASH Finding_FindingType = 5
// A cross-site scripting (XSS) bug is found via JavaScript callback. For
// detailed explanations on XSS, see
// https://www.google.com/about/appsecurity/learning/xss/.
Finding_XSS_CALLBACK Finding_FindingType = 3
// A potential cross-site scripting (XSS) bug due to JavaScript breakage.
// In some circumstances, the application under test might modify the test
// string before it is parsed by the browser. When the browser attempts to
// runs this modified test string, it will likely break and throw a
// JavaScript execution error, thus an injection issue is occurring.
// However, it may not be exploitable. Manual verification is needed to see
// if the test string modifications can be evaded and confirm that the issue
// is in fact an XSS vulnerability. For detailed explanations on XSS, see
// https://www.google.com/about/appsecurity/learning/xss/.
Finding_XSS_ERROR Finding_FindingType = 4
// An application appears to be transmitting a password field in clear text.
// An attacker can eavesdrop network traffic and sniff the password field.
Finding_CLEAR_TEXT_PASSWORD Finding_FindingType = 6
)
var Finding_FindingType_name = map[int32]string{
0: "FINDING_TYPE_UNSPECIFIED",
1: "MIXED_CONTENT",
2: "OUTDATED_LIBRARY",
5: "ROSETTA_FLASH",
3: "XSS_CALLBACK",
4: "XSS_ERROR",
6: "CLEAR_TEXT_PASSWORD",
}
var Finding_FindingType_value = map[string]int32{
"FINDING_TYPE_UNSPECIFIED": 0,
"MIXED_CONTENT": 1,
"OUTDATED_LIBRARY": 2,
"ROSETTA_FLASH": 5,
"XSS_CALLBACK": 3,
"XSS_ERROR": 4,
"CLEAR_TEXT_PASSWORD": 6,
}
func (x Finding_FindingType) String() string {
return proto.EnumName(Finding_FindingType_name, int32(x))
}
func (Finding_FindingType) EnumDescriptor() ([]byte, []int) {
return fileDescriptor_finding_e6d5b68210184e9b, []int{0, 0}
}
// A Finding resource represents a vulnerability instance identified during a
// ScanRun.
type Finding struct {
// Output only.
// The resource name of the Finding. The name follows the format of
// 'projects/{projectId}/scanConfigs/{scanConfigId}/scanruns/{scanRunId}/findings/{findingId}'.
// The finding IDs are generated by the system.
Name string `protobuf:"bytes,1,opt,name=name,proto3" json:"name,omitempty"`
// Output only.
// The type of the Finding.
FindingType Finding_FindingType `protobuf:"varint,2,opt,name=finding_type,json=findingType,proto3,enum=google.cloud.websecurityscanner.v1alpha.Finding_FindingType" json:"finding_type,omitempty"`
// Output only.
// The http method of the request that triggered the vulnerability, in
// uppercase.
HttpMethod string `protobuf:"bytes,3,opt,name=http_method,json=httpMethod,proto3" json:"http_method,omitempty"`
// Output only.
// The URL produced by the server-side fuzzer and used in the request that
// triggered the vulnerability.
FuzzedUrl string `protobuf:"bytes,4,opt,name=fuzzed_url,json=fuzzedUrl,proto3" json:"fuzzed_url,omitempty"`
// Output only.
// The body of the request that triggered the vulnerability.
Body string `protobuf:"bytes,5,opt,name=body,proto3" json:"body,omitempty"`
// Output only.
// The description of the vulnerability.
Description string `protobuf:"bytes,6,opt,name=description,proto3" json:"description,omitempty"`
// Output only.
// The URL containing human-readable payload that user can leverage to
// reproduce the vulnerability.
ReproductionUrl string `protobuf:"bytes,7,opt,name=reproduction_url,json=reproductionUrl,proto3" json:"reproduction_url,omitempty"`
// Output only.
// If the vulnerability was originated from nested IFrame, the immediate
// parent IFrame is reported.
FrameUrl string `protobuf:"bytes,8,opt,name=frame_url,json=frameUrl,proto3" json:"frame_url,omitempty"`
// Output only.
// The URL where the browser lands when the vulnerability is detected.
FinalUrl string `protobuf:"bytes,9,opt,name=final_url,json=finalUrl,proto3" json:"final_url,omitempty"`
// Output only.
// The tracking ID uniquely identifies a vulnerability instance across
// multiple ScanRuns.
TrackingId string `protobuf:"bytes,10,opt,name=tracking_id,json=trackingId,proto3" json:"tracking_id,omitempty"`
// Output only.
// An addon containing information about outdated libraries.
OutdatedLibrary *OutdatedLibrary `protobuf:"bytes,11,opt,name=outdated_library,json=outdatedLibrary,proto3" json:"outdated_library,omitempty"`
// Output only.
// An addon containing detailed information regarding any resource causing the
// vulnerability such as JavaScript sources, image, audio files, etc.
ViolatingResource *ViolatingResource `protobuf:"bytes,12,opt,name=violating_resource,json=violatingResource,proto3" json:"violating_resource,omitempty"`
// Output only.
// An addon containing information about request parameters which were found
// to be vulnerable.
VulnerableParameters *VulnerableParameters `protobuf:"bytes,13,opt,name=vulnerable_parameters,json=vulnerableParameters,proto3" json:"vulnerable_parameters,omitempty"`
// Output only.
// An addon containing information reported for an XSS, if any.
Xss *Xss `protobuf:"bytes,14,opt,name=xss,proto3" json:"xss,omitempty"`
XXX_NoUnkeyedLiteral struct{} `json:"-"`
XXX_unrecognized []byte `json:"-"`
XXX_sizecache int32 `json:"-"`
}
func (m *Finding) Reset() { *m = Finding{} }
func (m *Finding) String() string { return proto.CompactTextString(m) }
func (*Finding) ProtoMessage() {}
func (*Finding) Descriptor() ([]byte, []int) {
return fileDescriptor_finding_e6d5b68210184e9b, []int{0}
}
func (m *Finding) XXX_Unmarshal(b []byte) error {
return xxx_messageInfo_Finding.Unmarshal(m, b)
}
func (m *Finding) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
return xxx_messageInfo_Finding.Marshal(b, m, deterministic)
}
func (dst *Finding) XXX_Merge(src proto.Message) {
xxx_messageInfo_Finding.Merge(dst, src)
}
func (m *Finding) XXX_Size() int {
return xxx_messageInfo_Finding.Size(m)
}
func (m *Finding) XXX_DiscardUnknown() {
xxx_messageInfo_Finding.DiscardUnknown(m)
}
var xxx_messageInfo_Finding proto.InternalMessageInfo
func (m *Finding) GetName() string {
if m != nil {
return m.Name
}
return ""
}
func (m *Finding) GetFindingType() Finding_FindingType {
if m != nil {
return m.FindingType
}
return Finding_FINDING_TYPE_UNSPECIFIED
}
func (m *Finding) GetHttpMethod() string {
if m != nil {
return m.HttpMethod
}
return ""
}
func (m *Finding) GetFuzzedUrl() string {
if m != nil {
return m.FuzzedUrl
}
return ""
}
func (m *Finding) GetBody() string {
if m != nil {
return m.Body
}
return ""
}
func (m *Finding) GetDescription() string {
if m != nil {
return m.Description
}
return ""
}
func (m *Finding) GetReproductionUrl() string {
if m != nil {
return m.ReproductionUrl
}
return ""
}
func (m *Finding) GetFrameUrl() string {
if m != nil {
return m.FrameUrl
}
return ""
}
func (m *Finding) GetFinalUrl() string {
if m != nil {
return m.FinalUrl
}
return ""
}
func (m *Finding) GetTrackingId() string {
if m != nil {
return m.TrackingId
}
return ""
}
func (m *Finding) GetOutdatedLibrary() *OutdatedLibrary {
if m != nil {
return m.OutdatedLibrary
}
return nil
}
func (m *Finding) GetViolatingResource() *ViolatingResource {
if m != nil {
return m.ViolatingResource
}
return nil
}
func (m *Finding) GetVulnerableParameters() *VulnerableParameters {
if m != nil {
return m.VulnerableParameters
}
return nil
}
func (m *Finding) GetXss() *Xss {
if m != nil {
return m.Xss
}
return nil
}
func init() {
proto.RegisterType((*Finding)(nil), "google.cloud.websecurityscanner.v1alpha.Finding")
proto.RegisterEnum("google.cloud.websecurityscanner.v1alpha.Finding_FindingType", Finding_FindingType_name, Finding_FindingType_value)
}
func init() {
proto.RegisterFile("google/cloud/websecurityscanner/v1alpha/finding.proto", fileDescriptor_finding_e6d5b68210184e9b)
}
var fileDescriptor_finding_e6d5b68210184e9b = []byte{
// 631 bytes of a gzipped FileDescriptorProto
0x1f, 0x8b, 0x08, 0x00, 0x00, 0x00, 0x00, 0x00, 0x02, 0xff, 0x94, 0x54, 0x5f, 0x6f, 0xd3, 0x3e,
0x14, 0xfd, 0x65, 0xff, 0xeb, 0x74, 0x5b, 0xe6, 0xdf, 0x10, 0xd1, 0x18, 0x5a, 0xb5, 0x17, 0x86,
0x40, 0x89, 0x18, 0x42, 0x42, 0x0c, 0x90, 0xd2, 0x36, 0x85, 0x88, 0xae, 0xad, 0x9c, 0x0c, 0x3a,
0x5e, 0x2c, 0x37, 0x71, 0xb3, 0x88, 0x34, 0x8e, 0x9c, 0xa4, 0xd0, 0x7d, 0x12, 0x5e, 0xe1, 0x93,
0x22, 0x3b, 0xe9, 0x28, 0x0c, 0x89, 0xf2, 0x54, 0xfb, 0x9c, 0x7b, 0xce, 0xb9, 0xf7, 0xaa, 0x31,
0x78, 0x16, 0x32, 0x16, 0xc6, 0xd4, 0xf4, 0x63, 0x56, 0x04, 0xe6, 0x67, 0x3a, 0xca, 0xa8, 0x5f,
0xf0, 0x28, 0x9f, 0x65, 0x3e, 0x49, 0x12, 0xca, 0xcd, 0xe9, 0x13, 0x12, 0xa7, 0x57, 0xc4, 0x1c,
0x47, 0x49, 0x10, 0x25, 0xa1, 0x91, 0x72, 0x96, 0x33, 0xf8, 0xa0, 0x94, 0x19, 0x52, 0x66, 0xdc,
0x96, 0x19, 0x95, 0xec, 0xe0, 0xb0, 0xf2, 0x27, 0x69, 0x64, 0x92, 0x24, 0x61, 0x39, 0xc9, 0x23,
0x96, 0x64, 0xa5, 0xcd, 0xc1, 0xd9, 0x3f, 0xa6, 0x63, 0x12, 0x04, 0x2c, 0x29, 0xc5, 0xc7, 0xdf,
0x37, 0xc1, 0x66, 0xa7, 0xc4, 0x21, 0x04, 0x6b, 0x09, 0x99, 0x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, 0x09, 0xc4, 0x46, 0xa8,
0x8f, 0xb4, 0x35, 0x78, 0x17, 0xfc, 0xdf, 0xea, 0xda, 0x16, 0xc2, 0x9e, 0x3d, 0xf4, 0xf0, 0xc0,
0x72, 0xdd, 0x0f, 0x7d, 0xd4, 0xd6, 0x36, 0x9a, 0x5f, 0x15, 0xf0, 0xc8, 0x67, 0x93, 0x65, 0x87,
0x6b, 0xd6, 0xab, 0x81, 0x06, 0xe2, 0x13, 0x1f, 0x28, 0x1f, 0x2f, 0x2b, 0x61, 0xc8, 0x62, 0x92,
0x84, 0x06, 0xe3, 0xa1, 0x19, 0xd2, 0x44, 0x3e, 0x00, 0x66, 0x49, 0x91, 0x34, 0xca, 0xfe, 0xfa,
0x80, 0x9c, 0xdd, 0xa6, 0x46, 0x1b, 0xd2, 0xe5, 0xe9, 0x8f, 0x00, 0x00, 0x00, 0xff, 0xff, 0x8a,
0x7d, 0x4d, 0xc7, 0x03, 0x05, 0x00, 0x00,
}

View File

@@ -0,0 +1,257 @@
// Code generated by protoc-gen-go. DO NOT EDIT.
// source: google/cloud/websecurityscanner/v1alpha/finding_addon.proto
package websecurityscanner // import "google.golang.org/genproto/googleapis/cloud/websecurityscanner/v1alpha"
import proto "github.com/golang/protobuf/proto"
import fmt "fmt"
import math "math"
import _ "google.golang.org/genproto/googleapis/api/annotations"
// Reference imports to suppress errors if they are not otherwise used.
var _ = proto.Marshal
var _ = fmt.Errorf
var _ = math.Inf
// This is a compile-time assertion to ensure that this generated file
// is compatible with the proto package it is being compiled against.
// A compilation error at this line likely means your copy of the
// proto package needs to be updated.
const _ = proto.ProtoPackageIsVersion2 // please upgrade the proto package
// Information reported for an outdated library.
type OutdatedLibrary struct {
// The name of the outdated library.
LibraryName string `protobuf:"bytes,1,opt,name=library_name,json=libraryName,proto3" json:"library_name,omitempty"`
// The version number.
Version string `protobuf:"bytes,2,opt,name=version,proto3" json:"version,omitempty"`
// URLs to learn more information about the vulnerabilities in the library.
LearnMoreUrls []string `protobuf:"bytes,3,rep,name=learn_more_urls,json=learnMoreUrls,proto3" json:"learn_more_urls,omitempty"`
XXX_NoUnkeyedLiteral struct{} `json:"-"`
XXX_unrecognized []byte `json:"-"`
XXX_sizecache int32 `json:"-"`
}
func (m *OutdatedLibrary) Reset() { *m = OutdatedLibrary{} }
func (m *OutdatedLibrary) String() string { return proto.CompactTextString(m) }
func (*OutdatedLibrary) ProtoMessage() {}
func (*OutdatedLibrary) Descriptor() ([]byte, []int) {
return fileDescriptor_finding_addon_4cf381e2f681b13b, []int{0}
}
func (m *OutdatedLibrary) XXX_Unmarshal(b []byte) error {
return xxx_messageInfo_OutdatedLibrary.Unmarshal(m, b)
}
func (m *OutdatedLibrary) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
return xxx_messageInfo_OutdatedLibrary.Marshal(b, m, deterministic)
}
func (dst *OutdatedLibrary) XXX_Merge(src proto.Message) {
xxx_messageInfo_OutdatedLibrary.Merge(dst, src)
}
func (m *OutdatedLibrary) XXX_Size() int {
return xxx_messageInfo_OutdatedLibrary.Size(m)
}
func (m *OutdatedLibrary) XXX_DiscardUnknown() {
xxx_messageInfo_OutdatedLibrary.DiscardUnknown(m)
}
var xxx_messageInfo_OutdatedLibrary proto.InternalMessageInfo
func (m *OutdatedLibrary) GetLibraryName() string {
if m != nil {
return m.LibraryName
}
return ""
}
func (m *OutdatedLibrary) GetVersion() string {
if m != nil {
return m.Version
}
return ""
}
func (m *OutdatedLibrary) GetLearnMoreUrls() []string {
if m != nil {
return m.LearnMoreUrls
}
return nil
}
// Information regarding any resource causing the vulnerability such
// as JavaScript sources, image, audio files, etc.
type ViolatingResource struct {
// The MIME type of this resource.
ContentType string `protobuf:"bytes,1,opt,name=content_type,json=contentType,proto3" json:"content_type,omitempty"`
// URL of this violating resource.
ResourceUrl string `protobuf:"bytes,2,opt,name=resource_url,json=resourceUrl,proto3" json:"resource_url,omitempty"`
XXX_NoUnkeyedLiteral struct{} `json:"-"`
XXX_unrecognized []byte `json:"-"`
XXX_sizecache int32 `json:"-"`
}
func (m *ViolatingResource) Reset() { *m = ViolatingResource{} }
func (m *ViolatingResource) String() string { return proto.CompactTextString(m) }
func (*ViolatingResource) ProtoMessage() {}
func (*ViolatingResource) Descriptor() ([]byte, []int) {
return fileDescriptor_finding_addon_4cf381e2f681b13b, []int{1}
}
func (m *ViolatingResource) XXX_Unmarshal(b []byte) error {
return xxx_messageInfo_ViolatingResource.Unmarshal(m, b)
}
func (m *ViolatingResource) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
return xxx_messageInfo_ViolatingResource.Marshal(b, m, deterministic)
}
func (dst *ViolatingResource) XXX_Merge(src proto.Message) {
xxx_messageInfo_ViolatingResource.Merge(dst, src)
}
func (m *ViolatingResource) XXX_Size() int {
return xxx_messageInfo_ViolatingResource.Size(m)
}
func (m *ViolatingResource) XXX_DiscardUnknown() {
xxx_messageInfo_ViolatingResource.DiscardUnknown(m)
}
var xxx_messageInfo_ViolatingResource proto.InternalMessageInfo
func (m *ViolatingResource) GetContentType() string {
if m != nil {
return m.ContentType
}
return ""
}
func (m *ViolatingResource) GetResourceUrl() string {
if m != nil {
return m.ResourceUrl
}
return ""
}
// Information about vulnerable request parameters.
type VulnerableParameters struct {
// The vulnerable parameter names.
ParameterNames []string `protobuf:"bytes,1,rep,name=parameter_names,json=parameterNames,proto3" json:"parameter_names,omitempty"`
XXX_NoUnkeyedLiteral struct{} `json:"-"`
XXX_unrecognized []byte `json:"-"`
XXX_sizecache int32 `json:"-"`
}
func (m *VulnerableParameters) Reset() { *m = VulnerableParameters{} }
func (m *VulnerableParameters) String() string { return proto.CompactTextString(m) }
func (*VulnerableParameters) ProtoMessage() {}
func (*VulnerableParameters) Descriptor() ([]byte, []int) {
return fileDescriptor_finding_addon_4cf381e2f681b13b, []int{2}
}
func (m *VulnerableParameters) XXX_Unmarshal(b []byte) error {
return xxx_messageInfo_VulnerableParameters.Unmarshal(m, b)
}
func (m *VulnerableParameters) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
return xxx_messageInfo_VulnerableParameters.Marshal(b, m, deterministic)
}
func (dst *VulnerableParameters) XXX_Merge(src proto.Message) {
xxx_messageInfo_VulnerableParameters.Merge(dst, src)
}
func (m *VulnerableParameters) XXX_Size() int {
return xxx_messageInfo_VulnerableParameters.Size(m)
}
func (m *VulnerableParameters) XXX_DiscardUnknown() {
xxx_messageInfo_VulnerableParameters.DiscardUnknown(m)
}
var xxx_messageInfo_VulnerableParameters proto.InternalMessageInfo
func (m *VulnerableParameters) GetParameterNames() []string {
if m != nil {
return m.ParameterNames
}
return nil
}
// Information reported for an XSS.
type Xss struct {
// Stack traces leading to the point where the XSS occurred.
StackTraces []string `protobuf:"bytes,1,rep,name=stack_traces,json=stackTraces,proto3" json:"stack_traces,omitempty"`
// An error message generated by a javascript breakage.
ErrorMessage string `protobuf:"bytes,2,opt,name=error_message,json=errorMessage,proto3" json:"error_message,omitempty"`
XXX_NoUnkeyedLiteral struct{} `json:"-"`
XXX_unrecognized []byte `json:"-"`
XXX_sizecache int32 `json:"-"`
}
func (m *Xss) Reset() { *m = Xss{} }
func (m *Xss) String() string { return proto.CompactTextString(m) }
func (*Xss) ProtoMessage() {}
func (*Xss) Descriptor() ([]byte, []int) {
return fileDescriptor_finding_addon_4cf381e2f681b13b, []int{3}
}
func (m *Xss) XXX_Unmarshal(b []byte) error {
return xxx_messageInfo_Xss.Unmarshal(m, b)
}
func (m *Xss) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
return xxx_messageInfo_Xss.Marshal(b, m, deterministic)
}
func (dst *Xss) XXX_Merge(src proto.Message) {
xxx_messageInfo_Xss.Merge(dst, src)
}
func (m *Xss) XXX_Size() int {
return xxx_messageInfo_Xss.Size(m)
}
func (m *Xss) XXX_DiscardUnknown() {
xxx_messageInfo_Xss.DiscardUnknown(m)
}
var xxx_messageInfo_Xss proto.InternalMessageInfo
func (m *Xss) GetStackTraces() []string {
if m != nil {
return m.StackTraces
}
return nil
}
func (m *Xss) GetErrorMessage() string {
if m != nil {
return m.ErrorMessage
}
return ""
}
func init() {
proto.RegisterType((*OutdatedLibrary)(nil), "google.cloud.websecurityscanner.v1alpha.OutdatedLibrary")
proto.RegisterType((*ViolatingResource)(nil), "google.cloud.websecurityscanner.v1alpha.ViolatingResource")
proto.RegisterType((*VulnerableParameters)(nil), "google.cloud.websecurityscanner.v1alpha.VulnerableParameters")
proto.RegisterType((*Xss)(nil), "google.cloud.websecurityscanner.v1alpha.Xss")
}
func init() {
proto.RegisterFile("google/cloud/websecurityscanner/v1alpha/finding_addon.proto", fileDescriptor_finding_addon_4cf381e2f681b13b)
}
var fileDescriptor_finding_addon_4cf381e2f681b13b = []byte{
// 388 bytes of a gzipped FileDescriptorProto
0x1f, 0x8b, 0x08, 0x00, 0x00, 0x00, 0x00, 0x00, 0x02, 0xff, 0x8c, 0x92, 0xc1, 0x6b, 0xd4, 0x50,
0x10, 0xc6, 0x89, 0x0b, 0x4a, 0xdf, 0xb6, 0x2e, 0x0d, 0x1e, 0x82, 0x78, 0xa8, 0x2b, 0xd8, 0x82,
0x90, 0x20, 0x1e, 0x7b, 0x10, 0x7b, 0xf0, 0xe4, 0xea, 0xb2, 0xb4, 0xc5, 0x7a, 0x09, 0xb3, 0xc9,
0xf8, 0x7c, 0xf8, 0x32, 0x13, 0x66, 0x5e, 0x56, 0xf2, 0xc7, 0xf8, 0xbf, 0x4a, 0x5e, 0xb2, 0x7b,
0xd9, 0x83, 0xbd, 0xe5, 0xfd, 0x66, 0xbe, 0xf9, 0x66, 0xf8, 0x62, 0xae, 0x2d, 0xb3, 0xf5, 0x58,
0x54, 0x9e, 0xbb, 0xba, 0xf8, 0x83, 0x5b, 0xc5, 0xaa, 0x13, 0x17, 0x7a, 0xad, 0x80, 0x08, 0xa5,
0xd8, 0xbd, 0x07, 0xdf, 0xfe, 0x82, 0xe2, 0xa7, 0xa3, 0xda, 0x91, 0x2d, 0xa1, 0xae, 0x99, 0xf2,
0x56, 0x38, 0x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x3a, 0x34, 0xcf, 0x23, 0xbb, 0x8d,
0x28, 0x7d, 0x63, 0xce, 0x50, 0x84, 0xa5, 0x6c, 0x50, 0x15, 0x2c, 0x4e, 0xeb, 0x9c, 0x46, 0xb8,
0x1a, 0xd9, 0xcd, 0xdf, 0xc4, 0xbc, 0xab, 0xb8, 0xc9, 0x1f, 0x19, 0xd8, 0xcd, 0xf9, 0xe7, 0x31,
0xee, 0x4f, 0x43, 0xda, 0xeb, 0x21, 0xa5, 0x75, 0xf2, 0xe3, 0x61, 0x52, 0x5b, 0xf6, 0x40, 0x36,
0x67, 0xb1, 0x85, 0x45, 0x8a, 0x19, 0x16, 0x63, 0x09, 0x5a, 0xa7, 0xff, 0xfd, 0x95, 0xae, 0x8f,
0x4b, 0xdb, 0xa7, 0x71, 0xca, 0x87, 0x7f, 0x01, 0x00, 0x00, 0xff, 0xff, 0xb6, 0x61, 0x84, 0x84,
0x8f, 0x02, 0x00, 0x00,
}

View File

@@ -0,0 +1,100 @@
// Code generated by protoc-gen-go. DO NOT EDIT.
// source: google/cloud/websecurityscanner/v1alpha/finding_type_stats.proto
package websecurityscanner // import "google.golang.org/genproto/googleapis/cloud/websecurityscanner/v1alpha"
import proto "github.com/golang/protobuf/proto"
import fmt "fmt"
import math "math"
import _ "google.golang.org/genproto/googleapis/api/annotations"
// Reference imports to suppress errors if they are not otherwise used.
var _ = proto.Marshal
var _ = fmt.Errorf
var _ = math.Inf
// This is a compile-time assertion to ensure that this generated file
// is compatible with the proto package it is being compiled against.
// A compilation error at this line likely means your copy of the
// proto package needs to be updated.
const _ = proto.ProtoPackageIsVersion2 // please upgrade the proto package
// A FindingTypeStats resource represents stats regarding a specific FindingType
// of Findings under a given ScanRun.
type FindingTypeStats struct {
// Output only.
// The finding type associated with the stats.
FindingType Finding_FindingType `protobuf:"varint,1,opt,name=finding_type,json=findingType,proto3,enum=google.cloud.websecurityscanner.v1alpha.Finding_FindingType" json:"finding_type,omitempty"`
// Output only.
// The count of findings belonging to this finding type.
FindingCount int32 `protobuf:"varint,2,opt,name=finding_count,json=findingCount,proto3" json:"finding_count,omitempty"`
XXX_NoUnkeyedLiteral struct{} `json:"-"`
XXX_unrecognized []byte `json:"-"`
XXX_sizecache int32 `json:"-"`
}
func (m *FindingTypeStats) Reset() { *m = FindingTypeStats{} }
func (m *FindingTypeStats) String() string { return proto.CompactTextString(m) }
func (*FindingTypeStats) ProtoMessage() {}
func (*FindingTypeStats) Descriptor() ([]byte, []int) {
return fileDescriptor_finding_type_stats_1d7d2596ef9e9e4d, []int{0}
}
func (m *FindingTypeStats) XXX_Unmarshal(b []byte) error {
return xxx_messageInfo_FindingTypeStats.Unmarshal(m, b)
}
func (m *FindingTypeStats) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
return xxx_messageInfo_FindingTypeStats.Marshal(b, m, deterministic)
}
func (dst *FindingTypeStats) XXX_Merge(src proto.Message) {
xxx_messageInfo_FindingTypeStats.Merge(dst, src)
}
func (m *FindingTypeStats) XXX_Size() int {
return xxx_messageInfo_FindingTypeStats.Size(m)
}
func (m *FindingTypeStats) XXX_DiscardUnknown() {
xxx_messageInfo_FindingTypeStats.DiscardUnknown(m)
}
var xxx_messageInfo_FindingTypeStats proto.InternalMessageInfo
func (m *FindingTypeStats) GetFindingType() Finding_FindingType {
if m != nil {
return m.FindingType
}
return Finding_FINDING_TYPE_UNSPECIFIED
}
func (m *FindingTypeStats) GetFindingCount() int32 {
if m != nil {
return m.FindingCount
}
return 0
}
func init() {
proto.RegisterType((*FindingTypeStats)(nil), "google.cloud.websecurityscanner.v1alpha.FindingTypeStats")
}
func init() {
proto.RegisterFile("google/cloud/websecurityscanner/v1alpha/finding_type_stats.proto", fileDescriptor_finding_type_stats_1d7d2596ef9e9e4d)
}
var fileDescriptor_finding_type_stats_1d7d2596ef9e9e4d = []byte{
// 256 bytes of a gzipped FileDescriptorProto
0x1f, 0x8b, 0x08, 0x00, 0x00, 0x00, 0x00, 0x00, 0x02, 0xff, 0xe2, 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, 0xad, 0x4e, 0xa2, 0xe8, 0xfe, 0x08, 0x00, 0xf9, 0x30, 0x80, 0x31, 0x2a, 0x12, 0x6a,
0x42, 0x7a, 0x7e, 0x4e, 0x62, 0x5e, 0xba, 0x5e, 0x7e, 0x51, 0xba, 0x7e, 0x7a, 0x6a, 0x1e, 0xd8,
0xff, 0xfa, 0x10, 0xa9, 0xc4, 0x82, 0xcc, 0x62, 0x82, 0x21, 0x67, 0x8d, 0x29, 0x95, 0xc4, 0x06,
0x36, 0xc5, 0x18, 0x10, 0x00, 0x00, 0xff, 0xff, 0xbd, 0xb4, 0x52, 0xba, 0x07, 0x02, 0x00, 0x00,
}

View File

@@ -0,0 +1,593 @@
// Code generated by protoc-gen-go. DO NOT EDIT.
// source: google/cloud/websecurityscanner/v1alpha/scan_config.proto
package websecurityscanner // import "google.golang.org/genproto/googleapis/cloud/websecurityscanner/v1alpha"
import proto "github.com/golang/protobuf/proto"
import fmt "fmt"
import math "math"
import timestamp "github.com/golang/protobuf/ptypes/timestamp"
import _ "google.golang.org/genproto/googleapis/api/annotations"
// Reference imports to suppress errors if they are not otherwise used.
var _ = proto.Marshal
var _ = fmt.Errorf
var _ = math.Inf
// This is a compile-time assertion to ensure that this generated file
// is compatible with the proto package it is being compiled against.
// A compilation error at this line likely means your copy of the
// proto package needs to be updated.
const _ = proto.ProtoPackageIsVersion2 // please upgrade the proto package
// Type of user agents used for scanning.
type ScanConfig_UserAgent int32
const (
// The user agent is unknown. Service will default to CHROME_LINUX.
ScanConfig_USER_AGENT_UNSPECIFIED ScanConfig_UserAgent = 0
// Chrome on Linux. This is the service default if unspecified.
ScanConfig_CHROME_LINUX ScanConfig_UserAgent = 1
// Chrome on Android.
ScanConfig_CHROME_ANDROID ScanConfig_UserAgent = 2
// Safari on IPhone.
ScanConfig_SAFARI_IPHONE ScanConfig_UserAgent = 3
)
var ScanConfig_UserAgent_name = map[int32]string{
0: "USER_AGENT_UNSPECIFIED",
1: "CHROME_LINUX",
2: "CHROME_ANDROID",
3: "SAFARI_IPHONE",
}
var ScanConfig_UserAgent_value = map[string]int32{
"USER_AGENT_UNSPECIFIED": 0,
"CHROME_LINUX": 1,
"CHROME_ANDROID": 2,
"SAFARI_IPHONE": 3,
}
func (x ScanConfig_UserAgent) String() string {
return proto.EnumName(ScanConfig_UserAgent_name, int32(x))
}
func (ScanConfig_UserAgent) EnumDescriptor() ([]byte, []int) {
return fileDescriptor_scan_config_26b2eea68c35fae7, []int{0, 0}
}
// Cloud platforms supported by Cloud Web Security Scanner.
type ScanConfig_TargetPlatform int32
const (
// The target platform is unknown. Requests with this enum value will be
// rejected with INVALID_ARGUMENT error.
ScanConfig_TARGET_PLATFORM_UNSPECIFIED ScanConfig_TargetPlatform = 0
// Google App Engine service.
ScanConfig_APP_ENGINE ScanConfig_TargetPlatform = 1
// Google Compute Engine service.
ScanConfig_COMPUTE ScanConfig_TargetPlatform = 2
)
var ScanConfig_TargetPlatform_name = map[int32]string{
0: "TARGET_PLATFORM_UNSPECIFIED",
1: "APP_ENGINE",
2: "COMPUTE",
}
var ScanConfig_TargetPlatform_value = map[string]int32{
"TARGET_PLATFORM_UNSPECIFIED": 0,
"APP_ENGINE": 1,
"COMPUTE": 2,
}
func (x ScanConfig_TargetPlatform) String() string {
return proto.EnumName(ScanConfig_TargetPlatform_name, int32(x))
}
func (ScanConfig_TargetPlatform) EnumDescriptor() ([]byte, []int) {
return fileDescriptor_scan_config_26b2eea68c35fae7, []int{0, 1}
}
// A ScanConfig resource contains the configurations to launch a scan.
type ScanConfig struct {
// The resource name of the ScanConfig. The name follows the format of
// 'projects/{projectId}/scanConfigs/{scanConfigId}'. The ScanConfig IDs are
// generated by the system.
Name string `protobuf:"bytes,1,opt,name=name,proto3" json:"name,omitempty"`
// Required.
// The user provided display name of the ScanConfig.
DisplayName string `protobuf:"bytes,2,opt,name=display_name,json=displayName,proto3" json:"display_name,omitempty"`
// The maximum QPS during scanning. A valid value ranges from 5 to 20
// inclusively. If the field is unspecified or its value is set 0, server will
// default to 15. Other values outside of [5, 20] range will be rejected with
// INVALID_ARGUMENT error.
MaxQps int32 `protobuf:"varint,3,opt,name=max_qps,json=maxQps,proto3" json:"max_qps,omitempty"`
// Required.
// The starting URLs from which the scanner finds site pages.
StartingUrls []string `protobuf:"bytes,4,rep,name=starting_urls,json=startingUrls,proto3" json:"starting_urls,omitempty"`
// The authentication configuration. If specified, service will use the
// authentication configuration during scanning.
Authentication *ScanConfig_Authentication `protobuf:"bytes,5,opt,name=authentication,proto3" json:"authentication,omitempty"`
// The user agent used during scanning.
UserAgent ScanConfig_UserAgent `protobuf:"varint,6,opt,name=user_agent,json=userAgent,proto3,enum=google.cloud.websecurityscanner.v1alpha.ScanConfig_UserAgent" json:"user_agent,omitempty"`
// The blacklist URL patterns as described in
// https://cloud.google.com/security-scanner/docs/excluded-urls
BlacklistPatterns []string `protobuf:"bytes,7,rep,name=blacklist_patterns,json=blacklistPatterns,proto3" json:"blacklist_patterns,omitempty"`
// The schedule of the ScanConfig.
Schedule *ScanConfig_Schedule `protobuf:"bytes,8,opt,name=schedule,proto3" json:"schedule,omitempty"`
// Set of Cloud Platforms targeted by the scan. If empty, APP_ENGINE will be
// used as a default.
TargetPlatforms []ScanConfig_TargetPlatform `protobuf:"varint,9,rep,packed,name=target_platforms,json=targetPlatforms,proto3,enum=google.cloud.websecurityscanner.v1alpha.ScanConfig_TargetPlatform" json:"target_platforms,omitempty"`
XXX_NoUnkeyedLiteral struct{} `json:"-"`
XXX_unrecognized []byte `json:"-"`
XXX_sizecache int32 `json:"-"`
}
func (m *ScanConfig) Reset() { *m = ScanConfig{} }
func (m *ScanConfig) String() string { return proto.CompactTextString(m) }
func (*ScanConfig) ProtoMessage() {}
func (*ScanConfig) Descriptor() ([]byte, []int) {
return fileDescriptor_scan_config_26b2eea68c35fae7, []int{0}
}
func (m *ScanConfig) XXX_Unmarshal(b []byte) error {
return xxx_messageInfo_ScanConfig.Unmarshal(m, b)
}
func (m *ScanConfig) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
return xxx_messageInfo_ScanConfig.Marshal(b, m, deterministic)
}
func (dst *ScanConfig) XXX_Merge(src proto.Message) {
xxx_messageInfo_ScanConfig.Merge(dst, src)
}
func (m *ScanConfig) XXX_Size() int {
return xxx_messageInfo_ScanConfig.Size(m)
}
func (m *ScanConfig) XXX_DiscardUnknown() {
xxx_messageInfo_ScanConfig.DiscardUnknown(m)
}
var xxx_messageInfo_ScanConfig proto.InternalMessageInfo
func (m *ScanConfig) GetName() string {
if m != nil {
return m.Name
}
return ""
}
func (m *ScanConfig) GetDisplayName() string {
if m != nil {
return m.DisplayName
}
return ""
}
func (m *ScanConfig) GetMaxQps() int32 {
if m != nil {
return m.MaxQps
}
return 0
}
func (m *ScanConfig) GetStartingUrls() []string {
if m != nil {
return m.StartingUrls
}
return nil
}
func (m *ScanConfig) GetAuthentication() *ScanConfig_Authentication {
if m != nil {
return m.Authentication
}
return nil
}
func (m *ScanConfig) GetUserAgent() ScanConfig_UserAgent {
if m != nil {
return m.UserAgent
}
return ScanConfig_USER_AGENT_UNSPECIFIED
}
func (m *ScanConfig) GetBlacklistPatterns() []string {
if m != nil {
return m.BlacklistPatterns
}
return nil
}
func (m *ScanConfig) GetSchedule() *ScanConfig_Schedule {
if m != nil {
return m.Schedule
}
return nil
}
func (m *ScanConfig) GetTargetPlatforms() []ScanConfig_TargetPlatform {
if m != nil {
return m.TargetPlatforms
}
return nil
}
// Scan authentication configuration.
type ScanConfig_Authentication struct {
// Required.
// Authentication configuration
//
// Types that are valid to be assigned to Authentication:
// *ScanConfig_Authentication_GoogleAccount_
// *ScanConfig_Authentication_CustomAccount_
Authentication isScanConfig_Authentication_Authentication `protobuf_oneof:"authentication"`
XXX_NoUnkeyedLiteral struct{} `json:"-"`
XXX_unrecognized []byte `json:"-"`
XXX_sizecache int32 `json:"-"`
}
func (m *ScanConfig_Authentication) Reset() { *m = ScanConfig_Authentication{} }
func (m *ScanConfig_Authentication) String() string { return proto.CompactTextString(m) }
func (*ScanConfig_Authentication) ProtoMessage() {}
func (*ScanConfig_Authentication) Descriptor() ([]byte, []int) {
return fileDescriptor_scan_config_26b2eea68c35fae7, []int{0, 0}
}
func (m *ScanConfig_Authentication) XXX_Unmarshal(b []byte) error {
return xxx_messageInfo_ScanConfig_Authentication.Unmarshal(m, b)
}
func (m *ScanConfig_Authentication) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
return xxx_messageInfo_ScanConfig_Authentication.Marshal(b, m, deterministic)
}
func (dst *ScanConfig_Authentication) XXX_Merge(src proto.Message) {
xxx_messageInfo_ScanConfig_Authentication.Merge(dst, src)
}
func (m *ScanConfig_Authentication) XXX_Size() int {
return xxx_messageInfo_ScanConfig_Authentication.Size(m)
}
func (m *ScanConfig_Authentication) XXX_DiscardUnknown() {
xxx_messageInfo_ScanConfig_Authentication.DiscardUnknown(m)
}
var xxx_messageInfo_ScanConfig_Authentication proto.InternalMessageInfo
type isScanConfig_Authentication_Authentication interface {
isScanConfig_Authentication_Authentication()
}
type ScanConfig_Authentication_GoogleAccount_ struct {
GoogleAccount *ScanConfig_Authentication_GoogleAccount `protobuf:"bytes,1,opt,name=google_account,json=googleAccount,proto3,oneof"`
}
type ScanConfig_Authentication_CustomAccount_ struct {
CustomAccount *ScanConfig_Authentication_CustomAccount `protobuf:"bytes,2,opt,name=custom_account,json=customAccount,proto3,oneof"`
}
func (*ScanConfig_Authentication_GoogleAccount_) isScanConfig_Authentication_Authentication() {}
func (*ScanConfig_Authentication_CustomAccount_) isScanConfig_Authentication_Authentication() {}
func (m *ScanConfig_Authentication) GetAuthentication() isScanConfig_Authentication_Authentication {
if m != nil {
return m.Authentication
}
return nil
}
func (m *ScanConfig_Authentication) GetGoogleAccount() *ScanConfig_Authentication_GoogleAccount {
if x, ok := m.GetAuthentication().(*ScanConfig_Authentication_GoogleAccount_); ok {
return x.GoogleAccount
}
return nil
}
func (m *ScanConfig_Authentication) GetCustomAccount() *ScanConfig_Authentication_CustomAccount {
if x, ok := m.GetAuthentication().(*ScanConfig_Authentication_CustomAccount_); ok {
return x.CustomAccount
}
return nil
}
// XXX_OneofFuncs is for the internal use of the proto package.
func (*ScanConfig_Authentication) XXX_OneofFuncs() (func(msg proto.Message, b *proto.Buffer) error, func(msg proto.Message, tag, wire int, b *proto.Buffer) (bool, error), func(msg proto.Message) (n int), []interface{}) {
return _ScanConfig_Authentication_OneofMarshaler, _ScanConfig_Authentication_OneofUnmarshaler, _ScanConfig_Authentication_OneofSizer, []interface{}{
(*ScanConfig_Authentication_GoogleAccount_)(nil),
(*ScanConfig_Authentication_CustomAccount_)(nil),
}
}
func _ScanConfig_Authentication_OneofMarshaler(msg proto.Message, b *proto.Buffer) error {
m := msg.(*ScanConfig_Authentication)
// authentication
switch x := m.Authentication.(type) {
case *ScanConfig_Authentication_GoogleAccount_:
b.EncodeVarint(1<<3 | proto.WireBytes)
if err := b.EncodeMessage(x.GoogleAccount); err != nil {
return err
}
case *ScanConfig_Authentication_CustomAccount_:
b.EncodeVarint(2<<3 | proto.WireBytes)
if err := b.EncodeMessage(x.CustomAccount); err != nil {
return err
}
case nil:
default:
return fmt.Errorf("ScanConfig_Authentication.Authentication has unexpected type %T", x)
}
return nil
}
func _ScanConfig_Authentication_OneofUnmarshaler(msg proto.Message, tag, wire int, b *proto.Buffer) (bool, error) {
m := msg.(*ScanConfig_Authentication)
switch tag {
case 1: // authentication.google_account
if wire != proto.WireBytes {
return true, proto.ErrInternalBadWireType
}
msg := new(ScanConfig_Authentication_GoogleAccount)
err := b.DecodeMessage(msg)
m.Authentication = &ScanConfig_Authentication_GoogleAccount_{msg}
return true, err
case 2: // authentication.custom_account
if wire != proto.WireBytes {
return true, proto.ErrInternalBadWireType
}
msg := new(ScanConfig_Authentication_CustomAccount)
err := b.DecodeMessage(msg)
m.Authentication = &ScanConfig_Authentication_CustomAccount_{msg}
return true, err
default:
return false, nil
}
}
func _ScanConfig_Authentication_OneofSizer(msg proto.Message) (n int) {
m := msg.(*ScanConfig_Authentication)
// authentication
switch x := m.Authentication.(type) {
case *ScanConfig_Authentication_GoogleAccount_:
s := proto.Size(x.GoogleAccount)
n += 1 // tag and wire
n += proto.SizeVarint(uint64(s))
n += s
case *ScanConfig_Authentication_CustomAccount_:
s := proto.Size(x.CustomAccount)
n += 1 // tag and wire
n += proto.SizeVarint(uint64(s))
n += s
case nil:
default:
panic(fmt.Sprintf("proto: unexpected type %T in oneof", x))
}
return n
}
// Describes authentication configuration that uses a Google account.
type ScanConfig_Authentication_GoogleAccount struct {
// Required.
// The user name of the Google account.
Username string `protobuf:"bytes,1,opt,name=username,proto3" json:"username,omitempty"`
// Input only.
// Required.
// The password of the Google account. The credential is stored encrypted
// and not returned in any response.
Password string `protobuf:"bytes,2,opt,name=password,proto3" json:"password,omitempty"`
XXX_NoUnkeyedLiteral struct{} `json:"-"`
XXX_unrecognized []byte `json:"-"`
XXX_sizecache int32 `json:"-"`
}
func (m *ScanConfig_Authentication_GoogleAccount) Reset() {
*m = ScanConfig_Authentication_GoogleAccount{}
}
func (m *ScanConfig_Authentication_GoogleAccount) String() string { return proto.CompactTextString(m) }
func (*ScanConfig_Authentication_GoogleAccount) ProtoMessage() {}
func (*ScanConfig_Authentication_GoogleAccount) Descriptor() ([]byte, []int) {
return fileDescriptor_scan_config_26b2eea68c35fae7, []int{0, 0, 0}
}
func (m *ScanConfig_Authentication_GoogleAccount) XXX_Unmarshal(b []byte) error {
return xxx_messageInfo_ScanConfig_Authentication_GoogleAccount.Unmarshal(m, b)
}
func (m *ScanConfig_Authentication_GoogleAccount) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
return xxx_messageInfo_ScanConfig_Authentication_GoogleAccount.Marshal(b, m, deterministic)
}
func (dst *ScanConfig_Authentication_GoogleAccount) XXX_Merge(src proto.Message) {
xxx_messageInfo_ScanConfig_Authentication_GoogleAccount.Merge(dst, src)
}
func (m *ScanConfig_Authentication_GoogleAccount) XXX_Size() int {
return xxx_messageInfo_ScanConfig_Authentication_GoogleAccount.Size(m)
}
func (m *ScanConfig_Authentication_GoogleAccount) XXX_DiscardUnknown() {
xxx_messageInfo_ScanConfig_Authentication_GoogleAccount.DiscardUnknown(m)
}
var xxx_messageInfo_ScanConfig_Authentication_GoogleAccount proto.InternalMessageInfo
func (m *ScanConfig_Authentication_GoogleAccount) GetUsername() string {
if m != nil {
return m.Username
}
return ""
}
func (m *ScanConfig_Authentication_GoogleAccount) GetPassword() string {
if m != nil {
return m.Password
}
return ""
}
// Describes authentication configuration that uses a custom account.
type ScanConfig_Authentication_CustomAccount struct {
// Required.
// The user name of the custom account.
Username string `protobuf:"bytes,1,opt,name=username,proto3" json:"username,omitempty"`
// Input only.
// Required.
// The password of the custom account. The credential is stored encrypted
// and not returned in any response.
Password string `protobuf:"bytes,2,opt,name=password,proto3" json:"password,omitempty"`
// Required.
// The login form URL of the website.
LoginUrl string `protobuf:"bytes,3,opt,name=login_url,json=loginUrl,proto3" json:"login_url,omitempty"`
XXX_NoUnkeyedLiteral struct{} `json:"-"`
XXX_unrecognized []byte `json:"-"`
XXX_sizecache int32 `json:"-"`
}
func (m *ScanConfig_Authentication_CustomAccount) Reset() {
*m = ScanConfig_Authentication_CustomAccount{}
}
func (m *ScanConfig_Authentication_CustomAccount) String() string { return proto.CompactTextString(m) }
func (*ScanConfig_Authentication_CustomAccount) ProtoMessage() {}
func (*ScanConfig_Authentication_CustomAccount) Descriptor() ([]byte, []int) {
return fileDescriptor_scan_config_26b2eea68c35fae7, []int{0, 0, 1}
}
func (m *ScanConfig_Authentication_CustomAccount) XXX_Unmarshal(b []byte) error {
return xxx_messageInfo_ScanConfig_Authentication_CustomAccount.Unmarshal(m, b)
}
func (m *ScanConfig_Authentication_CustomAccount) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
return xxx_messageInfo_ScanConfig_Authentication_CustomAccount.Marshal(b, m, deterministic)
}
func (dst *ScanConfig_Authentication_CustomAccount) XXX_Merge(src proto.Message) {
xxx_messageInfo_ScanConfig_Authentication_CustomAccount.Merge(dst, src)
}
func (m *ScanConfig_Authentication_CustomAccount) XXX_Size() int {
return xxx_messageInfo_ScanConfig_Authentication_CustomAccount.Size(m)
}
func (m *ScanConfig_Authentication_CustomAccount) XXX_DiscardUnknown() {
xxx_messageInfo_ScanConfig_Authentication_CustomAccount.DiscardUnknown(m)
}
var xxx_messageInfo_ScanConfig_Authentication_CustomAccount proto.InternalMessageInfo
func (m *ScanConfig_Authentication_CustomAccount) GetUsername() string {
if m != nil {
return m.Username
}
return ""
}
func (m *ScanConfig_Authentication_CustomAccount) GetPassword() string {
if m != nil {
return m.Password
}
return ""
}
func (m *ScanConfig_Authentication_CustomAccount) GetLoginUrl() string {
if m != nil {
return m.LoginUrl
}
return ""
}
// Scan schedule configuration.
type ScanConfig_Schedule struct {
// A timestamp indicates when the next run will be scheduled. The value is
// refreshed by the server after each run. If unspecified, it will default
// to current server time, which means the scan will be scheduled to start
// immediately.
ScheduleTime *timestamp.Timestamp `protobuf:"bytes,1,opt,name=schedule_time,json=scheduleTime,proto3" json:"schedule_time,omitempty"`
// Required.
// The duration of time between executions in days.
IntervalDurationDays int32 `protobuf:"varint,2,opt,name=interval_duration_days,json=intervalDurationDays,proto3" json:"interval_duration_days,omitempty"`
XXX_NoUnkeyedLiteral struct{} `json:"-"`
XXX_unrecognized []byte `json:"-"`
XXX_sizecache int32 `json:"-"`
}
func (m *ScanConfig_Schedule) Reset() { *m = ScanConfig_Schedule{} }
func (m *ScanConfig_Schedule) String() string { return proto.CompactTextString(m) }
func (*ScanConfig_Schedule) ProtoMessage() {}
func (*ScanConfig_Schedule) Descriptor() ([]byte, []int) {
return fileDescriptor_scan_config_26b2eea68c35fae7, []int{0, 1}
}
func (m *ScanConfig_Schedule) XXX_Unmarshal(b []byte) error {
return xxx_messageInfo_ScanConfig_Schedule.Unmarshal(m, b)
}
func (m *ScanConfig_Schedule) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
return xxx_messageInfo_ScanConfig_Schedule.Marshal(b, m, deterministic)
}
func (dst *ScanConfig_Schedule) XXX_Merge(src proto.Message) {
xxx_messageInfo_ScanConfig_Schedule.Merge(dst, src)
}
func (m *ScanConfig_Schedule) XXX_Size() int {
return xxx_messageInfo_ScanConfig_Schedule.Size(m)
}
func (m *ScanConfig_Schedule) XXX_DiscardUnknown() {
xxx_messageInfo_ScanConfig_Schedule.DiscardUnknown(m)
}
var xxx_messageInfo_ScanConfig_Schedule proto.InternalMessageInfo
func (m *ScanConfig_Schedule) GetScheduleTime() *timestamp.Timestamp {
if m != nil {
return m.ScheduleTime
}
return nil
}
func (m *ScanConfig_Schedule) GetIntervalDurationDays() int32 {
if m != nil {
return m.IntervalDurationDays
}
return 0
}
func init() {
proto.RegisterType((*ScanConfig)(nil), "google.cloud.websecurityscanner.v1alpha.ScanConfig")
proto.RegisterType((*ScanConfig_Authentication)(nil), "google.cloud.websecurityscanner.v1alpha.ScanConfig.Authentication")
proto.RegisterType((*ScanConfig_Authentication_GoogleAccount)(nil), "google.cloud.websecurityscanner.v1alpha.ScanConfig.Authentication.GoogleAccount")
proto.RegisterType((*ScanConfig_Authentication_CustomAccount)(nil), "google.cloud.websecurityscanner.v1alpha.ScanConfig.Authentication.CustomAccount")
proto.RegisterType((*ScanConfig_Schedule)(nil), "google.cloud.websecurityscanner.v1alpha.ScanConfig.Schedule")
proto.RegisterEnum("google.cloud.websecurityscanner.v1alpha.ScanConfig_UserAgent", ScanConfig_UserAgent_name, ScanConfig_UserAgent_value)
proto.RegisterEnum("google.cloud.websecurityscanner.v1alpha.ScanConfig_TargetPlatform", ScanConfig_TargetPlatform_name, ScanConfig_TargetPlatform_value)
}
func init() {
proto.RegisterFile("google/cloud/websecurityscanner/v1alpha/scan_config.proto", fileDescriptor_scan_config_26b2eea68c35fae7)
}
var fileDescriptor_scan_config_26b2eea68c35fae7 = []byte{
// 748 bytes of a gzipped FileDescriptorProto
0x1f, 0x8b, 0x08, 0x00, 0x00, 0x00, 0x00, 0x00, 0x02, 0x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0x00, 0x00,
}

View File

@@ -0,0 +1,272 @@
// Code generated by protoc-gen-go. DO NOT EDIT.
// source: google/cloud/websecurityscanner/v1alpha/scan_run.proto
package websecurityscanner // import "google.golang.org/genproto/googleapis/cloud/websecurityscanner/v1alpha"
import proto "github.com/golang/protobuf/proto"
import fmt "fmt"
import math "math"
import timestamp "github.com/golang/protobuf/ptypes/timestamp"
import _ "google.golang.org/genproto/googleapis/api/annotations"
// Reference imports to suppress errors if they are not otherwise used.
var _ = proto.Marshal
var _ = fmt.Errorf
var _ = math.Inf
// This is a compile-time assertion to ensure that this generated file
// is compatible with the proto package it is being compiled against.
// A compilation error at this line likely means your copy of the
// proto package needs to be updated.
const _ = proto.ProtoPackageIsVersion2 // please upgrade the proto package
// Types of ScanRun execution state.
type ScanRun_ExecutionState int32
const (
// Represents an invalid state caused by internal server error. This value
// should never be returned.
ScanRun_EXECUTION_STATE_UNSPECIFIED ScanRun_ExecutionState = 0
// The scan is waiting in the queue.
ScanRun_QUEUED ScanRun_ExecutionState = 1
// The scan is in progress.
ScanRun_SCANNING ScanRun_ExecutionState = 2
// The scan is either finished or stopped by user.
ScanRun_FINISHED ScanRun_ExecutionState = 3
)
var ScanRun_ExecutionState_name = map[int32]string{
0: "EXECUTION_STATE_UNSPECIFIED",
1: "QUEUED",
2: "SCANNING",
3: "FINISHED",
}
var ScanRun_ExecutionState_value = map[string]int32{
"EXECUTION_STATE_UNSPECIFIED": 0,
"QUEUED": 1,
"SCANNING": 2,
"FINISHED": 3,
}
func (x ScanRun_ExecutionState) String() string {
return proto.EnumName(ScanRun_ExecutionState_name, int32(x))
}
func (ScanRun_ExecutionState) EnumDescriptor() ([]byte, []int) {
return fileDescriptor_scan_run_947faa5c0b1f78e3, []int{0, 0}
}
// Types of ScanRun result state.
type ScanRun_ResultState int32
const (
// Default value. This value is returned when the ScanRun is not yet
// finished.
ScanRun_RESULT_STATE_UNSPECIFIED ScanRun_ResultState = 0
// The scan finished without errors.
ScanRun_SUCCESS ScanRun_ResultState = 1
// The scan finished with errors.
ScanRun_ERROR ScanRun_ResultState = 2
// The scan was terminated by user.
ScanRun_KILLED ScanRun_ResultState = 3
)
var ScanRun_ResultState_name = map[int32]string{
0: "RESULT_STATE_UNSPECIFIED",
1: "SUCCESS",
2: "ERROR",
3: "KILLED",
}
var ScanRun_ResultState_value = map[string]int32{
"RESULT_STATE_UNSPECIFIED": 0,
"SUCCESS": 1,
"ERROR": 2,
"KILLED": 3,
}
func (x ScanRun_ResultState) String() string {
return proto.EnumName(ScanRun_ResultState_name, int32(x))
}
func (ScanRun_ResultState) EnumDescriptor() ([]byte, []int) {
return fileDescriptor_scan_run_947faa5c0b1f78e3, []int{0, 1}
}
// A ScanRun is a output-only resource representing an actual run of the scan.
type ScanRun struct {
// Output only.
// The resource name of the ScanRun. The name follows the format of
// 'projects/{projectId}/scanConfigs/{scanConfigId}/scanRuns/{scanRunId}'.
// The ScanRun IDs are generated by the system.
Name string `protobuf:"bytes,1,opt,name=name,proto3" json:"name,omitempty"`
// Output only.
// The execution state of the ScanRun.
ExecutionState ScanRun_ExecutionState `protobuf:"varint,2,opt,name=execution_state,json=executionState,proto3,enum=google.cloud.websecurityscanner.v1alpha.ScanRun_ExecutionState" json:"execution_state,omitempty"`
// Output only.
// The result state of the ScanRun. This field is only available after the
// execution state reaches "FINISHED".
ResultState ScanRun_ResultState `protobuf:"varint,3,opt,name=result_state,json=resultState,proto3,enum=google.cloud.websecurityscanner.v1alpha.ScanRun_ResultState" json:"result_state,omitempty"`
// Output only.
// The time at which the ScanRun started.
StartTime *timestamp.Timestamp `protobuf:"bytes,4,opt,name=start_time,json=startTime,proto3" json:"start_time,omitempty"`
// Output only.
// The time at which the ScanRun reached termination state - that the ScanRun
// is either finished or stopped by user.
EndTime *timestamp.Timestamp `protobuf:"bytes,5,opt,name=end_time,json=endTime,proto3" json:"end_time,omitempty"`
// Output only.
// The number of URLs crawled during this ScanRun. If the scan is in progress,
// the value represents the number of URLs crawled up to now.
UrlsCrawledCount int64 `protobuf:"varint,6,opt,name=urls_crawled_count,json=urlsCrawledCount,proto3" json:"urls_crawled_count,omitempty"`
// Output only.
// The number of URLs tested during this ScanRun. If the scan is in progress,
// the value represents the number of URLs tested up to now. The number of
// URLs tested is usually larger than the number URLS crawled because
// typically a crawled URL is tested with multiple test payloads.
UrlsTestedCount int64 `protobuf:"varint,7,opt,name=urls_tested_count,json=urlsTestedCount,proto3" json:"urls_tested_count,omitempty"`
// Output only.
// Whether the scan run has found any vulnerabilities.
HasVulnerabilities bool `protobuf:"varint,8,opt,name=has_vulnerabilities,json=hasVulnerabilities,proto3" json:"has_vulnerabilities,omitempty"`
// Output only.
// The percentage of total completion ranging from 0 to 100.
// If the scan is in queue, the value is 0.
// If the scan is running, the value ranges from 0 to 100.
// If the scan is finished, the value is 100.
ProgressPercent int32 `protobuf:"varint,9,opt,name=progress_percent,json=progressPercent,proto3" json:"progress_percent,omitempty"`
XXX_NoUnkeyedLiteral struct{} `json:"-"`
XXX_unrecognized []byte `json:"-"`
XXX_sizecache int32 `json:"-"`
}
func (m *ScanRun) Reset() { *m = ScanRun{} }
func (m *ScanRun) String() string { return proto.CompactTextString(m) }
func (*ScanRun) ProtoMessage() {}
func (*ScanRun) Descriptor() ([]byte, []int) {
return fileDescriptor_scan_run_947faa5c0b1f78e3, []int{0}
}
func (m *ScanRun) XXX_Unmarshal(b []byte) error {
return xxx_messageInfo_ScanRun.Unmarshal(m, b)
}
func (m *ScanRun) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
return xxx_messageInfo_ScanRun.Marshal(b, m, deterministic)
}
func (dst *ScanRun) XXX_Merge(src proto.Message) {
xxx_messageInfo_ScanRun.Merge(dst, src)
}
func (m *ScanRun) XXX_Size() int {
return xxx_messageInfo_ScanRun.Size(m)
}
func (m *ScanRun) XXX_DiscardUnknown() {
xxx_messageInfo_ScanRun.DiscardUnknown(m)
}
var xxx_messageInfo_ScanRun proto.InternalMessageInfo
func (m *ScanRun) GetName() string {
if m != nil {
return m.Name
}
return ""
}
func (m *ScanRun) GetExecutionState() ScanRun_ExecutionState {
if m != nil {
return m.ExecutionState
}
return ScanRun_EXECUTION_STATE_UNSPECIFIED
}
func (m *ScanRun) GetResultState() ScanRun_ResultState {
if m != nil {
return m.ResultState
}
return ScanRun_RESULT_STATE_UNSPECIFIED
}
func (m *ScanRun) GetStartTime() *timestamp.Timestamp {
if m != nil {
return m.StartTime
}
return nil
}
func (m *ScanRun) GetEndTime() *timestamp.Timestamp {
if m != nil {
return m.EndTime
}
return nil
}
func (m *ScanRun) GetUrlsCrawledCount() int64 {
if m != nil {
return m.UrlsCrawledCount
}
return 0
}
func (m *ScanRun) GetUrlsTestedCount() int64 {
if m != nil {
return m.UrlsTestedCount
}
return 0
}
func (m *ScanRun) GetHasVulnerabilities() bool {
if m != nil {
return m.HasVulnerabilities
}
return false
}
func (m *ScanRun) GetProgressPercent() int32 {
if m != nil {
return m.ProgressPercent
}
return 0
}
func init() {
proto.RegisterType((*ScanRun)(nil), "google.cloud.websecurityscanner.v1alpha.ScanRun")
proto.RegisterEnum("google.cloud.websecurityscanner.v1alpha.ScanRun_ExecutionState", ScanRun_ExecutionState_name, ScanRun_ExecutionState_value)
proto.RegisterEnum("google.cloud.websecurityscanner.v1alpha.ScanRun_ResultState", ScanRun_ResultState_name, ScanRun_ResultState_value)
}
func init() {
proto.RegisterFile("google/cloud/websecurityscanner/v1alpha/scan_run.proto", fileDescriptor_scan_run_947faa5c0b1f78e3)
}
var fileDescriptor_scan_run_947faa5c0b1f78e3 = []byte{
// 547 bytes of a gzipped FileDescriptorProto
0x1f, 0x8b, 0x08, 0x00, 0x00, 0x00, 0x00, 0x00, 0x02, 0xff, 0x94, 0x53, 0xdd, 0x6e, 0xd3, 0x3c,
0x18, 0xfe, 0xb2, 0xad, 0x6b, 0xeb, 0x4e, 0x5b, 0x3e, 0x73, 0x12, 0x8d, 0x49, 0x8b, 0x76, 0x42,
0xf8, 0x51, 0x22, 0x86, 0x40, 0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x69, 0x84, 0x4e, 0xec, 0xff, 0x20, 0x00, 0x9b, 0x1f,
0x32, 0x94, 0xa1, 0x13, 0xdb, 0x82, 0x5b, 0x60, 0x94, 0x84, 0x47, 0x71, 0x1c, 0xc5, 0x6f, 0xed,
0x35, 0x8d, 0x4e, 0xa3, 0x38, 0x4a, 0xde, 0xa1, 0x13, 0x7b, 0xfd, 0xe0, 0x1c, 0x4c, 0xfe, 0x38,
0x0f, 0xdc, 0x03, 0x0e, 0x46, 0x49, 0x76, 0x96, 0xfe, 0x35, 0x74, 0x02, 0x86, 0x49, 0x16, 0x86,
0x28, 0x49, 0x6c, 0x0b, 0x8e, 0xc1, 0x00, 0x61, 0x7c, 0x8e, 0xed, 0x35, 0x5d, 0xf6, 0x3e, 0x3a,
0x3b, 0xd3, 0x81, 0xc7, 0xdf, 0x2d, 0xf0, 0xb8, 0xe0, 0xcb, 0xbb, 0x3e, 0x92, 0xe3, 0xad, 0xfe,
0x95, 0x4c, 0xf5, 0xd5, 0xa6, 0xd6, 0xe7, 0x8b, 0xde, 0x58, 0xf2, 0x9a, 0xb0, 0xd2, 0xe7, 0xa2,
0x0c, 0x4a, 0xca, 0xcc, 0x4d, 0x83, 0x8e, 0x22, 0x4d, 0x25, 0x6f, 0xfd, 0x7a, 0x5f, 0xdd, 0xa4,
0x66, 0x9b, 0x26, 0xe5, 0xd9, 0xcf, 0x00, 0x00, 0x00, 0xff, 0xff, 0x5b, 0x43, 0xba, 0xc7, 0x02,
0x04, 0x00, 0x00,
}

File diff suppressed because it is too large Load Diff