Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

JFrog Xray integration #12838

Closed as not planned
coder/registry
#410
Closed as not planned
Labels
docsArea: coder.com/docsuse-caseA novel and interesting way to use Coder
@matifali

Description

@matifali

Context

Coder recently published aguide on how to integrate withJFrog Xray to scan workspace images. That guide usescoder-xray utility which can be deployed to scan all workspaces in a given K8snamespace. This works great but has limitations.

  • Only works for K8s-based workspaces
  • Requires deployingcoder-xray as a service

Suggested solution

Coder makes use ofterraform as the provisioner to create workspaces. This gives Coder flexibility to provide a range of computing, storage, and network resources for any platform with a terraform provider. While researching, I came acrossxray-terraform-provider which can be used to fetch the xray-scan results of an artifact. (Thanks to@alexhung for adding this feature.)

This has the added benefit of enabling the integration of all types of workspaces where the image is being sourced from JFrog Artifactory. (See thisguide on enabling Artifactory integration.)

The result then can be displayed ascoder_metadata resource on the workspace page.

provider"xray" {url="https://jfrt.cdr.dev/xray"access_token="TOKEN"check_license=false}data"xray_artifacts_scan""image_scan" {repo="docker-local"repo_path="/codercom/enterprise-base:local"}locals {vulnerabilities=data.xray_artifacts_scan.image_scan.results[0].sec_issues}resource"coder_metadata""workspace_info" {count=data.coder_workspace.me.start_countresource_id="WORKSPACE_RESOURCE_ID"item {key="Critical"value=local.vulnerabilities.critical  }item {key="High"value=local.vulnerabilities.high  }item {key="Medium"value=local.vulnerabilities.medium  }item {key="Low"value=local.vulnerabilities.low  }}

Which renders as
image

TODO

Metadata

Metadata

Assignees

No one assigned

    Labels

    docsArea: coder.com/docsuse-caseA novel and interesting way to use Coder

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions


      [8]ページ先頭

      ©2009-2025 Movatter.jp