Collaborating Groups and Shared Workflow - AMD SEV-SNP Applications

Prev Next

1.0 Introduction

This article describes the steps to create collaborating groups in Fortanix Confidential Computing Manager (CCM) for Advanced Micro Devices (AMD) Secure Encrypted Virtualization (SEV) - Secure Nested Paging (SNP) and run the application on AMD SEV-SNP.

A Collaborating Group in Fortanix CCM represents a collaboration established between two groups that belong to different Fortanix CCM accounts. Through this collaboration, the participating groups can securely share selected resources and work together on common workflows.

This document explains the end-to-end collaboration process, including creating collaborating groups, sharing collaboration tokens, building shared workflows, approving workflows, and managing collaboration lifecycle events.

Figure 1: Collaborating groups and shared workflows

2.0 Collaborating Groups for AMD SEV Applications

A Fortanix CCM collaborating group is created when groups from different Fortanix CCM accounts establish a collaboration. Through this collaboration, the groups can share resources and participate together in workflows.

In a collaborating setup:

  • One group acts as the consumer group and initiates the collaboration.

  • One group acts as the publisher group and participates by contributing permitted resources.

The collaboration is represented and managed through shared workflows, which enforce controlled interaction, approval sequencing, and access restrictions between participating groups.

This section describes collaboration between two Fortanix CCM groups from different Fortanix CCM accounts using a workflow that includes an AMD SEV-SNP application. In this example, one group acts as the consumer group and another group acts as the publisher group.

3.0 Create Consumer Group (Enterprise)

This section describes how to create a consumer group that participates in a workflow collaboration with a publisher group.

A Consumer Group is created by an enterprise that wants to run a proprietary model on-premises.

In this example, a consumer group is created in a Fortanix CCM account and initiates collaboration with a publisher group using a shared workflow. The consumer group adds an AMD SEV-ANP placeholder application to the workflow, enabling the publisher group to contribute the application to the shared workflow.

Perform the following steps to create a consumer group for workflow-based collaboration:

  1. Log in to Fortanix CCM and create a new account, for example, DemoA, or log in to an existing account. For more information on how to log in and create a new Fortanix CCM account, refer to the Logging Inguide.

  2. In the CCM user interface (UI) left navigation panel, click the Groups menu item, and on the Groups page, click + ADD GROUP to create the consumer group or use an existing group.

    Figure 2: Create consumer group

  3. On the GROUP form, do the following: 

    1. Name: Enter a name for the group. For example, DemoA-Group1

    2. Description (optional): Enter a short description for the group. 

    3. Labels (optional): Add one or more key–value labels to the group. 

  4. Click SAVE to create the consumer group. 

    Figure 3: Consumer group created

4.0 Create Publisher Group (Model Owner)

This section describes how to create a publisher group that participates in workflow collaboration with a consumer group.

A Publisher Group is established by the model owner to securely share their proprietary model with enterprises without disclosing the model, model weights, or other configurations.

In this example, a publisher group is created in a different Fortanix CCM account and contributes the application to a shared workflow initiated by the consumer group.

NOTE

To collaborate with resources in the consumer group, you must create an additional group in a different Fortanix CCM account, as collaboration between groups within the same account is not supported.

  1. Create a new Fortanix CCM account, for example DemoB, or log in to an existing account if it already exists. For steps to log in and create a new Fortanix CCM account, refer to Logging In

  2. Repeat Steps 2 to 4 in Section 3.0: Create Consumer Group (Enterprise), to create a new publisher group, for example DemoB-Group2 or use an existing group.

Figure 4: Create publisher group

5.0 Generate Collaboration Token

To initiate collaboration, a consumer group must authenticate itself to a publisher group. Without authentication, a publisher group could receive unsolicited or spam collaboration requests from another consumer group. To prevent this, the publisher group administrator generates a “collaboration token”, which serves as proof of identity for collaboration requests.

When a consumer group requests collaboration, it includes the collaboration token provided by the publisher group in the request. The publisher group then verifies the token and authenticates the consumer group before allowing the collaboration to proceed.

Perform the following steps to generate the collaboration token:

  1. Go to the detailed view of DemoB-Group2 in the DemoB account.

  2. Click COLLABORATE to generate a new collaboration token.

    Figure 5: Collaborate

  3. On the COLLABORATE dialog box, click + GENERATE to generate the token.

    Figure 6: Generate token

  4. Click COPY to copy the collaboration token.  

    You must share this collaboration token with the consumer group administrator to enable collaboration. The method used to share the collaboration token is outside the scope of this guide.

    Figure 7: Copy collaboration token

  5. Click SHOW TOKENS to view the previously generated tokens.

    Figure 8: View token

