Pulse Beta

User guide

How-to guide

TuxCare registry

Give the CLI, your own mirror, and the update bots access to the TuxCare registry of the builds: the registry token, the CLN link, a mirror in Artifactory or Nexus, and Renovate and Dependabot.

Registry token #

Settings › Registry and CLI › Registry token keeps the token of the TuxCare registry. The CLI reads it with the access token of a developer or a CI job: tuxcarectl registry login on a computer, and tuxcarectl registry env in CI. So each person and each pipeline keeps only one secret. You need it only for TuxCare builds.

The section Registry token of the Settings page. It shows who saved the token and when.
Settings › Registry and CLI › Registry token, with a token saved.

Use the TuxCare registry #

Settings › Registry and CLI › Use the TuxCare registry says whether the CLI points the package managers at the TuxCare registry, and whether tuxcarectl auth login writes the registry token into the user files of the package managers. It is on by default. Turn it off when the builds of the workspace use only your own package repositories. When it is off, the CLI gets no registry address and no registry token.

A repository can override the value in both directions: open the repository, select More, and under Use the TuxCare registry select Workspace default, On, or Off. Only an admin can change the value of the workspace. A member or an admin of a repository can change the value of that repository; a viewer and a CI token cannot. The audit log records each change with the old and the new value. See Use the TuxCare registry, or your own repositories.

Settings › Registry and CLI › CLN account links the workspace to your CloudLinux Network (CLN) account, where you buy SecureChain. Pulse then takes the subscription and the registry token of the workspace from that CLN account, with no token to copy. Only an admin of a hosted workspace sees the section. Its button Link a CLN account shows when TuxCare turns the link on for your workspace.

  1. Select Link a CLN account. A page of sc.tuxcare.cloud opens. Sign in there when it asks, then select Continue to CLN.
  2. CLN uses your open CLN session, or asks you to sign in to CLN. Sign in as the owner of the CLN account, or as a sub-login with the role ACC_ADMIN. Pulse refuses each other role.
  3. CLN sends you back, and the workspace opens on this section with the CLN account id, who linked it, and when.

You can also start on the SecureChain page in CLN. Select Open TuxCare Pulse, sign in to Pulse, and choose a workspace you administer. Select Continue to CLN to link it. For a new workspace, select Create workspace, fill in its details, and select Create workspace and continue to CLN.

A registry token for each person and CI token #

Settings › Registry and CLI › A registry token for each person and CI token gives each CLI login and each CI token a registry token of its own, in place of the one shared token of the workspace. Pulse makes each token at your linked CLN account. When a member is disabled or the access of a member ends, a CI token is revoked or expires, or a CLI login signs out, Pulse deletes that token at CLN, and the other tokens keep working. An expiry or an end of an access starts the delete within an hour. No admin has to replace a shared token when a member leaves. Only an admin sees the card, and the mode needs a linked CLN account. Its button Turn on works when TuxCare offers the mode to your workspace, after the release of the TuxCare CLI that keeps a registry token for each login.

  1. Select Turn on. From then on, tuxcarectl auth login, tuxcarectl registry login, and tuxcarectl registry env get a token of their own login or CI token. Pulse never gives the shared token again.
  2. Ask each person to run tuxcarectl registry login again, and change the registry token in your CI variables to the one that tuxcarectl registry env prints in the job. The shared token still works for 7 days.
  3. After the 7 days the card asks you to delete the shared token in the CLN console. Pulse cannot delete it: CLN gives Pulse only the tokens that Pulse made. Then select The shared token is deleted.

The other parts of Settings: Organization (see Organization), Fix deadlines (see Fix deadlines), Host criticality rules (see Criticality), Show the coverage sections in the CLI report (see Coverage sections of the CLI report), Send the failure reports of tuxcarectl and Radar to TuxCare (see Failure reports), and API and MCP access (see Turn the API or MCP on).

Your own mirror: Artifactory or Nexus #

Many companies install packages only through their own repository manager, for example JFrog Artifactory or Sonatype Nexus Repository: a mirror. The mirror can serve the TuxCare builds. Add a remote repository of the TuxCare registry to the mirror (Nexus calls it a proxy repository), and put it first in the group that your package managers use (Artifactory calls the group a virtual repository). The mirror keeps the registry token. Your package managers keep the address of the mirror, and they need no credential of TuxCare.

The address of the TuxCare registry is artifacts.tuxcare.com. Your mirror connects to it, so allow the mirror to reach that host on port 443.

Keep the setting Use the TuxCare registry on. With the setting on, tuxcarectl registry env gives you the registry token, and tuxcarectl registry check reads the hash of each TuxCare build from the TuxCare registry. TuxCare does not publish these hashes in its feed yet. With the setting off, the check cannot compare the build of the mirror with the TuxCare build, and it reports not checked. The same applies to a portal that you install yourself and that names the mirror as its registry: the check does not compare the mirror with itself, so it reports not checked until TuxCare publishes the hashes.

The three rules for each remote repository #

npm, pnpm, Yarn, and Bun #

On Nexus:

  1. Create a repository of the type npm (proxy). Remote storage: https://artifacts.tuxcare.com/npm/. Under HTTP, set the authentication type Username, the user name to the registry token, and the password to x. Set the cache times of the third rule.
  2. Create a repository of the type npm (group), or open the group that you use. Put the new proxy first in the list of members, above the proxy of registry.npmjs.org.
  3. Point the project at the group. In .npmrc: registry=https://nexus.example.com/repository/npm-group/.

On Artifactory:

  1. Create a remote repository of the type npm. URL: https://artifacts.tuxcare.com/npm/. User name: the registry token. Password: x. Set the cache times of the third rule.
  2. Create a virtual repository of the type npm, or open the one that you use. Put the new remote repository above the remote repository of registry.npmjs.org in the list of repositories.
  3. Point the project at the virtual repository. In .npmrc: registry=https://artifactory.example.com/artifactory/api/npm/npm-virtual/.

Use the path /npm/ of the TuxCare registry, not /npm-upstream/: only /npm/ has the TuxCare builds (see the two paths of the registry). Do not add /npm to the address of the mirror: the address of the group is the registry. TuxCare did not measure an npm virtual repository of Artifactory: the free edition of Artifactory serves no npm.

pip, uv, Poetry, PDM, and Pipenv #

  1. Nexus: create a repository of the type pypi (proxy), with the Remote storage https://artifacts.tuxcare.com/pypi/. Nexus then asks https://artifacts.tuxcare.com/pypi/simple/project/ for each project. Artifactory: create a remote repository of the type PyPI with the same URL. Set the user name, the password, and the cache times as for npm.
  2. Put it first in the group (Nexus: pypi (group); Artifactory: a virtual repository of the type PyPI), above the proxy of pypi.org.
  3. Point the tools at the simple index of the group, for example index-url = https://nexus.example.com/repository/pypi-group/simple/ in pip.conf. The address ends in /simple/.

Maven and Gradle #

  1. Nexus: create a repository of the type maven2 (proxy), with the Remote storage https://artifacts.tuxcare.com/maven/. Artifactory: create a remote repository of the type Maven with the same URL. Set the user name, the password, and the cache times as for npm.
  2. Put it first in the group (Nexus: maven2 (group); Artifactory: a virtual repository of the type Maven), above the proxy of Maven Central.
  3. Point Maven at the group with a <mirror> in ~/.m2/settings.xml, and Gradle with a maven { url = uri("…") } entry in repositories.

On Artifactory, delete the cached copies of the public remote repository for the packages that TuxCare rebuilds after you put the remote repository of TuxCare first: a cached copy wins over the order (the second rule). Nexus follows the order alone.

TuxCare measured the order of the Python and Maven groups on Nexus 3.98.1 and Artifactory OSS 7.161.26 with a test server in the place of the TuxCare registry. The free edition of Artifactory serves no PyPI and no npm, so the Python rules rest on Nexus alone. tuxcarectl registry check checks a Python index and a Maven or Gradle mirror (CLI 0.1.86 or later): see Check the mirror.

Check the mirror: registry check #

cd path/to/your/project
tuxcarectl registry check

registry check asks the registry that the files of the project name whether it serves the TuxCare builds. It changes no file. It takes one package of the project that has a TuxCare build at the same version as the public package, and asks the registry for the hash of that version. Then it compares the hash with the hash of the TuxCare build. It asks with your own tools and your own credential for the mirror: npm with the .npmrc for npm, pnpm, Yarn 1, and Bun, Maven with ~/.m2/settings.xml, Gradle with the credentials of the repository, and pip for pip, uv, Poetry, and PDM, with the configuration of pip, ~/.netrc, or the keyring. pip does not read a credential that only uv, Poetry, or PDM holds: when the mirror then refuses pip in such a project, the check reports not checked. The mirror holds the token of TuxCare. Run it after you set up the mirror, and after each change of the group. It prints one block for each package manager:

