1 <?xml version="1.0" encoding="UTF-8" standalone="yes"?>
3 ============LICENSE_START=======================================================
5 ================================================================================
6 Copyright (C) 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
12 http://www.apache.org/licenses/LICENSE-2.0
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=========================================================
21 <Policy xmlns="urn:oasis:names:tc:xacml:3.0:core:schema:wd-17"
22 PolicyId="urn:com:att:xacml:policy:id:25e12b06-11d5-4895-b2a2-6f6c594de069"
24 RuleCombiningAlgId="urn:oasis:names:tc:xacml:3.0:rule-combining-algorithm:permit-unless-deny">
25 <Description>Policy for frequency limiter.</Description>
30 MatchId="urn:oasis:names:tc:xacml:1.0:function:string-regexp-match">
31 <!-- <AttributeValue DataType="http://www.w3.org/2001/XMLSchema#string">.*</AttributeValue>-->
33 DataType="http://www.w3.org/2001/XMLSchema#string">${clname}</AttributeValue>
35 Category="urn:oasis:names:tc:xacml:1.0:subject-category:access-subject"
36 AttributeId="urn:oasis:names:tc:xacml:1.0:clname:clname-id"
37 DataType="http://www.w3.org/2001/XMLSchema#string"
38 MustBePresent="false" />
41 <!-- <Match MatchId="urn:oasis:names:tc:xacml:1.0:function:string-equal">-->
43 MatchId="urn:oasis:names:tc:xacml:1.0:function:string-regexp-match">
45 DataType="http://www.w3.org/2001/XMLSchema#string">${actor}</AttributeValue>
47 Category="urn:oasis:names:tc:xacml:1.0:subject-category:access-subject"
48 AttributeId="urn:oasis:names:tc:xacml:1.0:actor:actor-id"
49 DataType="http://www.w3.org/2001/XMLSchema#string"
50 MustBePresent="false" />
53 MatchId="urn:oasis:names:tc:xacml:1.0:function:string-regexp-match">
55 DataType="http://www.w3.org/2001/XMLSchema#string">${recipe}</AttributeValue>
57 Category="urn:oasis:names:tc:xacml:3.0:attribute-category:action"
58 AttributeId="urn:oasis:names:tc:xacml:1.0:operation:operation-id"
59 DataType="http://www.w3.org/2001/XMLSchema#string"
60 MustBePresent="false" />
66 RuleId="urn:com:att:xacml:rule:id:e1e8c5c0-e2ba-47d5-9289-6c015305ed21"
68 <Description>DENY - only if target is in black list and guard is
72 FunctionId="urn:oasis:names:tc:xacml:1.0:function:and">
74 VariableId="isGuardActive" />
76 VariableId="isInBlackList" />
80 <VariableDefinition VariableId="isInBlackList">
82 FunctionId="urn:oasis:names:tc:xacml:3.0:function:any-of">
84 FunctionId="urn:oasis:names:tc:xacml:1.0:function:string-equal" />
86 FunctionId="urn:oasis:names:tc:xacml:1.0:function:string-one-and-only">
88 Category="urn:oasis:names:tc:xacml:3.0:attribute-category:resource"
89 AttributeId="urn:oasis:names:tc:xacml:1.0:target:target-id"
90 DataType="http://www.w3.org/2001/XMLSchema#string"
91 MustBePresent="false" />
94 FunctionId="urn:oasis:names:tc:xacml:1.0:function:string-bag">
96 <!-- <AttributeValue DataType="http://www.w3.org/2001/XMLSchema#string">vserver.vserver-name</AttributeValue>-->
100 <VariableDefinition VariableId="isGuardActive">
102 FunctionId="urn:oasis:names:tc:xacml:2.0:function:time-in-range">
104 FunctionId="urn:oasis:names:tc:xacml:1.0:function:time-one-and-only">
106 AttributeId="urn:oasis:names:tc:xacml:1.0:environment:current-time"
107 DataType="http://www.w3.org/2001/XMLSchema#time"
108 Category="urn:oasis:names:tc:xacml:3.0:attribute-category:environment"
109 MustBePresent="false" />
112 DataType="http://www.w3.org/2001/XMLSchema#time">${guardActiveStart}</AttributeValue>
114 DataType="http://www.w3.org/2001/XMLSchema#time">${guardActiveEnd}</AttributeValue>
116 </VariableDefinition>