Configure Smart Archiving Instance

This topic describes how to set up Cloud or Hybrid Smart Archiving by creating an Archive Artifactory Instance, connecting it to an Active Artifactory Instance, and granting Project Admins permission to create archive policies. The Archive Artifactory Instance stores packages archived from the Active Artifactory Instance. For more information, see Smart Archiving.

This topic includes these tasks:

After the instances are connected, go to Grant Permission to Project Admin.

Configure Cloud Smart Archiving Instance

Use this path when both the Active Artifactory Instance and the Archive Artifactory Instance are SaaS. Create the archive server and associate it with the Active Artifactory Instance in MyJFrog Topology.

To configure a Cloud Smart Archiving instance:

  1. Follow the procedure in Add Servers to Your Cloud Topology.
  2. When you add the server, select Smart Archiving as the deployment type.
  3. In Associated Server, select the Active Artifactory Instance.

Next steps:

Configure Hybrid Smart Archiving Instance

Use this path when the Active Artifactory Instance is self-managed and the Archive Artifactory Instance is SaaS.

Prerequisite: You need an Active Artifactory Instance and a JFrog Enterprise+ Hybrid subscription. Hybrid Smart Archiving is available on the self-managed JFrog Platform from version 7.117.14. Contact your Account Manager to purchase the subscription for the Archive Artifactory Instance.

Provision the Archive Artifactory Instance before you bind it to the Active Artifactory Instance. After the instances are connected, grant Project Admins permission to manage archive policies. Complete the following tasks in order:

  1. Provision the Archive Instance in MyJFrog
  2. Bind Archive Instance
  3. Grant Permission to Project Admin

Provision the Archive Instance in MyJFrog

After you purchase a JFrog Enterprise+ Hybrid subscription, provision the archive instance in MyJFrog.

📘

Note

After a successful purchase, you'll receive an email from JFrog with the subject line Activate Your JFrog Hybrid Subscription.

To provision the archive instance in MyJFrog:

  1. Click Go to MyJFrog in the received email.
  2. Log in to MyJFrog Your Customer Portal with your registered credentials.
  3. In the My JFrog Dashboard, click Topology.
  4. On the Topology page, click Configure Now.
  5. On the Configure JPDs page, go to the Available Smart Archiving Instance (x) section.
  6. In the Archive Name field, enter a meaningful name for the archive instance. The name must follow these conventions:
    • Unique name
    • 3-32 characters long
    • Start with a letter
    • Contain only lowercase letters or numbers
  7. From the Provider list, select the cloud provider.
  8. From the Region list, select the region.
  9. Enter Password and Validate Password. The password must meet these criteria:
    • 8-32 characters long
    • At least one uppercase and one lowercase character
    • At least one number
    • At least one special character
  10. Click Update.

After you enter all required information, the window displays an All Set indicator. The Topology tab shows an indicator that the JPDs are being added and the environment is being updated. This process may take a few minutes.

When the configuration completes:

  • A tree structure displays the Archive Artifactory Instance status as Active.
  • You'll receive an email from JFrog with the subject line Your New JFrog Instance Is Ready.

The Topology page displays the following information for the Archive Artifactory Instance.

FieldDescription
JPD NameThe name of the Archive Artifactory Instance.
TypeThe type of instance.
ProviderThe cloud provider.
RegionThe region where the instance is deployed.
StatusThe status of the instance. Active indicates that the Archive Artifactory Instance is available to bind to the Active Artifactory Instance.
📘

Note

You can't change the instance configuration after it's configured. For changes, contact Customer Success.

Next steps:

Bind Archive Instance

Bind the Archive Artifactory Instance to the Active Artifactory Instance. In the binding window, Live Instance is the Active Artifactory Instance and Cold Instance is the Archive Artifactory Instance.

Use one of these methods:

Bind Archive Instance via UI

Register the Archive Artifactory Instance as a Platform Deployment on the Active Artifactory Instance before you create the binding. For more information, see Register a Platform Deployment.

To bind the archive instance via the UI:

  1. On the Active Artifactory Instance, from Administration, click Topology > Deployment Bindings.

  2. Click the Archive tab.

  3. Click + Add Binding.

  4. Select Archive from the dropdown list.

  5. In the Create Binding window, do the following:

    • From Source JPD (Live Instance), select the Active Artifactory Instance.

    • From Target JPD (Cold Instance), select the Archive Artifactory Instance.

    • Click Apply.

      The summary displays the source and target you selected.

  6. Click Create.

  7. Check the Binding Results.

Next steps:

Bind Archive Instance via API

On the Archive Artifactory Instance, generate a pairing token. On the Active Artifactory Instance, use that token to establish trust. The token expires after 300 seconds, or 5 minutes. The pairing token is used for the API binding. For more information, see Generate Pairing Tokens.

To generate the pairing token in the UI on the Archive Artifactory Instance:

  1. From Administration, click User Management > Access Tokens > Pairing Token.

  2. From Generate Pairing Token, click Cold Storage.

  3. Click Generate.

    The token window displays the token expiration, set by default to 300 seconds, or 5 minutes, the token ID, and the token value, which you can copy by clicking Copy.

