Skip to content

Software Distribution

The software distribution features of CloudRepo allow you to distribute your software artifacts (SDKs, libraries, etc.) to your customers (subscribers) in a more controlled way than public repositories.

Using CloudRepo, you can grant read only access to one or more of your repositories to specific groups of subscribers. Access is then granted to each subscriber via one or more access keys that you create per subscriber.

This allows you to grant authenticated, read only, access to your private repositories.

Subscribers can only read from the repositories you have assigned to them.

To being using the Software Distribution features of CloudRepo, first login to the Admin Portal as the administrator and select the Software Distribution option from the menu.

Subscribers, with the navigation above it: Subscribers 0, Groups 0 and Access keys.

This opens your Subscribers. The navigation above the page takes you to Groups and to Access keys, and shows how many subscribers and groups you have. It is on each of those three pages.

Software Groups allow the grouping of subscribers to a set of repositories that the group can access.

Get started using the Software Distribution features of CloudRepo by creating your first subscriber group.

To create your first group, click Groups in the navigation above the Subscribers page.

As you have no existing groups, the following screen will appear:

Groups reads No groups yet.

Selecting either of the indicated buttons will bring you to the Create Group screen:

Create a Subscriber Group with enterprise-customers in Group Name.

A subscriber group must have a unique name for your organization. Enter a value of the name in the input field and click Create.

Once the group has been created, you’ll be presented with the Group Overview Page.

The group overview screen allows you to manage the repositories the group has access to along with the subscribers that are members of the group.

Above the group’s name, a trail (Distribution / Groups / the group) takes you back to the list. Under the name, the group’s subscribers and repositories are listed as links, and each one opens its page.

There are two tabs on this screen: Repository Access and Subscribers. In both, a name links to its page (a repository’s name links only if you can open repositories).

Granting access to a repository will allow members of the group to read files from that repository via the private repository URL.

Access is granted to a repository by toggling the Access column in the table:

Group enterprise-customers, Repository Access: maven-releases is switched on.

Now that access has been granted to the repository, you’ll need to add Subscribers to the group.

Select the Subscribers tab to do so. Once you arrive at the Subscribers tab, if you have no subscribers you will be able to click the Manage Subscribers link.

Group Subscribers are Subscribers that you’ve assigned to a group. All subscribers associated with a group will have access to all of the repositories that the group has.

Subscribers can belong to multiple groups and access will be granted based on the union of all associated group permissions.

Add a Subscriber to a Group by toggling the Membership toggle in the list.

Subscribers represent individual users that you wish to grant read only access to one or more of your private repositories.

Navigate to the Subscribers screen. If you haven’t created any subscribers, you will be presented with the following screen. Select either of the indicated buttons to create your first Subscriber.

Subscribers reads No subscribers yet.

At the new subscriber screen, you’ll be prompted for a name. This name must be distinct from all other subscriber names.

Create a Subscriber with northwind-ci in Subscriber Name.

The Subscriber Overview page lets you view and managed the Groups and Access Keys associated with a particular subscriber.

Above the subscriber’s name, a trail (Distribution / Subscribers / the subscriber) takes you back to the list. Under the name, the groups the subscriber is in are listed as links, and each one opens its group.

The overview has two tabs: Group Membership and Access Keys.

The Group Membership table allows you to add a user to one or more groups.

Subscriber northwind-ci, Group Membership: enterprise-customers is switched on.

Adding a subscriber to a group is done by toggling the button next to the group name in the table.

Access Keys are the credentials that your subscribers will use to access your repositories. View and manage the Access Keys associated with a subscriber by selecting the Access Keys tab.

To create a key for the subscriber, click Issue Access Key and choose when it expires: in 90, 180 or 365 days, on a date up to 31 December 9999, or Never expires (the default is 90 days).

Issue Access Key: an expiry date of December 30, 2026, with presets for 90, 180 and 365 days or never.

Once the key is issued, you’ll be shown its Access Key ID and Secret Value, with Copy credentials and the setup for your customer (see Give your customer access).

Access Key Created: the key ID and its secret value, shown once, with a warning to copy it now.

Give these values to your subscriber. They will use these credentials to authenticate against the CloudRepo repository you have assigned to their groups.

The card that shows a new key also holds everything your customer needs to start pulling, filled in with the real values. It shows the same thing after you rotate a key.

  1. Click Copy credentials. It copies the key as the two lines a client asks for: Username:, the Access Key ID, and Password:, the Secret Value.
  2. Choose the Repository your customer pulls from. Only the repositories their subscriber groups grant are listed, and only the clients for that repository’s type are shown.
  3. Pick your customer’s client. Copy each block, or copy the whole message below.
  4. Under Share with your customer, click Copy message. It copies a message ready for an email: what to do, the credentials, and the steps for the client you picked. Include the secret in the message is off by default. Email isn’t private, so send the secret separately. The message shows your customer where to paste it.

The clients, by the type of repository they pull from:

Client Repository type Where the client reads the key
Maven Maven ~/.m2/settings.xml, a server and an active profile’s repository, then chmod 600 ~/.m2/settings.xml
Gradle Maven ~/.gradle/gradle.properties, which credentials(PasswordCredentials) reads, so the build file you commit holds no key, then chmod 600 ~/.gradle/gradle.properties
curl Maven, for any file ~/.netrc, then chmod 600 ~/.netrc
pip PyPI ~/.netrc, then chmod 600 ~/.netrc, with an index URL that holds no credential
Poetry PyPI Poetry’s own variables in your shell; the last sign-in line waits silently for the secret, and nothing shows
npm npm ~/.npmrc: your scope’s registry and the token for it, then chmod 600 ~/.npmrc
Docker Docker docker login asks for the secret at the Password prompt. The key pulls images and cannot push them

The secret is shown only once, so a key’s row offers Connect: the same snippets and message, in a dialog, with PASTE-YOUR-SECRET-HERE where the secret goes. Your customer puts in the secret you gave them. If the secret is lost, rotate the key to get a new one. Each row of Access keys offers Connect too.

Rotate Access Key issues a new key and keeps the old one working for an overlap window you choose (7 days by default), so your subscriber’s builds can switch over. Change Expiry gives an existing key a new expiry without changing the key.

Is there something you’d like to learn more about related to the Software Distribution features of CloudRepo?

If so, please let us know by email to Support.

View as Markdown