https://github.com/coder/coder-xray
JFrog XRay Integration
https://github.com/coder/coder-xray
Last synced: 15 days ago
JSON representation
JFrog XRay Integration
- Host: GitHub
- URL: https://github.com/coder/coder-xray
- Owner: coder
- License: agpl-3.0
- Created: 2024-01-19T19:51:58.000Z (over 1 year ago)
- Default Branch: main
- Last Pushed: 2025-03-22T11:34:36.000Z (about 1 month ago)
- Last Synced: 2025-03-22T12:26:11.314Z (about 1 month ago)
- Language: Go
- Size: 606 KB
- Stars: 5
- Watchers: 3
- Forks: 1
- Open Issues: 1
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# coder-xray
[](https://github.com/coder/coder-xray/pkgs/container/coder-xray)
[](./LICENSE)- Query Artifactory for image vulnerability on workspace startup.
- Inform users when they are using a vulnerable image.
## Usage
Apply the Helm chart to start monitoring workspaces:
```console
helm repo add coder-xray https://helm.coder.com/coder-xray
--namespace coder \
helm install coder-xray coder-xray/coder-xray \
--set coder.url="https://" \
--set coder.secretName="" \
--set artifactory.url="https://" \
--set artifactory.secretName=""
```For a detailed step by step guide, see the [scanning coder workspaces with xray](https://coder.com/docs/guides/xray-integration) guide.
> **Note**
> For additional customization (such as customizing the image, details on creating a secret, etc.), you can use the
> [values.yaml](https://github.com/coder/coder-xray/blob/main/helm/values.yaml) file directly.### Requirements:
In order to use this service the following is required:
- A Coder API token with _at least_ Template Admin privileges
- An Artifactory token## How?
Kubernetes provides an [informers](https://pkg.go.dev/k8s.io/client-go/informers) API that streams pod and event data from the API server.
`coder-xray` listens for pod creation events with containers that have the `CODER_AGENT_TOKEN` environment
variable set. All matching pods/containers are then queried against the provided Artifactory instance and
any XRay results are then pushed to the provided Coder deployment.