Skip to main content

Use Trustnest Software Factory with k8saas

Context & Introduction

Trustnest provides several services such as a Software Factory.

The official documentation of the service is



get an API key

  1. Access to Artifactory
  2. Go to your profile -> Authentication settings
  3. Create a API key

Note: username is your email and password is the API key

Connect Docker Desktop to Trustnest Artifactory


docker login

# use email and API key to login

Understand Artifactory path for docker image URL


  • docker-registry-server:
  • repository: in which repository the docker image is stored into artifactory
  • image-url: Title from Docker Info when a image is selected

Pull image from trustnest Artifactory

# example
docker pull

Push image to trustnest artifactory

# example
docker push

Understand Image naming convention\<\k8saas-or-esaas>/\<subgroup>/\<project-name>[:TAG]

  • artificatory repository
  • docker-internal: repository not public
  • subgroup: optional Group images under a logical set.
  • k8saas-or-esaas: our subfolder to groups k8saas and essaas docker images
  • \<project-name>: distinction between projet

Authenticate kaniko process to Trustnest artifactory

There are 2 ways to provide artifactory credentials to kaniko

  1. Using auth
    echo "{\"auths\":{\"$ARTIFACTORY_REPO\":{\"auth\":\"$ARTIFACTORY_AUTH\"}}}" > /kaniko/.docker/config.json
  2. Using username and password
    echo "{\"auths\":{\"$ARTIFACTORY_REPO\":{\"username\":\"$ARTIFACTORY_USERNAME\",\"password\":\"$ARTIFACTORY_API_KEY\"}}}" > /kaniko/.docker/config.json

Special case: Migration from gitlab registry to artifactory

Convertion examples:


Migrate image from repo

# pull original image
docker pull
# tag with the new repository
docker tag
# push image in the new repository
docker push

Next steps

  • have a look to trustnest software factory dedicated documentation for artifactory here