Ecosyste.ms: Awesome

An open API service indexing awesome lists of open source software.

Awesome Lists | Featured Topics | Projects

https://github.com/garethr/snykly

A simple vulnerable Go application used for demonstration purposes.
https://github.com/garethr/snykly

bazel snyk

Last synced: 28 days ago
JSON representation

A simple vulnerable Go application used for demonstration purposes.

Awesome Lists containing this project

README

        

# Snykly

A simple vulnerable Go application used for demonstration purposes.

![Go](https://github.com/garethr/snykly/workflows/Go/badge.svg) ![Snyk](https://github.com/garethr/snykly/workflows/Snyk/badge.svg)

This repository gratuitously uses [Bazel](https://bazel.build/) for the build process. This includes:

* Building and testing the Go application using `go_library`, `go_test` and `go_binary`
* Building and pushing a container image using `container_push`, `container_image`, `container_bundle` and `go_image`
* Deploying to a local Kubernetes cluster using `k8s_object`
* Keeping the Bazel rules up-to-date using `gazelle`

See the [Makefile](Makefile) for usage instructions if you are interested.

You can also use the included `Dockerfile` to build the image from source if you prefer:

```
docker build -t garethr/snykly .
```

And the included Kubernetes deployment file for deploying the application:

```
kubectl apply -f https://raw.githubusercontent.com/garethr/snykly/master/deployment.yaml
```

## Vulnerable?

The application, and the associated image, have a few known vulnerabilities. We can use Snyk to detect them. In this case we're testing the image uploaded to GCR, testing the Go code using GitHub Actions and checking for configuration issues by importing the source repository into Snyk.

![Snykly in Snyk](assets/snyk.png)