[ https://issues.apache.org/jira/browse/KARAF-5851?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=16564214#comment-16564214 ]
ASF GitHub Bot commented on KARAF-5851: --------------------------------------- jbonofre closed pull request #583: [KARAF-5851] Remove heading spaces in the cfg files URL: https://github.com/apache/karaf/pull/583 This is a PR merged from a forked repository. As GitHub hides the original diff on merge, it is displayed below for the sake of provenance: As this is a foreign pull request (from a fork), the diff is supplied below (as it won't show otherwise due to GitHub magic): diff --git a/assemblies/features/enterprise/src/main/feature/feature.xml b/assemblies/features/enterprise/src/main/feature/feature.xml index 66fe319562..48e6100d0e 100644 --- a/assemblies/features/enterprise/src/main/feature/feature.xml +++ b/assemblies/features/enterprise/src/main/feature/feature.xml @@ -41,31 +41,31 @@ <feature name="transaction-manager-geronimo" description="Geronimo Transaction Manager" version="${geronimo.transaction.manager.version}"> <details>JTA implementation provided by Apache Aries Transaction</details> <config name="org.ops4j.pax.transx.tm.geronimo"> - ################################################################################ - # - # Licensed to the Apache Software Foundation (ASF) under one or more - # contributor license agreements. See the NOTICE file distributed with - # this work for additional information regarding copyright ownership. - # The ASF licenses this file to You under the Apache License, Version 2.0 - # (the "License"); you may not use this file except in compliance with - # the License. You may obtain a copy of the License at - # - # http://www.apache.org/licenses/LICENSE-2.0 - # - # Unless required by applicable law or agreed to in writing, software - # distributed under the License is distributed on an "AS IS" BASIS, - # WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - # See the License for the specific language governing permissions and - # limitations under the License. - # - ################################################################################ +################################################################################ +# +# Licensed to the Apache Software Foundation (ASF) under one or more +# contributor license agreements. See the NOTICE file distributed with +# this work for additional information regarding copyright ownership. +# The ASF licenses this file to You under the Apache License, Version 2.0 +# (the "License"); you may not use this file except in compliance with +# the License. You may obtain a copy of the License at +# +# http://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. +# +################################################################################ - org.apache.geronimo.tm.recoverable = true - org.apache.geronimo.tm.timeout = 600 - org.apache.geronimo.tm.howl.logFileDir = ${karaf.data}/txlog - org.apache.geronimo.tm.howl.maxLogFiles = 2 - org.apache.geronimo.tm.howl.maxBlocksPerFile = 512 - org.apache.geronimo.tm.howl.bufferSize = 4 +org.apache.geronimo.tm.recoverable = true +org.apache.geronimo.tm.timeout = 600 +org.apache.geronimo.tm.howl.logFileDir = ${karaf.data}/txlog +org.apache.geronimo.tm.howl.maxLogFiles = 2 +org.apache.geronimo.tm.howl.maxBlocksPerFile = 512 +org.apache.geronimo.tm.howl.bufferSize = 4 </config> <feature version="[1.1,2)">transaction-api</feature> <feature>pax-transx-tm-geronimo</feature> @@ -77,28 +77,28 @@ <feature name="transaction-manager-narayana" description="Narayana Transaction Manager" version="${narayana.version}"> <details>JTA implementation provided by Narayana</details> <config name="org.ops4j.pax.transx.tm.narayana"> - ################################################################################ - # - # Licensed to the Apache Software Foundation (ASF) under one or more - # contributor license agreements. See the NOTICE file distributed with - # this work for additional information regarding copyright ownership. - # The ASF licenses this file to You under the Apache License, Version 2.0 - # (the "License"); you may not use this file except in compliance with - # the License. You may obtain a copy of the License at - # - # http://www.apache.org/licenses/LICENSE-2.0 - # - # Unless required by applicable law or agreed to in writing, software - # distributed under the License is distributed on an "AS IS" BASIS, - # WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - # See the License for the specific language governing permissions and - # limitations under the License. - # - ################################################################################ +################################################################################ +# +# Licensed to the Apache Software Foundation (ASF) under one or more +# contributor license agreements. See the NOTICE file distributed with +# this work for additional information regarding copyright ownership. +# The ASF licenses this file to You under the Apache License, Version 2.0 +# (the "License"); you may not use this file except in compliance with +# the License. You may obtain a copy of the License at +# +# http://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. +# +################################################################################ - com.arjuna.ats.arjuna.objectstore.objectStoreDir=${karaf.data}/narayana - com.arjuna.ats.arjuna.objectstore.communicationStore.objectStoreDir=${karaf.data}/narayana - com.arjuna.ats.arjuna.hornetqjournal.storeDir=${karaf.data}/narayana/hornetq +com.arjuna.ats.arjuna.objectstore.objectStoreDir=${karaf.data}/narayana +com.arjuna.ats.arjuna.objectstore.communicationStore.objectStoreDir=${karaf.data}/narayana +com.arjuna.ats.arjuna.hornetqjournal.storeDir=${karaf.data}/narayana/hornetq </config> <feature version="[1.1,2)">transaction-api</feature> <feature>pax-transx-tm-narayana</feature> @@ -110,26 +110,26 @@ <feature name="transaction-manager-atomikos" description="Atomikos Transaction Manager" version="${atomikos.version}"> <details>JTA implementation provided by Atomikos</details> <config name="org.ops4j.pax.transx.tm.atomikos"> - ################################################################################ - # - # Licensed to the Apache Software Foundation (ASF) under one or more - # contributor license agreements. See the NOTICE file distributed with - # this work for additional information regarding copyright ownership. - # The ASF licenses this file to You under the Apache License, Version 2.0 - # (the "License"); you may not use this file except in compliance with - # the License. You may obtain a copy of the License at - # - # http://www.apache.org/licenses/LICENSE-2.0 - # - # Unless required by applicable law or agreed to in writing, software - # distributed under the License is distributed on an "AS IS" BASIS, - # WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - # See the License for the specific language governing permissions and - # limitations under the License. - # - ################################################################################ +################################################################################ +# +# Licensed to the Apache Software Foundation (ASF) under one or more +# contributor license agreements. See the NOTICE file distributed with +# this work for additional information regarding copyright ownership. +# The ASF licenses this file to You under the Apache License, Version 2.0 +# (the "License"); you may not use this file except in compliance with +# the License. You may obtain a copy of the License at +# +# http://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. +# +################################################################################ - com.atomikos.icatch.log_base_dir=${karaf.data}/atomikos +com.atomikos.icatch.log_base_dir=${karaf.data}/atomikos </config> <feature version="[1.1,2)">transaction-api</feature> <feature>pax-transx-tm-atomikos</feature> diff --git a/assemblies/features/standard/src/main/feature/feature.xml b/assemblies/features/standard/src/main/feature/feature.xml index a68c962526..d19b87eb00 100644 --- a/assemblies/features/standard/src/main/feature/feature.xml +++ b/assemblies/features/standard/src/main/feature/feature.xml @@ -62,96 +62,96 @@ <bundle start-level="1">mvn:org.apache.karaf.features/org.apache.karaf.features.extension/${project.version}</bundle> <bundle start-level="15">mvn:org.apache.karaf.features/org.apache.karaf.features.core/${project.version}</bundle> <config name="org.apache.karaf.features.repos"> - ################################################################################ - # - # Licensed to the Apache Software Foundation (ASF) under one or more - # contributor license agreements. See the NOTICE file distributed with - # this work for additional information regarding copyright ownership. - # The ASF licenses this file to You under the Apache License, Version 2.0 - # (the "License"); you may not use this file except in compliance with - # the License. You may obtain a copy of the License at - # - # http://www.apache.org/licenses/LICENSE-2.0 - # - # Unless required by applicable law or agreed to in writing, software - # distributed under the License is distributed on an "AS IS" BASIS, - # WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - # See the License for the specific language governing permissions and - # limitations under the License. - # - ################################################################################ - - # - # This file describes the features repository URL - # It could be directly installed using feature:repo-add command - # - enterprise=mvn:org.apache.karaf.features/enterprise/${karaf.version}/xml/features - enterprise-legacy=mvn:org.apache.karaf.features/enterprise-legacy/${karaf.version}/xml/features - spring=mvn:org.apache.karaf.features/spring/${karaf.version}/xml/features - spring-legacy=mvn:org.apache.karaf.features/spring-legacy/${karaf.version}/xml/features - cellar=mvn:org.apache.karaf.cellar/apache-karaf-cellar/RELEASE/xml/features - cave=mvn:org.apache.karaf.cave/apache-karaf-cave/RELEASE/xml/features - camel=mvn:org.apache.camel.karaf/apache-camel/RELEASE/xml/features - camel-extras=mvn:org.apache-extras.camel-extra.karaf/camel-extra/RELEASE/xml/features - cxf=mvn:org.apache.cxf.karaf/apache-cxf/RELEASE/xml/features - cxf-dosgi=mvn:org.apache.cxf.dosgi/cxf-dosgi/RELEASE/xml/features - cxf-dosgi-samples=mvn:org.apache.cxf.dosgi/cxf-dosgi-samples/RELEASE/xml/features - cxf-xkms=mvn:org.apache.cxf.services.xkms/cxf-services-xkms-features/RELEASE/xml - activemq=mvn:org.apache.activemq/activemq-karaf/RELEASE/xml/features - jclouds=mvn:org.apache.jclouds.karaf/jclouds-karaf/RELEASE/xml/features - openejb=mvn:org.apache.openejb/openejb-feature/RELEASE/xml/features - wicket=mvn:org.ops4j.pax.wicket/features/RELEASE/xml/features - hawtio=mvn:io.hawt/hawtio-karaf/RELEASE/xml/features - pax-cdi=mvn:org.ops4j.pax.cdi/pax-cdi-features/RELEASE/xml/features - pax-jdbc=mvn:org.ops4j.pax.jdbc/pax-jdbc-features/RELEASE/xml/features - pax-jms=mvn:org.ops4j.pax.jms/pax-jms-features/RELEASE/xml/features - pax-jpa=mvn:org.ops4j.pax.jpa/pax-jpa-features/RELEASE/xml/features - pax-transx=mvn:org.ops4j.pax.transx/pax-transx-features/RELEASE/xml/features - pax-keycloak=mvn:org.ops4j.pax.keycloak/pax-keycloak-features/RELEASE/xml/features - pax-web=mvn:org.ops4j.pax.web/pax-web-features/RELEASE/xml/features - pax-wicket=mvn:org.ops4j.pax.wicket/pax-wicket-features/RELEASE/xml/features - ecf=http://download.eclipse.org/rt/ecf/RELEASE/site.p2/karaf-features.xml - decanter=mvn:org.apache.karaf.decanter/apache-karaf-decanter/RELEASE/xml/features - eclipsesource-jaxrs=mvn:com.eclipsesource.jaxrs/features/RELEASE/xml/features - aries-jpa=mvn:org.apache.aries.jpa/jpa-features/RELEASE/xml/features - aries-rsa=mvn:org.apache.aries.rsa/rsa-features/RELEASE/xml/features - hibernate=mvn:org.hibernate/hibernate-osgi/RELEASE/xml/karaf - ignite=mvn:org.apache.ignite/ignite-osgi-karaf/RELEASE/xml/features - openjpa=mvn:org.apache.openjpa/openjpa-features/RELEASE/xml/features - artemis=mvn:org.apache.activemq/artemis-features/RELEASE/xml/features - brave=mvn:io.zipkin.brave.karaf/brave-features/RELEASE/xml/features - sling=mvn:org.apache.sling/org.apache.sling.karaf-features/RELEASE/xml/features +################################################################################ +# +# Licensed to the Apache Software Foundation (ASF) under one or more +# contributor license agreements. See the NOTICE file distributed with +# this work for additional information regarding copyright ownership. +# The ASF licenses this file to You under the Apache License, Version 2.0 +# (the "License"); you may not use this file except in compliance with +# the License. You may obtain a copy of the License at +# +# http://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. +# +################################################################################ + +# +# This file describes the features repository URL +# It could be directly installed using feature:repo-add command +# +enterprise=mvn:org.apache.karaf.features/enterprise/${karaf.version}/xml/features +enterprise-legacy=mvn:org.apache.karaf.features/enterprise-legacy/${karaf.version}/xml/features +spring=mvn:org.apache.karaf.features/spring/${karaf.version}/xml/features +spring-legacy=mvn:org.apache.karaf.features/spring-legacy/${karaf.version}/xml/features +cellar=mvn:org.apache.karaf.cellar/apache-karaf-cellar/RELEASE/xml/features +cave=mvn:org.apache.karaf.cave/apache-karaf-cave/RELEASE/xml/features +camel=mvn:org.apache.camel.karaf/apache-camel/RELEASE/xml/features +camel-extras=mvn:org.apache-extras.camel-extra.karaf/camel-extra/RELEASE/xml/features +cxf=mvn:org.apache.cxf.karaf/apache-cxf/RELEASE/xml/features +cxf-dosgi=mvn:org.apache.cxf.dosgi/cxf-dosgi/RELEASE/xml/features +cxf-dosgi-samples=mvn:org.apache.cxf.dosgi/cxf-dosgi-samples/RELEASE/xml/features +cxf-xkms=mvn:org.apache.cxf.services.xkms/cxf-services-xkms-features/RELEASE/xml +activemq=mvn:org.apache.activemq/activemq-karaf/RELEASE/xml/features +jclouds=mvn:org.apache.jclouds.karaf/jclouds-karaf/RELEASE/xml/features +openejb=mvn:org.apache.openejb/openejb-feature/RELEASE/xml/features +wicket=mvn:org.ops4j.pax.wicket/features/RELEASE/xml/features +hawtio=mvn:io.hawt/hawtio-karaf/RELEASE/xml/features +pax-cdi=mvn:org.ops4j.pax.cdi/pax-cdi-features/RELEASE/xml/features +pax-jdbc=mvn:org.ops4j.pax.jdbc/pax-jdbc-features/RELEASE/xml/features +pax-jms=mvn:org.ops4j.pax.jms/pax-jms-features/RELEASE/xml/features +pax-jpa=mvn:org.ops4j.pax.jpa/pax-jpa-features/RELEASE/xml/features +pax-transx=mvn:org.ops4j.pax.transx/pax-transx-features/RELEASE/xml/features +pax-keycloak=mvn:org.ops4j.pax.keycloak/pax-keycloak-features/RELEASE/xml/features +pax-web=mvn:org.ops4j.pax.web/pax-web-features/RELEASE/xml/features +pax-wicket=mvn:org.ops4j.pax.wicket/pax-wicket-features/RELEASE/xml/features +ecf=http://download.eclipse.org/rt/ecf/RELEASE/site.p2/karaf-features.xml +decanter=mvn:org.apache.karaf.decanter/apache-karaf-decanter/RELEASE/xml/features +eclipsesource-jaxrs=mvn:com.eclipsesource.jaxrs/features/RELEASE/xml/features +aries-jpa=mvn:org.apache.aries.jpa/jpa-features/RELEASE/xml/features +aries-rsa=mvn:org.apache.aries.rsa/rsa-features/RELEASE/xml/features +hibernate=mvn:org.hibernate/hibernate-osgi/RELEASE/xml/karaf +ignite=mvn:org.apache.ignite/ignite-osgi-karaf/RELEASE/xml/features +openjpa=mvn:org.apache.openjpa/openjpa-features/RELEASE/xml/features +artemis=mvn:org.apache.activemq/artemis-features/RELEASE/xml/features +brave=mvn:io.zipkin.brave.karaf/brave-features/RELEASE/xml/features +sling=mvn:org.apache.sling/org.apache.sling.karaf-features/RELEASE/xml/features </config> <conditional> <condition>shell</condition> <config name="org.apache.karaf.command.acl.feature"> - ################################################################################ - # - # Licensed to the Apache Software Foundation (ASF) under one or more - # contributor license agreements. See the NOTICE file distributed with - # this work for additional information regarding copyright ownership. - # The ASF licenses this file to You under the Apache License, Version 2.0 - # (the "License"); you may not use this file except in compliance with - # the License. You may obtain a copy of the License at - # - # http://www.apache.org/licenses/LICENSE-2.0 - # - # Unless required by applicable law or agreed to in writing, software - # distributed under the License is distributed on an "AS IS" BASIS, - # WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - # See the License for the specific language governing permissions and - # limitations under the License. - # - ################################################################################ - - # - # This configuration file defines the ACLs for commands in the feature subshell - # - install = admin - uninstall = admin - start = admin - stop = admin - update = admin +################################################################################ +# +# Licensed to the Apache Software Foundation (ASF) under one or more +# contributor license agreements. See the NOTICE file distributed with +# this work for additional information regarding copyright ownership. +# The ASF licenses this file to You under the Apache License, Version 2.0 +# (the "License"); you may not use this file except in compliance with +# the License. You may obtain a copy of the License at +# +# http://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. +# +################################################################################ + +# +# This configuration file defines the ACLs for commands in the feature subshell +# +install = admin +uninstall = admin +start = admin +stop = admin +update = admin </config> <bundle start-level="30">mvn:org.apache.karaf.features/org.apache.karaf.features.command/${project.version}</bundle> </conditional> @@ -166,191 +166,191 @@ <feature name="shell" description="Karaf Shell" version="${project.version}"> <feature>jaas-boot</feature> <config name="org.apache.karaf.command.acl.shell"> - ################################################################################ - # - # Licensed to the Apache Software Foundation (ASF) under one or more - # contributor license agreements. See the NOTICE file distributed with - # this work for additional information regarding copyright ownership. - # The ASF licenses this file to You under the Apache License, Version 2.0 - # (the "License"); you may not use this file except in compliance with - # the License. You may obtain a copy of the License at - # - # http://www.apache.org/licenses/LICENSE-2.0 - # - # Unless required by applicable law or agreed to in writing, software - # distributed under the License is distributed on an "AS IS" BASIS, - # WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - # See the License for the specific language governing permissions and - # limitations under the License. - # - ################################################################################ - - # - # This configuration file defines the ACLs for commands in the shell subshell - # - nano = admin - exec = admin - new = admin - java = admin +################################################################################ +# +# Licensed to the Apache Software Foundation (ASF) under one or more +# contributor license agreements. See the NOTICE file distributed with +# this work for additional information regarding copyright ownership. +# The ASF licenses this file to You under the Apache License, Version 2.0 +# (the "License"); you may not use this file except in compliance with +# the License. You may obtain a copy of the License at +# +# http://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. +# +################################################################################ + +# +# This configuration file defines the ACLs for commands in the shell subshell +# +nano = admin +exec = admin +new = admin +java = admin </config> <config name="org.apache.karaf.command.acl.scope_bundle"> - ################################################################################ - # - # Licensed to the Apache Software Foundation (ASF) under one or more - # contributor license agreements. See the NOTICE file distributed with - # this work for additional information regarding copyright ownership. - # The ASF licenses this file to You under the Apache License, Version 2.0 - # (the "License"); you may not use this file except in compliance with - # the License. You may obtain a copy of the License at - # - # http://www.apache.org/licenses/LICENSE-2.0 - # - # Unless required by applicable law or agreed to in writing, software - # distributed under the License is distributed on an "AS IS" BASIS, - # WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - # See the License for the specific language governing permissions and - # limitations under the License. - # - ################################################################################ - - # - # This configuration file defines the ACLs for scope bundles - # - features=org.apache.karaf.features.command - jaas=org.apache.karaf.jaas.command - admin=org.apache.karaf.admin.command - osgi=org.apache.karaf.shell.osgi - log=org.apache.karaf.shell.log - packages=org.apache.karaf.shell.packages - config=org.apache.karaf.shell.config - ssh=org.apache.karaf.shell.ssh - shell=org.apache.karaf.shell.commands +################################################################################ +# +# Licensed to the Apache Software Foundation (ASF) under one or more +# contributor license agreements. See the NOTICE file distributed with +# this work for additional information regarding copyright ownership. +# The ASF licenses this file to You under the Apache License, Version 2.0 +# (the "License"); you may not use this file except in compliance with +# the License. You may obtain a copy of the License at +# +# http://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. +# +################################################################################ + +# +# This configuration file defines the ACLs for scope bundles +# +features=org.apache.karaf.features.command +jaas=org.apache.karaf.jaas.command +admin=org.apache.karaf.admin.command +osgi=org.apache.karaf.shell.osgi +log=org.apache.karaf.shell.log +packages=org.apache.karaf.shell.packages +config=org.apache.karaf.shell.config +ssh=org.apache.karaf.shell.ssh +shell=org.apache.karaf.shell.commands </config> <config name="org.apache.karaf.shell"> - ################################################################################ - # - # Licensed to the Apache Software Foundation (ASF) under one or more - # contributor license agreements. See the NOTICE file distributed with - # this work for additional information regarding copyright ownership. - # The ASF licenses this file to You under the Apache License, Version 2.0 - # (the "License"); you may not use this file except in compliance with - # the License. You may obtain a copy of the License at - # - # http://www.apache.org/licenses/LICENSE-2.0 - # - # Unless required by applicable law or agreed to in writing, software - # distributed under the License is distributed on an "AS IS" BASIS, - # WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - # See the License for the specific language governing permissions and - # limitations under the License. - # - ################################################################################ - - # - # These properties are used to configure Karaf's ssh shell. - # - - # - # Via sshPort and sshHost you define the address you can login into Karaf. - # - sshPort = 8101 - sshHost = 0.0.0.0 - - # - # The sshIdleTimeout defines the inactivity timeout to logout the SSH session. - # The sshIdleTimeout is in milliseconds, and the default is set to 30 minutes. - # - sshIdleTimeout = 1800000 - - # - # sshRealm defines which JAAS domain to use for password authentication. - # - sshRealm = karaf - - # - # sshRole defines the role required to access the console through ssh - # - sshRole = ssh - - # - # Defines if the SFTP system is enabled or not in the SSH server - # - sftpEnabled=true - - # - # The location of the hostKey file defines where the private/public key of the server - # is located. If no file is at the defined location it will be ignored. - # - hostKey = ${karaf.etc}/host.key - - # - # The format used for hostKey. - # Possible values are simple (Karaf internal), or PEM (OpenSSH format) - # - hostKeyFormat = simple - - # - # Self defined key size in 1024, 2048, 3072, or 4096 - # If not set, this defaults to 2048. - # - # keySize = 2048 - - # - # Specify host key algorithm, defaults to RSA - # - # algorithm = RSA - - # - # Specify the client log level (default is WARN) - # 0: ERROR - # 1: WARN - # 2: INFO - # 3: DEBUG - # 4: TRACE - # - #logLevel = 1 - - # - # Specify an additional welcome banner to be displayed when a user logs into the server. - # - # welcomeBanner = - - # - # Defines the completion mode on the Karaf shell console. The possible values are: - # - GLOBAL: it's the same behavior as in previous Karaf releases. The completion displays all commands and all aliases - # ignoring if you are in a subshell or not. - # - FIRST: the completion displays all commands and all aliases only when you are not in a subshell. When you are - # in a subshell, the completion displays only the commands local to the subshell. - # - SUBSHELL: the completion displays only the subshells on the root level. When you are in a subshell, the completion - # displays only the commands local to the subshell. - # This property define the default value when you use the Karaf shell console. - # You can change the completion mode directly in the shell console, using shell:completion command. - # - completionMode = GLOBAL - - # - # Override allowed SSH cipher algorithms. - # Default: aes128-ctr,arcfour128,aes128-cbc,3des-cbc,blowfish-cbc - # - # ciphers = aes128-ctr,arcfour128,aes128-cbc,3des-cbc,blowfish-cbc - - # - # Override allowed SSH HMAC algorithms. - # Default: hmac-sha2-512,hmac-sha2-256,hmac-sha1 - # - # macs = hmac-sha2-512,hmac-sha2-256,hmac-sha1 - - # - # Override allowed SSH key exchange algorithms. - # Default: diffie-hellman-group-exchange-sha256,ecdh-sha2-nistp521,ecdh-sha2-nistp384,ecdh-sha2-nistp256,diffie-hellman-group-exchange-sha1,diffie-hellman-group1-sha1 - # - # kexAlgorithms = diffie-hellman-group-exchange-sha256,ecdh-sha2-nistp521,ecdh-sha2-nistp384,ecdh-sha2-nistp256,diffie-hellman-group-exchange-sha1,diffie-hellman-group1-sha1 - - # - # Override moduli-url. - # Default: moduli-url not specified to use the internal one from SSHD - # - # moduli-url = external moduli-url users wanna use +################################################################################ +# +# Licensed to the Apache Software Foundation (ASF) under one or more +# contributor license agreements. See the NOTICE file distributed with +# this work for additional information regarding copyright ownership. +# The ASF licenses this file to You under the Apache License, Version 2.0 +# (the "License"); you may not use this file except in compliance with +# the License. You may obtain a copy of the License at +# +# http://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. +# +################################################################################ + +# +# These properties are used to configure Karaf's ssh shell. +# + +# +# Via sshPort and sshHost you define the address you can login into Karaf. +# +sshPort = 8101 +sshHost = 0.0.0.0 + +# +# The sshIdleTimeout defines the inactivity timeout to logout the SSH session. +# The sshIdleTimeout is in milliseconds, and the default is set to 30 minutes. +# +sshIdleTimeout = 1800000 + +# +# sshRealm defines which JAAS domain to use for password authentication. +# +sshRealm = karaf + +# +# sshRole defines the role required to access the console through ssh +# +sshRole = ssh + +# +# Defines if the SFTP system is enabled or not in the SSH server +# +sftpEnabled=true + +# +# The location of the hostKey file defines where the private/public key of the server +# is located. If no file is at the defined location it will be ignored. +# +hostKey = ${karaf.etc}/host.key + +# +# The format used for hostKey. +# Possible values are simple (Karaf internal), or PEM (OpenSSH format) +# +hostKeyFormat = simple + +# +# Self defined key size in 1024, 2048, 3072, or 4096 +# If not set, this defaults to 2048. +# +# keySize = 2048 + +# +# Specify host key algorithm, defaults to RSA +# +# algorithm = RSA + +# +# Specify the client log level (default is WARN) +# 0: ERROR +# 1: WARN +# 2: INFO +# 3: DEBUG +# 4: TRACE +# +#logLevel = 1 + +# +# Specify an additional welcome banner to be displayed when a user logs into the server. +# +# welcomeBanner = + +# +# Defines the completion mode on the Karaf shell console. The possible values are: +# - GLOBAL: it's the same behavior as in previous Karaf releases. The completion displays all commands and all aliases +# ignoring if you are in a subshell or not. +# - FIRST: the completion displays all commands and all aliases only when you are not in a subshell. When you are +# in a subshell, the completion displays only the commands local to the subshell. +# - SUBSHELL: the completion displays only the subshells on the root level. When you are in a subshell, the completion +# displays only the commands local to the subshell. +# This property define the default value when you use the Karaf shell console. +# You can change the completion mode directly in the shell console, using shell:completion command. +# +completionMode = GLOBAL + +# +# Override allowed SSH cipher algorithms. +# Default: aes128-ctr,arcfour128,aes128-cbc,3des-cbc,blowfish-cbc +# +# ciphers = aes128-ctr,arcfour128,aes128-cbc,3des-cbc,blowfish-cbc + +# +# Override allowed SSH HMAC algorithms. +# Default: hmac-sha2-512,hmac-sha2-256,hmac-sha1 +# +# macs = hmac-sha2-512,hmac-sha2-256,hmac-sha1 + +# +# Override allowed SSH key exchange algorithms. +# Default: diffie-hellman-group-exchange-sha256,ecdh-sha2-nistp521,ecdh-sha2-nistp384,ecdh-sha2-nistp256,diffie-hellman-group-exchange-sha1,diffie-hellman-group1-sha1 +# +# kexAlgorithms = diffie-hellman-group-exchange-sha256,ecdh-sha2-nistp521,ecdh-sha2-nistp384,ecdh-sha2-nistp256,diffie-hellman-group-exchange-sha1,diffie-hellman-group1-sha1 + +# +# Override moduli-url. +# Default: moduli-url not specified to use the internal one from SSHD +# +# moduli-url = external moduli-url users wanna use </config> <feature>jline</feature> @@ -409,93 +409,93 @@ <conditional> <condition>management</condition> <config name="jmx.acl.org.apache.karaf.bundle"> - ################################################################################ - # - # Licensed to the Apache Software Foundation (ASF) under one or more - # contributor license agreements. See the NOTICE file distributed with - # this work for additional information regarding copyright ownership. - # The ASF licenses this file to You under the Apache License, Version 2.0 - # (the "License"); you may not use this file except in compliance with - # the License. You may obtain a copy of the License at - # - # http://www.apache.org/licenses/LICENSE-2.0 - # - # Unless required by applicable law or agreed to in writing, software - # distributed under the License is distributed on an "AS IS" BASIS, - # WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - # See the License for the specific language governing permissions and - # limitations under the License. - # - ################################################################################ - - # - # JMX ACL specific to the org.apache.karaf:type=bundle,name=* MBean which maps to the Karaf MBean - # to control OSGi bundles. - # - install = manager - refresh = manager - resolve = manager - restart = manager - setStartLevel(java.lang.String, int)[/([1-4])?[0-9]/,/.*/] = admin - setStartLevel = manager - start(java.lang.String)[/([1-4])?[0-9]/] = admin - start = manager - stop(java.lang.String)[/([1-4])?[0-9]/] = admin - stop = manager - uninstall(java.lang.String)["0"] = #this is a comment, no roles can perform this operation - uninstall = admin - update(java.lang.String)[/([1-4])?[0-9]/] = admin - update(java.lang.String,java.lang.String)[/([1-4])?[0-9]/,/.*/] = admin - update = manager +################################################################################ +# +# Licensed to the Apache Software Foundation (ASF) under one or more +# contributor license agreements. See the NOTICE file distributed with +# this work for additional information regarding copyright ownership. +# The ASF licenses this file to You under the Apache License, Version 2.0 +# (the "License"); you may not use this file except in compliance with +# the License. You may obtain a copy of the License at +# +# http://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. +# +################################################################################ + +# +# JMX ACL specific to the org.apache.karaf:type=bundle,name=* MBean which maps to the Karaf MBean +# to control OSGi bundles. +# +install = manager +refresh = manager +resolve = manager +restart = manager +setStartLevel(java.lang.String, int)[/([1-4])?[0-9]/,/.*/] = admin +setStartLevel = manager +start(java.lang.String)[/([1-4])?[0-9]/] = admin +start = manager +stop(java.lang.String)[/([1-4])?[0-9]/] = admin +stop = manager +uninstall(java.lang.String)["0"] = #this is a comment, no roles can perform this operation +uninstall = admin +update(java.lang.String)[/([1-4])?[0-9]/] = admin +update(java.lang.String,java.lang.String)[/([1-4])?[0-9]/,/.*/] = admin +update = manager </config> </conditional> <conditional> <condition>shell</condition> <config name="org.apache.karaf.command.acl.bundle"> - ################################################################################ - # - # Licensed to the Apache Software Foundation (ASF) under one or more - # contributor license agreements. See the NOTICE file distributed with - # this work for additional information regarding copyright ownership. - # The ASF licenses this file to You under the Apache License, Version 2.0 - # (the "License"); you may not use this file except in compliance with - # the License. You may obtain a copy of the License at - # - # http://www.apache.org/licenses/LICENSE-2.0 - # - # Unless required by applicable law or agreed to in writing, software - # distributed under the License is distributed on an "AS IS" BASIS, - # WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - # See the License for the specific language governing permissions and - # limitations under the License. - # - ################################################################################ - - # - # This configuration file defines the ACLs for commands in the bundle subshell - # - # For an explanation of the syntax of this file, see the file: - # org.apache.karaf.command.acl.system.cfg - # - # This configuration relies on the fact that 'system' bundles need to be managed - # with the - # -f (--force) - # flag. Operations with -f need admin permission. Most of these operations without - # the 'force' option can be done by a manager. - install = admin - refresh[/.*[-][f].*/] = admin - refresh = manager - restart[/.*[-][f].*/] = admin - restart = manager - start[/.*[-][f].*/] = admin - start = manager - stop[/.*[-][f].*/] = admin - stop = manager - uninstall[/.*[-][f].*/] = admin - uninstall = manager - update[/.*[-][f].*/] = admin - update = manager - watch = admin +################################################################################ +# +# Licensed to the Apache Software Foundation (ASF) under one or more +# contributor license agreements. See the NOTICE file distributed with +# this work for additional information regarding copyright ownership. +# The ASF licenses this file to You under the Apache License, Version 2.0 +# (the "License"); you may not use this file except in compliance with +# the License. You may obtain a copy of the License at +# +# http://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. +# +################################################################################ + +# +# This configuration file defines the ACLs for commands in the bundle subshell +# +# For an explanation of the syntax of this file, see the file: +# org.apache.karaf.command.acl.system.cfg +# +# This configuration relies on the fact that 'system' bundles need to be managed +# with the +# -f (--force) +# flag. Operations with -f need admin permission. Most of these operations without +# the 'force' option can be done by a manager. +install = admin +refresh[/.*[-][f].*/] = admin +refresh = manager +restart[/.*[-][f].*/] = admin +restart = manager +start[/.*[-][f].*/] = admin +start = manager +stop[/.*[-][f].*/] = admin +stop = manager +uninstall[/.*[-][f].*/] = admin +uninstall = manager +update[/.*[-][f].*/] = admin +update = manager +watch = admin </config> </conditional> </feature> @@ -505,107 +505,107 @@ <conditional> <condition>management</condition> <config name="jmx.acl.org.apache.karaf.config"> - ################################################################################ - # - # Licensed to the Apache Software Foundation (ASF) under one or more - # contributor license agreements. See the NOTICE file distributed with - # this work for additional information regarding copyright ownership. - # The ASF licenses this file to You under the Apache License, Version 2.0 - # (the "License"); you may not use this file except in compliance with - # the License. You may obtain a copy of the License at - # - # http://www.apache.org/licenses/LICENSE-2.0 - # - # Unless required by applicable law or agreed to in writing, software - # distributed under the License is distributed on an "AS IS" BASIS, - # WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - # See the License for the specific language governing permissions and - # limitations under the License. - # - ################################################################################ - - # - # JMX ACL specific to the org.apache.karaf:type=config,name=* MBean which maps to the Karaf MBean to interact with the - # OSGi Config Admin service. - # - # For a description of the format of this file, see jmx.acl.cfg - # - # By default, only an admin can make changes to the JMX ACL and shell command rules, but managers can make - # changes to other PIDs. - # - appendProperty(java.lang.String,java.lang.String,java.lang.String)[/jmx[.]acl.*/,/.*/,/.*/] = admin - appendProperty(java.lang.String,java.lang.String,java.lang.String)[/org[.]apache[.]karaf[.]command[.]acl.+/,/.*/,/.*/] = admin - appendProperty(java.lang.String,java.lang.String,java.lang.String)[/org[.]apache[.]karaf[.]service[.]acl.+/,/.*/,/.*/] = admin - appendProperty(java.lang.String,java.lang.String,java.lang.String) = manager - create(java.lang.String)[/jmx[.]acl.*/] = admin - create(java.lang.String)[/org[.]apache[.]karaf[.]command[.]acl.+/] = admin - create(java.lang.String)[/org[.]apache[.]karaf[.]service[.]acl.+/] = admin - create(java.lang.String) = manager - delete(java.lang.String)[/jmx[.]acl.*/] = admin - delete(java.lang.String)[/org[.]apache[.]karaf[.]command[.]acl.+/] = admin - delete(java.lang.String)[/org[.]apache[.]karaf[.]service[.]acl.+/] = admin - delete(java.lang.String) = manager - deleteProperty(java.lang.String,java.lang.String)[/jmx[.]acl.*/,/.*/] = admin - deleteProperty(java.lang.String,java.lang.String)[/org[.]apache[.]karaf[.]command[.]acl.+/,/.*/] = admin - deleteProperty(java.lang.String,java.lang.String)[/org[.]apache[.]karaf[.]service[.]acl.+/,/.*/] = admin - deleteProperty(java.lang.String,java.lang.String) = manager - setProperty(java.lang.String,java.lang.String,java.lang.String)[/jmx[.]acl.*/,/.*/,/.*/] = admin - setProperty(java.lang.String,java.lang.String,java.lang.String)[/org[.]apache[.]karaf[.]command[.]acl.+/,/.*/,/.*/] = admin - setProperty(java.lang.String,java.lang.String,java.lang.String)[/org[.]apache[.]karaf[.]service[.]acl.+/,/.*/,/.*/] = admin - setProperty(java.lang.String,java.lang.String,java.lang.String) = manager - update(java.lang.String,java.util.Map)[/jmx[.]acl.*/,/.*/] = admin - update(java.lang.String,java.util.Map)[/org[.]apache[.]karaf[.]command[.]acl.+/,/.*/] = admin - update(java.lang.String,java.util.Map)[/org[.]apache[.]karaf[.]service[.]acl.+/,/.*/] = admin - update(java.lang.String,java.util.Map) = manager +################################################################################ +# +# Licensed to the Apache Software Foundation (ASF) under one or more +# contributor license agreements. See the NOTICE file distributed with +# this work for additional information regarding copyright ownership. +# The ASF licenses this file to You under the Apache License, Version 2.0 +# (the "License"); you may not use this file except in compliance with +# the License. You may obtain a copy of the License at +# +# http://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. +# +################################################################################ + +# +# JMX ACL specific to the org.apache.karaf:type=config,name=* MBean which maps to the Karaf MBean to interact with the +# OSGi Config Admin service. +# +# For a description of the format of this file, see jmx.acl.cfg +# +# By default, only an admin can make changes to the JMX ACL and shell command rules, but managers can make +# changes to other PIDs. +# +appendProperty(java.lang.String,java.lang.String,java.lang.String)[/jmx[.]acl.*/,/.*/,/.*/] = admin +appendProperty(java.lang.String,java.lang.String,java.lang.String)[/org[.]apache[.]karaf[.]command[.]acl.+/,/.*/,/.*/] = admin +appendProperty(java.lang.String,java.lang.String,java.lang.String)[/org[.]apache[.]karaf[.]service[.]acl.+/,/.*/,/.*/] = admin +appendProperty(java.lang.String,java.lang.String,java.lang.String) = manager +create(java.lang.String)[/jmx[.]acl.*/] = admin +create(java.lang.String)[/org[.]apache[.]karaf[.]command[.]acl.+/] = admin +create(java.lang.String)[/org[.]apache[.]karaf[.]service[.]acl.+/] = admin +create(java.lang.String) = manager +delete(java.lang.String)[/jmx[.]acl.*/] = admin +delete(java.lang.String)[/org[.]apache[.]karaf[.]command[.]acl.+/] = admin +delete(java.lang.String)[/org[.]apache[.]karaf[.]service[.]acl.+/] = admin +delete(java.lang.String) = manager +deleteProperty(java.lang.String,java.lang.String)[/jmx[.]acl.*/,/.*/] = admin +deleteProperty(java.lang.String,java.lang.String)[/org[.]apache[.]karaf[.]command[.]acl.+/,/.*/] = admin +deleteProperty(java.lang.String,java.lang.String)[/org[.]apache[.]karaf[.]service[.]acl.+/,/.*/] = admin +deleteProperty(java.lang.String,java.lang.String) = manager +setProperty(java.lang.String,java.lang.String,java.lang.String)[/jmx[.]acl.*/,/.*/,/.*/] = admin +setProperty(java.lang.String,java.lang.String,java.lang.String)[/org[.]apache[.]karaf[.]command[.]acl.+/,/.*/,/.*/] = admin +setProperty(java.lang.String,java.lang.String,java.lang.String)[/org[.]apache[.]karaf[.]service[.]acl.+/,/.*/,/.*/] = admin +setProperty(java.lang.String,java.lang.String,java.lang.String) = manager +update(java.lang.String,java.util.Map)[/jmx[.]acl.*/,/.*/] = admin +update(java.lang.String,java.util.Map)[/org[.]apache[.]karaf[.]command[.]acl.+/,/.*/] = admin +update(java.lang.String,java.util.Map)[/org[.]apache[.]karaf[.]service[.]acl.+/,/.*/] = admin +update(java.lang.String,java.util.Map) = manager </config> </conditional> <conditional> <condition>shell</condition> <config name="org.apache.karaf.command.acl.config"> - ################################################################################ - # - # Licensed to the Apache Software Foundation (ASF) under one or more - # contributor license agreements. See the NOTICE file distributed with - # this work for additional information regarding copyright ownership. - # The ASF licenses this file to You under the Apache License, Version 2.0 - # (the "License"); you may not use this file except in compliance with - # the License. You may obtain a copy of the License at - # - # http://www.apache.org/licenses/LICENSE-2.0 - # - # Unless required by applicable law or agreed to in writing, software - # distributed under the License is distributed on an "AS IS" BASIS, - # WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - # See the License for the specific language governing permissions and - # limitations under the License. - # - ################################################################################ - - # - # This configuration file defines the ACLs for various commands in the config subshell - # - # For an explanation of the syntax of this file, see the file: - # org.apache.karaf.command.acl.system.cfg - # - cancel = manager - delete = admin - edit = manager - edit[/.*jmx[.]acl.*/] = admin - edit[/.*org[.]apache[.]karaf[.]command[.]acl[.].+/] = admin - edit[/.*org[.]apache[.]karaf[.]service[.]acl[.].+/] = admin - property-append = manager - property-append[/.*jmx[.]acl.*/] = admin - property-append[/.*org[.]apache[.]karaf[.]command[.]acl[.].+/] = admin - property-append[/.*org[.]apache[.]karaf[.]service[.]acl[.].+/] = admin - property-delete = manager - property-delete[/.*jmx[.]acl.*/] = admin - property-delete[/.*org[.]apache[.]karaf[.]command[.]acl[.].+/] = admin - property-delete[/.*org[.]apache[.]karaf[.]service[.]acl[.].+/] = admin - property-set = manager - property-set[/.*jmx[.]acl.*/] = admin - property-set[/.*org[.]apache[.]karaf[.]command[.]acl[.].+/] = admin - property-set[/.*org[.]apache[.]karaf[.]service[.]acl[.].+/] = admin - update = manager +################################################################################ +# +# Licensed to the Apache Software Foundation (ASF) under one or more +# contributor license agreements. See the NOTICE file distributed with +# this work for additional information regarding copyright ownership. +# The ASF licenses this file to You under the Apache License, Version 2.0 +# (the "License"); you may not use this file except in compliance with +# the License. You may obtain a copy of the License at +# +# http://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. +# +################################################################################ + +# +# This configuration file defines the ACLs for various commands in the config subshell +# +# For an explanation of the syntax of this file, see the file: +# org.apache.karaf.command.acl.system.cfg +# +cancel = manager +delete = admin +edit = manager +edit[/.*jmx[.]acl.*/] = admin +edit[/.*org[.]apache[.]karaf[.]command[.]acl[.].+/] = admin +edit[/.*org[.]apache[.]karaf[.]service[.]acl[.].+/] = admin +property-append = manager +property-append[/.*jmx[.]acl.*/] = admin +property-append[/.*org[.]apache[.]karaf[.]command[.]acl[.].+/] = admin +property-append[/.*org[.]apache[.]karaf[.]service[.]acl[.].+/] = admin +property-delete = manager +property-delete[/.*jmx[.]acl.*/] = admin +property-delete[/.*org[.]apache[.]karaf[.]command[.]acl[.].+/] = admin +property-delete[/.*org[.]apache[.]karaf[.]service[.]acl[.].+/] = admin +property-set = manager +property-set[/.*jmx[.]acl.*/] = admin +property-set[/.*org[.]apache[.]karaf[.]command[.]acl[.].+/] = admin +property-set[/.*org[.]apache[.]karaf[.]service[.]acl[.].+/] = admin +update = manager </config> </conditional> </feature> @@ -623,67 +623,67 @@ <feature name="jaas" description="Provide JAAS support" version="${project.version}"> <config name="org.apache.karaf.jaas"> - ################################################################################ - # - # Licensed to the Apache Software Foundation (ASF) under one or more - # contributor license agreements. See the NOTICE file distributed with - # this work for additional information regarding copyright ownership. - # The ASF licenses this file to You under the Apache License, Version 2.0 - # (the "License"); you may not use this file except in compliance with - # the License. You may obtain a copy of the License at - # - # http://www.apache.org/licenses/LICENSE-2.0 - # - # Unless required by applicable law or agreed to in writing, software - # distributed under the License is distributed on an "AS IS" BASIS, - # WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - # See the License for the specific language governing permissions and - # limitations under the License. - # - ################################################################################ - - # - # Boolean enabling / disabling encrypted passwords - # - encryption.enabled = false - - # - # Encryption Service name - # the default one is 'basic' - # a more powerful one named 'jasypt' is available - # when installing the encryption feature - # - encryption.name = - - # - # Encryption prefix - # - encryption.prefix = {CRYPT} - - # - # Encryption suffix - # - encryption.suffix = {CRYPT} - - # - # Set the encryption algorithm to use in Karaf JAAS login module - # Supported encryption algorithms follow: - # MD2 - # MD5 - # SHA-1 - # SHA-256 - # SHA-384 - # SHA-512 - # - encryption.algorithm = MD5 - - # - # Encoding of the encrypted password. - # Can be: - # hexadecimal - # base64 - # - encryption.encoding = hexadecimal +################################################################################ +# +# Licensed to the Apache Software Foundation (ASF) under one or more +# contributor license agreements. See the NOTICE file distributed with +# this work for additional information regarding copyright ownership. +# The ASF licenses this file to You under the Apache License, Version 2.0 +# (the "License"); you may not use this file except in compliance with +# the License. You may obtain a copy of the License at +# +# http://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. +# +################################################################################ + +# +# Boolean enabling / disabling encrypted passwords +# +encryption.enabled = false + +# +# Encryption Service name +# the default one is 'basic' +# a more powerful one named 'jasypt' is available +# when installing the encryption feature +# +encryption.name = + +# +# Encryption prefix +# +encryption.prefix = {CRYPT} + +# +# Encryption suffix +# +encryption.suffix = {CRYPT} + +# +# Set the encryption algorithm to use in Karaf JAAS login module +# Supported encryption algorithms follow: +# MD2 +# MD5 +# SHA-1 +# SHA-256 +# SHA-384 +# SHA-512 +# +encryption.algorithm = MD5 + +# +# Encoding of the encrypted password. +# Can be: +# hexadecimal +# base64 +# +encryption.encoding = hexadecimal </config> <feature>jaas-boot</feature> <bundle start-level="30">mvn:org.apache.karaf.jaas/org.apache.karaf.jaas.config/${project.version}</bundle> @@ -695,29 +695,29 @@ <conditional> <condition>shell</condition> <config name="org.apache.karaf.command.acl.jaas"> - ################################################################################ - # - # Licensed to the Apache Software Foundation (ASF) under one or more - # contributor license agreements. See the NOTICE file distributed with - # this work for additional information regarding copyright ownership. - # The ASF licenses this file to You under the Apache License, Version 2.0 - # (the "License"); you may not use this file except in compliance with - # the License. You may obtain a copy of the License at - # - # http://www.apache.org/licenses/LICENSE-2.0 - # - # Unless required by applicable law or agreed to in writing, software - # distributed under the License is distributed on an "AS IS" BASIS, - # WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - # See the License for the specific language governing permissions and - # limitations under the License. - # - ################################################################################ - - # - # This configuration file defines the ACLs for commands in the jaas subshell - # Jaas commands commands have no effect until update is called. - update = admin +################################################################################ +# +# Licensed to the Apache Software Foundation (ASF) under one or more +# contributor license agreements. See the NOTICE file distributed with +# this work for additional information regarding copyright ownership. +# The ASF licenses this file to You under the Apache License, Version 2.0 +# (the "License"); you may not use this file except in compliance with +# the License. You may obtain a copy of the License at +# +# http://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. +# +################################################################################ + +# +# This configuration file defines the ACLs for commands in the jaas subshell +# Jaas commands commands have no effect until update is called. +update = admin </config> <bundle start-level="30">mvn:org.apache.karaf.jaas/org.apache.karaf.jaas.command/${project.version}</bundle> </conditional> @@ -725,48 +725,48 @@ <feature name="log" description="Provide Log support" version="${project.version}"> <config name="org.apache.karaf.log"> - ################################################################################ - # - # Licensed to the Apache Software Foundation (ASF) under one or more - # contributor license agreements. See the NOTICE file distributed with - # this work for additional information regarding copyright ownership. - # The ASF licenses this file to You under the Apache License, Version 2.0 - # (the "License"); you may not use this file except in compliance with - # the License. You may obtain a copy of the License at - # - # http://www.apache.org/licenses/LICENSE-2.0 - # - # Unless required by applicable law or agreed to in writing, software - # distributed under the License is distributed on an "AS IS" BASIS, - # WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - # See the License for the specific language governing permissions and - # limitations under the License. - # - ################################################################################ - - # - # This configuration file is used to configure the default values for the log:display - # and log:exception-display commands. - # - - # - # The number of log statements to be displayed using log:display. It also defines the number - # of lines searched for exceptions using log:exception-display. You can override this value - # at runtime using -n in log:display. - # - size = I"500" - - # - # The pattern used to format the log statement when using log:display. This pattern is according - # to the log4j layout. You can override this parameter at runtime using log:display with -p. - # - color.fatal = "bright red" - color.error = "bright red" - color.warn = "bright yellow" - color.info = "bright green" - color.debug = "cyan" - color.trace = "cyan" - pattern = "\u001b[90m%d{HH:mm:ss.SSS}\u001b[0m %h{%p}{FATAL=${color.fatal}, ERROR=${color.error}, WARN=${color.warn}, INFO=${color.info}, DEBUG=${color.debug}, TRACE=${color.trace}} \u001b[90m[%t]\u001b[0m %m%n" +################################################################################ +# +# Licensed to the Apache Software Foundation (ASF) under one or more +# contributor license agreements. See the NOTICE file distributed with +# this work for additional information regarding copyright ownership. +# The ASF licenses this file to You under the Apache License, Version 2.0 +# (the "License"); you may not use this file except in compliance with +# the License. You may obtain a copy of the License at +# +# http://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. +# +################################################################################ + +# +# This configuration file is used to configure the default values for the log:display +# and log:exception-display commands. +# + +# +# The number of log statements to be displayed using log:display. It also defines the number +# of lines searched for exceptions using log:exception-display. You can override this value +# at runtime using -n in log:display. +# +size = "500" + +# +# The pattern used to format the log statement when using log:display. This pattern is according +# to the log4j layout. You can override this parameter at runtime using log:display with -p. +# +color.fatal = "bright red" +color.error = "bright red" +color.warn = "bright yellow" +color.info = "bright green" +color.debug = "cyan" +color.trace = "cyan" +pattern = "\u001b[90m%d{HH:mm:ss.SSS}\u001b[0m %h{%p}{FATAL=${color.fatal}, ERROR=${color.error}, WARN=${color.warn}, INFO=${color.info}, DEBUG=${color.debug}, TRACE=${color.trace}} \u001b[90m[%t]\u001b[0m %m%n" </config> <bundle start-level="30">mvn:org.apache.karaf.log/org.apache.karaf.log.core/${project.version}</bundle> </feature> @@ -784,33 +784,33 @@ <conditional> <condition>shell</condition> <config name="org.apache.karaf.command.acl.system"> - ################################################################################ - # - # Licensed to the Apache Software Foundation (ASF) under one or more - # contributor license agreements. See the NOTICE file distributed with - # this work for additional information regarding copyright ownership. - # The ASF licenses this file to You under the Apache License, Version 2.0 - # (the "License"); you may not use this file except in compliance with - # the License. You may obtain a copy of the License at - # - # http://www.apache.org/licenses/LICENSE-2.0 - # - # Unless required by applicable law or agreed to in writing, software - # distributed under the License is distributed on an "AS IS" BASIS, - # WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - # See the License for the specific language governing permissions and - # limitations under the License. - # - ################################################################################ - - # - # This configuration file defines the ACLs for commands in the system subshell - # - property = admin - shutdown = admin - start-level[/.*[1-9][0-9][0-9]+.*/] = manager # manager can set startlevels above 100 - start-level[/[^0-9]*/] = viewer # viewer can obtain the current start level - start-level = admin # admin can set any start level, including < 100 +################################################################################ +# +# Licensed to the Apache Software Foundation (ASF) under one or more +# contributor license agreements. See the NOTICE file distributed with +# this work for additional information regarding copyright ownership. +# The ASF licenses this file to You under the Apache License, Version 2.0 +# (the "License"); you may not use this file except in compliance with +# the License. You may obtain a copy of the License at +# +# http://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. +# +################################################################################ + +# +# This configuration file defines the ACLs for commands in the system subshell +# +property = admin +shutdown = admin +start-level[/.*[1-9][0-9][0-9]+.*/] = manager # manager can set startlevels above 100 +start-level[/[^0-9]*/] = viewer # viewer can obtain the current start level +start-level = admin # admin can set any start level, including < 100 </config> </conditional> </feature> @@ -904,33 +904,33 @@ <conditional> <condition>shell</condition> <config name="org.apache.karaf.command.acl.kar"> - ################################################################################ - # - # Licensed to the Apache Software Foundation (ASF) under one or more - # contributor license agreements. See the NOTICE file distributed with - # this work for additional information regarding copyright ownership. - # The ASF licenses this file to You under the Apache License, Version 2.0 - # (the "License"); you may not use this file except in compliance with - # the License. You may obtain a copy of the License at - # - # http://www.apache.org/licenses/LICENSE-2.0 - # - # Unless required by applicable law or agreed to in writing, software - # distributed under the License is distributed on an "AS IS" BASIS, - # WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - # See the License for the specific language governing permissions and - # limitations under the License. - # - ################################################################################ - - # - # This configuration file defines the ACLs for commands in the kar subshell - # - # For an explanation of the syntax of this file, see the file: - # org.apache.karaf.command.acl.system.cfg - # - install = admin - uninstall = admin +################################################################################ +# +# Licensed to the Apache Software Foundation (ASF) under one or more +# contributor license agreements. See the NOTICE file distributed with +# this work for additional information regarding copyright ownership. +# The ASF licenses this file to You under the Apache License, Version 2.0 +# (the "License"); you may not use this file except in compliance with +# the License. You may obtain a copy of the License at +# +# http://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. +# +################################################################################ + +# +# This configuration file defines the ACLs for commands in the kar subshell +# +# For an explanation of the syntax of this file, see the file: +# org.apache.karaf.command.acl.system.cfg +# +install = admin +uninstall = admin </config> </conditional> </feature> @@ -938,26 +938,26 @@ <feature name="webconsole" description="Base support of the Karaf WebConsole" version="${project.version}"> <feature>jaas-boot</feature> <config name="org.apache.karaf.webconsole"> - ################################################################################ - # - # Licensed to the Apache Software Foundation (ASF) under one or more - # contributor license agreements. See the NOTICE file distributed with - # this work for additional information regarding copyright ownership. - # The ASF licenses this file to You under the Apache License, Version 2.0 - # (the "License"); you may not use this file except in compliance with - # the License. You may obtain a copy of the License at - # - # http://www.apache.org/licenses/LICENSE-2.0 - # - # Unless required by applicable law or agreed to in writing, software - # distributed under the License is distributed on an "AS IS" BASIS, - # WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - # See the License for the specific language governing permissions and - # limitations under the License. - # - ################################################################################ - - realm=karaf +################################################################################ +# +# Licensed to the Apache Software Foundation (ASF) under one or more +# contributor license agreements. See the NOTICE file distributed with +# this work for additional information regarding copyright ownership. +# The ASF licenses this file to You under the Apache License, Version 2.0 +# (the "License"); you may not use this file except in compliance with +# the License. You may obtain a copy of the License at +# +# http://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. +# +################################################################################ + +realm=karaf </config> <feature>http</feature> <bundle start-level="30">mvn:org.apache.felix/org.apache.felix.metatype/${felix.metatype.version}</bundle> @@ -987,314 +987,314 @@ <feature name="management" description="Provide a JMX MBeanServer and a set of MBeans in Karaf" version="${project.version}"> <config name="jmx.acl"> - ################################################################################ - # - # Licensed to the Apache Software Foundation (ASF) under one or more - # contributor license agreements. See the NOTICE file distributed with - # this work for additional information regarding copyright ownership. - # The ASF licenses this file to You under the Apache License, Version 2.0 - # (the "License"); you may not use this file except in compliance with - # the License. You may obtain a copy of the License at - # - # http://www.apache.org/licenses/LICENSE-2.0 - # - # Unless required by applicable law or agreed to in writing, software - # distributed under the License is distributed on an "AS IS" BASIS, - # WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - # See the License for the specific language governing permissions and - # limitations under the License. - # - ################################################################################ - - # - # Generic JMX ACL - # - # This file defines the roles required for MBean operations for MBeans that - # do not have this defined explicitly. - # - # The definition of ACLs for JMX operations works as follows: - # - # The required roles for JMX operations are defined in configuration files - # read via OSGi ConfigAdmin. - # - # JMX RBAC-related configuration is prefixed with jmx.acl and based on the - # JMX ObjectName that it applies to. For example specific configuration for - # an MBean with the following objectName: foo.bar:type=Test can be placed in - # a configuration file called jmx.acl.foo.bar.Test.cfg. More generic - # configuration can be placed in the domain (e.g. jmx.acl.foo.bar.cfg) or - # at the top level (jmx.acl.cfg). A simple configuration file looks like - # this: - # test : admin - # getVal : manager, viewer - # - # The system looks for required roles using the following process: - # The most specific configuration file/pid is tried first. E.g. in the - # above example the jmx.acl.foo.bar.Test.cfg is looked at first. In this - # configuration, the system looks for a: - # 1. Specific match for the current invocation, e.g. test(int)["17"] : role1 - # 2. Reg exp match for the current invocation, e.g. test(int)[/[0-9]/] : role2 - # In both cases the passed argument is converted to a String for the - # comparison. - # If any of the above match all the roles with matching definitions - # are collected and allowed. If no matches are found the following is tried: - # 3. Signature match for the invocation, e.g. test(int) : role3. If - # matched the associated roles are used. - # 4. Method name match for the invocation, e.g. test : role4. If matched - # the associated roles are used. - # 5. A method name wildcard match, e.g. te* : role5. For all the - # wildcard matches found in the current configuration file, the roles - # associated with the longest match are used. So if you have te* and * and - # the method invoked is 'test', then the roles defined with te* are used, - # not the ones defined with *. - # If no matching definition is found in the current configuration file, a - # more general configuration file is looked for. So jmx.acl.foo.bar.cfg is - # tried next, this matches the domain of the MBean. If there is no match - # found in the domain the most generic configuration file is consulted - # (jmx.acl.cfg). - # If a matching definition is found, this is used and the process will not - # look for any other matching definitions. So the most specific definition - # always takes precedence. - # - list* = viewer - get* = viewer - is* = viewer - set* = admin - * = admin +################################################################################ +# +# Licensed to the Apache Software Foundation (ASF) under one or more +# contributor license agreements. See the NOTICE file distributed with +# this work for additional information regarding copyright ownership. +# The ASF licenses this file to You under the Apache License, Version 2.0 +# (the "License"); you may not use this file except in compliance with +# the License. You may obtain a copy of the License at +# +# http://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. +# +################################################################################ + +# +# Generic JMX ACL +# +# This file defines the roles required for MBean operations for MBeans that +# do not have this defined explicitly. +# +# The definition of ACLs for JMX operations works as follows: +# +# The required roles for JMX operations are defined in configuration files +# read via OSGi ConfigAdmin. +# +# JMX RBAC-related configuration is prefixed with jmx.acl and based on the +# JMX ObjectName that it applies to. For example specific configuration for +# an MBean with the following objectName: foo.bar:type=Test can be placed in +# a configuration file called jmx.acl.foo.bar.Test.cfg. More generic +# configuration can be placed in the domain (e.g. jmx.acl.foo.bar.cfg) or +# at the top level (jmx.acl.cfg). A simple configuration file looks like +# this: +# test : admin +# getVal : manager, viewer +# +# The system looks for required roles using the following process: +# The most specific configuration file/pid is tried first. E.g. in the +# above example the jmx.acl.foo.bar.Test.cfg is looked at first. In this +# configuration, the system looks for a: +# 1. Specific match for the current invocation, e.g. test(int)["17"] : role1 +# 2. Reg exp match for the current invocation, e.g. test(int)[/[0-9]/] : role2 +# In both cases the passed argument is converted to a String for the +# comparison. +# If any of the above match all the roles with matching definitions +# are collected and allowed. If no matches are found the following is tried: +# 3. Signature match for the invocation, e.g. test(int) : role3. If +# matched the associated roles are used. +# 4. Method name match for the invocation, e.g. test : role4. If matched +# the associated roles are used. +# 5. A method name wildcard match, e.g. te* : role5. For all the +# wildcard matches found in the current configuration file, the roles +# associated with the longest match are used. So if you have te* and * and +# the method invoked is 'test', then the roles defined with te* are used, +# not the ones defined with *. +# If no matching definition is found in the current configuration file, a +# more general configuration file is looked for. So jmx.acl.foo.bar.cfg is +# tried next, this matches the domain of the MBean. If there is no match +# found in the domain the most generic configuration file is consulted +# (jmx.acl.cfg). +# If a matching definition is found, this is used and the process will not +# look for any other matching definitions. So the most specific definition +# always takes precedence. +# +list* = viewer +get* = viewer +is* = viewer +set* = admin +* = admin </config> <config name="jmx.acl.org.apache.karaf.security.jmx"> - ################################################################################ - # - # Licensed to the Apache Software Foundation (ASF) under one or more - # contributor license agreements. See the NOTICE file distributed with - # this work for additional information regarding copyright ownership. - # The ASF licenses this file to You under the Apache License, Version 2.0 - # (the "License"); you may not use this file except in compliance with - # the License. You may obtain a copy of the License at - # - # http://www.apache.org/licenses/LICENSE-2.0 - # - # Unless required by applicable law or agreed to in writing, software - # distributed under the License is distributed on an "AS IS" BASIS, - # WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - # See the License for the specific language governing permissions and - # limitations under the License. - # - ################################################################################ - - # - # JMX ACL specific to the org.apache.karaf:type=security,area=jmx MBean which - # can be used to find out whether the currently logged in JMX user can invoke - # the requested JMX operations. - # - # For a description of the format of this file, see jmx.acl.cfg - # - canInvoke = viewer +################################################################################ +# +# Licensed to the Apache Software Foundation (ASF) under one or more +# contributor license agreements. See the NOTICE file distributed with +# this work for additional information regarding copyright ownership. +# The ASF licenses this file to You under the Apache License, Version 2.0 +# (the "License"); you may not use this file except in compliance with +# the License. You may obtain a copy of the License at +# +# http://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. +# +################################################################################ + +# +# JMX ACL specific to the org.apache.karaf:type=security,area=jmx MBean which +# can be used to find out whether the currently logged in JMX user can invoke +# the requested JMX operations. +# +# For a description of the format of this file, see jmx.acl.cfg +# +canInvoke = viewer </config> <config name="jmx.acl.java.lang.Memory"> - ################################################################################ - # - # Licensed to the Apache Software Foundation (ASF) under one or more - # contributor license agreements. See the NOTICE file distributed with - # this work for additional information regarding copyright ownership. - # The ASF licenses this file to You under the Apache License, Version 2.0 - # (the "License"); you may not use this file except in compliance with - # the License. You may obtain a copy of the License at - # - # http://www.apache.org/licenses/LICENSE-2.0 - # - # Unless required by applicable law or agreed to in writing, software - # distributed under the License is distributed on an "AS IS" BASIS, - # WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - # See the License for the specific language governing permissions and - # limitations under the License. - # - ################################################################################ - - # - # JMX ACL specific to the java.lang.Memory MBean - # - # For a description of the format of this file, see jmx.acl.cfg - # - gc = manager +################################################################################ +# +# Licensed to the Apache Software Foundation (ASF) under one or more +# contributor license agreements. See the NOTICE file distributed with +# this work for additional information regarding copyright ownership. +# The ASF licenses this file to You under the Apache License, Version 2.0 +# (the "License"); you may not use this file except in compliance with +# the License. You may obtain a copy of the License at +# +# http://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. +# +################################################################################ + +# +# JMX ACL specific to the java.lang.Memory MBean +# +# For a description of the format of this file, see jmx.acl.cfg +# +gc = manager </config> <config name="jmx.acl.osgi.compendium.cm"> - ################################################################################ - # - # Licensed to the Apache Software Foundation (ASF) under one or more - # contributor license agreements. See the NOTICE file distributed with - # this work for additional information regarding copyright ownership. - # The ASF licenses this file to You under the Apache License, Version 2.0 - # (the "License"); you may not use this file except in compliance with - # the License. You may obtain a copy of the License at - # - # http://www.apache.org/licenses/LICENSE-2.0 - # - # Unless required by applicable law or agreed to in writing, software - # distributed under the License is distributed on an "AS IS" BASIS, - # WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - # See the License for the specific language governing permissions and - # limitations under the License. - # - ################################################################################ - - # - # JMX ACL specific to osgi.compendium.cm MBean - # - # For a description of the format of this file, see jmx.acl.cfg - # - # This configuration file configures the management of ConfigAdmin via the standard ConfigAdmin MBean - # Such that only an admin can make changes to the JMX ACL rules, but managers can make - # changes to other PIDs. - # - createFactoryConfiguration(java.lang.String)[/jmx[.]acl.*/] = admin - createFactoryConfiguration(java.lang.String)[/org[.]apache[.]karaf[.]command[.]acl[.].+/] = admin - createFactoryConfiguration(java.lang.String)[/org[.]apache[.]karaf[.]service[.]acl[.].+/] = admin - createFactoryConfiguration(java.lang.String) = manager - createFactoryConfigurationForLocation(java.lang.String,java.lang.String)[/jmx[.]acl.*/,/.*/] = admin - createFactoryConfigurationForLocation(java.lang.String,java.lang.String)[/org[.]apache[.]karaf[.]command[.]acl[.].+/,/.*/] = admin - createFactoryConfigurationForLocation(java.lang.String,java.lang.String)[/org[.]apache[.]karaf[.]service[.]acl[.].+/,/.*/] = admin - createFactoryConfigurationForLocation(java.lang.String,java.lang.String) = manager - delete(java.lang.String)[/jmx[.]acl.*/] = admin - delete(java.lang.String)[/org[.]apache[.]karaf[.]command[.]acl[.].+/] = admin - delete(java.lang.String)[/org[.]apache[.]karaf[.]service[.]acl[.].+/] = admin - delete(java.lang.String) = manager - deleteConfigurations = admin - deleteForLocation(java.lang.String,java.lang.String)[/jmx[.]acl.*/,/.*/] = admin - deleteForLocation(java.lang.String,java.lang.String)[/org[.]apache[.]karaf[.]command[.]acl[.].+/,/.*/] = admin - deleteForLocation(java.lang.String,java.lang.String)[/org[.]apache[.]karaf[.]service[.]acl[.].+/,/.*/] = admin - deleteForLocation(java.lang.String,java.lang.String) = manager - update(java.lang.String,javax.management.openmbean.TabularData)[/jmx[.]acl.*/,/.*/] = admin - update(java.lang.String,javax.management.openmbean.TabularData)[/org[.]apache[.]karaf[.]command[.]acl[.].+/,/.*/] = admin - update(java.lang.String,javax.management.openmbean.TabularData)[/org[.]apache[.]karaf[.]service[.]acl[.].+/,/.*/] = admin - update(java.lang.String,javax.management.openmbean.TabularData) = manager - updateForLocation(java.lang.String,java.lang.String,javax.management.openmbean.TabularData)[/jmx[.]acl.*/,/.*/,/.*/] = admin - updateForLocation(java.lang.String,java.lang.String,javax.management.openmbean.TabularData)[/org[.]apache[.]karaf[.]command[.]acl[.].+/,/.*/,/.*/] = admin - updateForLocation(java.lang.String,java.lang.String,javax.management.openmbean.TabularData)[/org[.]apache[.]karaf[.]service[.]acl[.].+/,/.*/,/.*/] = admin - updateForLocation(java.lang.String,java.lang.String,javax.management.openmbean.TabularData) = manager +################################################################################ +# +# Licensed to the Apache Software Foundation (ASF) under one or more +# contributor license agreements. See the NOTICE file distributed with +# this work for additional information regarding copyright ownership. +# The ASF licenses this file to You under the Apache License, Version 2.0 +# (the "License"); you may not use this file except in compliance with +# the License. You may obtain a copy of the License at +# +# http://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. +# +################################################################################ + +# +# JMX ACL specific to osgi.compendium.cm MBean +# +# For a description of the format of this file, see jmx.acl.cfg +# +# This configuration file configures the management of ConfigAdmin via the standard ConfigAdmin MBean +# Such that only an admin can make changes to the JMX ACL rules, but managers can make +# changes to other PIDs. +# +createFactoryConfiguration(java.lang.String)[/jmx[.]acl.*/] = admin +createFactoryConfiguration(java.lang.String)[/org[.]apache[.]karaf[.]command[.]acl[.].+/] = admin +createFactoryConfiguration(java.lang.String)[/org[.]apache[.]karaf[.]service[.]acl[.].+/] = admin +createFactoryConfiguration(java.lang.String) = manager +createFactoryConfigurationForLocation(java.lang.String,java.lang.String)[/jmx[.]acl.*/,/.*/] = admin +createFactoryConfigurationForLocation(java.lang.String,java.lang.String)[/org[.]apache[.]karaf[.]command[.]acl[.].+/,/.*/] = admin +createFactoryConfigurationForLocation(java.lang.String,java.lang.String)[/org[.]apache[.]karaf[.]service[.]acl[.].+/,/.*/] = admin +createFactoryConfigurationForLocation(java.lang.String,java.lang.String) = manager +delete(java.lang.String)[/jmx[.]acl.*/] = admin +delete(java.lang.String)[/org[.]apache[.]karaf[.]command[.]acl[.].+/] = admin +delete(java.lang.String)[/org[.]apache[.]karaf[.]service[.]acl[.].+/] = admin +delete(java.lang.String) = manager +deleteConfigurations = admin +deleteForLocation(java.lang.String,java.lang.String)[/jmx[.]acl.*/,/.*/] = admin +deleteForLocation(java.lang.String,java.lang.String)[/org[.]apache[.]karaf[.]command[.]acl[.].+/,/.*/] = admin +deleteForLocation(java.lang.String,java.lang.String)[/org[.]apache[.]karaf[.]service[.]acl[.].+/,/.*/] = admin +deleteForLocation(java.lang.String,java.lang.String) = manager +update(java.lang.String,javax.management.openmbean.TabularData)[/jmx[.]acl.*/,/.*/] = admin +update(java.lang.String,javax.management.openmbean.TabularData)[/org[.]apache[.]karaf[.]command[.]acl[.].+/,/.*/] = admin +update(java.lang.String,javax.management.openmbean.TabularData)[/org[.]apache[.]karaf[.]service[.]acl[.].+/,/.*/] = admin +update(java.lang.String,javax.management.openmbean.TabularData) = manager +updateForLocation(java.lang.String,java.lang.String,javax.management.openmbean.TabularData)[/jmx[.]acl.*/,/.*/,/.*/] = admin +updateForLocation(java.lang.String,java.lang.String,javax.management.openmbean.TabularData)[/org[.]apache[.]karaf[.]command[.]acl[.].+/,/.*/,/.*/] = admin +updateForLocation(java.lang.String,java.lang.String,javax.management.openmbean.TabularData)[/org[.]apache[.]karaf[.]service[.]acl[.].+/,/.*/,/.*/] = admin +updateForLocation(java.lang.String,java.lang.String,javax.management.openmbean.TabularData) = manager </config> <config name="org.apache.karaf.management"> - ################################################################################ - # - # Licensed to the Apache Software Foundation (ASF) under one or more - # contributor license agreements. See the NOTICE file distributed with - # this work for additional information regarding copyright ownership. - # The ASF licenses this file to You under the Apache License, Version 2.0 - # (the "License"); you may not use this file except in compliance with - # the License. You may obtain a copy of the License at - # - # http://www.apache.org/licenses/LICENSE-2.0 - # - # Unless required by applicable law or agreed to in writing, software - # distributed under the License is distributed on an "AS IS" BASIS, - # WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - # See the License for the specific language governing permissions and - # limitations under the License. - # - ################################################################################ - - # - # The properties in this file define the configuration of Apache Karaf's JMX Management - # - - # - # Port number for RMI registry connection - # - rmiRegistryPort = 1099 - - # - # Host for RMI registry - # - rmiRegistryHost = 127.0.0.1 - - # - # Port number for RMI server connection - # - rmiServerPort = 44444 - - # - # Host for RMI server - # - rmiServerHost = 127.0.0.1 - - # - # Name of the JAAS realm used for authentication - # - jmxRealm = karaf - - # - # The service URL for the JMXConnectorServer - # - serviceUrl = service:jmx:rmi://${rmiServerHost}:${rmiServerPort}/jndi/rmi://${rmiRegistryHost}:${rmiRegistryPort}/karaf-${karaf.name} - - # - # Whether any threads started for the JMXConnectorServer should be started as daemon threads - # - daemon = true - - # - # Whether the JMXConnectorServer should be started in a separate thread - # - threaded = true - - # - # The ObjectName used to register the JMXConnectorServer - # - objectName = connector:name=rmi - - # - # Timeout to lookup for the keystore in case of SSL authentication usage - # - #keyStoreAvailabilityTimeout = 5000 - - # - # The type of authentication - # - #authenticatorType = password - - # - # Enable or not SSL/TLS - # - #secured = false - - # - # Secure algorithm to use - # - #secureAlgorithm = default - - # - # Secure protocol to use - # - #secureProtocol = TLS - - # - # Keystore to use for secure mode - # - #keyStore = karaf.ks - - # - # Alias of the key to use in the keystore - # - #keyAlias = karaf - - # - # Truststore to use for secure mode - # - #trustStore = karaf.ts - - # - # Create the JMX RMI registry - # - #createRmiRegistry = true - - # - # Locate the JMX RMI registry - # - #locateRmiRegistry = true - - # - # Locate an existing MBean server if possible (usefull when Karaf is embedded) - # - #locateExistingMBeanServerIfPossible = true +################################################################################ +# +# Licensed to the Apache Software Foundation (ASF) under one or more +# contributor license agreements. See the NOTICE file distributed with +# this work for additional information regarding copyright ownership. +# The ASF licenses this file to You under the Apache License, Version 2.0 +# (the "License"); you may not use this file except in compliance with +# the License. You may obtain a copy of the License at +# +# http://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. +# +################################################################################ + +# +# The properties in this file define the configuration of Apache Karaf's JMX Management +# + +# +# Port number for RMI registry connection +# +rmiRegistryPort = 1099 + +# +# Host for RMI registry +# +rmiRegistryHost = 127.0.0.1 + +# +# Port number for RMI server connection +# +rmiServerPort = 44444 + +# +# Host for RMI server +# +rmiServerHost = 127.0.0.1 + +# +# Name of the JAAS realm used for authentication +# +jmxRealm = karaf + +# +# The service URL for the JMXConnectorServer +# +serviceUrl = service:jmx:rmi://${rmiServerHost}:${rmiServerPort}/jndi/rmi://${rmiRegistryHost}:${rmiRegistryPort}/karaf-${karaf.name} + +# +# Whether any threads started for the JMXConnectorServer should be started as daemon threads +# +daemon = true + +# +# Whether the JMXConnectorServer should be started in a separate thread +# +threaded = true + +# +# The ObjectName used to register the JMXConnectorServer +# +objectName = connector:name=rmi + +# +# Timeout to lookup for the keystore in case of SSL authentication usage +# +#keyStoreAvailabilityTimeout = 5000 + +# +# The type of authentication +# +#authenticatorType = password + +# +# Enable or not SSL/TLS +# +#secured = false + +# +# Secure algorithm to use +# +#secureAlgorithm = default + +# +# Secure protocol to use +# +#secureProtocol = TLS + +# +# Keystore to use for secure mode +# +#keyStore = karaf.ks + +# +# Alias of the key to use in the keystore +# +#keyAlias = karaf + +# +# Truststore to use for secure mode +# +#trustStore = karaf.ts + +# +# Create the JMX RMI registry +# +#createRmiRegistry = true + +# +# Locate the JMX RMI registry +# +#locateRmiRegistry = true + +# +# Locate an existing MBean server if possible (usefull when Karaf is embedded) +# +#locateExistingMBeanServerIfPossible = true </config> <feature>jaas</feature> <bundle dependency="true" start-level="20">mvn:org.apache.aries/org.apache.aries.util/${aries.util.version}</bundle> @@ -1311,69 +1311,69 @@ <feature name="scheduler" description="Provide a scheduler service in Karaf to fire events" version="${project.version}"> <config name="org.apache.karaf.scheduler.quartz"> - ################################################################################ - # - # Licensed to the Apache Software Foundation (ASF) under one or more - # contributor license agreements. See the NOTICE file distributed with - # this work for additional information regarding copyright ownership. - # The ASF licenses this file to You under the Apache License, Version 2.0 - # (the "License"); you may not use this file except in compliance with - # the License. You may obtain a copy of the License at - # - # http://www.apache.org/licenses/LICENSE-2.0 - # - # Unless required by applicable law or agreed to in writing, software - # distributed under the License is distributed on an "AS IS" BASIS, - # WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - # See the License for the specific language governing permissions and - # limitations under the License. - # - ################################################################################ - - #============================================================================ - # Configure Karaf Scheduler Properties - #============================================================================ - org.quartz.scheduler.instanceName=Karaf - org.quartz.scheduler.instanceId=AUTO - - #============================================================================ - # Configure ThreadPool - #============================================================================ - org.quartz.threadPool.class=org.quartz.simpl.SimpleThreadPool - org.quartz.threadPool.threadCount=30 - org.quartz.threadPool.threadPriority=5 - - #============================================================================ - # Configure JobStore - #============================================================================ - org.quartz.jobStore.class=org.quartz.simpl.RAMJobStore +################################################################################ +# +# Licensed to the Apache Software Foundation (ASF) under one or more +# contributor license agreements. See the NOTICE file distributed with +# this work for additional information regarding copyright ownership. +# The ASF licenses this file to You under the Apache License, Version 2.0 +# (the "License"); you may not use this file except in compliance with +# the License. You may obtain a copy of the License at +# +# http://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. +# +################################################################################ + +#============================================================================ +# Configure Karaf Scheduler Properties +#============================================================================ +org.quartz.scheduler.instanceName=Karaf +org.quartz.scheduler.instanceId=AUTO + +#============================================================================ +# Configure ThreadPool +#============================================================================ +org.quartz.threadPool.class=org.quartz.simpl.SimpleThreadPool +org.quartz.threadPool.threadCount=30 +org.quartz.threadPool.threadPriority=5 + +#============================================================================ +# Configure JobStore +#============================================================================ +org.quartz.jobStore.class=org.quartz.simpl.RAMJobStore </config> <bundle start-level="30">mvn:org.apache.karaf.scheduler/org.apache.karaf.scheduler.core/${project.version}</bundle> </feature> <feature name="eventadmin" description="OSGi Event Admin service specification for event-based communication" version="${project.version}"> <config name="org.apache.felix.eventadmin.impl.EventAdmin"> - ################################################################################ - # - # Licensed to the Apache Software Foundation (ASF) under one or more - # contributor license agreements. See the NOTICE file distributed with - # this work for additional information regarding copyright ownership. - # The ASF licenses this file to You under the Apache License, Version 2.0 - # (the "License"); you may not use this file except in compliance with - # the License. You may obtain a copy of the License at - # - # http://www.apache.org/licenses/LICENSE-2.0 - # - # Unless required by applicable law or agreed to in writing, software - # distributed under the License is distributed on an "AS IS" BASIS, - # WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - # See the License for the specific language governing permissions and - # limitations under the License. - # - ################################################################################ - - org.apache.felix.eventadmin.AddTimestamp=true - org.apache.felix.eventadmin.AddSubject=true +################################################################################ +# +# Licensed to the Apache Software Foundation (ASF) under one or more +# contributor license agreements. See the NOTICE file distributed with +# this work for additional information regarding copyright ownership. +# The ASF licenses this file to You under the Apache License, Version 2.0 +# (the "License"); you may not use this file except in compliance with +# the License. You may obtain a copy of the License at +# +# http://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. +# +################################################################################ + +org.apache.felix.eventadmin.AddTimestamp=true +org.apache.felix.eventadmin.AddSubject=true </config> <bundle start-level="5">mvn:org.apache.felix/org.apache.felix.metatype/${felix.metatype.version}</bundle> <bundle start-level="5">mvn:org.apache.karaf.services/org.apache.karaf.services.eventadmin/${project.version}</bundle> @@ -1438,26 +1438,26 @@ <feature name="profile" description="Profiles support" version="${project.version}"> <config name="org.apache.karaf.profile"> - ################################################################################ - # - # Licensed to the Apache Software Foundation (ASF) under one or more - # contributor license agreements. See the NOTICE file distributed with - # this work for additional information regarding copyright ownership. - # The ASF licenses this file to You under the Apache License, Version 2.0 - # (the "License"); you may not use this file except in compliance with - # the License. You may obtain a copy of the License at - # - # http://www.apache.org/licenses/LICENSE-2.0 - # - # Unless required by applicable law or agreed to in writing, software - # distributed under the License is distributed on an "AS IS" BASIS, - # WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - # See the License for the specific language governing permissions and - # limitations under the License. - # - ################################################################################ - - profilesDirectory = ${karaf.home}/profiles +################################################################################ +# +# Licensed to the Apache Software Foundation (ASF) under one or more +# contributor license agreements. See the NOTICE file distributed with +# this work for additional information regarding copyright ownership. +# The ASF licenses this file to You under the Apache License, Version 2.0 +# (the "License"); you may not use this file except in compliance with +# the License. You may obtain a copy of the License at +# +# http://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. +# +################################################################################ + +profilesDirectory = ${karaf.home}/profiles </config> <bundle>mvn:org.apache.karaf.profile/org.apache.karaf.profile.core/${project.version}</bundle> <bundle>mvn:org.apache.karaf.tooling/org.apache.karaf.tools.utils/${project.version}</bundle> @@ -1467,28 +1467,28 @@ <feature name="jolokia" description="Jolokia monitoring support" version="${jolokia.version}"> <feature>http</feature> <config name="org.jolokia.osgi"> - ################################################################################ - # - # Licensed to the Apache Software Foundation (ASF) under one or more - # contributor license agreements. See the NOTICE file distributed with - # this work for additional information regarding copyright ownership. - # The ASF licenses this file to You under the Apache License, Version 2.0 - # (the "License"); you may not use this file except in compliance with - # the License. You may obtain a copy of the License at - # - # http://www.apache.org/licenses/LICENSE-2.0 - # - # Unless required by applicable law or agreed to in writing, software - # distributed under the License is distributed on an "AS IS" BASIS, - # WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - # See the License for the specific language governing permissions and - # limitations under the License. - # - ################################################################################ - - org.jolokia.user=karaf - org.jolokia.realm=karaf - org.jolokia.authMode=jaas +################################################################################ +# +# Licensed to the Apache Software Foundation (ASF) under one or more +# contributor license agreements. See the NOTICE file distributed with +# this work for additional information regarding copyright ownership. +# The ASF licenses this file to You under the Apache License, Version 2.0 +# (the "License"); you may not use this file except in compliance with +# the License. You may obtain a copy of the License at +# +# http://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. +# +################################################################################ + +org.jolokia.user=karaf +org.jolokia.realm=karaf +org.jolokia.authMode=jaas </config> <bundle>mvn:org.jolokia/jolokia-osgi/${jolokia.version}</bundle> </feature> @@ -1498,39 +1498,39 @@ <bundle start-level="30">mvn:org.apache.karaf.maven/org.apache.karaf.maven.core/${project.version}</bundle> <bundle dependency="true">mvn:org.apache.commons/commons-lang3/${commons-lang3.version}</bundle> <config name="org.apache.karaf.command.acl.maven"> - ################################################################################ - # - # Licensed to the Apache Software Foundation (ASF) under one or more - # contributor license agreements. See the NOTICE file distributed with - # this work for additional information regarding copyright ownership. - # The ASF licenses this file to You under the Apache License, Version 2.0 - # (the "License"); you may not use this file except in compliance with - # the License. You may obtain a copy of the License at - # - # http://www.apache.org/licenses/LICENSE-2.0 - # - # Unless required by applicable law or agreed to in writing, software - # distributed under the License is distributed on an "AS IS" BASIS, - # WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - # See the License for the specific language governing permissions and - # limitations under the License. - # - ################################################################################ - - # - # This configuration file defines the ACLs for maven configuration commands - # - summary[/.*[-][x].*/] = admin - summary = viewer - http-proxy-list[/.*[-][x].*/] = admin - http-proxy-list = viewer - repository-list[/.*[-][x].*/] = admin - repository-list = viewer - http-proxy = admin - password = admin - repository-add = admin - repository-change = admin - repository-remove = admin +################################################################################ +# +# Licensed to the Apache Software Foundation (ASF) under one or more +# contributor license agreements. See the NOTICE file distributed with +# this work for additional information regarding copyright ownership. +# The ASF licenses this file to You under the Apache License, Version 2.0 +# (the "License"); you may not use this file except in compliance with +# the License. You may obtain a copy of the License at +# +# http://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. +# +################################################################################ + +# +# This configuration file defines the ACLs for maven configuration commands +# +summary[/.*[-][x].*/] = admin +summary = viewer +http-proxy-list[/.*[-][x].*/] = admin +http-proxy-list = viewer +repository-list[/.*[-][x].*/] = admin +repository-list = viewer +http-proxy = admin +password = admin +repository-add = admin +repository-change = admin +repository-remove = admin </config> </feature> @@ -1538,69 +1538,69 @@ <feature>eventadmin</feature> <bundle start-level="20">mvn:org.apache.karaf.audit/org.apache.karaf.audit.core/${project.version}</bundle> <config name="org.apache.karaf.audit"> - ################################################################################ - # - # Licensed to the Apache Software Foundation (ASF) under one or more - # contributor license agreements. See the NOTICE file distributed with - # this work for additional information regarding copyright ownership. - # The ASF licenses this file to You under the Apache License, Version 2.0 - # (the "License"); you may not use this file except in compliance with - # the License. You may obtain a copy of the License at - # - # http://www.apache.org/licenses/LICENSE-2.0 - # - # Unless required by applicable law or agreed to in writing, software - # distributed under the License is distributed on an "AS IS" BASIS, - # WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - # See the License for the specific language governing permissions and - # limitations under the License. - # - ################################################################################ - - # Security audit configuration - # Only the above 4 loggers are supported - # Supported layouts include: simple, gelf, rfc3164, rfc5424 - - # Queue type - queue.class = java.util.concurrent.ArrayBlockingQueue - # Queue size - queue.size = 256 - # Idle timeout - runner.idle-timeout = 60000 - # Flush timeout - runner.flush-timeout = 100 - # Event filter - # filter = (!(type=log)) - - # File logger - file.enabled = true - file.target = ${karaf.data}/log/audit.txt - file.encoding = UTF-8 - file.layout.type = simple - # rotating policy: can be 'daily', 'size([0-9]+(kb|mb|gb)?\)' - file.policy = daily - file.files = 32 - file.compress = false - - # Tcp logger - # tcp.enabled = true - # tcp.host = localhost - # tcp.port = 8125 - # tcp.encoding = UTF-8 - # tcp.layout.type = gelf - - # Udp logger - # udp.enabled = true - # udp.host = localhost - # udp.port = 514 - # udp.encoding = UTF-8 - # udp.layout.type = rfc3164 - - # JUL logger - jul.enabled = false - jul.logger = audit - jul.level = info - jul.layout.type = simple +################################################################################ +# +# Licensed to the Apache Software Foundation (ASF) under one or more +# contributor license agreements. See the NOTICE file distributed with +# this work for additional information regarding copyright ownership. +# The ASF licenses this file to You under the Apache License, Version 2.0 +# (the "License"); you may not use this file except in compliance with +# the License. You may obtain a copy of the License at +# +# http://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. +# +################################################################################ + +# Security audit configuration +# Only the above 4 loggers are supported +# Supported layouts include: simple, gelf, rfc3164, rfc5424 + +# Queue type +queue.class = java.util.concurrent.ArrayBlockingQueue +# Queue size +queue.size = 256 +# Idle timeout +runner.idle-timeout = 60000 +# Flush timeout +runner.flush-timeout = 100 +# Event filter +# filter = (!(type=log)) + +# File logger +file.enabled = true +file.target = ${karaf.data}/log/audit.txt +file.encoding = UTF-8 +file.layout.type = simple +# rotating policy: can be 'daily', 'size([0-9]+(kb|mb|gb)?\)' +file.policy = daily +file.files = 32 +file.compress = false + +# Tcp logger +# tcp.enabled = true +# tcp.host = localhost +# tcp.port = 8125 +# tcp.encoding = UTF-8 +# tcp.layout.type = gelf + +# Udp logger +# udp.enabled = true +# udp.host = localhost +# udp.port = 514 +# udp.encoding = UTF-8 +# udp.layout.type = rfc3164 + +# JUL logger +jul.enabled = false +jul.logger = audit +jul.level = info +jul.layout.type = simple </config> </feature> ---------------------------------------------------------------- This is an automated message from the Apache Git Service. To respond to the message, please log on GitHub and use the URL above to go to the specific comment. For queries about this service, please contact Infrastructure at: us...@infra.apache.org > Remove heading spaces in the cfg files > -------------------------------------- > > Key: KARAF-5851 > URL: https://issues.apache.org/jira/browse/KARAF-5851 > Project: Karaf > Issue Type: Bug > Components: karaf-core > Reporter: Jean-Baptiste Onofré > Assignee: Jean-Baptiste Onofré > Priority: Minor > Fix For: 4.1.6, 4.2.1 > > > The {{cfg}} files in the Karaf distributions are created from the standard > features repository XML. However, as the features XML contains heading spaces > in {{<config/>}} elements, the resulting {{cfg}} files also contains those > heading spaces. > There's no impact, but for a much more better looking, I will remove the > heading spaces from features XML. -- This message was sent by Atlassian JIRA (v7.6.3#76005)