2.5.9.3. 配置应用资源约束
每一应用资源约束定义一组通常与应用和服务部署关联的资源、属性和操作。当应用资源约束被启用时,De ployer 角色
的管理用户被授予对其应用到的资源的访问权限。
应用程序约束配置位于 /core-service=management/access=authorization/constraint=application-classification/
。
每个应用资源约束被识别为分类。然后,分类分为几种类型。每个分类都有一个 应用到元素
,这是分类配置所应用到的路径模式的列表。
默认情况下,启用的唯一应用程序资源分类是核心。core 包括部署、部署覆盖和部署操作。
若要启用应用资源,可使用 write-attribute
操作将 分类的 configured-application
属性设置为 true
。若要禁用应用资源,可将此属性设置为 false
。默认情况下,这些属性不会被设置,并且使用 default-application
属性的值。无法更改默认值。
示例:启用 logger-profile 应用程序资源分类
/core-service=management/access=authorization/constraint=application-classification/type=logging/classification=logging-profile:write-attribute(name=configured-application,value=true)
/core-service=management/access=authorization/constraint=application-classification/type=logging/classification=logging-profile:write-attribute(name=configured-application,value=true)
示例:结果
/core-service=management/access=authorization/constraint=application-classification/type=logging/classification=logging-profile:read-resource
/core-service=management/access=authorization/constraint=application-classification/type=logging/classification=logging-profile:read-resource
应用程序资源约束适用于所有与其配置匹配的资源。例如,无法为 Deployer
用户授予一个数据源资源的访问权限,但不能授予另一个数据源资源的访问权限。如果需要这种级别的分隔,则建议在不同的服务器组中配置资源,并为各个组创建不同的作用范围 部署器
角色。