6.0 Create Collaborating Group

This section explains the collaboration process between the consumer group and the publisher group using the collaboration token shared by the publisher group.

Perform the following steps to create a collaborating group for workflow collaboration:

  1. Open the detailed view of the consumer group, for example DemoA-Group1, in the DemoA account.

  2. Click ACCEPT TOKEN.

    Figure 9: Share group

  3. In the ACCEPT TOKEN dialog box, paste the collaboration token shared by the publisher group in Section 5.0: Generate Collaboration Token.

  4. Click PROCEED to initiate the collaboration request.

    Figure 10: Enter collaborating token

  5. Navigate to Groups and select the COLLABORATION GROUPS tab.

  6. On the CONSUMER tab, verify that the consumer group DemoA-Group1 appears associated with the publisher group DemoB-Group2.

    Figure 11: Publisher group association

  7. In the Status column, observe that the collaboration request is in the Pending state.

    NOTE

    The publisher group must accept the collaboration request before collaboration can begin.

  8. Go to the publisher group (DemoB-Group2) and select the COLLABORATION GROUPS tab.

  9. On the PUBLISHER tab, verify that DemoB-Group2 shows an association request from DemoA-Group1.

    Figure 12: Publisher group association

  10. Click the overflow menu for the publisher group row and click ACCEPT to approve the collaboration request.

    Figure 13: Approve collaboration

  11. Verify that the collaboration status updates to Accepted in the publisher group view.

    Figure 14: Status accepted

  12. Return to the consumer group account (DemoA) and confirm that the collaboration status for the consumer group (DemoA-Group1) also shows Accepted.

    Figure 15: Status accepted

7.0 Add Application Configuration

NOTE

This step must be performed by the publisher group (Model Owner).

Create an application configuration to associate the application image with a group and enable its participation in the workflow.

Perform the following steps to create application configuration:

  1. Go to the detailed view of the application image that was automatically created using the Fortanix CVM Build Tool in the FORTANIX CCM Create and Run SEV-SNP Application guide.

  2. Go to the CONFIGURATION tab and then click + ADD CONFIGURATION to add a new configuration. 

    Figure 16: Add app configuration

  3. In the APPLICATION CONFIGURATION dialog box, do the following:  

    1. Select Add new configuration.

    2. Image: Select the application image for which the configuration will be created.

    3. Configuration name: Enter a name for the configuration.

    4. Group: Select the required group from the drop down menu to associate the configuration with that group. For example, DemoB-Group2.

    5. Description (optional): Enter a description for the configuration.

    6. Ports: Keep this field empty.

    7. Labels: Add any meaningful key value pair to identify your application configuration.

    8. Configuration items: Keep this field empty.  

    Figure 17: Application configuration form

  4. Click SAVE to save the configuration.

    The application configuration is created successfully.

    Figure 18: App configuration added

8.0 Create Shared Workflow

After creating the collaborating groups, the consumer group administrator initiates collaboration by creating a shared workflow.

In the shared workflow, the consumer group administrator creates a placeholder node. The placeholder node is assigned to the publisher group, and only administrators of that publisher group can populate the placeholder nodes assigned to them.

Perform the following steps as a consumer group administrator to create a shared workflow:

  1. In the DemoA account, click the Workflows menu item in the CCM UI left navigation panel.  

  2. On the Workflows page, click + ADD WORKFLOW to create a new workflow.

    Figure 19: Select workflow

  3. In the WORKFLOW form, do the following:

    1. Name: Enter a name for the workflow.

    2. Group: Select the consumer group for the shared workflow. If you do not select a group, Fortanix CCM uses the default group.

    3. Click SAVE to create the shared workflow.

    Figure 20: Create shared workflow

  4. Add the application placeholder node to the workflow and assign it to the publisher group, DemoB-Group2.

    Figure 21: Add placeholder node

    Figure 22: Assign application to publisher group

    Figure 23: Add application to workflow graph

  5. Click SAVE AS DRAFT to save the workflow.

Saving the workflow as a draft makes it available to the publisher group, allowing the administrator of the assigned publisher group to access the draft workflow in its respective account and populate the placeholder node assigned to it.

8.1 Fill the Placeholder Nodes with Actual Data

After the consumer group creates the shared workflow and assigns placeholder nodes, members of the publisher groups populate the placeholder nodes with their own resources.

Each publisher group can update only the placeholder node assigned to its group. Publisher group administrators cannot add, remove, or modify other nodes in the workflow.

