Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
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.
- Host: GitHub
- URL: https://github.com/garethr/snykly
- Owner: garethr
- Created: 2020-03-15T13:03:22.000Z (almost 5 years ago)
- Default Branch: master
- Last Pushed: 2020-09-13T06:45:25.000Z (over 4 years ago)
- Last Synced: 2024-12-11T15:56:16.172Z (about 1 month ago)
- Topics: bazel, snyk
- Language: Starlark
- Homepage:
- Size: 76.2 KB
- Stars: 3
- Watchers: 3
- Forks: 4
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
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)