To bind the archive instance via the API:

  1. On the Archive Artifactory Instance, execute the following POST request to generate the pairing token:

    curl -u <USERNAME>:<PASSWORD> -X POST https://<ARCHIVE_INSTANCE>/artifactory/api/v1/service_trust/pairing/artifactory-cold

    Where:

    • <USERNAME>: Your Artifactory username
    • <PASSWORD>: Your Artifactory password
    • <ARCHIVE_INSTANCE>: The URL of the Archive Artifactory Instance

    For example:

    curl -u <USERNAME>:<PASSWORD> -X POST https://company.jfrog.io/artifactory/api/v1/service_trust/pairing/artifactory-cold

    Expected output:

    { "pairing_token":"<PAIRING_TOKEN>"}

    Where:

    • <PAIRING_TOKEN>: The pairing token returned from the archive instance
  2. On the Active Artifactory Instance, use the generated pairing token to execute the following PUT request:

    curl -u <USERNAME>:<PASSWORD> -X PUT -H "Content-Type: application/json" -d '{"pairing_token" : "<PAIRING_TOKEN>"}' https://<ACTIVE_INSTANCE>/artifactory/api/v1/service_trust/pairing/artifactory-cold

    Where:

    • <USERNAME>: Your Artifactory username
    • <PASSWORD>: Your Artifactory password
    • <ACTIVE_INSTANCE>: The URL of the Active Artifactory Instance
    • <PAIRING_TOKEN>: The pairing token returned from the archive instance

    For example:

    curl -u <USERNAME>:<PASSWORD> -X PUT -H "Content-Type: application/json" -d '{"pairing_token" : "<PAIRING_TOKEN>"}' https://company.jfrog.io/artifactory/api/v1/service_trust/pairing/artifactory-cold

If the two instances are paired successfully, the request returns the following status:

Trust with service artifactory-cold was established successfully.

Next steps:

Manage Hybrid Smart Archiving Bindings

Use this section after the instances are bound, when you need to remove the deployment binding or re-establish trust. For example, use it when a pairing token was mistakenly revoked.

Revoke the Binding Between the Active and Archive Artifactory Instances

This procedure removes the deployment binding between the Active Artifactory Instance and the Archive Artifactory Instance. It doesn't change the Archive Artifactory Instance to a different instance type. Perform these steps on the Active Artifactory Instance.

📘

Note

You can't remove the binding when the Archive Artifactory Instance is no longer available. For more information, see How to Remove a Cold Storage Binding When the Cold Storage Instance Is No Longer Available.

To revoke the binding between the Active and Archive Artifactory Instances:

  1. From Administration, click Topology > Deployment Bindings, and then click the Archive tab.

  2. Select the checkbox for the bindings you want to remove.

  3. Click the Delete icon.

  4. Click OK to confirm.

    Your action is applied and the results of the unbinding are now displayed.

Re-establish Trust Between the Active and Archive Artifactory Instances

Re-establish trust between the Active Artifactory Instance and the Archive Artifactory Instance after the deployment binding has been revoked, such as when a pairing token was mistakenly revoked.

To re-establish trust between the Active and Archive Artifactory Instances:

  • Follow the same steps performed while binding for the first time as described in Bind Archive Instance.

Grant Permission to Project Admin

Platform Admins can create global archive policies across the JFrog Platform. They can also let Project Admins manage policies only in their project scope. Project Admins can see global policies that affect their projects.

Global Policy: Use for consistent archive policies across multiple projects.

  • Scope: Applies to all packages across the entire Artifactory service.
  • Configuration: Set by Platform Admins at the global level.

Project Policy: Use when a project needs archive rules that differ from the global standard.

  • Scope: Applies to an individual project.
  • Configuration: Set by Project Admins or Platform Admins for that project.

To grant permissions to Project Admins:

  1. From the Administration module, click Projects.

  2. In the Projects screen, select the project where you want to give permissions to the Project Admin.

    The project details appear in read-only mode.

  3. Click Edit Settings on the project details screen.

  4. Go to Project Admins, and then click Manage Resources.

  5. Add the user to the project from the Users tab.

  6. Click Save.

Frequently Asked Questions

This section provides answers to frequently asked questions about configuring and managing Smart Archiving instances.

plusFAQs
Q: How do I configure a Smart Archiving instance?

A: When both instances are SaaS, follow Configure Cloud Smart Archiving Instance. When the Active Artifactory Instance is self-managed and the Archive Artifactory Instance is SaaS, follow Configure Hybrid Smart Archiving Instance.

Q: What is the difference between Cloud and Hybrid Smart Archiving?

A: Cloud Smart Archiving uses SaaS for both the Active Artifactory Instance and the Archive Artifactory Instance. Hybrid Smart Archiving uses a self-managed Active Artifactory Instance and a SaaS Archive Artifactory Instance. For more information, see Configure Hybrid Smart Archiving Instance.

Q: What do I need before configuring Hybrid Smart Archiving?

A: You need an Active Artifactory Instance and a JFrog Enterprise+ Hybrid subscription. Hybrid Smart Archiving is available on the self-managed JFrog Platform from version 7.117.14. For more information, see Configure Hybrid Smart Archiving Instance.

Q: What naming and password rules apply to the archive instance?

A: The archive name must be unique, contain 3-32 lowercase letters or numbers, and start with a letter. The password must contain 8-32 characters, including uppercase, lowercase, numeric, and special characters. For more information, see Provision the Archive Instance in MyJFrog.

Q: How long is a pairing token valid?

A: The pairing token expires after 300 seconds, or 5 minutes. Generate and use the token as described in Bind Archive Instance via API.

Q: What happens if the archive instance is unavailable when I remove a binding?

A: You can't remove the binding when the Archive Artifactory Instance is no longer available. For more information, see Revoke the Binding Between the Active and Archive Artifactory Instances and Re-establish Trust Between the Active and Archive Artifactory Instances.

Q: How do I allow Project Admins to manage archive policies?

A: Add the user to the project through Project Admins > Manage Resources, and then save the project settings. For more information, see Grant Permission to Project Admin.

Related Topics


Did this page help you?