简体   繁体   English

XACML 在策略中结合 PIP

[英]XACML combining PIPs in policy

I'm new to XACML architecture and would appreciate if you can help me with next question.我是 XACML 架构的新手,如果您能帮助我解决下一个问题,我将不胜感激。

Is it possible to use multiple PIP in a way that answer extracted from one PIP is used as input parameter for other PIP?是否可以以将从一个 PIP 中提取的答案用作其他 PIP 的输入参数的方式使用多个 PIP?

If so can you provide me with simple XML request example?如果是这样,你能给我提供一个简单的 XML 请求示例吗?

Thanks in advance提前致谢

Yes, it is possible to use multiple PIPs in a way that an attribute resolved by a PIP can be used as an input to another PIP.是的,可以通过一个 PIP 解析的属性可以用作另一个 PIP 的输入的方式使用多个 PIP。

Based on XACML architecture , it's up to the PDP to decide how to resolve attributes using PIPs.基于XACML 架构,由 PDP 决定如何使用 PIP 解析属性。

How it works on a high level:它是如何在高层次上工作的:

  1. Input request(from PEP) to PDP contains an attribute say Subject-ID=Alice输入请求(来自 PEP)到 PDP 包含一个属性,比如Subject-ID=Alice
  2. The PDP evaluates the XACML policy based on the attributes from the input request. PDP 根据来自输入请求的属性评估 XACML 策略。 Eg, The policy says permit if Action-ID=Read例如,如果Action-ID=Read ,则策略表示允许
  3. Since there is no Subject-ID defined in the policy, PDP tries to ask a PIP or PIPs to resolve Action-ID and provides PIPs the value it has which is Subject-ID (from the input request).由于策略中没有定义Subject-ID ,PDP 尝试要求一个或多个 PIP 解析Action-ID并为 PIP 提供它具有的Subject-ID (来自输入请求)。 Eg, Let's say we have 2 PIPs - PIP A can resolve resource-ID from Subject-ID and PIP B can resolve Action-ID from resource-ID例如,假设我们有 2 个 PIP - PIP A可以从Subject-ID解析resource-ID ,而PIP B 可以从resource-ID解析Action-ID resource-ID
  4. Here, what happens is PDP first resolves resource-ID based on the Subject-ID from input request using PIP A and then uses resource-ID to resolve Action-ID using PIP B which is then utilized by PDP to evaluate the the policy.在这里,发生的情况是 PDP 首先使用PIP A 根据来自输入请求的Subject-ID解析resource-ID ,然后使用resource-ID Action-ID使用PIP B解析Action-ID ,然后 PDP 使用它来评估策略。 If PIP B returns Alice, you get a permit decision else it would be NotApplicable如果PIP B返回 Alice,您将获得permit决定,否则它将是NotApplicable

Note that this depends on how PDP is implemented to resolve attributes using chained PIPs as in your use case.请注意,这取决于如何实现 PDP以在您的用例中使用链式 PIP 解析属性。

PDP from a company called Axiomatics is capable of performing a chained PIP lookup.来自Axiomatics公司的 PDP 能够执行链式 PIP 查找。

Disclosure : I work for Axiomatics where we provide XACML based access control solutions披露:我在Axiomatics工作,我们提供基于 XACML 的访问控制解决方案

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM