You are viewing an old version of this page. View the current version.

Compare with Current View Page History

« Previous Version 20 Next »

This process was approved by TSC vote on 7/22/20.

The process to objectively assess the security risk of 3rd party open source components or dependencies is outlined with consideration of the legacy way of performing the assessment, as well as the new process discussed within the project during the Hanoi development time frame.

The Process

The process should take into consideration relevant data such as the project's age, popularity / maturity, evidence of security practices, recent commit history, diversity of committers, established CVE practices, or other observable evidence.  In terms of licensing compliance, ideal process should also consider the license associated to the component as well.

Additionally, the ideal process should take into account the following scenarios:

  1. Existing Code (Skeletons in the Closet)
  2. Code in Holding (Analysis of code before it is accepted)
  3. Pull Request with new dependency

Developer Process for Each Use Case

Use CaseProcessToolsApplicability
1.) Existing Code
(Skeletons in the Closet)

Automated scan within build automation via Snyk CLI 

Scans of the published Docker images via Snyk  with notifications to SIR Team members / Snyk Administrators

Working groups should review any issues identified via the build automation tools and address within the context of the working group reviews.

Snyk

Community Bridge Advanced Snyk Reports

Clair

Scan automation occurs within the build - PR merge to master


2.) Code in Holding
(Analysis of code before it is accepted)

Review catalog of approved packages in this wiki.  Compare that list to the list being submitted.  Provide the summary of differences to include the list of new packages and why they are needed.

Complete the paper study for each package. 

See paper study process as written for use case 3.

When considering code that is under consideration for moving into the main EdgeX Foundry Org, out of holding


3.) Pull Request with new dependency

Submitter of a Pull Request (PR) will complete the Pull Request template to include any new changes that introduce dependency changes (e.g. imports or go module dependencies)

The standard Pull Request template includes a question that asks  - "Are there any new imports or modules? If so, what are they used for and why?"

Submitter of the PR will add a dependency label to the pull request.

If the dependency is security related, the submitter will add the security-review label to the PR so a member of the Security WG can help review.

Submitter should include scan results which include consideration of compliance (license) as well as security vulnerability (e.g. CVE) data, that can be reviewed by a Security WG member.

Note: Reviewers will see one of the changed files is go.mod for Go projects.

Run this command at the root of your repo

GO111MODULE=on go list -m all 

GO111MODULE=on go mod graph

For a PR with new dependencies, the submitter of the PR will complete a manual paper study to collect the following data points for review:

  • Total increase in new imports: (count)
    Does the new import introduce additional import dependencies, if so, how many?
    • Ensure that every one of the new dependencies is checked for the same criteria.
  • Releases/Tags: (count)
    • We should avoid new imports that have never had a release and/or tag. How many is too few, this is a judgement call and probably involves also considering how long ago the last release was, and how far apart releases have been done.
  • Contributors: (count)
  • License - what is the license, and is it Apache 2.0 compatible?
  • Stars/Forks/Watchers: (count)
    • These are all indications of how wide-spread the package is used.
  • godoc.org metrics: (count)
    • The individual godoc pages hosted by godocs.org include metrics at the base of the page which indicate how many packages import the package
  • Subjective opinion of the reviewers – at the end of the day, we rely on our reviewers to vet new code. Reviewers should give thought to whether the code is improving our project, whether we'd be better off to implement the functionality ourselves, and at the same time considering whether this new import itself comes with too many dependencies (e.g. go-kit).

    When submitting the PR, complete the PR template and set the labels using both - dependency , security-review (security components only)
  • On approval, notify the working group chair to update the catalog of approved packages if required.



On a Pull Request, whenever there's a new dependency introduced as shown through changes to the go.mod



