blob: 55161674454fac97104785ee9aa78d7029e320f4 [file] [log] [blame]
Ravindra Bakkamanthalad9007d62017-05-31 15:54:24 -04001<?xml version="1.0" encoding="UTF-8" standalone="yes"?>
Jim Hahndaee9222018-04-19 11:28:41 -04002<!--
3 ============LICENSE_START==================================================
4 ONAP Policy Engine
5 ===========================================================================
6 Copyright (C) 2017-2018 AT&T Intellectual Property. All rights reserved.
7 ===========================================================================
8 Licensed under the Apache License, Version 2.0 (the "License");
9 you may not use this file except in compliance with the License.
10 You may obtain a copy of the License at
11
12 http://www.apache.org/licenses/LICENSE-2.0
13
14 Unless required by applicable law or agreed to in writing, software
15 distributed under the License is distributed on an "AS IS" BASIS,
16 WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
17 See the License for the specific language governing permissions and
18 limitations under the License.
19 ============LICENSE_END====================================================
20 -->
Ravindra Bakkamanthalad9007d62017-05-31 15:54:24 -040021<Policy xmlns="urn:oasis:names:tc:xacml:3.0:core:schema:wd-17" PolicyId="urn:com:xacml:policy:id:0b67998b-57e2-4e25-9ea9-f9154bf18df1" Version="1" RuleCombiningAlgId="urn:oasis:names:tc:xacml:3.0:rule-combining-algorithm:permit-overrides">
22 <Description>SampleTest1206@CreatedBy:test@CreatedBy:@ModifiedBy:test@ModifiedBy:</Description>
23 <Target>
24 <AnyOf>
25 <AllOf>
Guo Ruijing073cc182017-07-31 08:47:35 +000026 <Match MatchId="org.onap.function.regex-match">
Ravindra Bakkamanthalad9007d62017-05-31 15:54:24 -040027 <AttributeValue DataType="http://www.w3.org/2001/XMLSchema#string">com.Config_SampleTest1206.1.xml</AttributeValue>
28 <AttributeDesignator Category="urn:oasis:names:tc:xacml:1.0:subject-category:access-subject" AttributeId="PolicyName" DataType="http://www.w3.org/2001/XMLSchema#string" MustBePresent="false"/>
29 </Match>
30 </AllOf>
31 <AllOf>
Guo Ruijing073cc182017-07-31 08:47:35 +000032 <Match MatchId="org.onap.function.regex-match">
Ravindra Bakkamanthalad9007d62017-05-31 15:54:24 -040033 <AttributeValue DataType="http://www.w3.org/2001/XMLSchema#string">success</AttributeValue>
Guo Ruijing073cc182017-07-31 08:47:35 +000034 <AttributeDesignator Category="urn:oasis:names:tc:xacml:1.0:subject-category:access-subject" AttributeId="ONAPName" DataType="http://www.w3.org/2001/XMLSchema#string" MustBePresent="false"/>
Ravindra Bakkamanthalad9007d62017-05-31 15:54:24 -040035 </Match>
Guo Ruijing073cc182017-07-31 08:47:35 +000036 <Match MatchId="org.onap.function.regex-match">
Ravindra Bakkamanthalad9007d62017-05-31 15:54:24 -040037 <AttributeValue DataType="http://www.w3.org/2001/XMLSchema#string">PROD</AttributeValue>
38 <AttributeDesignator Category="urn:oasis:names:tc:xacml:3.0:attribute-category:resource" AttributeId="RiskType" DataType="http://www.w3.org/2001/XMLSchema#string" MustBePresent="false"/>
39 </Match>
Guo Ruijing073cc182017-07-31 08:47:35 +000040 <Match MatchId="org.onap.function.regex-match">
Ravindra Bakkamanthalad9007d62017-05-31 15:54:24 -040041 <AttributeValue DataType="http://www.w3.org/2001/XMLSchema#string">1</AttributeValue>
42 <AttributeDesignator Category="urn:oasis:names:tc:xacml:3.0:attribute-category:resource" AttributeId="RiskLevel" DataType="http://www.w3.org/2001/XMLSchema#string" MustBePresent="false"/>
43 </Match>
Guo Ruijing073cc182017-07-31 08:47:35 +000044 <Match MatchId="org.onap.function.regex-match">
Ravindra Bakkamanthalad9007d62017-05-31 15:54:24 -040045 <AttributeValue DataType="http://www.w3.org/2001/XMLSchema#string">True</AttributeValue>
46 <AttributeDesignator Category="urn:oasis:names:tc:xacml:3.0:attribute-category:resource" AttributeId="guard" DataType="http://www.w3.org/2001/XMLSchema#string" MustBePresent="false"/>
47 </Match>
Guo Ruijing073cc182017-07-31 08:47:35 +000048 <Match MatchId="org.onap.function.regex-match">
Tarun Tej Velagae92ff832017-07-24 17:13:43 +000049 <AttributeValue DataType="http://www.w3.org/2001/XMLSchema#string">08-06-2017</AttributeValue>
Ravindra Bakkamanthalad9007d62017-05-31 15:54:24 -040050 <AttributeDesignator Category="urn:oasis:names:tc:xacml:3.0:attribute-category:resource" AttributeId="TTLDate" DataType="http://www.w3.org/2001/XMLSchema#string" MustBePresent="false"/>
51 </Match>
Guo Ruijing073cc182017-07-31 08:47:35 +000052 <Match MatchId="org.onap.function.regex-match">
Ravindra Bakkamanthalad9007d62017-05-31 15:54:24 -040053 <AttributeValue DataType="http://www.w3.org/2001/XMLSchema#string">SampleTest1206</AttributeValue>
54 <AttributeDesignator Category="urn:oasis:names:tc:xacml:1.0:subject-category:access-subject" AttributeId="ConfigName" DataType="http://www.w3.org/2001/XMLSchema#string" MustBePresent="false"/>
55 </Match>
56 </AllOf>
57 </AnyOf>
58 </Target>
59 <Rule RuleId="urn:com:xacml:rule:id:7e46d503-af54-4ea5-a86c-9eb6dd1f4f43" Effect="Permit">
60 <Target>
61 <AnyOf>
62 <AllOf>
63 <Match MatchId="urn:oasis:names:tc:xacml:3.0:function:string-equal-ignore-case">
64 <AttributeValue DataType="http://www.w3.org/2001/XMLSchema#string">ACCESS</AttributeValue>
65 <AttributeDesignator Category="urn:oasis:names:tc:xacml:3.0:attribute-category:action" AttributeId="urn:oasis:names:tc:xacml:1.0:action:action-id" DataType="http://www.w3.org/2001/XMLSchema#string" MustBePresent="false"/>
66 </Match>
67 <Match MatchId="urn:oasis:names:tc:xacml:3.0:function:string-equal-ignore-case">
68 <AttributeValue DataType="http://www.w3.org/2001/XMLSchema#string">Config</AttributeValue>
69 <AttributeDesignator Category="urn:oasis:names:tc:xacml:3.0:attribute-category:resource" AttributeId="urn:oasis:names:tc:xacml:1.0:resource:resource-id" DataType="http://www.w3.org/2001/XMLSchema#string" MustBePresent="false"/>
70 </Match>
71 </AllOf>
72 </AnyOf>
73 </Target>
74 <AdviceExpressions>
75 <AdviceExpression AdviceId="configID" AppliesTo="Permit">
76 <AttributeAssignmentExpression AttributeId="type" Category="urn:oasis:names:tc:xacml:3.0:attribute-category:resource" Issuer="">
77 <AttributeValue DataType="http://www.w3.org/2001/XMLSchema#string">Configuration</AttributeValue>
78 </AttributeAssignmentExpression>
79 <AttributeAssignmentExpression AttributeId="URLID" Category="urn:oasis:names:tc:xacml:3.0:attribute-category:resource" Issuer="">
80 <AttributeValue DataType="http://www.w3.org/2001/XMLSchema#anyURI">$URL/Config/com.Config_SampleTest1206.1.txt</AttributeValue>
81 </AttributeAssignmentExpression>
82 <AttributeAssignmentExpression AttributeId="PolicyName" Category="urn:oasis:names:tc:xacml:3.0:attribute-category:resource" Issuer="">
83 <AttributeValue DataType="http://www.w3.org/2001/XMLSchema#string">com.Config_SampleTest1206.1.xml</AttributeValue>
84 </AttributeAssignmentExpression>
85 <AttributeAssignmentExpression AttributeId="VersionNumber" Category="urn:oasis:names:tc:xacml:3.0:attribute-category:resource" Issuer="">
86 <AttributeValue DataType="http://www.w3.org/2001/XMLSchema#string">1</AttributeValue>
87 </AttributeAssignmentExpression>
Guo Ruijing073cc182017-07-31 08:47:35 +000088 <AttributeAssignmentExpression AttributeId="matching:ONAPName" Category="urn:oasis:names:tc:xacml:3.0:attribute-category:resource" Issuer="">
Ravindra Bakkamanthalad9007d62017-05-31 15:54:24 -040089 <AttributeValue DataType="http://www.w3.org/2001/XMLSchema#string">success</AttributeValue>
90 </AttributeAssignmentExpression>
91 <AttributeAssignmentExpression AttributeId="matching:ConfigName" Category="urn:oasis:names:tc:xacml:3.0:attribute-category:resource" Issuer="">
92 <AttributeValue DataType="http://www.w3.org/2001/XMLSchema#string">SampleTest1206</AttributeValue>
93 </AttributeAssignmentExpression>
94 <AttributeAssignmentExpression AttributeId="RiskType" Category="urn:oasis:names:tc:xacml:3.0:attribute-category:resource" Issuer="">
95 <AttributeValue DataType="http://www.w3.org/2001/XMLSchema#string">PROD</AttributeValue>
96 </AttributeAssignmentExpression>
97 <AttributeAssignmentExpression AttributeId="RiskLevel" Category="urn:oasis:names:tc:xacml:3.0:attribute-category:resource" Issuer="">
98 <AttributeValue DataType="http://www.w3.org/2001/XMLSchema#string">1</AttributeValue>
99 </AttributeAssignmentExpression>
100 <AttributeAssignmentExpression AttributeId="guard" Category="urn:oasis:names:tc:xacml:3.0:attribute-category:resource" Issuer="">
101 <AttributeValue DataType="http://www.w3.org/2001/XMLSchema#string">True</AttributeValue>
102 </AttributeAssignmentExpression>
103 <AttributeAssignmentExpression AttributeId="TTLDate" Category="urn:oasis:names:tc:xacml:3.0:attribute-category:resource" Issuer="">
Tarun Tej Velagae92ff832017-07-24 17:13:43 +0000104 <AttributeValue DataType="http://www.w3.org/2001/XMLSchema#string">08-06-2017</AttributeValue>
Ravindra Bakkamanthalad9007d62017-05-31 15:54:24 -0400105 </AttributeAssignmentExpression>
106 </AdviceExpression>
107 </AdviceExpressions>
108 </Rule>
109</Policy>