Skip to content

Software Distribution

CloudRepo’s software distribution lets you distribute software artifacts (SDKs, libraries, etc.) to your customers (subscribers) with more control 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.

If you have no groups yet, you will see this screen:

Groups reads No groups yet.

Click either of the indicated buttons to open the Create Group screen:

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

Each subscriber group needs a unique name in your organization. Enter a name and click Create.

Once the group is created, the Group Overview page opens.

From the Group Overview screen, you can manage which repositories the group can access and which subscribers belong to it.

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 lets group members read files from that repository using its 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.

Once the group has repository access, add subscribers to it.

Open the Subscribers tab. If you have no subscribers yet, click Manage Subscribers.

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 their access is the union of all their groups’ permissions.

Toggle Membership in the list to add a subscriber to the group.

Subscribers are individual users you 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 manage the groups and access keys for a 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 subscribers use to access your repositories. Open the Access Keys tab to view and manage them.

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.

Have questions about Software Distribution in CloudRepo?

Email Support to reach our engineers directly.

View as Markdown