

本文属于机器翻译版本。若本译文内容与英语原文存在差异，则一律以英文原文为准。

# Verified Access 信任数据的第三方信任提供商上下文
<a name="trust-data-third-party-trust"></a>

本节介绍第三方信任提供 AWS Verified Access 商提供的信任数据。

**注意**  
您的信任提供商的上下文键来自您在创建该信任提供商时配置的策略参考名称。例如，如果您将策略参考名称配置为“idp123”，则上下文键将为“context.idp123”。确保在创建策略时使用正确的上下文键。

**Topics**
+ [浏览器扩展](#trust-data-browser)
+ [Jamf](#trust-data-iam-jamf)
+ [CrowdStrike](#trust-data-iam-cs)
+ [JumpCloud](#trust-data-jc)

## 浏览器扩展
<a name="trust-data-browser"></a>

如果您计划将设备信任上下文纳入您的访问策略，则需要Verified Access浏览器扩展程序或其他合作伙伴的浏览器扩展程序。 AWS Verified Access 目前支持 Google Chrome 和 Mozilla Firefox 浏览器。

我们目前支持三个设备信任提供商：Jamf（支持 macOS 设备） CrowdStrike 、（支持 Windows 11 和 Windows 10 设备）和（同时支持 Windows JumpCloud 和 macOS）。
+ 如果您在政策中使用 **Jamf** 信任数据，则您的用户必须从其设备上的 [Chrome 网上应用店](https://chromewebstore.google.com/category/extensions)或 [Firefox 附加组件网站](https://addons.mozilla.org/en-US/firefox/)下载并安装 AWS Verified Access 浏览器扩展程序。
+ 如果您在策略中使用**CrowdStrike**信任数据，则首先您的用户需要安装本[AWS Verified Access 机消息主机](https://d3p8dc6667u8pq.cloudfront.net/WPF/latest/AWS_Verified_Access_Native_Messaging_Host.msi)（直接下载链接）。此组件是从用户设备上运行的 CrowdStrike 代理获取信任数据所必需的。然后，安装此组件后，用户必须在其设备上安装 [Chrome 网上应用商店](https://chromewebstore.google.com/category/extensions)或 [Firefox 附加组件网站](https://addons.mozilla.org/en-US/firefox/)上的 AWS Verified Access 浏览器扩展程序。
+ 如果您正在使用 **JumpCloud**，则您的用户必须在其设备上安装 [Chrome 网上应用店](https://chromewebstore.google.com/category/extensions)或 [Firefox 附加组件网站](https://addons.mozilla.org/en-US/firefox/)上的 JumpCloud 浏览器扩展程序。

## Jamf
<a name="trust-data-iam-jamf"></a>

Jamf 是第三方信任提供商。评估策略时，如果将 Jamf 定义为信任提供商，Verified Access 会将信任数据包含在 Cedar 上下文中、您在信任提供商配置中指定为“策略参考名称”的键下。如果您愿意，可以编写根据信任数据进行评估的策略。以下 [JSON 架构](https://json-schema.org/)显示了评估中包含的数据。

有关将 Jamf 与 Verified Access 配合使用的更多信息，请参阅 Jamf 网站上的 [Integrating AWS Verified Access with Jamf Device Identity](https://docs.jamf.com/technical-papers/jamf-security/aws-verified-access/index.html)。

```
{
    "title": "Jamf device data specification",
    "type": "object",
    "properties": {
        "iss": {
            "type": "string",
            "description": "\"Issuer\" - the Jamf customer ID"
        },
        "iat": {
            "type": "integer",
            "description": "\"Issued at Time\" - a unixtime (seconds since epoch) value of when the device information data was generated"
        },
        "exp": {
            "type": "integer",
            "description": "\"Expiration\" - a unixtime (seconds since epoch) value for when this device information is no longer valid"
        },
        "sub": {
            "type": "string",
            "description": "\"Subject\" - either the hardware UID or a value generated based on device location"
        },
        "groups": {
            "type": "array",
            "description": "Group IDs from UEM connector sync",
            "items": {
                "type": "string"
            }
        },
        "risk": {
            "type": "string",
            "enum": [
                "HIGH",
                "MEDIUM",
                "LOW",
                "SECURE",
                "NOT_APPLICABLE"
            ],
            "description": "a Jamf-reported level of risk associated with the device."
        },
        "osv": {
            "type": "string",
            "description": "The version of the OS that is currently running, in Apple version number format (https://support.apple.com/en-us/HT201260)"
        }
    }
}
```

以下是根据 Jamf 提供的信任数据进行评估的策略示例。

```
permit(principal, action, resource) when {
   context.jamf.risk == "LOW"
};
```

Cedar 提供了一个有用的 `.contains()` 函数来帮助处理像 Jamf 风险评分这样的枚举。

```
permit(principal, action, resource) when {
   ["LOW", "SECURE"].contains(context.jamf.risk)
};
```

## CrowdStrike
<a name="trust-data-iam-cs"></a>

CrowdStrike 是第三方信任提供商。评估策略时，如果您定义 CrowdStrike 为信任提供者，则 Verified Access 会将 Cedar 上下文中的信任数据包含在信任提供者配置中指定为 “策略参考名称” 的密钥下。如果您愿意，可以编写根据信任数据进行评估的策略。以下 [JSON 架构](https://json-schema.org/)显示了评估中包含的数据。

有关使用已验证访问权限 CrowdStrike 的更多信息，请参阅通过网站[ CrowdStrike 和 AWS Verified Access GitHub 网站保护私有应用程序](https://github.com/CrowdStrike/aws-verified-access/)。

```
{
  "title": "CrowdStrike device data specification",
  "type": "object",
  "properties": {
    "assessment": {
      "type": "object",
      "description": "Data about CrowdStrike's assessment of the device",
      "properties": {
        "overall": {
          "type": "integer",
          "description": "A single metric, between 1-100, that accounts as a weighted average of the OS and and Sensor Config scores"
        },
        "os": {
          "type": "integer",
          "description": "A single metric, between 1-100, that accounts for the OS-specific settings monitored on the host"
        },
        "sensor_config": {
          "type": "integer",
          "description": "A single metric, between 1-100, that accounts for the different sensor policies monitored on the host"
        },
        "version": {
          "type": "string",
          "description": "The version of the scoring algorithm being used"
        }
      }
    },
    "cid": {
      "type": "string",
      "description": "Customer ID (CID) unique to the customer's environment"
    },
    "exp": {
      "type": "integer",
      "description": "unixtime, The expiration time of the token"
    },
    "iat": {
      "type": "integer",
      "description": "unixtime, The issued time of the token"
    },
    "jwk_url": {
      "type": "string",
      "description": "URL that details the JWT signing"
    },
    "platform": {
      "type": "string",
      "enum": ["Windows 10", "Windows 11", "macOS"],
      "description": "Operating system of the endpoint"
    },
    "serial_number": {
      "type": "string",
      "description": "The serial number of the device derived by unique system information"
    },
    "sub": {
      "type": "string",
      "description": "Unique CrowdStrike Agent ID (AID) of machine"
    },
    "typ": {
      "type": "string",
      "enum": ["crowdstrike-zta+jwt"],
      "description": "Generic name for this JWT media. Client MUST reject any other type"
    }
  }
}
```

以下是根据 CrowdStrike 提供的信任数据进行评估的策略示例。

```
permit(principal, action, resource) when {
   context.crowdstrike.assessment.overall > 50
};
```

## JumpCloud
<a name="trust-data-jc"></a>

JumpCloud 是第三方信任提供商。评估策略时，如果您定义 JumpCloud 为信任提供者，则 Verified Access 会将 Cedar 上下文中的信任数据包含在信任提供者配置中指定为 “策略参考名称” 的密钥下。如果您愿意，可以编写根据信任数据进行评估的策略。以下 [JSON 架构](https://json-schema.org/)显示了评估中包含的数据。

有关使用 AWS 已验证访问权限 JumpCloud 的更多信息，请参阅 JumpCloud 网站上的[集成 JumpCloud 和 AWS 已验证访问权限](https://jumpcloud.com/support/integrate-with-aws-verified-access)。

```
{
  "title": "JumpCloud device data specification",
  "type": "object",
  "properties": {
    "device": {
      "type": "object",
      "description": "Properties of the device",
      "properties": {
        "is_managed": {
          "type": "boolean",
          "description": "Boolean to indicate if the device is under management"
        }
      }
    },
    "exp": {
      "type": "integer",
      "description": "Expiration. Unixtime of the token's expiration."
    },
    "durt_id": {
      "type": "string",
      "description": "Device User Refresh Token ID. Unique ID that represents the device + user."
    },
    "iat": {
      "type": "integer",
      "description": "Issued At. Unixtime of the token's issuance."
    },
    "iss": {
      "type": "string",
      "description": "Issuer. This will be 'go.jumpcloud.com'"
    },
    "org_id": {
      "type": "string",
      "description": "The JumpCloud Organization ID"
    },
    "sub": {
      "type": "string",
      "description": "Subject. The managed JumpCloud user ID on the device."
    },
    "system": {
      "type": "string",
      "description": "The JumpCloud system ID"
    }
  }
}
```

以下是根据提供的信任上下文进行评估的策略示例。 JumpCloud

```
permit(principal, action, resource) when {
   context.jumpcloud.org_id == 'Unique_organization_identifier'
};
```