Perform the following steps as a publisher group administrator:

  1. Log in to the DemoB account and click the Workflows menu item in the Fortanix CCM left navigation panel.

  2. On the Workflows page, click the Draft menu item. The draft shared workflow created by the consumer group appears in the list.

  3. Select the workflow and locate the placeholder node assigned to the publisher group DemoB-Group2.

    Figure 24: Fill placeholder nodes with data

  4. Click the placeholder node to add the application.
    In the APPLICATION form, select the AMD SEV-SNP application image that was automatically created when creating a CVM image using the Fortanix CVM Build Tool in the Create and Run SEV-SNP Application guide.

    Figure 25: Select dataset – publisher group

  5. Click SAVE DRAFT to save the updated shared workflow.

    Figure 26: Save draft - publisher group

After the publisher group populates its assigned placeholder node, the shared workflow is complete and ready for approval.

8.2 Request Approval to Create Approved Workflow

After the publisher group fills its assigned placeholder nodes, the shared workflow is ready for approval.

The publisher group must review and approve the workflow before the consumer group can complete the approval process.

NOTE

The consumer group cannot approve the workflow until the publisher group approves it. This ensures that the publisher group explicitly consents to the sharing of data.

Perform the following steps to request and approve the shared workflow:

  1. Log in to the DemoA account as a consumer group administrator.

  2. In the Fortanix CCM left navigation panel, click the Workflows menu item.

  3. Click the Draft menu item and select the shared workflow for which you want to request approval.

  4. Click SAVE AND REQUEST APPROVAL to send the approval request to all the publisher groups.

    Figure 27: Request shared workflow approval – consumer group

    A confirmation dialog appears. Click REQUEST APPROVAL to submit the approval request to the publisher groups.

    Figure 28: Confirm action

    The workflow moves to the Pending state.

  5. Go to the Pending tab to view workflows awaiting approval.

    Figure 29: Pending approval – consumer group

  6. Log in to the DemoB account as a publisher group administrator. Navigate to the Workflows menu item and click the Pending menu item.

  7. Select the shared workflow from the list and click REQUEST APPROVAL for the shared workflow.

    Figure 30: Approve the workflow – publisher group

  8. In the APPROVAL REQUEST – CREATE WORKFLOW dialog box, click APPROVE.

    Figure 31: Approve workflow – publisher group

  9. After the publisher group approves the workflow, log in to the DemoA account as the consumer group administrator and approve the workflow to complete the approval process.

    Figure 32: Approve request – consumer group

    Figure 33: Approve workflow - consumer group

  10. The workflow now appears in the Approved tab.

    Figure 34: Workflow approved - consumer group

    NOTE

    After a shared workflow reaches the Approved state, it cannot be modified. To make changes, edit the workflow to create a new version using the EDIT WORKFLOW option. After approval, the new version replaces the previous one.

9.0 Run the Shared Workflow

Only the consumer group administrator, who owns the workflow, can run a shared workflow.

The members of the publisher groups cannot run the workflow.

Perform the following steps to run the workflow:

  1. Copy the APPCONFIG_ID value from the workflow application.

    1. Click the workflow application and copy the Runtime configuration hash from the APPLICATION dialog box.

      Figure 35: App config ID

  2. Run the following command to extract the VM image files:

    tar zxvf model-cvm-image.tar.gz

  3. Modify the launch_cvm.sh script:

    1. Add the APPCONFIG_ID value copied in Step 1a.

    NOTE

    Ensure that the launch_cvm.sh script has all the required variables

  4. Run the following command to launch the VM:

    sudo ./launch_cvm.sh

  5. This will start the AMD SEV-SNP application and trigger the Fortanix Attestation Client.

  6. The Publisher (Model Owner) will navigate to the application details view to confirm that:

    1. The image is deployed in Fortanix CCM.

      Figure 36: Image deployed

After the workflow runs, execution logs are available only to the consumer group. The members of the publisher group (model owners) cannot view the workflow execution logs.

10.0 Manage Tokens

10.1 Revoke Token

A collaboration token can be revoked by a publisher group administrator.

Revoking a collaborating token does not affect existing active collaborations between the publisher group and consumer group that were established using that token. Any existing shared workflows continue to function as expected.

Figure 37: Revoke token

10.2 Revoke Status

Perform the following steps to revoke a collaboration between a consumer group and a publisher group:

  1. Navigate to the COLLABORATION GROUPS page.

  2. Locate the collaboration entry you want to revoke.

  3. Click the overflow menu for the corresponding row and select REVOKE from the drop down menu to revoke the collaboration.

You can revoke the collaboration from either the consumer group or the publisher group.

After you revoke the collaboration, the shared workflow cannot progress, and collaboration between the groups stops.

Figure 38: Revoke collaboration status

Fortanix-logo

4.6

star-ratings

As of August 2025