Configure Platform Federation

This page explains how to plan a JFrog Platform Federation, prepare member sites, and create the Platform Federation that syncs those sites into a single distributed workspace.

Plan the Federated Workspace

Multisite Pain Points and Desired Workflows

Review your JFrog deployment and identify sites to include in the Platform Federation. Look for:

  • Patterns of frequent manual updates between sites.

  • Sites that would most benefit from a uniform workspace.

Consider each site’s purpose in your Software Development Lifecycle (SDLC), its geographical location, and the teams it supports. Ask yourself:

  • What current operations generate frequent manual updates between sites?

  • Where would rapid deployment of new sites benefit your organization?

  • Which important cross-site collaboration workflows have you delayed due to complex deployment and admin overhead?

Changes to Current Federation Services

Platform Federation absorbs existing federations. Consider the following changes after Platform Federation:

  • Existing Access Federations are replaced by uniform Access sync on all member sites of the Platform Federation.

  • On SaaS sites, individual Federated Repositories are replaced by repository provisioning across the Platform Federation based on Stage-site mapping. You can define a federated repository only among sites outside the Platform Federation.

Define Global Stages for the Federated Workspace

Currently, repository provisioning is available only on SaaS sites.

Platform Federation uses global stages to automatically provision and synchronize repositories assigned to a stage on all sites that support that stage. See Stage-mapped Repository Provisioning.

Typically stage mapping is an iterative process. To begin planning:

  • Review your current use of Stages to manage repositories.
  • Review the sites that you identified as candidates for Platform Federation, and their functions in your SDLC workflow.

Even if you already use Stages to define repository scope or categorize sites, we strongly recommend that you develop a set of global stages that are used exclusively for repository provisioning.

Prepare Sites to Join the Platform Federation

To prepare sites to join the Platform Federation:

  1. Choose the sites in your subscription that you want to add to the Platform Federation.

    • Sites must be part of an Enterprise+ subscription.
    • Currently, a Platform Federation can contain only SaaS or only Self-managed sites.
    • Edge Nodes are not supported.
    • Include your subscription's Main site that runs Mission Control. In Self-managed deployments you may need to install Mission Control to create a Main site.
  2. Identify the Main site. It’s the site that runs Administration > Topology > JPD Services. You define and manage the Platform Federation on this site.

    On the JPD Services page, verify that all candidate sites for Federation are registered in the Main site.

    • SaaS sites are registered in the Main SaaS site by default.
    • In self-managed deployments, register other Self-managed sites that you want to include in the Federation.
  3. Establish a Circle of Trust among all sites. JFrog automatically configures a Circle of Trust for all SaaS sites in the subscription. If necessary, configure trust for Self-managed sites.

Configure a Platform Federation

Use this procedure to define a new Platform Federation, or to modify an existing Platform Federation.

You must be a Platform Admin to perform this procedure.

During initial creation of the Platform Federation, all member sites of the Platform Federation must be live and connected.

