Guo Ruijing | 073cc18 | 2017-07-31 08:47:35 +0000 | [diff] [blame] | 1 | ### |
| 2 | # ============LICENSE_START======================================================= |
| 3 | # ONAP-PAP-REST |
| 4 | # ================================================================================ |
pa834y | c1b69df | 2019-03-26 14:29:38 -0400 | [diff] [blame] | 5 | # Copyright (C) 2017-2019 AT&T Intellectual Property. All rights reserved. |
Guo Ruijing | 073cc18 | 2017-07-31 08:47:35 +0000 | [diff] [blame] | 6 | # ================================================================================ |
| 7 | # Licensed under the Apache License, Version 2.0 (the "License"); |
| 8 | # you may not use this file except in compliance with the License. |
| 9 | # You may obtain a copy of the License at |
| 10 | # |
| 11 | # http://www.apache.org/licenses/LICENSE-2.0 |
| 12 | # |
| 13 | # Unless required by applicable law or agreed to in writing, software |
| 14 | # distributed under the License is distributed on an "AS IS" BASIS, |
| 15 | # WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. |
| 16 | # See the License for the specific language governing permissions and |
| 17 | # limitations under the License. |
| 18 | # ============LICENSE_END========================================================= |
| 19 | ### |
| 20 | #=====================================================================================# |
| 21 | #================The Below Properties are default, shouldn't change them==============# |
| 22 | #=====================================================================================# |
| 23 | # |
| 24 | # This is our factory that will create our engine |
| 25 | # |
| 26 | xacml.PAP.papEngineFactory=org.onap.policy.xacml.std.pap.StdEngineFactory |
| 27 | # Dictionary and Policy Implementation Classes Properties |
| 28 | dictionary.impl.className=org.onap.policy.pap.xacml.rest.handler.DictionaryHandlerImpl |
| 29 | savePolicy.impl.className=org.onap.policy.pap.xacml.rest.handler.SavePolicyHandler |
| 30 | pushPolicy.impl.className=org.onap.policy.pap.xacml.rest.handler.PushPolicyHandler |
| 31 | deletePolicy.impl.className=org.onap.policy.pap.xacml.rest.handler.DeleteHandler |
Tarun Tej Velaga | c96dd91 | 2017-08-14 15:48:57 +0000 | [diff] [blame] | 32 | |
Guo Ruijing | 073cc18 | 2017-07-31 08:47:35 +0000 | [diff] [blame] | 33 | #=====================================================================================# |
| 34 | #===============The Below Properties will be changed based on Environment=============# |
| 35 | #=====================================================================================# |
| 36 | # |
| 37 | # Where we store our PAP PDP Group/Node information |
| 38 | # |
| 39 | xacml.pap.pdps=pdps |
| 40 | # |
| 41 | # Need the PAP's url (how PDPs will reach it) configured here |
| 42 | # because we need it to generate the URLs of the Policy Files |
| 43 | # sent to the PDPs in the configuration when the PAP is first brought up. |
| 44 | # (In other cases, such as the PDP calling the PAP, we could generate this URL, |
| 45 | # but for startup there is no other way to get it.) |
| 46 | # |
| 47 | # |
| 48 | xacml.rest.pap.url=http://localhost:8070/pap/ |
| 49 | |
| 50 | # |
| 51 | # Upon startup, have the PAP servlet send latest configuration information to all |
| 52 | # the PDP nodes it knows about. |
| 53 | # |
| 54 | xacml.rest.pap.initiate.pdp=true |
| 55 | # |
| 56 | # Heartbeat from PAP to PDPs |
| 57 | # |
| 58 | # How much time (in milliseconds) between heartbeats |
| 59 | # (i.e. the time between completing the heartbeat with all PDPs and starting the next cycle) |
| 60 | # |
| 61 | xacml.rest.pap.heartbeat.interval=100000 |
| 62 | # |
| 63 | # Heartbeat connection timeout (in milliseconds) |
| 64 | # |
| 65 | xacml.rest.pap.heartbeat.timeout=100000 |
| 66 | |
| 67 | # new Property Please mention your PAP-REST webapps Location here. |
| 68 | xacml.rest.config.webapps=/home/users/PolicyEngine/webapps/ConfigPAP/ |
| 69 | |
| 70 | #Turn the audit on to synchronize the DB/file system |
| 71 | #xacml.rest.pap.run.audit.flag=true |
| 72 | #Turn the audit off to not synchronize the DB/file system |
| 73 | #xacml.rest.pap.run.audit.flag=false |
| 74 | xacml.rest.pap.run.audit.flag=true |
| 75 | |
| 76 | #Audit will synchronize the file system to match the contents of the DB |
| 77 | #xacml.rest.pap.filesystem.audit=true |
| 78 | #Audit will synchronize the DB to match the contents of the file system |
| 79 | #xacml.rest.pap.filesystem.audit=false |
| 80 | xacml.rest.pap.filesystem.audit=false |
| 81 | xacm.xcor.required.pattern=1,1 |
| 82 | # id |
| 83 | xacml.rest.pap.userid=testpap |
| 84 | # pass |
| 85 | xacml.rest.pap.password=alpha123 |
| 86 | # pdps file |
| 87 | xacml.rest.pdp.idfile=test.properties |
| 88 | |
| 89 | #Properties for db access |
| 90 | #properties for MySql xacml database: PLEASE DO NOT REMOVE... NEEDED FOR APIs |
rb7147 | 92a628e | 2017-09-21 13:51:10 -0400 | [diff] [blame] | 91 | javax.persistence.jdbc.driver=org.mariadb.jdbc.Driver |
Jorge Hernandez | f74bbc9 | 2018-05-07 20:26:19 -0500 | [diff] [blame] | 92 | javax.persistence.jdbc.url=jdbc:mariadb://localhost:3306/onap_sdk?connectTimeout=30000&socketTimeout=60000&log=true&sessionVariables=max_statement_time=30 |
Guo Ruijing | 073cc18 | 2017-07-31 08:47:35 +0000 | [diff] [blame] | 93 | javax.persistence.jdbc.user=policy_user |
| 94 | javax.persistence.jdbc.password=policy_user |
| 95 | |
| 96 | #Time in ms which a Policy DB transaction will wait to get the transaction lock object |
| 97 | xacml.rest.pap.transaction.waitms=500000 |
| 98 | |
| 99 | #Policy DB transaction timeout in ms after it has obtained the transaction lock object |
| 100 | xacml.rest.pap.transaction.timeoutms=500000 |
| 101 | |
| 102 | #Policy Audit timeout in ms after it has obtained the transaction lock object |
| 103 | xacml.rest.pap.audit.timeoutms=500000 |
| 104 | |
| 105 | #controls how long the pap will wait before giving up when sending notifications to other paps |
| 106 | xacml.rest.pap.notify.timeoutms=10000 |
| 107 | |
| 108 | #the number of times an incoming policy update notification will be tried to be processed (or until it succeeds) |
| 109 | xacml.rest.pap.incomingnotification.tries=4 |
| 110 | |
Guo Ruijing | 073cc18 | 2017-07-31 08:47:35 +0000 | [diff] [blame] | 111 | #***Properties for IntegrityMonitor integration defined in XACMLRestProperties.java*** |
| 112 | |
| 113 | #The name of the PAP. Must be unique across the system |
| 114 | xacml.rest.pap.resource.name=site_1.pap_1 |
| 115 | |
| 116 | #***Properties for IntegrityMonitor integration defined in IntegrityMonitorProperties.java*** |
| 117 | |
| 118 | #Interval between forward progress counter updates in seconds |
| 119 | fp_monitor_interval=30 |
| 120 | |
| 121 | #Number of forward progress counter failures before failover |
| 122 | failed_counter_threshold=3 |
| 123 | |
| 124 | #Interval in seconds between test transactions if there is no other traffic |
| 125 | test_trans_interval=10 |
| 126 | |
| 127 | #Interval in seconds between updates of the forward progress counter in the DB |
| 128 | write_fpc_interval=5 |
| 129 | |
| 130 | #Name of the site |
| 131 | site_name=site_1 |
| 132 | |
| 133 | #Node type. Can take values of: pdp-xacml, pdp-drools, pap, pap-admin, logparser, brms-gateway, |
| 134 | #astra-gateway, elk-server |
| 135 | node_type=pap |
| 136 | |
| 137 | #Dependency groups are groups of resources upon which a node operational state is dependent upon (dependency_groups). |
| 138 | #Each group is a comma-separated list of resource names and groups are separated by a semicolon. A group may contain |
| 139 | #one or more members. |
| 140 | dependency_groups=site_1.logparser_1;site_1.adminconsole_1;site_1.elk_1 |
| 141 | |
| 142 | # The (optional) period of time in seconds between executions of the integrity audit. |
| 143 | # Value < 0 : Audit does not run (default value if property is not present = -1) |
| 144 | # Value = 0 : Audit runs continuously |
| 145 | # Value > 0 : The period of time in seconds between execution of the audit on a particular node |
| 146 | integrity_audit_period_seconds=-1 |
| 147 | |
| 148 | ENVIRONMENT=DEVL |
| 149 | |
| 150 | # |
| 151 | #PolicySafetyChecker properties |
| 152 | # |
| 153 | #Turn safetyChecker on/off |
| 154 | xacml.rest.pap.safetychecker=on |
pa834y | 6d72b84 | 2019-04-04 09:02:48 -0400 | [diff] [blame] | 155 | PDP_URL1 = http://localhost:8082/pdp/, testpdp, alpha123 |
Guo Ruijing | 073cc18 | 2017-07-31 08:47:35 +0000 | [diff] [blame] | 156 | CLIENT_ID= |
| 157 | CLIENT_KEY= |
| 158 | |
| 159 | #Micro Service Model Properties |
| 160 | xacml.policy.msOnapName=http://org.onap |
pa834y | c1b69df | 2019-03-26 14:29:38 -0400 | [diff] [blame] | 161 | xacml.policy.msPolicyName=http://org.onap.policy |
| 162 | |
| 163 | |
| 164 | # AES key for password encryption in config files |
| 165 | #org.onap.policy.encryption.aes.key=12345678901234567890123456789012 |