Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Feature/chore refactoring #14

Merged
merged 15 commits into from
Dec 15, 2022
28 changes: 17 additions & 11 deletions cb_metadata.go
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,7 @@ import (
"encoding/json"
"errors"
"log"
"strconv"
"time"

"github.com/Trendyol/go-dcp-client/helpers"
Expand All @@ -17,7 +18,7 @@ type cbMetadata struct {
config helpers.Config
}

func (s *cbMetadata) upsertXattrs(ctx context.Context, id string, path string, xattrs interface{}) error {
func (s *cbMetadata) upsertXattrs(ctx context.Context, id []byte, path string, xattrs interface{}) error {
opm := NewAsyncOp(ctx)

deadline, _ := ctx.Deadline()
Expand All @@ -27,7 +28,7 @@ func (s *cbMetadata) upsertXattrs(ctx context.Context, id string, path string, x
ch := make(chan error)

op, err := s.agent.MutateIn(gocbcore.MutateInOptions{
Key: []byte(id),
Key: id,
Ops: []gocbcore.SubDocOp{
{
Op: memd.SubDocOpDictSet,
Expand All @@ -54,15 +55,15 @@ func (s *cbMetadata) upsertXattrs(ctx context.Context, id string, path string, x
return err
}

func (s *cbMetadata) deleteDocument(ctx context.Context, id string) {
func (s *cbMetadata) deleteDocument(ctx context.Context, id []byte) {
opm := NewAsyncOp(ctx)

deadline, _ := ctx.Deadline()

ch := make(chan error)

op, err := s.agent.Delete(gocbcore.DeleteOptions{
Key: []byte(id),
Key: id,
Deadline: deadline,
}, func(result *gocbcore.DeleteResult, err error) {
opm.Resolve()
Expand All @@ -83,7 +84,7 @@ func (s *cbMetadata) deleteDocument(ctx context.Context, id string) {
}
}

func (s *cbMetadata) getXattrs(ctx context.Context, id string, path string, bucketUUID string) (CheckpointDocument, error) {
func (s *cbMetadata) getXattrs(ctx context.Context, id []byte, path string, bucketUUID string) (CheckpointDocument, error) {
opm := NewAsyncOp(context.Background())

deadline, _ := ctx.Deadline()
Expand All @@ -92,7 +93,7 @@ func (s *cbMetadata) getXattrs(ctx context.Context, id string, path string, buck
documentCh := make(chan CheckpointDocument)

op, err := s.agent.LookupIn(gocbcore.LookupInOptions{
Key: []byte(id),
Key: id,
Ops: []gocbcore.SubDocOp{
{
Op: memd.SubDocOpGet,
Expand Down Expand Up @@ -132,15 +133,15 @@ func (s *cbMetadata) getXattrs(ctx context.Context, id string, path string, buck
return document, err
}

func (s *cbMetadata) createEmptyDocument(ctx context.Context, id string) error {
func (s *cbMetadata) createEmptyDocument(ctx context.Context, id []byte) error {
opm := NewAsyncOp(ctx)

deadline, _ := ctx.Deadline()

ch := make(chan error)

op, err := s.agent.Set(gocbcore.SetOptions{
Key: []byte(id),
Key: id,
Value: []byte{},
Flags: 50333696,
Deadline: deadline,
Expand All @@ -164,7 +165,7 @@ func (s *cbMetadata) Save(state map[uint16]CheckpointDocument, _ string) {
defer cancel()

for vbID, checkpointDocument := range state {
id := helpers.GetCheckpointID(vbID, s.config.Dcp.Group.Name)
id := getCheckpointID(vbID, s.config.Dcp.Group.Name)
err := s.upsertXattrs(ctx, id, helpers.Name, checkpointDocument)

var kvErr *gocbcore.KeyValueError
Expand All @@ -190,7 +191,7 @@ func (s *cbMetadata) Load(vbIds []uint16, bucketUUID string) map[uint16]Checkpoi
state := map[uint16]CheckpointDocument{}

for _, vbID := range vbIds {
id := helpers.GetCheckpointID(vbID, s.config.Dcp.Group.Name)
id := getCheckpointID(vbID, s.config.Dcp.Group.Name)

data, err := s.getXattrs(ctx, id, helpers.Name, bucketUUID)

Expand All @@ -210,7 +211,7 @@ func (s *cbMetadata) Clear(vbIds []uint16) {
defer cancel()

for _, vbID := range vbIds {
id := helpers.GetCheckpointID(vbID, s.config.Dcp.Group.Name)
id := getCheckpointID(vbID, s.config.Dcp.Group.Name)

s.deleteDocument(ctx, id)
}
Expand All @@ -222,3 +223,8 @@ func NewCBMetadata(agent *gocbcore.Agent, config helpers.Config) Metadata {
config: config,
}
}

func getCheckpointID(vbID uint16, groupName string) []byte {
// _connector:cbgo:groupName:stdout-listener:checkpoint:vbId
return []byte(helpers.Prefix + groupName + ":checkpoint:" + strconv.Itoa(int(vbID)))
}
10 changes: 4 additions & 6 deletions checkpoint.go
Original file line number Diff line number Diff line change
Expand Up @@ -61,6 +61,7 @@ type checkpoint struct {
}

func (s *checkpoint) Save(fromSchedule bool) {
//TODO review
s.saveLock.Lock()
defer s.saveLock.Unlock()

Expand Down Expand Up @@ -119,12 +120,9 @@ func (s *checkpoint) Clear() {
func (s *checkpoint) StartSchedule() {
go func() {
s.schedule = time.NewTicker(10 * time.Second)
go func() {
time.Sleep(10 * time.Second)
for range s.schedule.C {
s.Save(true)
}
}()
for range s.schedule.C {
s.Save(true)
}
}()
log.Printf("started checkpoint schedule")
}
Expand Down
7 changes: 3 additions & 4 deletions dcp.go
Original file line number Diff line number Diff line change
Expand Up @@ -2,15 +2,14 @@ package godcpclient

import (
"fmt"
"github.com/Trendyol/go-dcp-client/identity"
"os"
"os/signal"
"syscall"

"github.com/Trendyol/go-dcp-client/helpers"
"github.com/Trendyol/go-dcp-client/kubernetes"
klem "github.com/Trendyol/go-dcp-client/kubernetes/leaderelector/model"
"github.com/Trendyol/go-dcp-client/membership/info"
"github.com/Trendyol/go-dcp-client/model"
"github.com/Trendyol/go-dcp-client/servicediscovery"
)

Expand All @@ -30,15 +29,15 @@ type dcp struct {
vBucketDiscovery VBucketDiscovery
serviceDiscovery servicediscovery.ServiceDiscovery
kubernetesClient kubernetes.Client
myIdentity *model.Identity
myIdentity *identity.Identity
}

func (s *dcp) Start() {
infoHandler := info.NewHandler()

if s.config.LeaderElection.Enabled {
if s.config.LeaderElection.Type == helpers.KubernetesLeaderElectionType {
s.myIdentity = klem.NewIdentityFromEnv()
s.myIdentity = identity.NewIdentityFromEnv()

if namespace, exist := s.config.LeaderElection.Config["leaseLockNamespace"]; exist {
s.kubernetesClient = kubernetes.NewClient(s.myIdentity, namespace)
Expand Down
6 changes: 3 additions & 3 deletions dcp_test.go
Original file line number Diff line number Diff line change
@@ -1,14 +1,14 @@
package godcpclient

import (
"bytes"
"context"
"crypto/rand"
"fmt"
"log"
"math"
"math/big"
"os"
"strings"
"sync"
"testing"
"time"
Expand Down Expand Up @@ -170,8 +170,8 @@ func TestDcp(t *testing.T) {
counter++
lock.Unlock()

assert.True(t, strings.HasPrefix(string(event.Key), "my_key"))
assert.True(t, strings.HasPrefix(string(event.Value), "my_value"))
assert.True(t, bytes.HasPrefix(event.Key, []byte("my_key")))
assert.True(t, bytes.HasPrefix(event.Value, []byte("my_value")))

if counter == mockDataSize {
dcp.Close()
Expand Down
2 changes: 1 addition & 1 deletion go.mod
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,7 @@ require (
github.com/ansrivas/fiberprometheus/v2 v2.4.1
github.com/avast/retry-go/v4 v4.3.1
github.com/couchbase/gocbcore/v10 v10.2.0
github.com/go-logr/logr v1.2.2

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

github.com/gogo/protobuf v1.2.2-0.20190723190241-65acae22fc9d / go.mod

Total vulnerabilities: 1

Critical: 0High: 1Medium: 0Low: 0
Vulnerability ID Severity CVSSFixed in Status
CVE-2021-3121 HIGH71.3.2Open

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

golang.org/x/crypto v0.0.0-20190701094942-4def268fd1a4 / go.mod

Total vulnerabilities: 1

Critical: 0High: 1Medium: 0Low: 0
Vulnerability ID Severity CVSSFixed in Status
CVE-2020-29652 HIGH7.5v0.0.0-20201216223049-8b5274cf687fOpen

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

github.com/gogo/protobuf v1.3.0 / go.mod

Total vulnerabilities: 1

Critical: 0High: 1Medium: 0Low: 0
Vulnerability ID Severity CVSSFixed in Status
CVE-2021-3121 HIGH71.3.2Open

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

github.com/gorilla/handlers v0.0.0-20150720190736-60c7bfde3e33 / go.mod

Total vulnerabilities: 1

Critical: 0High: 1Medium: 0Low: 0
Vulnerability ID Severity CVSSFixed in Status
PRISMA-2022-0285 HIGH7.2v1.3.0Open

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

github.com/containerd/containerd v1.2.10 / go.mod

Total vulnerabilities: 1

Critical: 0High: 1Medium: 0Low: 0
Vulnerability ID Severity CVSSFixed in Status
CVE-2022-23648 HIGH71.4.13Open

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

github.com/dgrijalva/jwt-go v0.0.0-20170104182250-a601269ab70c / go.mod

Total vulnerabilities: 1

Critical: 0High: 1Medium: 0Low: 0
Vulnerability ID Severity CVSSFixed in Status
CVE-2020-26160 HIGH7-Open

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

golang.org/x/crypto v0.0.0-20181029021203-45a5f77698d3 / go.mod

Total vulnerabilities: 1

Critical: 0High: 1Medium: 0Low: 0
Vulnerability ID Severity CVSSFixed in Status
CVE-2020-29652 HIGH7.5v0.0.0-20201216223049-8b5274cf687fOpen

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

github.com/containerd/containerd v1.3.1-0.20191213020239-082f7e3aed57 / go.mod

Total vulnerabilities: 1

Critical: 0High: 1Medium: 0Low: 0
Vulnerability ID Severity CVSSFixed in Status
CVE-2022-23648 HIGH71.4.13Open

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

github.com/containerd/containerd v1.3.0-beta.2.0.20190828155532-0293cbd26c69 / go.mod

Total vulnerabilities: 1

Critical: 0High: 1Medium: 0Low: 0
Vulnerability ID Severity CVSSFixed in Status
CVE-2022-23648 HIGH71.4.13Open

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

k8s.io/kubernetes v1.13.0 / go.mod

Total vulnerabilities: 1

Critical: 0High: 1Medium: 0Low: 0
Vulnerability ID Severity CVSSFixed in Status
CVE-2021-25741 HIGH71.19.15Open

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

github.com/gogo/protobuf v1.1.1 / go.mod

Total vulnerabilities: 1

Critical: 0High: 1Medium: 0Low: 0
Vulnerability ID Severity CVSSFixed in Status
CVE-2021-3121 HIGH71.3.2Open

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

github.com/opencontainers/runc v1.0.0-rc8.0.20190926000215-3e425f80a8c9 / go.mod

Total vulnerabilities: 1

Critical: 0High: 1Medium: 0Low: 0
Vulnerability ID Severity CVSSFixed in Status
CVE-2021-30465 HIGH71.0.0-rc95Open

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

golang.org/x/crypto v0.0.0-20190510104115-cbcb75029529 / go.mod

Total vulnerabilities: 1

Critical: 0High: 1Medium: 0Low: 0
Vulnerability ID Severity CVSSFixed in Status
CVE-2020-29652 HIGH7.5v0.0.0-20201216223049-8b5274cf687fOpen

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

golang.org/x/crypto v0.0.0-20171113213409-9f005a07e0d3 / go.mod

Total vulnerabilities: 1

Critical: 0High: 1Medium: 0Low: 0
Vulnerability ID Severity CVSSFixed in Status
CVE-2020-29652 HIGH7.5v0.0.0-20201216223049-8b5274cf687fOpen

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

github.com/containerd/containerd v1.4.9 / go.mod

Total vulnerabilities: 1

Critical: 0High: 1Medium: 0Low: 0
Vulnerability ID Severity CVSSFixed in Status
CVE-2022-23648 HIGH71.4.13Open

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

golang.org/x/crypto v0.0.0-20200728195943-123391ffb6de / go.mod

Total vulnerabilities: 1

Critical: 0High: 1Medium: 0Low: 0
Vulnerability ID Severity CVSSFixed in Status
CVE-2020-29652 HIGH7.5v0.0.0-20201216223049-8b5274cf687fOpen

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

github.com/containerd/containerd v1.3.2 / go.mod

Total vulnerabilities: 1

Critical: 0High: 1Medium: 0Low: 0
Vulnerability ID Severity CVSSFixed in Status
CVE-2022-23648 HIGH71.4.13Open

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

github.com/opencontainers/runc v0.0.0-20190115041553-12f6a991201f / go.mod

Total vulnerabilities: 3

Critical: 0High: 3Medium: 0Low: 0
Vulnerability ID Severity CVSSFixed in Status
CVE-2021-30465 HIGH71.0.0-rc95Open
CVE-2016-3697 HIGH70.1.0Open
CVE-2019-16884 HIGH71.0.0-rc9Open

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

golang.org/x/crypto v0.0.0-20190605123033-f99c8df09eb5 / go.mod

Total vulnerabilities: 1

Critical: 0High: 1Medium: 0Low: 0
Vulnerability ID Severity CVSSFixed in Status
CVE-2020-29652 HIGH7.5v0.0.0-20201216223049-8b5274cf687fOpen

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

github.com/containerd/imgcrypt v1.0.1 / go.mod

Total vulnerabilities: 1

Critical: 0High: 1Medium: 0Low: 0
Vulnerability ID Severity CVSSFixed in Status
CVE-2022-24778 HIGH71.1.4Open

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

golang.org/x/crypto v0.0.0-20180904163835-0709b304e793 / go.mod

Total vulnerabilities: 1

Critical: 0High: 1Medium: 0Low: 0
Vulnerability ID Severity CVSSFixed in Status
CVE-2020-29652 HIGH7.5v0.0.0-20201216223049-8b5274cf687fOpen

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

github.com/containerd/containerd v1.5.8 / go.mod

Total vulnerabilities: 2

Critical: 0High: 2Medium: 0Low: 0
Vulnerability ID Severity CVSSFixed in Status
CVE-2021-43816 HIGH71.5.9Open
CVE-2022-23648 HIGH71.5.10Open

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

github.com/gorilla/websocket v1.4.0 / go.mod

Total vulnerabilities: 1

Critical: 0High: 1Medium: 0Low: 0
Vulnerability ID Severity CVSSFixed in Status
CVE-2020-27813 HIGH71.4.1Open

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

github.com/opencontainers/runc v1.0.0-rc9 / go.mod

Total vulnerabilities: 1

Critical: 0High: 1Medium: 0Low: 0
Vulnerability ID Severity CVSSFixed in Status
CVE-2021-30465 HIGH71.0.0-rc95Open

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

github.com/containerd/containerd v1.4.0-beta.2.0.20200729163537-40b22ef07410 / go.mod

Total vulnerabilities: 1

Critical: 0High: 1Medium: 0Low: 0
Vulnerability ID Severity CVSSFixed in Status
CVE-2022-23648 HIGH71.4.13Open

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

golang.org/x/crypto v0.0.0-20181009213950-7c1a557ab941 / go.mod

Total vulnerabilities: 1

Critical: 0High: 1Medium: 0Low: 0
Vulnerability ID Severity CVSSFixed in Status
CVE-2020-29652 HIGH7.5v0.0.0-20201216223049-8b5274cf687fOpen

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

github.com/containerd/containerd v1.4.3 / go.mod

Total vulnerabilities: 1

Critical: 0High: 1Medium: 0Low: 0
Vulnerability ID Severity CVSSFixed in Status
CVE-2022-23648 HIGH71.4.13Open

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

github.com/containernetworking/cni v0.7.1 / go.mod

Total vulnerabilities: 1

Critical: 0High: 1Medium: 0Low: 0
Vulnerability ID Severity CVSSFixed in Status
CVE-2021-20206 HIGH70.8.1Open

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

github.com/containerd/containerd v1.4.1 / go.mod

Total vulnerabilities: 1

Critical: 0High: 1Medium: 0Low: 0
Vulnerability ID Severity CVSSFixed in Status
CVE-2022-23648 HIGH71.4.13Open

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

github.com/opencontainers/runc v0.1.1 / go.mod

Total vulnerabilities: 2

Critical: 0High: 2Medium: 0Low: 0
Vulnerability ID Severity CVSSFixed in Status
CVE-2021-30465 HIGH71.0.0-rc95Open
CVE-2019-16884 HIGH71.0.0-rc9Open

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

github.com/dgrijalva/jwt-go v3.2.0+incompatible / go.mod

Total vulnerabilities: 1

Critical: 0High: 1Medium: 0Low: 0
Vulnerability ID Severity CVSSFixed in Status
CVE-2020-26160 HIGH7-Open

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

golang.org/x/crypto v0.0.0-20190611184440-5c40567a22f8 / go.mod

Total vulnerabilities: 1

Critical: 0High: 1Medium: 0Low: 0
Vulnerability ID Severity CVSSFixed in Status
CVE-2020-29652 HIGH7.5v0.0.0-20201216223049-8b5274cf687fOpen

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

github.com/containerd/imgcrypt v1.1.1-0.20210312161619-7ed62a527887 / go.mod

Total vulnerabilities: 1

Critical: 0High: 1Medium: 0Low: 0
Vulnerability ID Severity CVSSFixed in Status
CVE-2022-24778 HIGH71.1.4Open

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

github.com/gorilla/websocket v0.0.0-20170926233335-4201258b820c / go.mod

Total vulnerabilities: 1

Critical: 0High: 1Medium: 0Low: 0
Vulnerability ID Severity CVSSFixed in Status
CVE-2020-27813 HIGH71.4.1Open

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

github.com/gogo/protobuf v1.2.1 / go.mod

Total vulnerabilities: 1

Critical: 0High: 1Medium: 0Low: 0
Vulnerability ID Severity CVSSFixed in Status
CVE-2021-3121 HIGH71.3.2Open

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

github.com/containerd/imgcrypt v1.1.3 / go.mod

Total vulnerabilities: 1

Critical: 0High: 1Medium: 0Low: 0
Vulnerability ID Severity CVSSFixed in Status
CVE-2022-24778 HIGH71.1.4Open

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

github.com/opencontainers/runc v1.0.0-rc93 / go.mod

Total vulnerabilities: 1

Critical: 0High: 1Medium: 0Low: 0
Vulnerability ID Severity CVSSFixed in Status
CVE-2021-30465 HIGH71.0.0-rc95Open

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

golang.org/x/crypto v0.0.0-20191011191535-87dc89f01550 / go.mod

Total vulnerabilities: 1

Critical: 0High: 1Medium: 0Low: 0
Vulnerability ID Severity CVSSFixed in Status
CVE-2020-29652 HIGH7.5v0.0.0-20201216223049-8b5274cf687fOpen

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

github.com/containerd/imgcrypt v1.0.4-0.20210301171431-0ae5c75f59ba / go.mod

Total vulnerabilities: 1

Critical: 0High: 1Medium: 0Low: 0
Vulnerability ID Severity CVSSFixed in Status
CVE-2022-24778 HIGH71.1.4Open

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

github.com/emicklei/go-restful v0.0.0-20170410110728-ff4f55a20633 / go.mod

Total vulnerabilities: 1

Critical: 1High: 0Medium: 0Low: 0
Vulnerability ID Severity CVSSFixed in Status
CVE-2022-1996 CRITICAL93.8.0Open

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

github.com/containernetworking/cni v0.8.0 / go.mod

Total vulnerabilities: 1

Critical: 0High: 1Medium: 0Low: 0
Vulnerability ID Severity CVSSFixed in Status
CVE-2021-20206 HIGH70.8.1Open

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

golang.org/x/crypto v0.0.0-20201002170205-7f63de1d35b0 / go.mod

Total vulnerabilities: 1

Critical: 0High: 1Medium: 0Low: 0
Vulnerability ID Severity CVSSFixed in Status
CVE-2020-29652 HIGH7.5v0.0.0-20201216223049-8b5274cf687fOpen

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

github.com/containerd/containerd v1.5.1 / go.mod

Total vulnerabilities: 2

Critical: 0High: 2Medium: 0Low: 0
Vulnerability ID Severity CVSSFixed in Status
CVE-2021-43816 HIGH71.5.9Open
CVE-2022-23648 HIGH71.5.10Open

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

github.com/buger/jsonparser v0.0.0-20180808090653-f4dd9f5a6b44 / go.mod

Total vulnerabilities: 1

Critical: 0High: 1Medium: 0Low: 0
Vulnerability ID Severity CVSSFixed in Status
CVE-2020-35381 HIGH71.1.1Open

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

golang.org/x/crypto v0.0.0-20190308221718-c2843e01d9a2 / go.mod

Total vulnerabilities: 1

Critical: 0High: 1Medium: 0Low: 0
Vulnerability ID Severity CVSSFixed in Status
CVE-2020-29652 HIGH7.5v0.0.0-20201216223049-8b5274cf687fOpen

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

golang.org/x/crypto v0.0.0-20200622213623-75b288015ac9 / go.mod

Total vulnerabilities: 1

Critical: 0High: 1Medium: 0Low: 0
Vulnerability ID Severity CVSSFixed in Status
CVE-2020-29652 HIGH7.5v0.0.0-20201216223049-8b5274cf687fOpen

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

github.com/gogo/protobuf v1.3.1 / go.mod

Total vulnerabilities: 1

Critical: 0High: 1Medium: 0Low: 0
Vulnerability ID Severity CVSSFixed in Status
CVE-2021-3121 HIGH71.3.2Open

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

github.com/containerd/containerd v1.3.0 / go.mod

Total vulnerabilities: 1

Critical: 0High: 1Medium: 0Low: 0
Vulnerability ID Severity CVSSFixed in Status
CVE-2022-23648 HIGH71.4.13Open

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

github.com/containerd/imgcrypt v1.1.1 / go.mod

Total vulnerabilities: 1

Critical: 0High: 1Medium: 0Low: 0
Vulnerability ID Severity CVSSFixed in Status
CVE-2022-24778 HIGH71.1.4Open

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

github.com/containerd/containerd v1.5.7 / go.mod

Total vulnerabilities: 2

Critical: 0High: 2Medium: 0Low: 0
Vulnerability ID Severity CVSSFixed in Status
CVE-2021-43816 HIGH71.5.9Open
CVE-2022-23648 HIGH71.5.10Open

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

github.com/gogo/protobuf v1.2.2-0.20190723190241-65acae22fc9d / go.mod

Total vulnerabilities: 1

Critical: 0High: 1Medium: 0Low: 0
Vulnerability ID Severity CVSSFixed in Status
CVE-2021-3121 HIGH71.3.2Open

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

golang.org/x/crypto v0.0.0-20190701094942-4def268fd1a4 / go.mod

Total vulnerabilities: 1

Critical: 0High: 1Medium: 0Low: 0
Vulnerability ID Severity CVSSFixed in Status
CVE-2020-29652 HIGH7.5v0.0.0-20201216223049-8b5274cf687fOpen

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

github.com/gogo/protobuf v1.3.0 / go.mod

Total vulnerabilities: 1

Critical: 0High: 1Medium: 0Low: 0
Vulnerability ID Severity CVSSFixed in Status
CVE-2021-3121 HIGH71.3.2Open

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

github.com/gorilla/handlers v0.0.0-20150720190736-60c7bfde3e33 / go.mod

Total vulnerabilities: 1

Critical: 0High: 1Medium: 0Low: 0
Vulnerability ID Severity CVSSFixed in Status
PRISMA-2022-0285 HIGH7.2v1.3.0Open

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

github.com/containerd/containerd v1.2.10 / go.mod

Total vulnerabilities: 1

Critical: 0High: 1Medium: 0Low: 0
Vulnerability ID Severity CVSSFixed in Status
CVE-2022-23648 HIGH71.4.13Open

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

github.com/dgrijalva/jwt-go v0.0.0-20170104182250-a601269ab70c / go.mod

Total vulnerabilities: 1

Critical: 0High: 1Medium: 0Low: 0
Vulnerability ID Severity CVSSFixed in Status
CVE-2020-26160 HIGH7-Open

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

golang.org/x/crypto v0.0.0-20181029021203-45a5f77698d3 / go.mod

Total vulnerabilities: 1

Critical: 0High: 1Medium: 0Low: 0
Vulnerability ID Severity CVSSFixed in Status
CVE-2020-29652 HIGH7.5v0.0.0-20201216223049-8b5274cf687fOpen

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

github.com/containerd/containerd v1.3.1-0.20191213020239-082f7e3aed57 / go.mod

Total vulnerabilities: 1

Critical: 0High: 1Medium: 0Low: 0
Vulnerability ID Severity CVSSFixed in Status
CVE-2022-23648 HIGH71.4.13Open

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

github.com/containerd/containerd v1.3.0-beta.2.0.20190828155532-0293cbd26c69 / go.mod

Total vulnerabilities: 1

Critical: 0High: 1Medium: 0Low: 0
Vulnerability ID Severity CVSSFixed in Status
CVE-2022-23648 HIGH71.4.13Open

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

k8s.io/kubernetes v1.13.0 / go.mod

Total vulnerabilities: 1

Critical: 0High: 1Medium: 0Low: 0
Vulnerability ID Severity CVSSFixed in Status
CVE-2021-25741 HIGH71.19.15Open

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

github.com/gogo/protobuf v1.1.1 / go.mod

Total vulnerabilities: 1

Critical: 0High: 1Medium: 0Low: 0
Vulnerability ID Severity CVSSFixed in Status
CVE-2021-3121 HIGH71.3.2Open

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

github.com/opencontainers/runc v1.0.0-rc8.0.20190926000215-3e425f80a8c9 / go.mod

Total vulnerabilities: 1

Critical: 0High: 1Medium: 0Low: 0
Vulnerability ID Severity CVSSFixed in Status
CVE-2021-30465 HIGH71.0.0-rc95Open

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

golang.org/x/crypto v0.0.0-20190510104115-cbcb75029529 / go.mod

Total vulnerabilities: 1

Critical: 0High: 1Medium: 0Low: 0
Vulnerability ID Severity CVSSFixed in Status
CVE-2020-29652 HIGH7.5v0.0.0-20201216223049-8b5274cf687fOpen

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

golang.org/x/crypto v0.0.0-20171113213409-9f005a07e0d3 / go.mod

Total vulnerabilities: 1

Critical: 0High: 1Medium: 0Low: 0
Vulnerability ID Severity CVSSFixed in Status
CVE-2020-29652 HIGH7.5v0.0.0-20201216223049-8b5274cf687fOpen

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

github.com/containerd/containerd v1.4.9 / go.mod

Total vulnerabilities: 1

Critical: 0High: 1Medium: 0Low: 0
Vulnerability ID Severity CVSSFixed in Status
CVE-2022-23648 HIGH71.4.13Open

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

golang.org/x/crypto v0.0.0-20200728195943-123391ffb6de / go.mod

Total vulnerabilities: 1

Critical: 0High: 1Medium: 0Low: 0
Vulnerability ID Severity CVSSFixed in Status
CVE-2020-29652 HIGH7.5v0.0.0-20201216223049-8b5274cf687fOpen

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

github.com/containerd/containerd v1.3.2 / go.mod

Total vulnerabilities: 1

Critical: 0High: 1Medium: 0Low: 0
Vulnerability ID Severity CVSSFixed in Status
CVE-2022-23648 HIGH71.4.13Open

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

github.com/opencontainers/runc v0.0.0-20190115041553-12f6a991201f / go.mod

Total vulnerabilities: 3

Critical: 0High: 3Medium: 0Low: 0
Vulnerability ID Severity CVSSFixed in Status
CVE-2021-30465 HIGH71.0.0-rc95Open
CVE-2016-3697 HIGH70.1.0Open
CVE-2019-16884 HIGH71.0.0-rc9Open

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

golang.org/x/crypto v0.0.0-20190605123033-f99c8df09eb5 / go.mod

Total vulnerabilities: 1

Critical: 0High: 1Medium: 0Low: 0
Vulnerability ID Severity CVSSFixed in Status
CVE-2020-29652 HIGH7.5v0.0.0-20201216223049-8b5274cf687fOpen

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

github.com/containerd/imgcrypt v1.0.1 / go.mod

Total vulnerabilities: 1

Critical: 0High: 1Medium: 0Low: 0
Vulnerability ID Severity CVSSFixed in Status
CVE-2022-24778 HIGH71.1.4Open

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

golang.org/x/crypto v0.0.0-20180904163835-0709b304e793 / go.mod

Total vulnerabilities: 1

Critical: 0High: 1Medium: 0Low: 0
Vulnerability ID Severity CVSSFixed in Status
CVE-2020-29652 HIGH7.5v0.0.0-20201216223049-8b5274cf687fOpen

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

github.com/containerd/containerd v1.5.8 / go.mod

Total vulnerabilities: 2

Critical: 0High: 2Medium: 0Low: 0
Vulnerability ID Severity CVSSFixed in Status
CVE-2021-43816 HIGH71.5.9Open
CVE-2022-23648 HIGH71.5.10Open

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

github.com/gorilla/websocket v1.4.0 / go.mod

Total vulnerabilities: 1

Critical: 0High: 1Medium: 0Low: 0
Vulnerability ID Severity CVSSFixed in Status
CVE-2020-27813 HIGH71.4.1Open

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

github.com/opencontainers/runc v1.0.0-rc9 / go.mod

Total vulnerabilities: 1

Critical: 0High: 1Medium: 0Low: 0
Vulnerability ID Severity CVSSFixed in Status
CVE-2021-30465 HIGH71.0.0-rc95Open

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

github.com/containerd/containerd v1.4.0-beta.2.0.20200729163537-40b22ef07410 / go.mod

Total vulnerabilities: 1

Critical: 0High: 1Medium: 0Low: 0
Vulnerability ID Severity CVSSFixed in Status
CVE-2022-23648 HIGH71.4.13Open

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

golang.org/x/crypto v0.0.0-20181009213950-7c1a557ab941 / go.mod

Total vulnerabilities: 1

Critical: 0High: 1Medium: 0Low: 0
Vulnerability ID Severity CVSSFixed in Status
CVE-2020-29652 HIGH7.5v0.0.0-20201216223049-8b5274cf687fOpen

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

github.com/containerd/containerd v1.4.3 / go.mod

Total vulnerabilities: 1

Critical: 0High: 1Medium: 0Low: 0
Vulnerability ID Severity CVSSFixed in Status
CVE-2022-23648 HIGH71.4.13Open

Copy link

@prisma-cloud-devsecops prisma-cloud-devsecops bot Dec 15, 2022

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

github.com/containernetworking/cni v0.8.0 / go.mod

Total vulnerabilities: 1

Critical: 0High: 1Medium: 0Low: 0
Vulnerability ID Severity CVSSFixed in Status
CVE-2021-20206 HIGH70.8.1Open
Vulnerabilities scan results were updated by commit d4451d0

Copy link

@prisma-cloud-devsecops prisma-cloud-devsecops bot Dec 15, 2022

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

github.com/containerd/containerd v1.3.1-0.20191213020239-082f7e3aed57 / go.mod

Total vulnerabilities: 1

Critical: 0High: 1Medium: 0Low: 0
Vulnerability ID Severity CVSSFixed in Status
CVE-2022-23648 HIGH71.4.13Open

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

github.com/opencontainers/runc v0.1.1 / go.mod

Total vulnerabilities: 2

Critical: 0High: 2Medium: 0Low: 0
Vulnerability ID Severity CVSSFixed in Status
CVE-2021-30465 HIGH71.0.0-rc95Open
CVE-2019-16884 HIGH71.0.0-rc9Open

Copy link

@prisma-cloud-devsecops prisma-cloud-devsecops bot Dec 15, 2022

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

github.com/dgrijalva/jwt-go v0.0.0-20170104182250-a601269ab70c / go.mod

Total vulnerabilities: 1

Critical: 0High: 1Medium: 0Low: 0
Vulnerability ID Severity CVSSFixed in Status
CVE-2020-26160 HIGH7-Open
Vulnerabilities scan results were updated by commit d4451d0

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

golang.org/x/crypto v0.0.0-20190611184440-5c40567a22f8 / go.mod

Total vulnerabilities: 1

Critical: 0High: 1Medium: 0Low: 0
Vulnerability ID Severity CVSSFixed in Status
CVE-2020-29652 HIGH7.5v0.0.0-20201216223049-8b5274cf687fOpen

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

github.com/containerd/imgcrypt v1.1.1-0.20210312161619-7ed62a527887 / go.mod

Total vulnerabilities: 1

Critical: 0High: 1Medium: 0Low: 0
Vulnerability ID Severity CVSSFixed in Status
CVE-2022-24778 HIGH71.1.4Open

Copy link

@prisma-cloud-devsecops prisma-cloud-devsecops bot Dec 15, 2022

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

github.com/gorilla/websocket v0.0.0-20170926233335-4201258b820c / go.mod

Total vulnerabilities: 1

Critical: 0High: 1Medium: 0Low: 0
Vulnerability ID Severity CVSSFixed in Status
CVE-2020-27813 HIGH71.4.1Open
Vulnerabilities scan results were updated by commit d4451d0

Copy link

@prisma-cloud-devsecops prisma-cloud-devsecops bot Dec 15, 2022

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

github.com/gogo/protobuf v1.2.1 / go.mod

Total vulnerabilities: 1

Critical: 0High: 1Medium: 0Low: 0
Vulnerability ID Severity CVSSFixed in Status
CVE-2021-3121 HIGH71.3.2Open
Vulnerabilities scan results were updated by commit d4451d0

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

github.com/containerd/imgcrypt v1.1.3 / go.mod

Total vulnerabilities: 1

Critical: 0High: 1Medium: 0Low: 0
Vulnerability ID Severity CVSSFixed in Status
CVE-2022-24778 HIGH71.1.4Open

Copy link

@prisma-cloud-devsecops prisma-cloud-devsecops bot Dec 15, 2022

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

github.com/opencontainers/runc v1.0.0-rc8.0.20190926000215-3e425f80a8c9 / go.mod

Total vulnerabilities: 1

Critical: 0High: 1Medium: 0Low: 0
Vulnerability ID Severity CVSSFixed in Status
CVE-2021-30465 HIGH71.0.0-rc95Open

Copy link

@prisma-cloud-devsecops prisma-cloud-devsecops bot Dec 15, 2022

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

golang.org/x/crypto v0.0.0-20200622213623-75b288015ac9 / go.mod

Total vulnerabilities: 1

Critical: 0High: 1Medium: 0Low: 0
Vulnerability ID Severity CVSSFixed in Status
CVE-2020-29652 HIGH7.5v0.0.0-20201216223049-8b5274cf687fOpen
Vulnerabilities scan results were updated by commit d4451d0

Copy link

@prisma-cloud-devsecops prisma-cloud-devsecops bot Dec 15, 2022

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

github.com/containerd/imgcrypt v1.1.3 / go.mod

Total vulnerabilities: 1

Critical: 0High: 1Medium: 0Low: 0
Vulnerability ID Severity CVSSFixed in Status
CVE-2022-24778 HIGH71.1.4Open
Vulnerabilities scan results were updated by commit d4451d0

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

github.com/emicklei/go-restful v0.0.0-20170410110728-ff4f55a20633 / go.mod

Total vulnerabilities: 1

Critical: 1High: 0Medium: 0Low: 0
Vulnerability ID Severity CVSSFixed in Status
CVE-2022-1996 CRITICAL93.8.0Open

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

github.com/gogo/protobuf v1.2.2-0.20190723190241-65acae22fc9d / go.mod

Total vulnerabilities: 1

Critical: 0High: 1Medium: 0Low: 0
Vulnerability ID Severity CVSSFixed in Status
CVE-2021-3121 HIGH71.3.2Open

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

golang.org/x/crypto v0.0.0-20190701094942-4def268fd1a4 / go.mod

Total vulnerabilities: 1

Critical: 0High: 1Medium: 0Low: 0
Vulnerability ID Severity CVSSFixed in Status
CVE-2020-29652 HIGH7.5v0.0.0-20201216223049-8b5274cf687fOpen

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

github.com/gogo/protobuf v1.3.0 / go.mod

Total vulnerabilities: 1

Critical: 0High: 1Medium: 0Low: 0
Vulnerability ID Severity CVSSFixed in Status
CVE-2021-3121 HIGH71.3.2Open

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

github.com/containerd/containerd v1.2.10 / go.mod

Total vulnerabilities: 1

Critical: 0High: 1Medium: 0Low: 0
Vulnerability ID Severity CVSSFixed in Status
CVE-2022-23648 HIGH71.4.13Open

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

golang.org/x/crypto v0.0.0-20181029021203-45a5f77698d3 / go.mod

Total vulnerabilities: 1

Critical: 0High: 1Medium: 0Low: 0
Vulnerability ID Severity CVSSFixed in Status
CVE-2020-29652 HIGH7.5v0.0.0-20201216223049-8b5274cf687fOpen

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

github.com/containerd/containerd v1.3.1-0.20191213020239-082f7e3aed57 / go.mod

Total vulnerabilities: 1

Critical: 0High: 1Medium: 0Low: 0
Vulnerability ID Severity CVSSFixed in Status
CVE-2022-23648 HIGH71.4.13Open

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

github.com/containerd/containerd v1.3.0-beta.2.0.20190828155532-0293cbd26c69 / go.mod

Total vulnerabilities: 1

Critical: 0High: 1Medium: 0Low: 0
Vulnerability ID Severity CVSSFixed in Status
CVE-2022-23648 HIGH71.4.13Open

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

github.com/gogo/protobuf v1.1.1 / go.mod

Total vulnerabilities: 1

Critical: 0High: 1Medium: 0Low: 0
Vulnerability ID Severity CVSSFixed in Status
CVE-2021-3121 HIGH71.3.2Open

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

github.com/opencontainers/runc v1.0.0-rc8.0.20190926000215-3e425f80a8c9 / go.mod

Total vulnerabilities: 1

Critical: 0High: 1Medium: 0Low: 0
Vulnerability ID Severity CVSSFixed in Status
CVE-2021-30465 HIGH71.0.0-rc95Open

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

golang.org/x/crypto v0.0.0-20190510104115-cbcb75029529 / go.mod

Total vulnerabilities: 1

Critical: 0High: 1Medium: 0Low: 0
Vulnerability ID Severity CVSSFixed in Status
CVE-2020-29652 HIGH7.5v0.0.0-20201216223049-8b5274cf687fOpen

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

github.com/containerd/containerd v1.4.9 / go.mod

Total vulnerabilities: 1

Critical: 0High: 1Medium: 0Low: 0
Vulnerability ID Severity CVSSFixed in Status
CVE-2022-23648 HIGH71.4.13Open

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

golang.org/x/crypto v0.0.0-20171113213409-9f005a07e0d3 / go.mod

Total vulnerabilities: 1

Critical: 0High: 1Medium: 0Low: 0
Vulnerability ID Severity CVSSFixed in Status
CVE-2020-29652 HIGH7.5v0.0.0-20201216223049-8b5274cf687fOpen

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

github.com/opencontainers/runc v0.0.0-20190115041553-12f6a991201f / go.mod

Total vulnerabilities: 3

Critical: 0High: 3Medium: 0Low: 0
Vulnerability ID Severity CVSSFixed in Status
CVE-2021-30465 HIGH71.0.0-rc95Open
CVE-2016-3697 HIGH70.1.0Open
CVE-2019-16884 HIGH71.0.0-rc9Open

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

golang.org/x/crypto v0.0.0-20200728195943-123391ffb6de / go.mod

Total vulnerabilities: 1

Critical: 0High: 1Medium: 0Low: 0
Vulnerability ID Severity CVSSFixed in Status
CVE-2020-29652 HIGH7.5v0.0.0-20201216223049-8b5274cf687fOpen

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

github.com/containerd/containerd v1.3.2 / go.mod

Total vulnerabilities: 1

Critical: 0High: 1Medium: 0Low: 0
Vulnerability ID Severity CVSSFixed in Status
CVE-2022-23648 HIGH71.4.13Open

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

golang.org/x/crypto v0.0.0-20190605123033-f99c8df09eb5 / go.mod

Total vulnerabilities: 1

Critical: 0High: 1Medium: 0Low: 0
Vulnerability ID Severity CVSSFixed in Status
CVE-2020-29652 HIGH7.5v0.0.0-20201216223049-8b5274cf687fOpen

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

github.com/containerd/imgcrypt v1.0.1 / go.mod

Total vulnerabilities: 1

Critical: 0High: 1Medium: 0Low: 0
Vulnerability ID Severity CVSSFixed in Status
CVE-2022-24778 HIGH71.1.4Open

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

golang.org/x/crypto v0.0.0-20180904163835-0709b304e793 / go.mod

Total vulnerabilities: 1

Critical: 0High: 1Medium: 0Low: 0
Vulnerability ID Severity CVSSFixed in Status
CVE-2020-29652 HIGH7.5v0.0.0-20201216223049-8b5274cf687fOpen

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

github.com/containerd/containerd v1.5.8 / go.mod

Total vulnerabilities: 2

Critical: 0High: 2Medium: 0Low: 0
Vulnerability ID Severity CVSSFixed in Status
CVE-2021-43816 HIGH71.5.9Open
CVE-2022-23648 HIGH71.5.10Open

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

github.com/containerd/containerd v1.4.0-beta.2.0.20200729163537-40b22ef07410 / go.mod

Total vulnerabilities: 1

Critical: 0High: 1Medium: 0Low: 0
Vulnerability ID Severity CVSSFixed in Status
CVE-2022-23648 HIGH71.4.13Open

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

github.com/opencontainers/runc v1.0.0-rc9 / go.mod

Total vulnerabilities: 1

Critical: 0High: 1Medium: 0Low: 0
Vulnerability ID Severity CVSSFixed in Status
CVE-2021-30465 HIGH71.0.0-rc95Open

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

golang.org/x/crypto v0.0.0-20181009213950-7c1a557ab941 / go.mod

Total vulnerabilities: 1

Critical: 0High: 1Medium: 0Low: 0
Vulnerability ID Severity CVSSFixed in Status
CVE-2020-29652 HIGH7.5v0.0.0-20201216223049-8b5274cf687fOpen

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

github.com/containerd/containerd v1.4.3 / go.mod

Total vulnerabilities: 1

Critical: 0High: 1Medium: 0Low: 0
Vulnerability ID Severity CVSSFixed in Status
CVE-2022-23648 HIGH71.4.13Open

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

github.com/containerd/containerd v1.5.1 / go.mod

Total vulnerabilities: 2

Critical: 0High: 2Medium: 0Low: 0
Vulnerability ID Severity CVSSFixed in Status
CVE-2022-23648 HIGH71.5.10Open
CVE-2021-43816 HIGH71.5.9Open

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

github.com/buger/jsonparser v0.0.0-20180808090653-f4dd9f5a6b44 / go.mod

Total vulnerabilities: 1

Critical: 0High: 1Medium: 0Low: 0
Vulnerability ID Severity CVSSFixed in Status
CVE-2020-35381 HIGH71.1.1Open

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

golang.org/x/crypto v0.0.0-20190308221718-c2843e01d9a2 / go.mod

Total vulnerabilities: 1

Critical: 0High: 1Medium: 0Low: 0
Vulnerability ID Severity CVSSFixed in Status
CVE-2020-29652 HIGH7.5v0.0.0-20201216223049-8b5274cf687fOpen

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

golang.org/x/crypto v0.0.0-20200622213623-75b288015ac9 / go.mod

Total vulnerabilities: 1

Critical: 0High: 1Medium: 0Low: 0
Vulnerability ID Severity CVSSFixed in Status
CVE-2020-29652 HIGH7.5v0.0.0-20201216223049-8b5274cf687fOpen

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

github.com/gogo/protobuf v1.3.1 / go.mod

Total vulnerabilities: 1

Critical: 0High: 1Medium: 0Low: 0
Vulnerability ID Severity CVSSFixed in Status
CVE-2021-3121 HIGH71.3.2Open

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

github.com/containerd/containerd v1.3.0 / go.mod

Total vulnerabilities: 1

Critical: 0High: 1Medium: 0Low: 0
Vulnerability ID Severity CVSSFixed in Status
CVE-2022-23648 HIGH71.4.13Open

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

github.com/containernetworking/cni v0.7.1 / go.mod

Total vulnerabilities: 1

Critical: 0High: 1Medium: 0Low: 0
Vulnerability ID Severity CVSSFixed in Status
CVE-2021-20206 HIGH70.8.1Open

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

github.com/containerd/containerd v1.4.1 / go.mod

Total vulnerabilities: 1

Critical: 0High: 1Medium: 0Low: 0
Vulnerability ID Severity CVSSFixed in Status
CVE-2022-23648 HIGH71.4.13Open

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

github.com/opencontainers/runc v0.1.1 / go.mod

Total vulnerabilities: 2

Critical: 0High: 2Medium: 0Low: 0
Vulnerability ID Severity CVSSFixed in Status
CVE-2021-30465 HIGH71.0.0-rc95Open
CVE-2019-16884 HIGH71.0.0-rc9Open

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

golang.org/x/crypto v0.0.0-20190611184440-5c40567a22f8 / go.mod

Total vulnerabilities: 1

Critical: 0High: 1Medium: 0Low: 0
Vulnerability ID Severity CVSSFixed in Status
CVE-2020-29652 HIGH7.5v0.0.0-20201216223049-8b5274cf687fOpen

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

github.com/containerd/imgcrypt v1.1.1-0.20210312161619-7ed62a527887 / go.mod

Total vulnerabilities: 1

Critical: 0High: 1Medium: 0Low: 0
Vulnerability ID Severity CVSSFixed in Status
CVE-2022-24778 HIGH71.1.4Open

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

github.com/gogo/protobuf v1.2.1 / go.mod

Total vulnerabilities: 1

Critical: 0High: 1Medium: 0Low: 0
Vulnerability ID Severity CVSSFixed in Status
CVE-2021-3121 HIGH71.3.2Open

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

github.com/containerd/imgcrypt v1.1.3 / go.mod

Total vulnerabilities: 1

Critical: 0High: 1Medium: 0Low: 0
Vulnerability ID Severity CVSSFixed in Status
CVE-2022-24778 HIGH71.1.4Open

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

github.com/opencontainers/runc v1.0.0-rc93 / go.mod

Total vulnerabilities: 1

Critical: 0High: 1Medium: 0Low: 0
Vulnerability ID Severity CVSSFixed in Status
CVE-2021-30465 HIGH71.0.0-rc95Open

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

golang.org/x/crypto v0.0.0-20191011191535-87dc89f01550 / go.mod

Total vulnerabilities: 1

Critical: 0High: 1Medium: 0Low: 0
Vulnerability ID Severity CVSSFixed in Status
CVE-2020-29652 HIGH7.5v0.0.0-20201216223049-8b5274cf687fOpen

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

github.com/containerd/imgcrypt v1.0.4-0.20210301171431-0ae5c75f59ba / go.mod

Total vulnerabilities: 1

Critical: 0High: 1Medium: 0Low: 0
Vulnerability ID Severity CVSSFixed in Status
CVE-2022-24778 HIGH71.1.4Open

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

github.com/containernetworking/cni v0.8.0 / go.mod

Total vulnerabilities: 1

Critical: 0High: 1Medium: 0Low: 0
Vulnerability ID Severity CVSSFixed in Status
CVE-2021-20206 HIGH70.8.1Open

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

github.com/containerd/containerd v1.3.0-beta.2.0.20190828155532-0293cbd26c69 / go.mod

Total vulnerabilities: 1

Critical: 0High: 1Medium: 0Low: 0
Vulnerability ID Severity CVSSFixed in Status
CVE-2022-23648 HIGH71.4.13Open

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

github.com/opencontainers/runc v1.0.0-rc8.0.20190926000215-3e425f80a8c9 / go.mod

Total vulnerabilities: 1

Critical: 0High: 1Medium: 0Low: 0
Vulnerability ID Severity CVSSFixed in Status
CVE-2021-30465 HIGH71.0.0-rc95Open

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

github.com/containerd/containerd v1.4.9 / go.mod

Total vulnerabilities: 1

Critical: 0High: 1Medium: 0Low: 0
Vulnerability ID Severity CVSSFixed in Status
CVE-2022-23648 HIGH71.4.13Open

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

github.com/opencontainers/runc v0.0.0-20190115041553-12f6a991201f / go.mod

Total vulnerabilities: 3

Critical: 0High: 3Medium: 0Low: 0
Vulnerability ID Severity CVSSFixed in Status
CVE-2021-30465 HIGH71.0.0-rc95Open
CVE-2016-3697 HIGH70.1.0Open
CVE-2019-16884 HIGH71.0.0-rc9Open

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

github.com/containerd/containerd v1.3.2 / go.mod

Total vulnerabilities: 1

Critical: 0High: 1Medium: 0Low: 0
Vulnerability ID Severity CVSSFixed in Status
CVE-2022-23648 HIGH71.4.13Open

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

github.com/containerd/containerd v1.5.8 / go.mod

Total vulnerabilities: 2

Critical: 0High: 2Medium: 0Low: 0
Vulnerability ID Severity CVSSFixed in Status
CVE-2021-43816 HIGH71.5.9Open
CVE-2022-23648 HIGH71.5.10Open

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

github.com/opencontainers/runc v1.0.0-rc9 / go.mod

Total vulnerabilities: 1

Critical: 0High: 1Medium: 0Low: 0
Vulnerability ID Severity CVSSFixed in Status
CVE-2021-30465 HIGH71.0.0-rc95Open

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

github.com/containerd/containerd v1.4.0-beta.2.0.20200729163537-40b22ef07410 / go.mod

Total vulnerabilities: 1

Critical: 0High: 1Medium: 0Low: 0
Vulnerability ID Severity CVSSFixed in Status
CVE-2022-23648 HIGH71.4.13Open

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

github.com/containerd/containerd v1.4.3 / go.mod

Total vulnerabilities: 1

Critical: 0High: 1Medium: 0Low: 0
Vulnerability ID Severity CVSSFixed in Status
CVE-2022-23648 HIGH71.4.13Open

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

github.com/containerd/containerd v1.4.1 / go.mod

Total vulnerabilities: 1

Critical: 0High: 1Medium: 0Low: 0
Vulnerability ID Severity CVSSFixed in Status
CVE-2022-23648 HIGH71.4.13Open

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

github.com/containerd/containerd v1.2.10 / go.mod

Total vulnerabilities: 1

Critical: 0High: 1Medium: 0Low: 0
Vulnerability ID Severity CVSSFixed in Status
CVE-2022-23648 HIGH71.4.13Open

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

github.com/containerd/containerd v1.3.1-0.20191213020239-082f7e3aed57 / go.mod

Total vulnerabilities: 1

Critical: 0High: 1Medium: 0Low: 0
Vulnerability ID Severity CVSSFixed in Status
CVE-2022-23648 HIGH71.4.13Open

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

github.com/opencontainers/runc v0.1.1 / go.mod

Total vulnerabilities: 2

Critical: 0High: 2Medium: 0Low: 0
Vulnerability ID Severity CVSSFixed in Status
CVE-2021-30465 HIGH71.0.0-rc95Open
CVE-2019-16884 HIGH71.0.0-rc9Open

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

github.com/opencontainers/runc v1.0.0-rc93 / go.mod

Total vulnerabilities: 1

Critical: 0High: 1Medium: 0Low: 0
Vulnerability ID Severity CVSSFixed in Status
CVE-2021-30465 HIGH71.0.0-rc95Open

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

github.com/containerd/containerd v1.5.1 / go.mod

Total vulnerabilities: 2

Critical: 0High: 2Medium: 0Low: 0
Vulnerability ID Severity CVSSFixed in Status
CVE-2021-43816 HIGH71.5.9Open
CVE-2022-23648 HIGH71.5.10Open

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

github.com/containerd/containerd v1.3.0 / go.mod

Total vulnerabilities: 1

Critical: 0High: 1Medium: 0Low: 0
Vulnerability ID Severity CVSSFixed in Status
CVE-2022-23648 HIGH71.4.13Open

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

github.com/containerd/containerd v1.5.7 / go.mod

Total vulnerabilities: 2

Critical: 0High: 2Medium: 0Low: 0
Vulnerability ID Severity CVSSFixed in Status
CVE-2021-43816 HIGH71.5.9Open
CVE-2022-23648 HIGH71.5.10Open

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

github.com/containerd/containerd v1.2.10 / go.mod

Total vulnerabilities: 1

Critical: 0High: 1Medium: 0Low: 0
Vulnerability ID Severity CVSSFixed in Status
CVE-2022-23648 HIGH71.4.13Open

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

github.com/containerd/containerd v1.3.0-beta.2.0.20190828155532-0293cbd26c69 / go.mod

Total vulnerabilities: 1

Critical: 0High: 1Medium: 0Low: 0
Vulnerability ID Severity CVSSFixed in Status
CVE-2022-23648 HIGH71.4.13Open

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

github.com/containerd/containerd v1.3.1-0.20191213020239-082f7e3aed57 / go.mod

Total vulnerabilities: 1

Critical: 0High: 1Medium: 0Low: 0
Vulnerability ID Severity CVSSFixed in Status
CVE-2022-23648 HIGH71.4.13Open

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

github.com/opencontainers/runc v1.0.0-rc8.0.20190926000215-3e425f80a8c9 / go.mod

Total vulnerabilities: 1

Critical: 0High: 1Medium: 0Low: 0
Vulnerability ID Severity CVSSFixed in Status
CVE-2021-30465 HIGH71.0.0-rc95Open

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

github.com/containerd/containerd v1.4.9 / go.mod

Total vulnerabilities: 1

Critical: 0High: 1Medium: 0Low: 0
Vulnerability ID Severity CVSSFixed in Status
CVE-2022-23648 HIGH71.4.13Open

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

github.com/opencontainers/runc v0.0.0-20190115041553-12f6a991201f / go.mod

Total vulnerabilities: 3

Critical: 0High: 3Medium: 0Low: 0
Vulnerability ID Severity CVSSFixed in Status
CVE-2021-30465 HIGH71.0.0-rc95Open
CVE-2016-3697 HIGH70.1.0Open
CVE-2019-16884 HIGH71.0.0-rc9Open

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

github.com/containerd/containerd v1.3.2 / go.mod

Total vulnerabilities: 1

Critical: 0High: 1Medium: 0Low: 0
Vulnerability ID Severity CVSSFixed in Status
CVE-2022-23648 HIGH71.4.13Open

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

github.com/containerd/containerd v1.5.8 / go.mod

Total vulnerabilities: 2

Critical: 0High: 2Medium: 0Low: 0
Vulnerability ID Severity CVSSFixed in Status
CVE-2021-43816 HIGH71.5.9Open
CVE-2022-23648 HIGH71.5.10Open

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

github.com/opencontainers/runc v1.0.0-rc9 / go.mod

Total vulnerabilities: 1

Critical: 0High: 1Medium: 0Low: 0
Vulnerability ID Severity CVSSFixed in Status
CVE-2021-30465 HIGH71.0.0-rc95Open

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

github.com/containerd/containerd v1.4.0-beta.2.0.20200729163537-40b22ef07410 / go.mod

Total vulnerabilities: 1

Critical: 0High: 1Medium: 0Low: 0
Vulnerability ID Severity CVSSFixed in Status
CVE-2022-23648 HIGH71.4.13Open

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

github.com/containerd/containerd v1.4.3 / go.mod

Total vulnerabilities: 1

Critical: 0High: 1Medium: 0Low: 0
Vulnerability ID Severity CVSSFixed in Status
CVE-2022-23648 HIGH71.4.13Open

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

github.com/containerd/containerd v1.4.1 / go.mod

Total vulnerabilities: 1

Critical: 0High: 1Medium: 0Low: 0
Vulnerability ID Severity CVSSFixed in Status
CVE-2022-23648 HIGH71.4.13Open

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

github.com/opencontainers/runc v0.1.1 / go.mod

Total vulnerabilities: 2

Critical: 0High: 2Medium: 0Low: 0
Vulnerability ID Severity CVSSFixed in Status
CVE-2021-30465 HIGH71.0.0-rc95Open
CVE-2019-16884 HIGH71.0.0-rc9Open

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

github.com/opencontainers/runc v1.0.0-rc93 / go.mod

Total vulnerabilities: 1

Critical: 0High: 1Medium: 0Low: 0
Vulnerability ID Severity CVSSFixed in Status
CVE-2021-30465 HIGH71.0.0-rc95Open

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

github.com/containerd/containerd v1.5.1 / go.mod

Total vulnerabilities: 2

Critical: 0High: 2Medium: 0Low: 0
Vulnerability ID Severity CVSSFixed in Status
CVE-2021-43816 HIGH71.5.9Open
CVE-2022-23648 HIGH71.5.10Open

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

github.com/containerd/containerd v1.3.0 / go.mod

Total vulnerabilities: 1

Critical: 0High: 1Medium: 0Low: 0
Vulnerability ID Severity CVSSFixed in Status
CVE-2022-23648 HIGH71.4.13Open

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

github.com/containerd/containerd v1.5.7 / go.mod

Total vulnerabilities: 2

Critical: 0High: 2Medium: 0Low: 0
Vulnerability ID Severity CVSSFixed in Status
CVE-2021-43816 HIGH71.5.9Open
CVE-2022-23648 HIGH71.5.10Open

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

github.com/containerd/containerd v1.2.10 / go.mod

Total vulnerabilities: 1

Critical: 0High: 1Medium: 0Low: 0
Vulnerability ID Severity CVSSFixed in Status
CVE-2022-23648 HIGH71.4.13Open

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

github.com/containerd/containerd v1.3.0-beta.2.0.20190828155532-0293cbd26c69 / go.mod

Total vulnerabilities: 1

Critical: 0High: 1Medium: 0Low: 0
Vulnerability ID Severity CVSSFixed in Status
CVE-2022-23648 HIGH71.4.13Open

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

github.com/containerd/containerd v1.3.1-0.20191213020239-082f7e3aed57 / go.mod

Total vulnerabilities: 1

Critical: 0High: 1Medium: 0Low: 0
Vulnerability ID Severity CVSSFixed in Status
CVE-2022-23648 HIGH71.4.13Open

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

github.com/opencontainers/runc v1.0.0-rc8.0.20190926000215-3e425f80a8c9 / go.mod

Total vulnerabilities: 1

Critical: 0High: 1Medium: 0Low: 0
Vulnerability ID Severity CVSSFixed in Status
CVE-2021-30465 HIGH71.0.0-rc95Open

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

github.com/containerd/containerd v1.4.9 / go.mod

Total vulnerabilities: 1

Critical: 0High: 1Medium: 0Low: 0
Vulnerability ID Severity CVSSFixed in Status
CVE-2022-23648 HIGH71.4.13Open

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

github.com/containerd/containerd v1.3.2 / go.mod

Total vulnerabilities: 1

Critical: 0High: 1Medium: 0Low: 0
Vulnerability ID Severity CVSSFixed in Status
CVE-2022-23648 HIGH71.4.13Open

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

github.com/opencontainers/runc v0.0.0-20190115041553-12f6a991201f / go.mod

Total vulnerabilities: 3

Critical: 0High: 3Medium: 0Low: 0
Vulnerability ID Severity CVSSFixed in Status
CVE-2021-30465 HIGH71.0.0-rc95Open
CVE-2016-3697 HIGH70.1.0Open
CVE-2019-16884 HIGH71.0.0-rc9Open

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

github.com/containerd/containerd v1.5.8 / go.mod

Total vulnerabilities: 2

Critical: 0High: 2Medium: 0Low: 0
Vulnerability ID Severity CVSSFixed in Status
CVE-2021-43816 HIGH71.5.9Open
CVE-2022-23648 HIGH71.5.10Open

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

github.com/opencontainers/runc v1.0.0-rc9 / go.mod

Total vulnerabilities: 1

Critical: 0High: 1Medium: 0Low: 0
Vulnerability ID Severity CVSSFixed in Status
CVE-2021-30465 HIGH71.0.0-rc95Open

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

github.com/containerd/containerd v1.4.0-beta.2.0.20200729163537-40b22ef07410 / go.mod

Total vulnerabilities: 1

Critical: 0High: 1Medium: 0Low: 0
Vulnerability ID Severity CVSSFixed in Status
CVE-2022-23648 HIGH71.4.13Open

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

github.com/containerd/containerd v1.4.3 / go.mod

Total vulnerabilities: 1

Critical: 0High: 1Medium: 0Low: 0
Vulnerability ID Severity CVSSFixed in Status
CVE-2022-23648 HIGH71.4.13Open

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

github.com/containerd/containerd v1.4.1 / go.mod

Total vulnerabilities: 1

Critical: 0High: 1Medium: 0Low: 0
Vulnerability ID Severity CVSSFixed in Status
CVE-2022-23648 HIGH71.4.13Open

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

github.com/opencontainers/runc v0.1.1 / go.mod

Total vulnerabilities: 2

Critical: 0High: 2Medium: 0Low: 0
Vulnerability ID Severity CVSSFixed in Status
CVE-2021-30465 HIGH71.0.0-rc95Open
CVE-2019-16884 HIGH71.0.0-rc9Open

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

github.com/opencontainers/runc v1.0.0-rc93 / go.mod

Total vulnerabilities: 1

Critical: 0High: 1Medium: 0Low: 0
Vulnerability ID Severity CVSSFixed in Status
CVE-2021-30465 HIGH71.0.0-rc95Open

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

github.com/containerd/containerd v1.5.1 / go.mod

Total vulnerabilities: 2

Critical: 0High: 2Medium: 0Low: 0
Vulnerability ID Severity CVSSFixed in Status
CVE-2021-43816 HIGH71.5.9Open
CVE-2022-23648 HIGH71.5.10Open

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

github.com/containerd/containerd v1.3.0 / go.mod

Total vulnerabilities: 1

Critical: 0High: 1Medium: 0Low: 0
Vulnerability ID Severity CVSSFixed in Status
CVE-2022-23648 HIGH71.4.13Open

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

github.com/containerd/containerd v1.5.7 / go.mod

Total vulnerabilities: 2

Critical: 0High: 2Medium: 0Low: 0
Vulnerability ID Severity CVSSFixed in Status
CVE-2021-43816 HIGH71.5.9Open
CVE-2022-23648 HIGH71.5.10Open

github.com/gofiber/fiber/v2 v2.39.0
github.com/google/uuid v1.3.0
github.com/gookit/config/v2 v2.1.7
Expand All @@ -32,7 +33,6 @@ require (
github.com/docker/docker v20.10.17+incompatible // indirect
github.com/docker/go-connections v0.4.0 // indirect
github.com/docker/go-units v0.5.0 // indirect
github.com/go-logr/logr v1.2.2 // indirect
github.com/gofiber/adaptor/v2 v2.1.25 // indirect
github.com/gogo/protobuf v1.3.2 // indirect
github.com/golang/groupcache v0.0.0-20210331224755-41bb18bfe9da // indirect
Expand Down
21 changes: 5 additions & 16 deletions helpers/utils.go
Original file line number Diff line number Diff line change
Expand Up @@ -3,33 +3,22 @@ package helpers
import (
"bytes"
"fmt"
"reflect"
"strconv"

"github.com/google/uuid"
"reflect"
)

func GetCheckpointID(vbID uint16, groupName string) string {
// _connector:cbgo:groupName:stdout-listener:checkpoint:vbId
return Prefix + groupName + ":checkpoint:" + strconv.Itoa(int(vbID))
}

func GetDcpStreamName(groupName string) string {
streamName := fmt.Sprintf("%s_%s", groupName, uuid.New().String())
return streamName
}

func IsMetadata(data interface{}) bool {
t := reflect.TypeOf(data)

_, exist := t.FieldByName("Key")

if exist {
key := reflect.ValueOf(data).FieldByName("Key").Bytes()
return bytes.HasPrefix(key, []byte(Prefix))
value := reflect.ValueOf(data).FieldByName("Key")
if !value.IsValid() {
return false
}

return false
return bytes.HasPrefix(value.Bytes(), []byte(Prefix))
}

func ChunkSlice[T any](slice []T, chunks int) [][]T {
Expand Down
30 changes: 30 additions & 0 deletions helpers/utils_test.go
Original file line number Diff line number Diff line change
@@ -0,0 +1,30 @@
package helpers

import (
"github.com/stretchr/testify/assert"
"testing"
)

func TestIsMetadata_ReturnsTrue_WhenStructHasKeyPrefix(t *testing.T) {
type ts struct {
Key []byte
}

testData := ts{
Key: []byte(Prefix + "test"),
}

assert.True(t, IsMetadata(testData))
}

func TestIsMetadata_ReturnsFalse_WhenStructHasNoKeyPrefix(t *testing.T) {
type ts struct {
X []byte
}

testData := ts{
X: []byte(Prefix + "test"),
}

assert.False(t, IsMetadata(testData))
}
31 changes: 19 additions & 12 deletions model/identity.go → identity/identity.go
Original file line number Diff line number Diff line change
@@ -1,6 +1,9 @@
package model
package identity

import "encoding/json"
import (
"encoding/json"
"os"
)

type Identity struct {
IP string
Expand All @@ -16,20 +19,24 @@ func (k *Identity) String() string {
return string(str)
}

func (k *Identity) LoadFromString(str string) {
err := json.Unmarshal([]byte(str), k)
if err != nil {
panic(err)
}
}

func (k *Identity) Equal(other *Identity) bool {
return k.IP == other.IP && k.Name == other.Name
}

func NewIdentityFromStr(str string) *Identity {
identity := &Identity{}
identity.LoadFromString(str)
var identity Identity

err := json.Unmarshal([]byte(str), &identity)
if err != nil {
panic(err)
}

return identity
return &identity
}

func NewIdentityFromEnv() *Identity {
return &Identity{
IP: os.Getenv("POD_IP"),
Name: os.Getenv("POD_NAME"),
}
}
2 changes: 1 addition & 1 deletion kubernetes/client.go
Original file line number Diff line number Diff line change
Expand Up @@ -2,8 +2,8 @@ package kubernetes

import (
"context"
dcpModel "github.com/Trendyol/go-dcp-client/identity"

dcpModel "github.com/Trendyol/go-dcp-client/model"
"github.com/go-logr/logr"
metaV1 "k8s.io/apimachinery/pkg/apis/meta/v1"
"k8s.io/apimachinery/pkg/types"
Expand Down
19 changes: 14 additions & 5 deletions kubernetes/leaderelector/leader_elector.go
Original file line number Diff line number Diff line change
Expand Up @@ -3,22 +3,31 @@ package leaderelector
import (
"context"
"fmt"
dcpModel "github.com/Trendyol/go-dcp-client/identity"
"log"
"time"

"github.com/Trendyol/go-dcp-client/helpers"
"github.com/Trendyol/go-dcp-client/kubernetes"
godcpclient "github.com/Trendyol/go-dcp-client/leaderelector"
dcpModel "github.com/Trendyol/go-dcp-client/model"
metaV1 "k8s.io/apimachinery/pkg/apis/meta/v1"
"k8s.io/client-go/tools/leaderelection"
"k8s.io/client-go/tools/leaderelection/resourcelock"
)

type LeaderElector interface {
Run(ctx context.Context)
}

type Handler interface {
OnBecomeLeader()
OnResignLeader()
OnBecomeFollower(leaderIdentity *dcpModel.Identity)
}

type leaderElector struct {
client kubernetes.Client
myIdentity *dcpModel.Identity
handler godcpclient.Handler
handler Handler
leaseLockName string
leaseLockNamespace string
}
Expand Down Expand Up @@ -79,8 +88,8 @@ func NewLeaderElector(
client kubernetes.Client,
config helpers.ConfigLeaderElection,
myIdentity *dcpModel.Identity,
handler godcpclient.Handler,
) godcpclient.LeaderElector {
handler Handler,
) LeaderElector {
var leaseLockName string
var leaseLockNamespace string

Expand Down
Loading