Approved Go Modules (those in Red are being investigated for replacement - avoid them if possible

  • bitbucket.org/bertimus9/systemstat v0.0.0-20180207000608-0eeff89b0690
  • github.com/armon/circbuf v0.0.0-20150827004946-bbbad097214e
  • github.com/armon/go-metrics v0.0.0-20180917152333-f0300d1749da
  • github.com/armon/go-radix v0.0.0-20180808171621-7fddfc383310
  • github.com/bgentry/speakeasy v0.1.0
  • github.com/BurntSushi/toml v0.3.1
  • github.com/cenkalti/backoff v2.2.1+incompatible
  • github.com/cloudflare/gokey v0.1.0
  • github.com/davecgh/go-spew v1.1.1
  • github.com/dgrijalva/jwt-go v3.2.0+incompatible
  • github.com/diegoholiveira/jsonlogic v1.0.1-0.20200220175622-ab7989be08b9
  • github.com/eclipse/paho.mqtt.golang v1.1.1
  • github.com/eclipse/paho.mqtt.golang v1.2.0
  • github.com/edsrzf/mmap-go v1.0.0
  • github.com/faceterteam/onvif4go v0.4.0
  • github.com/fatih/color v1.7.0
  • github.com/fsnotify/fsnotify v1.4.7
  • github.com/fxamacker/cbor/v2 v2.2.0
  • github.com/globalsign/mgo v0.0.0-20181015135952-eeefdecb41b8
  • github.com/go-kit/kit v0.8.0
  • github.com/golang/mock v1.2.0
  • github.com/golang/protobuf v1.3.2
  • github.com/golang/snappy v0.0.1
  • github.com/go-logfmt/logfmt v0.4.0
  • github.com/gomodule/redigo v2.0.0+incompatible
  • github.com/google/btree v0.0.0-20180813153112-4030bb1f1f0c
  • github.com/google/uuid v1.1.0
  • github.com/google/uuid v1.1.1
  • github.com/go-redis/redis/v7 v7.2.0
  • github.com/gorilla/mux v1.7.1
  • github.com/gorilla/mux v1.7.4
  • github.com/go-stack/stack v1.8.0
  • github.com/hashicorp/consul/api v1.1.0
  • github.com/hashicorp/consul/sdk v0.1.1
  • github.com/hashicorp/errwrap v1.0.0
  • github.com/hashicorp/go-cleanhttp v0.5.1
  • github.com/hashicorp/go-immutable-radix v1.0.0
  • github.com/hashicorp/golang-lru v0.5.0
  • github.com/hashicorp/golang-lru v0.5.1
  • github.com/hashicorp/go-msgpack v0.5.3
  • github.com/hashicorp/go-multierror v1.0.0
  • github.com/hashicorp/go.net v0.0.1
  • github.com/hashicorp/go-rootcerts v1.0.0
  • github.com/hashicorp/go-sockaddr v1.0.0
  • github.com/hashicorp/go-sockaddr v1.0.1
  • github.com/hashicorp/go-syslog v1.0.0
  • github.com/hashicorp/go-uuid v1.0.1
  • github.com/hashicorp/logutils v1.0.0
  • github.com/hashicorp/mdns v1.0.0
  • github.com/hashicorp/memberlist v0.1.3
  • github.com/hashicorp/serf v0.8.2
  • github.com/hpcloud/tail v1.0.0
  • github.com/imdario/mergo v0.3.6
  • github.com/kr/logfmt v0.0.0-20140226030751-b84e30acd515
  • github.com/kr/pretty v0.1.0
  • github.com/kr/pty v1.1.1
  • github.com/kr/text v0.1.0
  • github.com/mattn/go-colorable v0.0.9
  • github.com/mattn/go-isatty v0.0.3
  • github.com/miekg/dns v1.0.14
  • github.com/miekg/dns v1.1.4
  • github.com/mitchellh/cli v1.0.0
  • github.com/mitchellh/consulstructure v0.0.0-20190329231841-56fdc4d2da54
  • github.com/mitchellh/copystructure v1.0.0
  • github.com/mitchellh/go-homedir v1.0.0
  • github.com/mitchellh/go-homedir v1.1.0
  • github.com/mitchellh/go-testing-interface v1.0.0
  • github.com/mitchellh/go-wordwrap v1.0.0
  • github.com/mitchellh/gox v0.4.0
  • github.com/mitchellh/iochan v1.0.0
  • github.com/mitchellh/mapstructure v1.1.2
  • github.com/mitchellh/reflectwalk v1.0.0
  • github.com/OneOfOne/xxhash v1.2.5
  • github.com/OneOfOne/xxhash v1.2.6
  • github.com/onsi/ginkgo v1.10.1
  • github.com/onsi/gomega v1.7.0
  • github.com/pascaldekloe/goe v0.0.0-20180627143212-57f6aae5913c
  • github.com/pebbe/zmq4 v1.0.0
  • github.com/pelletier/go-toml v1.2.0
  • github.com/pkg/errors v0.8.1
  • github.com/pmezard/go-difflib v1.0.0
  • github.com/posener/complete v1.1.1
  • github.com/remyoudompheng/bigfft v0.0.0-20190321074620-2f0d2b0e0001
  • github.com/robfig/cron v0.0.0-20180505203441-b41be1df6967
  • github.com/ryanuber/columnize v0.0.0-20160712163229-9b3edd62028f
  • github.com/ryanuber/columnize v2.1.0+incompatible
  • github.com/sean-/seed v0.0.0-20170313163322-e2103e2c3529
  • github.com/soniah/gosnmp v1.21.0
  • github.com/spf13/cast v1.3.0
  • github.com/stretchr/objx v0.1.0
  • github.com/stretchr/objx v0.2.0
  • github.com/stretchr/testify v1.5.1
  • github.com/stretchr/testify v1.6.1
  • github.com/x448/float16 v0.8.4
  • golang.org/x/crypto v0.0.0-20181029021203-45a5f77698d3
  • golang.org/x/crypto v0.0.0-20190308221718-c2843e01d9a2
  • golang.org/x/crypto v0.0.0-20190701094942-4def268fd1a4
  • golang.org/x/crypto v0.0.0-20190923035154-9ee001bba392
  • golang.org/x/net v0.0.0-20181201002055-351d144fa1fc
  • golang.org/x/net v0.0.0-20190213061140-3a22650c66bd
  • golang.org/x/net v0.0.0-20190228165749-92fc7df08ae7
  • golang.org/x/net v0.0.0-20190921015927-1a5e07d1ff72
  • golang.org/x/net v0.0.0-20191209160850-c0dbc17a3553
  • golang.org/x/sync v0.0.0-20181221193216-37e7f081c4d4
  • golang.org/x/sync v0.0.0-20190911185100-cd5d95a43a6e
  • golang.org/x/sys v0.0.0-20181026203630-95b1ffbd15a5
  • golang.org/x/sys v0.0.0-20190411185658-b44545bcd369
  • golang.org/x/sys v0.0.0-20190922100055-0a153f010e69
  • golang.org/x/sys v0.0.0-20191010194322-b09406accb47
  • golang.org/x/text v0.3.0
  • golang.org/x/text v0.3.2
  • golang.org/x/tools v0.0.0-20180917221912-90fa682c2a6e
  • gopkg.in/check.v1 v0.0.0-20161208181325-20d25e280405
  • gopkg.in/check.v1 v1.0.0-20180628173108-788fd7840127
  • gopkg.in/check.v1 v1.0.0-20190902080502-41f04d3bba15
  • gopkg.in/eapache/queue.v1 v1.1.0
  • gopkg.in/fsnotify.v1 v1.4.7
  • gopkg.in/mgo.v2 v2.0.0-20180705113604-9856a29383ce
  • gopkg.in/tomb.v1 v1.0.0-20141024135613-dd632973f1e7
  • gopkg.in/yaml.v2 v2.2.8
  • gopkg.in/yaml.v3 v3.0.0-20200313102051-9f266ea9e77c
  • modernc.org/b v1.0.0
  • modernc.org/db v1.0.0
  • modernc.org/fileutil v1.0.0
  • modernc.org/file v1.0.0
  • modernc.org/golex v1.0.0
  • modernc.org/internal v1.0.0
  • modernc.org/lldb v1.0.0
  • modernc.org/mathutil v1.0.0
  • modernc.org/ql v1.0.0
  • modernc.org/sortutil v1.0.0
  • modernc.org/strutil v1.0.0
  • modernc.org/zappy v1.0.0

Explore Documentation: Issue-1947



  • No labels