coder icon indicating copy to clipboard operation
coder copied to clipboard

Feature(enterprise): Sonatype Nexus and Nexus Firewall integration

Open michaelbrewer opened this issue 2 years ago • 3 comments

Much like the integration with Coder integration with JFrog, Sonatype integration would give the same seamless developer experience for installing artifacts and scanning them (including the running workspaces).

Enterprise companies would use the entire suite of Sonatype tools to

Screenshot 2024-03-11 at 2 47 11 AM

Feature could include:

  • Automatic authentication to pull artifacts from a Nexus Repo (https://www.sonatype.com/products/sonatype-nexus-repository)
  • Scanning of Workspace containers
  • Scanning of project dependencies (https://www.sonatype.com/products/open-source-security-dependency-management)

I know that currently Nexus Repos don't allow for OIDC like JFrog Artifactory does, but in the short term a guide or a recommendation for a workaround would be great!

michaelbrewer avatar Mar 11 '24 09:03 michaelbrewer

Here are some workarounds,

  1. For automatic authentication, within a template to fetch docker images from a nexus repo, sensitive terraform variables can be used to store the username and password/token of a user which can be used to authenticate with the docker repo.

  2. For configuring the workspaces to also pull artifacts from nexus repositories, the template can make use of the User Token REST API to fetch and inject these to workspaces.

matifali avatar Mar 17 '24 11:03 matifali

For @matifali is not an option, and we would still need to have a user secret stored somewhere.

Would there be an option to have a personal vault in the users profile for secrets?

michaelbrewer avatar Mar 29 '24 15:03 michaelbrewer

Personal vault would be awesome if it was available during workspace creation, too, like secret build pipeline parameters that get added to the environment during pipeline execution but are otherwise not visible. That'd help a lot in dotfiles support to enable connecting to various sources and pulling things in for user-specific environment initialization. "Connect to this private/internal Powershell gallery and pull down the default set of Powershell modules." That sort of thing.

tillig avatar May 09 '24 13:05 tillig

Is there the ability to use this in the offline install mode? For the modules?

veenarm avatar Oct 11 '24 09:10 veenarm