To configure a Platform Federation using the Platform Administration interface:

  1. Log in to the Main site you used to Prepare Sites to Join the Platform Federation.

  2. Go to Administration > Topology > Platform Federation. Do one of the following:

    • For a new Federation, click Create Platform Federation.
    • To modify an existing Federation, click Edit Federation.
  3. In the Member Sites step, do the following:

    • Enter a name and an optional description of the Platform Federation.
    • Select sites to include in the Federation. The Main site on which you define the Federation is always included, and can’t be removed.

    When you first define the Platform Federation, JFrog generates a unique Federation Key identifier. You cannot modify this value.

    When you edit an existing Federation, you can modify the Name and Description fields, and add or remove member sites.

  4. Click Next. The Stage Mapping step lists the member sites you selected. Expand a site to map global stages to that site. All stages defined on the Main site are available for mapping.

    You can skip stage mapping for some or all sites, and edit the Federation later to map stages.

    Currently, repository provisioning is available only on SaaS sites. Skip this step for Self-managed federations.

  5. Click Next. The Review & Create step lists the following definitions:

    • The Global entities that are synced uniformly across member sites.

    • (SaaS only) Member sites and the stage-to-site mappings that dictate repository provisioning.

      Review before you create the Federation.

    Click Create Federation (when editing the federation, click Update).

  6. Currently, Xray policies and security settings are not federated. A popup alert reminds you to copy Xray security settings to all member sites. Click Continue to create or update the Platform Federation.

  7. The Grid federation service checks each site for conflicts that block Platform Federation:

    • Sites have an Access Federation or Repository Federation.
    • Existing repositories conflict with Stage-to-Site Mapping.
    • Duplicate repository keys appear on member sites.

    If conflicts are found, Resolve Repository and Site Mapping Conflicts, then rerun the Platform Federation wizard.

    The Grid service creates the Platform Federation and configures topology settings on each site. The Grid service then copies synced entities between sites. See The Multisite System of Record.

    After initial sync the Platform Federation table displays the member sites of the Platform Federation, their mapped stages, and their current sync status.

Resolve Repository and Site Mapping Conflicts

During definition of the Platform Federation, the Grid service compares sites and identifies conflicts that block Platform Federation:

  • Sites have an Access Federation or Repository Federation.
  • Duplicate repository keys appear on member sites.
  • (SaaS only) Existing repositories conflict with Stage-to-Site Mapping.

To complete creation of the Platform Federation, you must resolve these conflicts.

Existing Federation Services

When you create a Platform Federation:

  • Existing Access Federations are replaced by uniform Access sync on all member sites of the Platform Federation.

  • Individual Federated Repositories are replaced by repository provisioning across the Platform Federation based on Stage-site mapping.

If a candidate site still participates in another federation service, the Platform Federation process fails and reports this conflict. You must uncouple the site from existing federations before it can join the Platform Federation.

Duplicate Repository Keys

Platform Federation will automatically create repository federations - but initially there must be a single instance of each repository key across the sites of the Platform Federation. To resolve these conflict messages, consider their cause:

  • If you previously used federated repositories or manual scripts to duplicate repositories across sites, the identical repositories are flagged as an error.

    To resolve these conflicts delete and let Platform Federation re-federate. You preserve the most up-to-date instance of the repository, and delete all other instances. When you repeat Platform Federation, the Grid re-federates the preserved repository.

    Before you delete, note the sites of the old repository federation. When you repeat Platform Federation, you recreate that provisioning pattern when you map sites to the repository’s stages.

  • Identically named repositories on different sites may actually be unique.

    To resolve these conflicts, rename one repository. You create a repository with a different repository key, move all artifacts to the new repository, and delete the original repository. This effectively renames one repository.

If you cannot block updates while the Grid service creates the Platform Federation, you may need to re-apply configurations.

Site Mapping Conflicts

Currently, repository provisioning is available only on SaaS sites.

Automated repository provisioning relies on unambiguous, consistent adherence to Stage-site mapping rules. It is easy to create a situation where a repository is present on a site, but should not be on that site based on stage-site mapping rules. When you create or modify the Platform Federation, federation services test the stage-site mapping against the actual sites, and report conflicts.

  • When your workflow requires the repository on that site, correct the stage-site mapping. If there is a stage-site mapping that already provisions the topology needed for this repository, assign that stage to the repository. You may need to create a stage-site mapping to provision the repository.
  • If the conflict reports a superfluous repository, remove it from the site.

Edit an Existing Platform Federation

When you use the Platform Federation wizard to edit an existing Platform Federation:

  • Global Stages defined on other member sites are available for Stage-Site mapping, including stages defined on a site you add during editing.
  • If you remove sites from a Platform Federation, they no longer appear in the Platform Federation table. The Global Entities and repositories synced by the Platform Federation are not erased or rolled back, but Platform Federation no longer updates them on the removed site. The site continues to operate with its most recent Global Entities and its local repositories.

Did this page help you?