npm: registry https://nexus.example.com/repository/npm-group/
  ✖ it serves upstream's build of braces@3.0.2, not TuxCare's (sha512-b8um+L1RzM3W…, TuxCare's is sha512-xdS7zoiSHyo3…)
  cause: the group lists the TuxCare remote repository below the public proxy, so the public build wins
  fix: in Nexus or Artifactory, move the remote repository of artifacts.tuxcare.com above the public proxy in the group or the virtual repository, then run tuxcarectl registry check again

A ${NAME} in an .npmrc of the project. npm fills each ${NAME} of an .npmrc with the value of the variable, and puts the value into the request to the registry that the file names. So for npm, pnpm, Yarn 1, and Bun, the check reports not checked and starts no tool when an .npmrc in the project directory or above it holds a ${NAME} reference in a line that is no comment, or names another configuration file (userconfig, globalconfig, or prefix). For pnpm, a pnpm-workspace.yaml with a reference gives the same result. The line names the file and the number of the line. To check such a project, move the line with the reference, for example //host/:_authToken=${NPM_TOKEN}, into your own ~/.npmrc (npm config set writes it). The check does not count your own ~/.npmrc.

An npm registry on plain http of the TuxCare registry host. npm sends the key of a host to each address on that host, also over plain http. So for npm, pnpm, Yarn 1, and Bun, the check does not ask a registry that is http on the host of the TuxCare registry: npm would send each key of that host there in plain text, the key of registry login too. The block is not checked (exit code 2), and tuxcarectl check names the line of the .npmrc as registry-transport-in-project. Use https in that line.

Maven and Gradle run the build of the project. On a Maven or Gradle project, registry check runs the build of the project, as each command does that reads such a project (see A Gradle or Maven project runs its build). The build chooses the repository of the question, and it can read each variable of the job. So run the check on code that you do not trust yet only in a job that holds no secret. The question to your mirror gets no TUXCARE_TOKEN and no TUXCARE_REGISTRY_USER, unless the check knows that the question goes to the TuxCare registry. On Maven, it gives them when the mirror of central is on the TuxCare registry: then a <repository> of the pom that this mirror does not cover is asked in the same run, with the variables. On Gradle, it asks with no such variable first, and asks again with them only when each repository of the first answer is on the TuxCare registry. The build can still read each other variable of the job.

The lineWhat it meansWhat to doExit code
✓ it serves the TuxCare buildThe mirror serves the TuxCare build.Nothing.0
✖ it serves upstream's build, and the cause names the orderThe group has the TuxCare builds, but the proxy of the public registry is above the remote repository of TuxCare. On Maven and Gradle, the cause also names a cached copy of the public remote repository on Artifactory.Move the remote repository of TuxCare above the public proxy (the second rule). On Artifactory, also delete the cached copies of the public remote repository.5
✖ it serves upstream's build, and the cause names no remote repositoryThe group has no TuxCare version: it has no remote repository of TuxCare, or the TuxCare registry refuses the token of that remote repository. A client of the mirror cannot see which of the two it is. On a subscription with no ELS, the cause can also be the order: TuxCare did not measure whether the mirror then lists TuxCare versions, and the cause on the line names the order too.Add the remote repository of the format of the tool at the top of the group (https://artifacts.tuxcare.com/npm/, https://artifacts.tuxcare.com/maven/, or https://artifacts.tuxcare.com/pypi/), with the registry token as the user name, or put the new token into it (the first rule). On a subscription with no ELS, also check the order (the second rule).5
✖, and the cause says that the registry has no copy of the versionThe mirror answers that it does not have the version: no remote repository of TuxCare and no public proxy that holds it, or a refused token.The same as in the row above.5
✖ it did not accept the credential of this machineThe mirror refused your own credential for the mirror. This is not the token of TuxCare.Sign in to the mirror: npm: npm login --registry address of the mirror; Maven: a <server> with the id of the mirror in ~/.m2/settings.xml; Gradle: a credentials block of the repository; pip: ~/.netrc, the keyring, or the index URL. Or ask the administrator of the mirror for read access.5
✖, and the cause says that the files name the public registryThe project installs from the public registry (registry.npmjs.org, registry.yarnpkg.com, Maven Central, the Gradle Plugin Portal, or pypi.org), not from a mirror or the TuxCare registry.Point the files of the project at the mirror, or run tuxcarectl init.5
✖ could not askThe registry did not answer in time, two times, or it gave another error.Run the check again when the registry answers.5
· not checkedThe check could not judge this package manager: the project has no package with such a TuxCare build, the tree did not resolve, the package manager is Yarn 2 or later, Pipenv, or a tool of another ecosystem, the Python files name an index that the check does not judge (for example PyPI beside the mirror, more than one index, or a find-links), the mirror refused pip in a uv, Poetry, or PDM project, an .npmrc of the project holds a ${NAME} reference (above), the files name a registry on plain http of the TuxCare registry host (above), the index serves only the source archive of the version and no wheel, a Gradle build lists no Maven repository, or the check has no TuxCare build to compare with (the setting off, or a portal of your own that names the mirror).Read the reason on the line.2

The exit code is the highest code of the blocks, and 5 is above 2. It is 0 only when the mirror served the TuxCare build to each package manager. With no portal token, or with no registry token in the workspace, the command stops with exit code 3. When the portal does not answer, it stops with exit code 4. The command needs CLI 0.1.85 or later. The check of Maven, Gradle, pip, uv, Poetry, and PDM needs CLI 0.1.86 or later.

Renovate and Dependabot #

An update bot opens pull requests that move your dependencies to newer versions. A TuxCare build has the version of the upstream release with -tuxcare.N added, for example 3.3.1-tuxcare.1. Without a rule, a bot can replace the build with an upstream release that does not have the TuxCare fix. The finding then comes back.

What the bots propose with no rule #

We gave each bot a project with TuxCare builds and no rule. The table shows the update that each bot proposed.

Botnpm: jquery 3.3.1-tuxcare.1Maven: commons-lang3 3.12.0-tuxcare.1
Renovate3.7.1 and 4.0.0: upstream releases3.21.0: an upstream release
Dependabot4.0.0: an upstream release3.14.0-tuxcare.1: a TuxCare build of a later version

Renovate reads -tuxcare.1 as a prerelease (npm) or a qualifier (Maven), and moves to the newest release. Dependabot for Maven stays on TuxCare builds, but it moves to a later version. Dependabot for npm reads the versions from the registry of the project, which has no TuxCare builds, and moves to the newest release.

Renovate #

Add the rule of your package manager to the Renovate configuration of the repository, for example renovate.json. For a repository with npm and Maven projects, put both rules into one file. Renovate updates the other dependencies as before.

From CLI 0.1.73, tuxcarectl init writes the rule for npm and the rule for Maven into renovate.json, and unharden removes them. init and unharden find each rule by its description, so keep the description when you change a rule. A second init does not add a rule again. If your project keeps its Renovate configuration in another file, for example .renovaterc.json or the renovate key of package.json, init does not write renovate.json: Renovate does not run when it finds two configuration files. init then prints the rule, and you add it to your file. With a CLI before 0.1.73, see the steps below for each package manager.

npm (also pnpm, Yarn, and Bun): Renovate opens no pull request for a package on a TuxCare build. Move these packages with tuxcarectl update, for example in a scheduled CI job.

{
  "packageRules": [
    {
      "description": "TuxCare hardened builds: stay in the -tuxcare series, never jump to upstream",
      "matchDatasources": ["npm"],
      "matchCurrentValue": "/-tuxcare\\./",
      "enabled": false
    }
  ]
}

Renovate can find a newer build, but it cannot update the lockfile for it. To update the lockfile, Renovate runs npm install with the registry of the project, /npm-upstream/ (see npm: the two paths of the registry). That path has no TuxCare builds, so npm stops with ETARGET. tuxcarectl update writes the new build and its lockfile line together.

The npm rule of an init before 0.1.73. An init before 0.1.73 wrote a rule with the same description and the keys ignoreUnstable, respectLatest, allowedVersions, and registryUrls in place of enabled. With that rule, Renovate proposes a newer TuxCare build, also of a later version, for example 3.4.1-tuxcare.2 for 3.3.1-tuxcare.1, and the lockfile update of the pull request fails. Run tuxcarectl init of CLI 0.1.73 or later: it replaces that rule with the rule above, and keeps the rest of the file. If you changed that rule, init keeps your rule, and prints the rule above. If you changed that rule, or if you keep a CLI before 0.1.73, replace those four keys with the line "enabled": false yourself, and keep the description.

Maven: a Maven project has no lockfile, so Renovate can move the builds. With this rule, Renovate proposes only a newer TuxCare build of the same version: 3.12.0-tuxcare.2 for 3.12.0-tuxcare.1. It proposes no upstream release and no build of another version. tuxcarectl update moves the builds in the same way. init of CLI 0.1.73 or later writes this rule. With a CLI before 0.1.73, add the rule yourself, and remove it yourself when you stop using TuxCare builds.

{
  "packageRules": [
    {
      "description": "TuxCare builds for Maven: propose only a newer build of the same version",
      "matchDatasources": ["maven"],
      "matchCurrentValue": "/-tuxcare\\./",
      "versioning": "regex:^(?<compatibility>.+)-tuxcare\\.(?<patch>\\d+)$",
      "registryUrls": ["https://artifacts.tuxcare.com/maven/"]
    }
  ]
}

The registry token for Maven. Renovate reads the Maven builds with the registry token, from a hostRules entry. init does not write this entry: when the configuration names a secret that Renovate does not have, Renovate stops for the whole repository. init prints the entry in a note. Do these steps in this order:

  1. Save the token as the Renovate secret TUXCARE_TOKEN. Use the registry token that TuxCare gave you, the token that an admin saves under Settings › Registry and CLI › Registry token. For the Mend Renovate app, save it in the settings of the organization or the repository in the Mend developer portal. For a Renovate that you run yourself, save it in secrets of its configuration. Do not write the token into the file.
  2. Add the hostRules entry to the file that holds the rule. The Maven registry takes the token as the user name and as the password.
{
  "hostRules": [
    {
      "hostType": "maven",
      "matchHost": "artifacts.tuxcare.com",
      "password": "{{ secrets.TUXCARE_TOKEN }}",
      "username": "{{ secrets.TUXCARE_TOKEN }}"
    }
  ]
}

Without the entry, Renovate cannot read the TuxCare builds: it proposes no update for them, and it updates the other Maven dependencies as before.

Dependabot #

Dependabot has no setting that keeps a package on the builds of one version. So keep Dependabot away from the packages on TuxCare builds with an ignore entry for each package, and move these packages with tuxcarectl update, for example in a scheduled CI job. Dependabot updates the other dependencies as before. In our test, Dependabot opened no pull request for a package in the ignore list, for npm and for Maven.

npm: tuxcarectl init writes the TuxCare registry into .github/dependabot.yml, and harden adds an ignore entry for each package that it moves to a TuxCare build. Add the registry token as the Dependabot secret TUXCARE_TOKEN in the settings of the repository. For a project on npm, the file is then:

version: 2
registries:
  tuxcare:
    type: npm-registry
    url: https://artifacts.tuxcare.com/npm
    token: ${{ secrets.TUXCARE_TOKEN }}
  tuxcare-upstream:
    type: npm-registry
    url: https://artifacts.tuxcare.com/npm-upstream
    token: ${{ secrets.TUXCARE_TOKEN }}
updates:
  - package-ecosystem: npm
    directory: /
    registries: [tuxcare, tuxcare-upstream]
    schedule: {interval: weekly}
    # One entry per package `securechain harden` pinned.
    ignore:
      - dependency-name: jquery
      - dependency-name: lodash

Dependabot sends a token only to the URL of its registry entry, so each of the two npm paths has an entry. This is also true for pnpm and Yarn 2 or later. A project that a CLI before 0.1.21 set up for these tools has only the entry tuxcare: the next tuxcarectl init adds the entry tuxcare-upstream.

Maven: from CLI 0.1.74, harden adds an ignore entry for each package on a TuxCare build to each package-ecosystem: maven block of .github/dependabot.yml. Each entry has the comment # securechain harden. harden keeps the entries that you wrote, and writes no registry, no new block, and no new file: without a maven block, Dependabot does not update the Maven project. init writes nothing for Maven into this file. For a project on Maven, the file is then:

version: 2
updates:
  - package-ecosystem: maven
    directory: /
    schedule: {interval: weekly}
    ignore:
      - dependency-name: org.springframework:spring-core
        versions: ["7.x"]
      - dependency-name: org.apache.commons:commons-lang3 # securechain harden

Here the entry for spring-core is your entry, and harden wrote the entry for commons-lang3. harden also puts a comment block at the top of the file. unharden removes only the entries with the comment # securechain harden. tuxcarectl check reports each package on a TuxCare build that has no entry in a maven block (maven-dependabot-ignore). An entry with versions or update-types stops only some updates, so harden adds its own entry beside it.

The entries keep the builds also when Dependabot reads Maven Central: the file needs no TuxCare registry. If your file has a TuxCare registry with replaces-base: true, harden and unharden keep it.

With a CLI before 0.1.74, harden writes nothing for Maven. Add an ignore entry for each package on a TuxCare build yourself, and add an entry each time that harden moves another package to a TuxCare build.

Dependabot security updates may not follow the ignore list. Do not merge a pull request that replaces a -tuxcare version with an upstream release.

Next: CLI commands