├── docs ├── api │ ├── latest.md │ └── 4.2.0-SNAPSHOT.md └── empty.txt ├── modules └── distribution │ ├── carbon-home │ ├── updates │ │ └── product.txt │ ├── bin │ │ ├── version.txt │ │ ├── portal.sh │ │ ├── monitor.sh │ │ ├── portal.bat │ │ ├── monitor.bat │ │ ├── osgi-lib.bat │ │ ├── jartobundle.bat │ │ ├── icf-provider.bat │ │ ├── ciphertool.bat │ │ ├── osgi-lib.sh │ │ ├── jartobundle.sh │ │ ├── icf-provider.sh │ │ └── ciphertool.sh │ ├── deployment │ │ ├── siddhi-files │ │ │ ├── empty.txt │ │ │ └── TestSiddhiApp.siddhi │ │ └── stream-definitions.yaml │ ├── resources │ │ └── security │ │ │ ├── wso2carbon.jks │ │ │ └── client-truststore.jks │ ├── conf │ │ ├── osgi │ │ │ └── launch.properties │ │ ├── monitor │ │ │ ├── log4j2.xml │ │ │ └── deployment.yaml │ │ ├── portal │ │ │ ├── log4j2.xml │ │ │ └── deployment.yaml │ │ └── transports │ │ │ ├── monitor │ │ │ └── netty-transports.yaml │ │ │ └── portal │ │ │ └── netty-transports.yaml │ └── runtime │ │ ├── monitor │ │ ├── carbon.bat │ │ └── carbon.sh │ │ └── portal │ │ ├── carbon.bat │ │ └── carbon.sh │ └── src │ ├── policies │ ├── public │ │ ├── images │ │ │ ├── favicon.ico │ │ │ └── wso2-logo.svg │ │ ├── js │ │ │ └── libs │ │ │ │ └── font-wso2_1.0.0 │ │ │ │ ├── fonts │ │ │ │ ├── font-wso2.eot │ │ │ │ ├── font-wso2.ttf │ │ │ │ └── font-wso2.woff │ │ │ │ └── css │ │ │ │ ├── font-wso2.min.css │ │ │ │ └── font-wso2.css │ │ └── css │ │ │ └── styles.css │ └── pages │ │ ├── index.hbs │ │ ├── privacy-policy.hbs │ │ └── cookie-policy.hbs │ ├── assembly │ ├── filter.properties │ └── bin.xml │ └── scripts │ ├── forgetme.sh │ └── forgetme.bat ├── README.md ├── issue_template.md ├── pull_request_template.md ├── .gitignore └── LICENSE /docs/api/latest.md: -------------------------------------------------------------------------------- 1 | -------------------------------------------------------------------------------- /docs/empty.txt: -------------------------------------------------------------------------------- 1 | Empty file to make IDE happy -------------------------------------------------------------------------------- /modules/distribution/carbon-home/updates/product.txt: -------------------------------------------------------------------------------- 1 | ${product.wum.name}-${product.version} -------------------------------------------------------------------------------- /modules/distribution/carbon-home/bin/version.txt: -------------------------------------------------------------------------------- 1 | WSO2 Analytics Dashboard v${project.version} 2 | -------------------------------------------------------------------------------- /modules/distribution/carbon-home/deployment/siddhi-files/empty.txt: -------------------------------------------------------------------------------- 1 | Empty file to make IDE happy -------------------------------------------------------------------------------- /modules/distribution/src/policies/public/images/favicon.ico: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/wso2/analytics-dashboard/HEAD/modules/distribution/src/policies/public/images/favicon.ico -------------------------------------------------------------------------------- /README.md: -------------------------------------------------------------------------------- 1 | # analytics-dashboard 2 | Welcome to the WSO2 Analytics Dashboard source code! For info on working with the WSO2 Analytics Dashboard repository and contributing code 3 | -------------------------------------------------------------------------------- /modules/distribution/carbon-home/resources/security/wso2carbon.jks: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/wso2/analytics-dashboard/HEAD/modules/distribution/carbon-home/resources/security/wso2carbon.jks -------------------------------------------------------------------------------- /modules/distribution/carbon-home/resources/security/client-truststore.jks: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/wso2/analytics-dashboard/HEAD/modules/distribution/carbon-home/resources/security/client-truststore.jks -------------------------------------------------------------------------------- /modules/distribution/src/assembly/filter.properties: -------------------------------------------------------------------------------- 1 | product.name=WSO2 Analytics Dashboard 2 | product.version=1.0.0 3 | server.name=WSO2 Carbon Kernel 4 | server.version=5.2.12 5 | product.wum.name=wso2ad 6 | -------------------------------------------------------------------------------- /modules/distribution/src/policies/public/js/libs/font-wso2_1.0.0/fonts/font-wso2.eot: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/wso2/analytics-dashboard/HEAD/modules/distribution/src/policies/public/js/libs/font-wso2_1.0.0/fonts/font-wso2.eot -------------------------------------------------------------------------------- /modules/distribution/src/policies/public/js/libs/font-wso2_1.0.0/fonts/font-wso2.ttf: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/wso2/analytics-dashboard/HEAD/modules/distribution/src/policies/public/js/libs/font-wso2_1.0.0/fonts/font-wso2.ttf -------------------------------------------------------------------------------- /modules/distribution/src/policies/public/js/libs/font-wso2_1.0.0/fonts/font-wso2.woff: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/wso2/analytics-dashboard/HEAD/modules/distribution/src/policies/public/js/libs/font-wso2_1.0.0/fonts/font-wso2.woff -------------------------------------------------------------------------------- /modules/distribution/carbon-home/deployment/siddhi-files/TestSiddhiApp.siddhi: -------------------------------------------------------------------------------- 1 | @App:name('TestSiddhiApp') 2 | define stream FooStream (symbol string, price float, volume long); 3 | 4 | @source(type='inMemory', topic='symbol', @map(type='passThrough'))Define stream BarStream (symbol string, price float, volume long); 5 | 6 | from FooStream 7 | select symbol, price, volume 8 | insert into BarStream; -------------------------------------------------------------------------------- /issue_template.md: -------------------------------------------------------------------------------- 1 | **Description:** 2 | 3 | 4 | **Suggested Labels:** 5 | 6 | 7 | **Suggested Assignees:** 8 | 9 | 10 | **Affected Product Version:** 11 | 12 | **OS, DB, other environment details and versions:** 13 | 14 | **Steps to reproduce:** 15 | 16 | 17 | **Related Issues:** 18 | -------------------------------------------------------------------------------- /modules/distribution/carbon-home/deployment/stream-definitions.yaml: -------------------------------------------------------------------------------- 1 | streamDefinitions: 2 | - "{'name':'org.wso2.esb.MediatorStatistics', 'version':'1.3.0', 'nickName':'Stock Quote Information', 'description':'Some Desc', 'metaData':[{'name':'ipAdd','type':'STRING'}], 'payloadData':[{'name':'symbol','type':'STRING'}, {'name':'price','type':'DOUBLE'}, {'name':'volume','type':'INT'}, {'name':'max','type':'DOUBLE'}, {'name':'min','type':'Double'}]}" 3 | - "{'name':'org.wso2.esb.MediatorStatistics', 'version':'1.3.4', 'nickName':'Stock Quote Information', 'description':'Some Other Desc', 'metaData':[{'name':'ipAdd','type':'STRING'}], 'payloadData':[{'name':'symbol','type':'STRING'}, {'name':'price','type':'DOUBLE'}, {'name':'volume','type':'INT'}]}" 4 | - "{'name':'sweet.stream', 'version':'1.0.0', 'nickName':'Stock Quote Information', 'description':'Some Product','payloadData':[{'name':'name','type':'STRING'}, {'name':'amount','type':'DOUBLE'}]}" 5 | -------------------------------------------------------------------------------- /modules/distribution/src/scripts/forgetme.sh: -------------------------------------------------------------------------------- 1 | #!/bin/sh 2 | # forget-me.sh 3 | # ---------------------------------------------------------------------------- 4 | # Copyright 2019 WSO2, Inc. http://www.wso2.org 5 | # 6 | # Licensed under the Apache License, Version 2.0 (the "License"); 7 | # you may not use this file except in compliance with the License. 8 | # You may obtain a copy of the License at 9 | # 10 | # http://www.apache.org/licenses/LICENSE-2.0 11 | # 12 | # Unless required by applicable law or agreed to in writing, software 13 | # distributed under the License is distributed on an "AS IS" BASIS, 14 | # WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 15 | # See the License for the specific language governing permissions and 16 | # limitations under the License. 17 | 18 | # resolve links - $0 may be a softlink 19 | PRG="$0" 20 | 21 | while [ -h "$PRG" ]; do 22 | ls=`ls -ld "$PRG"` 23 | link=`expr "$ls" : '.*-> \(.*\)$'` 24 | if expr "$link" : '.*/.*' > /dev/null; then 25 | PRG="$link" 26 | else 27 | PRG=`dirname "$PRG"`/"$link" 28 | fi 29 | done 30 | 31 | # Get standard environment variables 32 | PRGDIR=`dirname "$PRG"` 33 | 34 | [ -z "$CARBON_HOME" ] && CARBON_HOME=`cd "$PRGDIR/.." ; pwd` 35 | 36 | cd $CARBON_HOME 37 | sh $CARBON_HOME/wso2/tools/identity-anonymization-tool/bin/forgetme.sh -d $CARBON_HOME/wso2/tools/identity-anonymization-tool/conf $@ -------------------------------------------------------------------------------- /modules/distribution/carbon-home/conf/osgi/launch.properties: -------------------------------------------------------------------------------- 1 | # Uncomment the following line to enable OSGi console. Specify a port as value of the following property to allow 2 | # telnet access to OSGi console 3 | # TODO Implement SSH access to the OSGi console. 4 | osgi.console= 5 | 6 | org.osgi.framework.bundle.parent=framework 7 | 8 | 9 | # When osgi.clean is set to "true", any cached data used by the OSGi framework 10 | # will be wiped clean. This will clean the caches used to store bundle 11 | # dependency resolution and eclipse extension registry data. Using this 12 | # option will force OSGi framework to reinitialize these caches. 13 | # The following setting is put in place to get rid of the problems 14 | # faced when re-starting the system. Please note that, when this setting is 15 | # true, if you manually start a bundle, it would not be available when 16 | # you re-start the system. To avid this, copy the bundle jar to the plugins 17 | # folder, before you re-start the system. 18 | osgi.clean=true 19 | 20 | # Uncomment the following line to turn on Eclipse Equinox debugging. 21 | # You may also edit the osgi-debug.options file and fine tune the debugging 22 | # options to suite your needs. 23 | #osgi.debug=./conf/osgi/osgi-debug.options 24 | 25 | carbon.server.listeners=org.wso2.carbon.launcher.extensions.OSGiLibBundleDeployer 26 | osgi.compatibility.bootdelegation=true 27 | org.osgi.framework.system.packages.extra=sun.misc 28 | org.osgi.framework.bootdelegation=sun.misc,sun.security.provider,sun.reflect.generics.reflectiveObjects,sun.security.util,org.wso2.carbon.security.caas.boot -------------------------------------------------------------------------------- /docs/api/4.2.0-SNAPSHOT.md: -------------------------------------------------------------------------------- 1 | # API Docs - v4.2.0-SNAPSHOT 2 | 3 | ## Find 4 | 5 | ### country *(Function)* 6 | 7 |

Returns the country of the given user location.

8 | 9 | Syntax 10 | ``` 11 | find:country( input.string) 12 | ``` 13 | 14 | QUERY PARAMETERS 15 | 16 | 17 | 18 | 19 | 20 | 21 | 22 | 23 | 24 | 25 | 26 | 27 | 28 | 29 | 30 | 31 | 32 |
NameDescriptionDefault ValuePossible Data TypesOptionalDynamic
input.stringThe input string to derive the country.STRINGNoNo
33 | 34 | Examples 35 | EXAMPLE 1 36 | ``` 37 | country("New Delhi, India") 38 | ``` 39 |

This outputs the country of the provided location. In this scenario, the output is 'India' .

40 | 41 | -------------------------------------------------------------------------------- /modules/distribution/src/scripts/forgetme.bat: -------------------------------------------------------------------------------- 1 | @echo off 2 | REM Copyright 2019 WSO2, Inc. (http://wso2.com) 3 | REM Licensed to the Apache Software Foundation (ASF) under one 4 | REM or more contributor license agreements. See the NOTICE file 5 | REM distributed with this work for additional information 6 | REM regarding copyright ownership. The ASF licenses this file 7 | REM to you under the Apache License, Version 2.0 (the 8 | REM "License"); you may not use this file except in compliance 9 | REM with the License. You may obtain a copy of the License at 10 | REM 11 | REM http://www.apache.org/licenses/LICENSE-2.0 12 | REM 13 | REM Unless required by applicable law or agreed to in writing, 14 | REM software distributed under the License is distributed on an 15 | REM # "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY 16 | REM KIND, either express or implied. See the License for the 17 | REM specific language governing permissions and limitations 18 | REM under the License. 19 | 20 | rem --------------------------------------------------------------------------- 21 | rem Startup script for the ciphertool 22 | rem 23 | rem Environment Variable Prerequisites 24 | rem 25 | rem CARBON_HOME Must point at your CARBON directory 26 | rem 27 | rem JAVA_HOME Must point at your Java Development Kit installation. 28 | rem 29 | rem JAVA_OPTS (Optional) Java runtime options 30 | rem --------------------------------------------------------------------------- 31 | 32 | :checkServer 33 | setlocal enabledelayedexpansion 34 | rem %~sdp0 is expanded pathname of the current script under NT with spaces in the path removed 35 | if "%CARBON_HOME%"=="" set CARBON_HOME=%~sdp0.. 36 | SET curDrive=%cd:~0,1% 37 | SET wsasDrive=%CARBON_HOME:~0,1% 38 | if not "%curDrive%" == "%wsasDrive%" %wsasDrive%: 39 | cd %CARBON_HOME% 40 | call %CARBON_HOME%\wso2\tools\identity-anonymization-tool\bin\forgetme.bat -------------------------------------------------------------------------------- /modules/distribution/carbon-home/conf/monitor/log4j2.xml: -------------------------------------------------------------------------------- 1 | 2 | 19 | 20 | 21 | 22 | 23 | 24 | 25 | 27 | 28 | 29 | 30 | 31 | 32 | 34 | 35 | 36 | 37 | 38 | 39 | 40 | 41 | 42 | 43 | 44 | 45 | 46 | 47 | 48 | 49 | 50 | 51 | -------------------------------------------------------------------------------- /modules/distribution/carbon-home/conf/portal/log4j2.xml: -------------------------------------------------------------------------------- 1 | 2 | 19 | 20 | 21 | 22 | 23 | 24 | 25 | 27 | 28 | 29 | 30 | 31 | 32 | 34 | 35 | 36 | 37 | 38 | 39 | 40 | 41 | 42 | 43 | 44 | 45 | 46 | 47 | 48 | 49 | 50 | 51 | -------------------------------------------------------------------------------- /modules/distribution/carbon-home/bin/portal.sh: -------------------------------------------------------------------------------- 1 | #!/bin/sh 2 | # --------------------------------------------------------------------------- 3 | # Copyright (c) 2019, WSO2 Inc. (http://www.wso2.org) All Rights Reserved. 4 | # 5 | # Licensed under the Apache License, Version 2.0 (the "License"); 6 | # you may not use this file except in compliance with the License. 7 | # You may obtain a copy of the License at 8 | # 9 | # http://www.apache.org/licenses/LICENSE-2.0 10 | # 11 | # Unless required by applicable law or agreed to in writing, software 12 | # distributed under the License is distributed on an "AS IS" BASIS, 13 | # WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 14 | # See the License for the specific language governing permissions and 15 | # limitations under the License. 16 | 17 | cygwin=false; 18 | darwin=false; 19 | os400=false; 20 | mingw=false; 21 | case "`uname`" in 22 | CYGWIN*) cygwin=true;; 23 | MINGW*) mingw=true;; 24 | OS400*) os400=true;; 25 | Darwin*) darwin=true 26 | if [ -z "$JAVA_VERSION" ] ; then 27 | JAVA_VERSION="CurrentJDK" 28 | else 29 | echo "Using Java version: $JAVA_VERSION" 30 | fi 31 | if [ -z "$JAVA_HOME" ] ; then 32 | JAVA_HOME=/System/Library/Frameworks/JavaVM.framework/Versions/${JAVA_VERSION}/Home 33 | fi 34 | ;; 35 | esac 36 | 37 | # resolve links - $0 may be a softlink 38 | PRG="$0" 39 | 40 | while [ -h "$PRG" ]; do 41 | ls=`ls -ld "$PRG"` 42 | link=`expr "$ls" : '.*-> \(.*\)$'` 43 | if expr "$link" : '.*/.*' > /dev/null; then 44 | PRG="$link" 45 | else 46 | PRG=`dirname "$PRG"`/"$link" 47 | fi 48 | done 49 | 50 | # Get standard environment variables 51 | PRGDIR=`dirname "$PRG"` 52 | 53 | # Only set CARBON_HOME if not already set 54 | [ -z "$CARBON_HOME" ] && CARBON_HOME=`cd "$PRGDIR/.." ; pwd` 55 | 56 | [ -z "$RUNTIME_HOME" ] && RUNTIME_HOME=`cd "$PRGDIR/../wso2/portal" ; pwd` 57 | 58 | ########################################################################### 59 | NAME=start-dashboard 60 | # Daemon name, where is the actual executable 61 | 62 | DASHBOARD_INIT_SCRIPT="$CARBON_HOME/wso2/portal/bin/carbon.sh" 63 | 64 | # If the daemon is not there, then exit. 65 | 66 | $DASHBOARD_INIT_SCRIPT $* 67 | exit; 68 | -------------------------------------------------------------------------------- /modules/distribution/carbon-home/bin/monitor.sh: -------------------------------------------------------------------------------- 1 | #!/bin/sh 2 | # --------------------------------------------------------------------------- 3 | # Copyright (c) 2017, WSO2 Inc. (http://www.wso2.org) All Rights Reserved. 4 | # 5 | # Licensed under the Apache License, Version 2.0 (the "License"); 6 | # you may not use this file except in compliance with the License. 7 | # You may obtain a copy of the License at 8 | # 9 | # http://www.apache.org/licenses/LICENSE-2.0 10 | # 11 | # Unless required by applicable law or agreed to in writing, software 12 | # distributed under the License is distributed on an "AS IS" BASIS, 13 | # WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 14 | # See the License for the specific language governing permissions and 15 | # limitations under the License. 16 | 17 | cygwin=false; 18 | darwin=false; 19 | os400=false; 20 | mingw=false; 21 | case "`uname`" in 22 | CYGWIN*) cygwin=true;; 23 | MINGW*) mingw=true;; 24 | OS400*) os400=true;; 25 | Darwin*) darwin=true 26 | if [ -z "$JAVA_VERSION" ] ; then 27 | JAVA_VERSION="CurrentJDK" 28 | else 29 | echo "Using Java version: $JAVA_VERSION" 30 | fi 31 | if [ -z "$JAVA_HOME" ] ; then 32 | JAVA_HOME=/System/Library/Frameworks/JavaVM.framework/Versions/${JAVA_VERSION}/Home 33 | fi 34 | ;; 35 | esac 36 | 37 | # resolve links - $0 may be a softlink 38 | PRG="$0" 39 | 40 | while [ -h "$PRG" ]; do 41 | ls=`ls -ld "$PRG"` 42 | link=`expr "$ls" : '.*-> \(.*\)$'` 43 | if expr "$link" : '.*/.*' > /dev/null; then 44 | PRG="$link" 45 | else 46 | PRG=`dirname "$PRG"`/"$link" 47 | fi 48 | done 49 | 50 | # Get standard environment variables 51 | PRGDIR=`dirname "$PRG"` 52 | 53 | # Only set CARBON_HOME if not already set 54 | [ -z "$CARBON_HOME" ] && CARBON_HOME=`cd "$PRGDIR/.." ; pwd` 55 | 56 | [ -z "$RUNTIME_HOME" ] && RUNTIME_HOME=`cd "$PRGDIR/../wso2/monitor" ; pwd` 57 | 58 | ########################################################################### 59 | NAME=start-monitor 60 | # Daemon name, where is the actual executable 61 | EDITOR_INIT_SCRIPT="$CARBON_HOME/wso2/monitor/bin/carbon.sh" 62 | 63 | # If the daemon is not there, then exit. 64 | 65 | . "${EDITOR_INIT_SCRIPT}" 66 | 67 | trap "sh ${EDITOR_INIT_SCRIPT} stop; exit;" INT TERM 68 | while : 69 | do 70 | sleep 60 71 | done -------------------------------------------------------------------------------- /modules/distribution/src/policies/pages/index.hbs: -------------------------------------------------------------------------------- 1 | 18 | 19 | 20 | 21 | 22 | 23 | 24 | WSO2 Analytics Dashboard 25 | 27 | 28 | 29 | 30 | 31 | 32 |
33 |
34 | 35 | 36 |

WSO2 Analytics Dashboard

37 |
38 |
39 | 40 |
41 |

Policies

42 | 56 |
57 |
58 | 59 | 60 | -------------------------------------------------------------------------------- /modules/distribution/carbon-home/bin/portal.bat: -------------------------------------------------------------------------------- 1 | @echo off 2 | 3 | REM --------------------------------------------------------------------------- 4 | REM Copyright (c) 2019, WSO2 Inc. (http://www.wso2.org) All Rights Reserved. 5 | REM 6 | REM Licensed under the Apache License, Version 2.0 (the "License"); 7 | REM you may not use this file except in compliance with the License. 8 | REM You may obtain a copy of the License at 9 | REM 10 | REM http://www.apache.org/licenses/LICENSE-2.0 11 | REM 12 | REM Unless required by applicable law or agreed to in writing, software 13 | REM distributed under the License is distributed on an "AS IS" BASIS, 14 | REM WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 15 | REM See the License for the specific language governing permissions and 16 | REM limitations under the License. 17 | 18 | rem --------------------------------------------------------------------------- 19 | rem Main Script for WSO2 Carbon 20 | rem 21 | rem Environment Variable Prerequisites 22 | rem 23 | rem CARBON_HOME Home of CARBON installation. If not set I will try 24 | rem to figure it out. 25 | rem 26 | rem JAVA_HOME Must point at your Java Development Kit installation. 27 | rem 28 | rem JAVA_OPTS (Optional) Java runtime options used when the commands 29 | rem is executed. 30 | rem --------------------------------------------------------------------------- 31 | 32 | rem ----- if JAVA_HOME is not set we're not happy ------------------------------ 33 | :checkJava 34 | 35 | if "%JAVA_HOME%" == "" goto noJavaHome 36 | if not exist "%JAVA_HOME%\bin\java.exe" goto noJavaHome 37 | goto checkServer 38 | 39 | :noJavaHome 40 | echo "You must set the JAVA_HOME variable before running CARBON." 41 | goto end 42 | 43 | rem ----- Only set CARBON_HOME if not already set ---------------------------- 44 | :checkServer 45 | rem %~sdp0 is expanded pathname of the current script under NT with spaces in the path removed 46 | set CARBON_HOME=%~sdp0.. 47 | echo "%CARBON_HOME%\bin\version.txt" 48 | SET curDrive=%cd:~0,1% 49 | SET wsasDrive=%CARBON_HOME:~0,1% 50 | if not "%curDrive%" == "%wsasDrive%" %wsasDrive%: 51 | 52 | rem find CARBON_HOME if it does not exist due to either an invalid value passed 53 | rem by the user or the %0 problem on Windows 9x 54 | if not exist "%CARBON_HOME%\bin\version.txt" goto noServerHome 55 | 56 | goto startServer 57 | 58 | :noServerHome 59 | echo CARBON_HOME is set incorrectly or CARBON could not be located. Please set CARBON_HOME. 60 | echo %CARBON_HOME% 61 | goto end 62 | 63 | :startServer 64 | %CARBON_HOME%\wso2\portal\bin\carbon.bat %* 65 | 66 | :end 67 | goto endlocal 68 | 69 | :endlocal 70 | :END -------------------------------------------------------------------------------- /modules/distribution/carbon-home/bin/monitor.bat: -------------------------------------------------------------------------------- 1 | @echo off 2 | 3 | REM --------------------------------------------------------------------------- 4 | REM Copyright (c) 2017, WSO2 Inc. (http://www.wso2.org) All Rights Reserved. 5 | REM 6 | REM Licensed under the Apache License, Version 2.0 (the "License"); 7 | REM you may not use this file except in compliance with the License. 8 | REM You may obtain a copy of the License at 9 | REM 10 | REM http://www.apache.org/licenses/LICENSE-2.0 11 | REM 12 | REM Unless required by applicable law or agreed to in writing, software 13 | REM distributed under the License is distributed on an "AS IS" BASIS, 14 | REM WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 15 | REM See the License for the specific language governing permissions and 16 | REM limitations under the License. 17 | 18 | rem --------------------------------------------------------------------------- 19 | rem Main Script for WSO2 Carbon 20 | rem 21 | rem Environment Variable Prerequisites 22 | rem 23 | rem CARBON_HOME Home of CARBON installation. If not set I will try 24 | rem to figure it out. 25 | rem 26 | rem JAVA_HOME Must point at your Java Development Kit installation. 27 | rem 28 | rem JAVA_OPTS (Optional) Java runtime options used when the commands 29 | rem is executed. 30 | rem --------------------------------------------------------------------------- 31 | 32 | rem ----- if JAVA_HOME is not set we're not happy ------------------------------ 33 | :checkJava 34 | 35 | if "%JAVA_HOME%" == "" goto noJavaHome 36 | if not exist "%JAVA_HOME%\bin\java.exe" goto noJavaHome 37 | goto checkServer 38 | 39 | :noJavaHome 40 | echo "You must set the JAVA_HOME variable before running CARBON." 41 | goto end 42 | 43 | rem ----- Only set CARBON_HOME if not already set ---------------------------- 44 | :checkServer 45 | rem %~sdp0 is expanded pathname of the current script under NT with spaces in the path removed 46 | set CARBON_HOME=%~sdp0.. 47 | echo "%CARBON_HOME%\bin\version.txt" 48 | SET curDrive=%cd:~0,1% 49 | SET wsasDrive=%CARBON_HOME:~0,1% 50 | if not "%curDrive%" == "%wsasDrive%" %wsasDrive%: 51 | 52 | rem find CARBON_HOME if it does not exist due to either an invalid value passed 53 | rem by the user or the %0 problem on Windows 9x 54 | if not exist "%CARBON_HOME%\bin\version.txt" goto noServerHome 55 | 56 | goto startServer 57 | 58 | :noServerHome 59 | echo CARBON_HOME is set incorrectly or CARBON could not be located. Please set CARBON_HOME. 60 | echo %CARBON_HOME% 61 | goto end 62 | 63 | :startServer 64 | %CARBON_HOME%\wso2\monitor\bin\carbon.bat %* 65 | 66 | :end 67 | goto endlocal 68 | 69 | :endlocal 70 | :END -------------------------------------------------------------------------------- /modules/distribution/carbon-home/bin/osgi-lib.bat: -------------------------------------------------------------------------------- 1 | @echo off 2 | 3 | REM --------------------------------------------------------------------------- 4 | REM Copyright (c) 2020, WSO2 Inc. (http://www.wso2.org) All Rights Reserved. 5 | REM 6 | REM Licensed under the Apache License, Version 2.0 (the "License"); 7 | REM you may not use this file except in compliance with the License. 8 | REM You may obtain a copy of the License at 9 | REM 10 | REM http://www.apache.org/licenses/LICENSE-2.0 11 | REM 12 | REM Unless required by applicable law or agreed to in writing, software 13 | REM distributed under the License is distributed on an "AS IS" BASIS, 14 | REM WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 15 | REM See the License for the specific language governing permissions and 16 | REM limitations under the License. 17 | 18 | rem ----- if JAVA_HOME is not set we're not happy ------------------------------ 19 | :checkJava 20 | 21 | if "%JAVA_HOME%" == "" goto noJavaHome 22 | if not exist "%JAVA_HOME%\bin\java.exe" goto noJavaHome 23 | goto checkServer 24 | 25 | :noJavaHome 26 | echo "You must set the JAVA_HOME variable before running CARBON." 27 | goto end 28 | 29 | rem ----- Only set CARBON_HOME if not already set ---------------------------- 30 | :checkServer 31 | rem %~sdp0 is expanded pathname of the current script under NT with spaces in the path removed 32 | if "%CARBON_HOME%"=="" set CARBON_HOME=%~sdp0.. 33 | SET curDrive=%cd:~0,1% 34 | SET wsasDrive=%CARBON_HOME:~0,1% 35 | if not "%curDrive%" == "%wsasDrive%" %wsasDrive%: 36 | 37 | rem find CARBON_HOME if it does not exist due to either an invalid value passed 38 | rem by the user or the %0 problem on Windows 9x 39 | if not exist "%CARBON_HOME%\bin\kernel-version.txt" goto noServerHome 40 | 41 | goto commandLifecycle 42 | 43 | :noServerHome 44 | echo CARBON_HOME is set incorrectly or CARBON could not be located. Please set CARBON_HOME. 45 | goto end 46 | 47 | :commandLifecycle 48 | goto findJdk 49 | 50 | :findJdk 51 | 52 | set CMD=RUN %* 53 | 54 | :checkJdk16 55 | "%JAVA_HOME%\bin\java" -version 2>&1 | findstr /r "1.[8] 11.[0]" >NUL 56 | IF ERRORLEVEL 1 goto unknownJdk 57 | goto jdk16 58 | 59 | :unknownJdk 60 | echo Starting WSO2 Carbon (in unsupported JDK) 61 | echo [ERROR] CARBON is supported only on JDK 1.8 and 11 62 | goto jdk16 63 | 64 | :jdk16 65 | goto runTool 66 | 67 | :runTool 68 | cd %CARBON_HOME%\bin 69 | echo JAVA_HOME environment variable is set to %JAVA_HOME% 70 | echo CARBON_HOME environment variable is set to %CARBON_HOME% 71 | java -cp ".\*;..\bin\tools\*;..\bin\bootstrap\*" -Dwso2.carbon.tool="osgi-lib-deployer" org.wso2.carbon.tools.CarbonToolExecutor "%1" "%CARBON_HOME%" 72 | 73 | :end 74 | goto endlocal 75 | 76 | :endlocal 77 | 78 | :END 79 | -------------------------------------------------------------------------------- /pull_request_template.md: -------------------------------------------------------------------------------- 1 | ## Purpose 2 | > Describe the problems, issues, or needs driving this feature/fix and include links to related issues in the following format: Resolves issue1, issue2, etc. 3 | 4 | ## Goals 5 | > Describe the solutions that this feature/fix will introduce to resolve the problems described above 6 | 7 | ## Approach 8 | > Describe how you are implementing the solutions. Include an animated GIF or screenshot if the change affects the UI (email documentation@wso2.com to review all UI text). Include a link to a Markdown file or Google doc if the feature write-up is too long to paste here. 9 | 10 | ## User stories 11 | > Summary of user stories addressed by this change> 12 | 13 | ## Release note 14 | > Brief description of the new feature or bug fix as it will appear in the release notes 15 | 16 | ## Documentation 17 | > Link(s) to product documentation that addresses the changes of this PR. If no doc impact, enter “N/A” plus brief explanation of why there’s no doc impact 18 | 19 | ## Training 20 | > Link to the PR for changes to the training content in https://github.com/wso2/WSO2-Training, if applicable 21 | 22 | ## Certification 23 | > Type “Sent” when you have provided new/updated certification questions, plus four answers for each question (correct answer highlighted in bold), based on this change. Certification questions/answers should be sent to certification@wso2.com and NOT pasted in this PR. If there is no impact on certification exams, type “N/A” and explain why. 24 | 25 | ## Marketing 26 | > Link to drafts of marketing content that will describe and promote this feature, including product page changes, technical articles, blog posts, videos, etc., if applicable 27 | 28 | ## Automation tests 29 | - Unit tests 30 | > Code coverage information 31 | - Integration tests 32 | > Details about the test cases and coverage 33 | 34 | ## Security checks 35 | - Followed secure coding standards in http://wso2.com/technical-reports/wso2-secure-engineering-guidelines? yes/no 36 | - Ran FindSecurityBugs plugin and verified report? yes/no 37 | - Confirmed that this PR doesn't commit any keys, passwords, tokens, usernames, or other secrets? yes/no 38 | 39 | ## Samples 40 | > Provide high-level details about the samples related to this feature 41 | 42 | ## Related PRs 43 | > List any other related PRs 44 | 45 | ## Migrations (if applicable) 46 | > Describe migration steps and platforms on which migration has been tested 47 | 48 | ## Test environment 49 | > List all JDK versions, operating systems, databases, and browser/versions on which this feature/fix was tested 50 | 51 | ## Learning 52 | > Describe the research phase and any blog posts, patterns, libraries, or add-ons you used to solve the problem. -------------------------------------------------------------------------------- /modules/distribution/carbon-home/bin/jartobundle.bat: -------------------------------------------------------------------------------- 1 | @echo off 2 | 3 | REM --------------------------------------------------------------------------- 4 | REM Copyright (c) 2020, WSO2 Inc. (http://www.wso2.org) All Rights Reserved. 5 | REM 6 | REM Licensed under the Apache License, Version 2.0 (the "License"); 7 | REM you may not use this file except in compliance with the License. 8 | REM You may obtain a copy of the License at 9 | REM 10 | REM http://www.apache.org/licenses/LICENSE-2.0 11 | REM 12 | REM Unless required by applicable law or agreed to in writing, software 13 | REM distributed under the License is distributed on an "AS IS" BASIS, 14 | REM WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 15 | REM See the License for the specific language governing permissions and 16 | REM limitations under the License. 17 | 18 | rem ----- if JAVA_HOME is not set we're not happy ------------------------------ 19 | :checkJava 20 | 21 | if "%JAVA_HOME%" == "" goto noJavaHome 22 | if not exist "%JAVA_HOME%\bin\java.exe" goto noJavaHome 23 | goto checkServer 24 | 25 | :noJavaHome 26 | echo "You must set the JAVA_HOME variable before running CARBON." 27 | goto end 28 | 29 | rem ----- Only set CARBON_HOME if not already set ---------------------------- 30 | :checkServer 31 | rem %~sdp0 is expanded pathname of the current script under NT with spaces in the path removed 32 | if "%CARBON_HOME%"=="" set CARBON_HOME=%~sdp0.. 33 | SET curDrive=%cd:~0,1% 34 | SET wsasDrive=%CARBON_HOME:~0,1% 35 | if not "%curDrive%" == "%wsasDrive%" %wsasDrive%: 36 | 37 | rem find CARBON_HOME if it does not exist due to either an invalid value passed 38 | rem by the user or the %0 problem on Windows 9x 39 | if not exist "%CARBON_HOME%\bin\kernel-version.txt" goto noServerHome 40 | 41 | goto commandLifecycle 42 | 43 | :noServerHome 44 | echo CARBON_HOME is set incorrectly or CARBON could not be located. Please set CARBON_HOME. 45 | goto end 46 | 47 | :commandLifecycle 48 | goto findJdk 49 | 50 | :findJdk 51 | 52 | set CMD=RUN %* 53 | 54 | :checkJdk16 55 | "%JAVA_HOME%\bin\java" -version 2>&1 | findstr /r "1.[8] 11.[0]" >NUL 56 | IF ERRORLEVEL 1 goto unknownJdk 57 | goto jdk16 58 | 59 | :unknownJdk 60 | echo Starting WSO2 Carbon (in unsupported JDK) 61 | echo [ERROR] CARBON is supported only on JDK 1.8 and 11 62 | goto jdk16 63 | 64 | :jdk16 65 | goto runTool 66 | 67 | :runTool 68 | 69 | set CURRENT_DIR=%cd% 70 | 71 | cd %CARBON_HOME%\bin 72 | echo JAVA_HOME environment variable is set to %JAVA_HOME% 73 | echo CARBON_HOME environment variable is set to %CARBON_HOME% 74 | java -cp ".\*;..\bin\tools\*" -Dwso2.carbon.tool="jar-to-bundle-converter" org.wso2.carbon.tools.CarbonToolExecutor "%1" "%2" "%CURRENT_DIR%" 75 | 76 | :end 77 | goto endlocal 78 | 79 | :endlocal 80 | 81 | :END 82 | -------------------------------------------------------------------------------- /modules/distribution/carbon-home/bin/icf-provider.bat: -------------------------------------------------------------------------------- 1 | @echo off 2 | 3 | REM --------------------------------------------------------------------------- 4 | REM Copyright (c) 2020, WSO2 Inc. (http://www.wso2.org) All Rights Reserved. 5 | REM 6 | REM Licensed under the Apache License, Version 2.0 (the "License"); 7 | REM you may not use this file except in compliance with the License. 8 | REM You may obtain a copy of the License at 9 | REM 10 | REM http://www.apache.org/licenses/LICENSE-2.0 11 | REM 12 | REM Unless required by applicable law or agreed to in writing, software 13 | REM distributed under the License is distributed on an "AS IS" BASIS, 14 | REM WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 15 | REM See the License for the specific language governing permissions and 16 | REM limitations under the License. 17 | 18 | rem ----- if JAVA_HOME is not set we're not happy ------------------------------ 19 | :checkJava 20 | 21 | if "%JAVA_HOME%" == "" goto noJavaHome 22 | if not exist "%JAVA_HOME%\bin\java.exe" goto noJavaHome 23 | goto checkServer 24 | 25 | :noJavaHome 26 | echo "You must set the JAVA_HOME variable before running CARBON." 27 | goto end 28 | 29 | rem ----- Only set CARBON_HOME if not already set ---------------------------- 30 | :checkServer 31 | rem %~sdp0 is expanded pathname of the current script under NT with spaces in the path removed 32 | if "%CARBON_HOME%"=="" set CARBON_HOME=%~sdp0.. 33 | SET curDrive=%cd:~0,1% 34 | SET wsasDrive=%CARBON_HOME:~0,1% 35 | if not "%curDrive%" == "%wsasDrive%" %wsasDrive%: 36 | 37 | rem find CARBON_HOME if it does not exist due to either an invalid value passed 38 | rem by the user or the %0 problem on Windows 9x 39 | if not exist "%CARBON_HOME%\bin\kernel-version.txt" goto noServerHome 40 | 41 | goto commandLifecycle 42 | 43 | :noServerHome 44 | echo CARBON_HOME is set incorrectly or CARBON could not be located. Please set CARBON_HOME. 45 | goto end 46 | 47 | :commandLifecycle 48 | goto findJdk 49 | 50 | :findJdk 51 | 52 | set CMD=RUN %* 53 | 54 | :checkJdk16 55 | "%JAVA_HOME%\bin\java" -version 2>&1 | findstr /r "1.[8] 11.[0]" >NUL 56 | IF ERRORLEVEL 1 goto unknownJdk 57 | goto jdk16 58 | 59 | :unknownJdk 60 | echo Starting WSO2 Carbon (in unsupported JDK) 61 | echo [ERROR] CARBON is supported only on JDK 1.8 and 11 62 | goto jdk16 63 | 64 | :jdk16 65 | goto runTool 66 | 67 | :runTool 68 | 69 | set CURRENT_DIR=%cd% 70 | 71 | cd %CARBON_HOME%\bin 72 | echo JAVA_HOME environment variable is set to %JAVA_HOME% 73 | echo CARBON_HOME environment variable is set to %CARBON_HOME% 74 | java -cp ".\*;..\bin\tools\*" -Dcarbon.home="%CARBON_HOME" -Dwso2.carbon.tool="icf-provider" org.wso2.carbon.tools.CarbonToolExecutor %1 %2 %3 %4 75 | 76 | :end 77 | goto endlocal 78 | 79 | :endlocal 80 | 81 | :END 82 | -------------------------------------------------------------------------------- /modules/distribution/carbon-home/bin/ciphertool.bat: -------------------------------------------------------------------------------- 1 | @echo off 2 | 3 | REM --------------------------------------------------------------------------- 4 | REM Copyright (c) 2020, WSO2 Inc. (http://www.wso2.org) All Rights Reserved. 5 | REM 6 | REM Licensed under the Apache License, Version 2.0 (the "License"); 7 | REM you may not use this file except in compliance with the License. 8 | REM You may obtain a copy of the License at 9 | REM 10 | REM http://www.apache.org/licenses/LICENSE-2.0 11 | REM 12 | REM Unless required by applicable law or agreed to in writing, software 13 | REM distributed under the License is distributed on an "AS IS" BASIS, 14 | REM WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 15 | REM See the License for the specific language governing permissions and 16 | REM limitations under the License. 17 | 18 | rem ----- if JAVA_HOME is not set we're not happy ------------------------------ 19 | :checkJava 20 | 21 | if "%JAVA_HOME%" == "" goto noJavaHome 22 | if not exist "%JAVA_HOME%\bin\java.exe" goto noJavaHome 23 | goto checkServer 24 | 25 | :noJavaHome 26 | echo "You must set the JAVA_HOME variable before running CARBON." 27 | goto end 28 | 29 | rem ----- Only set CARBON_HOME if not already set ---------------------------- 30 | :checkServer 31 | rem %~sdp0 is expanded pathname of the current script under NT with spaces in the path removed 32 | if "%CARBON_HOME%"=="" set CARBON_HOME=%~sdp0.. 33 | SET curDrive=%cd:~0,1% 34 | SET wsasDrive=%CARBON_HOME:~0,1% 35 | if not "%curDrive%" == "%wsasDrive%" %wsasDrive%: 36 | 37 | rem find CARBON_HOME if it does not exist due to either an invalid value passed 38 | rem by the user or the %0 problem on Windows 9x 39 | if not exist "%CARBON_HOME%\bin\kernel-version.txt" goto noServerHome 40 | 41 | goto commandLifecycle 42 | 43 | :noServerHome 44 | echo CARBON_HOME is set incorrectly or CARBON could not be located. Please set CARBON_HOME. 45 | goto end 46 | 47 | :commandLifecycle 48 | goto findJdk 49 | 50 | :findJdk 51 | 52 | set CMD=RUN %* 53 | 54 | :checkJdk16 55 | "%JAVA_HOME%\bin\java" -version 2>&1 | findstr /r "1.[8] 11.[0]" >NUL 56 | IF ERRORLEVEL 1 goto unknownJdk 57 | goto jdk16 58 | 59 | :unknownJdk 60 | echo Starting WSO2 Carbon (in unsupported JDK) 61 | echo [ERROR] CARBON is supported only on JDK 1.8 and 11 62 | goto jdk16 63 | 64 | :jdk16 65 | goto runTool 66 | 67 | rem ----------------- Execute The Requested Command ---------------------------- 68 | :runTool 69 | cd %CARBON_HOME% 70 | echo JAVA_HOME environment variable is set to %JAVA_HOME% 71 | echo CARBON_HOME environment variable is set to %CARBON_HOME% 72 | 73 | set CMD_LINE_ARGS= -Dcarbon.home="%CARBON_HOME%" -Dwso2.runtime.path="%RUNTIME_HOME%" -Dwso2.runtime="%RUNTIME%" 74 | java -cp "\bin\tools\*" -Dcarbon.home="%CARBON_HOME%" org.wso2.carbon.secvault.ciphertool.CipherToolInitializer %* 75 | 76 | :end 77 | goto endlocal 78 | 79 | :endlocal 80 | 81 | :END 82 | -------------------------------------------------------------------------------- /modules/distribution/src/policies/public/images/wso2-logo.svg: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 7 | 8 | 9 | 11 | 13 | 25 | 32 | 37 | 38 | 39 | 40 | -------------------------------------------------------------------------------- /modules/distribution/src/policies/public/css/styles.css: -------------------------------------------------------------------------------- 1 | /* 2 | ~ Copyright 2019, WSO2 Inc. (http://www.wso2.com) 3 | ~ 4 | ~ Licensed under the Apache License, Version 2.0 (the "License"); 5 | ~ you may not use this file except in compliance with the License. 6 | ~ You may obtain a copy of the License at 7 | ~ 8 | ~ http://www.apache.org/licenses/LICENSE-2.0 9 | ~ 10 | ~ Unless required by applicable law or agreed to in writing, software 11 | ~ distributed under the License is distributed on an "AS IS" BASIS, 12 | ~ WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 13 | ~ See the License for the specific language governing permissions and 14 | ~ limitations under the License. 15 | */ 16 | 17 | * { 18 | font-family: "Roboto", "Helvetica", "Arial", sans-serif; 19 | } 20 | 21 | body { 22 | padding: 0; 23 | margin: 0; 24 | } 25 | 26 | header { 27 | background-color: #283337; 28 | height: 40px; 29 | color: #eee; 30 | display: flex; 31 | align-items: center; 32 | } 33 | 34 | header img { 35 | padding: 11px 15px 0 24px; 36 | float: left; 37 | } 38 | 39 | header h1 { 40 | padding: 0; 41 | margin: 0; 42 | font-size: 16px; 43 | line-height: 40px; 44 | font-weight: normal; 45 | color: #eee !important; 46 | display: inline-flex; 47 | } 48 | 49 | .main-content { 50 | padding: 15px; 51 | } 52 | 53 | h2, h3, h4 { 54 | color: #424242 !important; 55 | page-break-inside: avoid; 56 | text-decoration: none; 57 | margin-top: 30px; 58 | margin-bottom: 5px; 59 | } 60 | 61 | h2 { 62 | color: #424242 !important; 63 | page-break-inside: avoid; 64 | text-decoration: none; 65 | font-size: 28px; 66 | margin-top: 30px; 67 | margin-bottom: 5px; 68 | } 69 | 70 | h3 { 71 | color: #424242 !important; 72 | page-break-inside: avoid; 73 | text-decoration: none; 74 | font-size: 24px; 75 | margin-top: 30px; 76 | margin-bottom: 5px; 77 | } 78 | 79 | h4 { 80 | color: #616161 !important; 81 | page-break-inside: avoid; 82 | text-decoration: none; 83 | font-size: 18px; 84 | margin-top: 30px; 85 | margin-bottom: 5px; 86 | } 87 | 88 | h2 a { 89 | text-decoration: none; 90 | color: #424242; 91 | } 92 | 93 | p, li { 94 | margin-bottom: 10px; 95 | color: #616161; 96 | text-decoration: none; 97 | line-height: 1.5; 98 | } 99 | 100 | table { 101 | border-collapse: collapse; 102 | } 103 | 104 | table, th, td { 105 | border: 1px solid #616161; 106 | } 107 | 108 | th { 109 | font-weight: bold; 110 | text-align: left; 111 | } 112 | 113 | td, th { 114 | padding: 10px; 115 | } 116 | 117 | @page { 118 | margin: 1in 119 | } 120 | 121 | .policies-landing h1 { 122 | text-align: center; 123 | margin: 30px auto; 124 | } 125 | 126 | .link-wrap { 127 | width: 200px; 128 | height: 200px; 129 | border-radius: 50%; 130 | background: #ccc; 131 | position: relative; 132 | transition-duration: 0.3s; 133 | color: #37474F; 134 | margin-top: 20px 135 | } 136 | 137 | .link-wrap i { 138 | font-size: 50px; 139 | position: absolute; 140 | left: 80px; 141 | top: 40px; 142 | } 143 | 144 | .link-wrap .text { 145 | position: absolute; 146 | width: 100%; 147 | text-align: center; 148 | bottom: 55px; 149 | font-size: 20px; 150 | } 151 | 152 | .container a { 153 | padding: 0 20px; 154 | } 155 | 156 | .container { 157 | width: 500px; 158 | display: flex; 159 | align-content: center; 160 | margin: auto; 161 | } 162 | 163 | .link-wrap:hover, 164 | .link-wrap:focus, 165 | .link-wrap:active { 166 | background: #607D8B; 167 | color: #fff 168 | } 169 | 170 | .back { 171 | background-color: rgba(19, 67, 168, 0.8); 172 | bottom: 10px; 173 | color: #fff; 174 | font-size: 12px; 175 | padding: 9px 12px; 176 | position: fixed; 177 | right: 10px; 178 | text-decoration: none; 179 | } 180 | 181 | .back { 182 | background-color: rgba(19, 67, 168, 1); 183 | color: #fff; 184 | } 185 | -------------------------------------------------------------------------------- /modules/distribution/carbon-home/conf/transports/monitor/netty-transports.yaml: -------------------------------------------------------------------------------- 1 | ################################################################################ 2 | # Copyright (c) 2019, WSO2 Inc. (http://www.wso2.org) All Rights Reserved. 3 | # 4 | # Licensed under the Apache License, Version 2.0 (the "License"); 5 | # you may not use this file except in compliance with the License. 6 | # You may obtain a copy of the License at 7 | # 8 | # http://www.apache.org/licenses/LICENSE-2.0 9 | # 10 | # Unless required by applicable law or agreed to in writing, software 11 | # distributed under the License is distributed on an "AS IS" BASIS, 12 | # WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 13 | # See the License for the specific language governing permissions and 14 | # limitations under the License. 15 | ################################################################################ 16 | wso2.transport.http: 17 | transportProperties: 18 | - 19 | name: "latency.metrics.enabled" 20 | value: true 21 | - 22 | name: "request.size.validation" 23 | value: false 24 | - 25 | name: "request.size.validation.maximum.value" #in bytes 26 | value: 2048 27 | - 28 | name: "request.size.validation.reject.status.code" 29 | value: 401 30 | - 31 | name: "request.size.validation.reject.message" 32 | value: "Message is too big, hence cannot proceed" 33 | - 34 | name: "request.size.validation.reject.message.content.type" 35 | value: "plain/text" 36 | - 37 | name: "header.size.validation" 38 | value: false 39 | - 40 | name: "header.validation.maximum.request.line" #in bytes 41 | value: 2048 42 | - 43 | name: "header.validation.maximum.size" #in bytes 44 | value: 2048 45 | - 46 | name: "header.validation.maximum.chunk.size" #in bytes, refere http://netty.io/4.0/api/io/netty/handler/codec/http/HttpRequestDecoder.html 47 | value: 2048 48 | - 49 | name: "header.validation.reject.status.code" 50 | value: 401 51 | - 52 | name: "header.validation.reject.message" 53 | value: "Message's header size is too big, hence cannot proceed" 54 | - 55 | name: "header.validation.reject.message.content.type" 56 | value: "plain/text" 57 | - 58 | name: "server.bootstrap.boss.group.size" 59 | value: 4 60 | - 61 | name: "server.bootstrap.worker.group.size" 62 | value: 8 63 | - 64 | name: "server.bootstrap.nodelay" 65 | value: true 66 | - 67 | name: "server.bootstrap.keepalive" 68 | value: true 69 | - 70 | name: "server.bootstrap.sendbuffersize" 71 | value: 1048576 72 | - 73 | name: "server.bootstrap.recievebuffersize" 74 | value: 1048576 75 | - 76 | name: "server.bootstrap.connect.timeout" 77 | value: 15000 78 | - 79 | name: "server.bootstrap.socket.reuse" 80 | value: false 81 | - 82 | name: "server.bootstrap.socket.timeout" 83 | value: 15 84 | - 85 | name: "server.bootstrap.socket.backlog" 86 | value: 100 87 | 88 | listenerConfigurations: 89 | - 90 | id: "default" 91 | host: "0.0.0.0" 92 | port: 9190 93 | messageProcessorId: "MSF4J-CM-PROCESSOR" 94 | 95 | - 96 | id: "https" 97 | host: "0.0.0.0" 98 | port: 9543 99 | scheme: https 100 | keyStoreFile: ${carbon.home}/resources/security/wso2carbon.jks 101 | keyStorePassword: wso2carbon 102 | certPass: wso2carbon 103 | messageProcessorId: "MSF4J-CM-PROCESSOR" 104 | 105 | 106 | senderConfigurations: 107 | - 108 | id: "netty-gw" 109 | parameters: 110 | - 111 | name: "connection.pool.count" 112 | value: 0 113 | - 114 | name: "client.bootstrap.nodelay" 115 | value: true 116 | - 117 | name: "client.bootstrap.keepalive" 118 | value: true 119 | - 120 | name: "client.bootstrap.sendbuffersize" 121 | value: 1048576 122 | - 123 | name: "client.bootstrap.recievebuffersize" 124 | value: 1048576 125 | - 126 | name: "client.bootstrap.connect.timeout" 127 | value: 15000 128 | - 129 | name: "client.bootstrap.socket.reuse" 130 | value: false 131 | - 132 | name: "client.bootstrap.socket.timeout" 133 | value: 15 134 | -------------------------------------------------------------------------------- /modules/distribution/carbon-home/conf/transports/portal/netty-transports.yaml: -------------------------------------------------------------------------------- 1 | ################################################################################ 2 | # Copyright (c) 2019, WSO2 Inc. (http://www.wso2.org) All Rights Reserved. 3 | # 4 | # Licensed under the Apache License, Version 2.0 (the "License"); 5 | # you may not use this file except in compliance with the License. 6 | # You may obtain a copy of the License at 7 | # 8 | # http://www.apache.org/licenses/LICENSE-2.0 9 | # 10 | # Unless required by applicable law or agreed to in writing, software 11 | # distributed under the License is distributed on an "AS IS" BASIS, 12 | # WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 13 | # See the License for the specific language governing permissions and 14 | # limitations under the License. 15 | ################################################################################ 16 | wso2.transport.http: 17 | transportProperties: 18 | - 19 | name: "latency.metrics.enabled" 20 | value: true 21 | - 22 | name: "request.size.validation" 23 | value: false 24 | - 25 | name: "request.size.validation.maximum.value" #in bytes 26 | value: 2048 27 | - 28 | name: "request.size.validation.reject.status.code" 29 | value: 401 30 | - 31 | name: "request.size.validation.reject.message" 32 | value: "Message is too big, hence cannot proceed" 33 | - 34 | name: "request.size.validation.reject.message.content.type" 35 | value: "plain/text" 36 | - 37 | name: "header.size.validation" 38 | value: false 39 | - 40 | name: "header.validation.maximum.request.line" #in bytes 41 | value: 2048 42 | - 43 | name: "header.validation.maximum.size" #in bytes 44 | value: 2048 45 | - 46 | name: "header.validation.maximum.chunk.size" #in bytes, refere http://netty.io/4.0/api/io/netty/handler/codec/http/HttpRequestDecoder.html 47 | value: 2048 48 | - 49 | name: "header.validation.reject.status.code" 50 | value: 401 51 | - 52 | name: "header.validation.reject.message" 53 | value: "Message's header size is too big, hence cannot proceed" 54 | - 55 | name: "header.validation.reject.message.content.type" 56 | value: "plain/text" 57 | - 58 | name: "server.bootstrap.boss.group.size" 59 | value: 4 60 | - 61 | name: "server.bootstrap.worker.group.size" 62 | value: 8 63 | - 64 | name: "server.bootstrap.nodelay" 65 | value: true 66 | - 67 | name: "server.bootstrap.keepalive" 68 | value: true 69 | - 70 | name: "server.bootstrap.sendbuffersize" 71 | value: 1048576 72 | - 73 | name: "server.bootstrap.recievebuffersize" 74 | value: 1048576 75 | - 76 | name: "server.bootstrap.connect.timeout" 77 | value: 15000 78 | - 79 | name: "server.bootstrap.socket.reuse" 80 | value: false 81 | - 82 | name: "server.bootstrap.socket.timeout" 83 | value: 15 84 | - 85 | name: "server.bootstrap.socket.backlog" 86 | value: 100 87 | 88 | listenerConfigurations: 89 | - 90 | id: "default" 91 | host: "0.0.0.0" 92 | port: 9290 93 | messageProcessorId: "MSF4J-CM-PROCESSOR" 94 | 95 | - 96 | id: "https" 97 | host: "0.0.0.0" 98 | port: 9643 99 | scheme: https 100 | keyStoreFile: ${carbon.home}/resources/security/wso2carbon.jks 101 | keyStorePassword: wso2carbon 102 | certPass: wso2carbon 103 | messageProcessorId: "MSF4J-CM-PROCESSOR" 104 | 105 | 106 | senderConfigurations: 107 | - 108 | id: "netty-gw" 109 | parameters: 110 | - 111 | name: "connection.pool.count" 112 | value: 0 113 | - 114 | name: "client.bootstrap.nodelay" 115 | value: true 116 | - 117 | name: "client.bootstrap.keepalive" 118 | value: true 119 | - 120 | name: "client.bootstrap.sendbuffersize" 121 | value: 1048576 122 | - 123 | name: "client.bootstrap.recievebuffersize" 124 | value: 1048576 125 | - 126 | name: "client.bootstrap.connect.timeout" 127 | value: 15000 128 | - 129 | name: "client.bootstrap.socket.reuse" 130 | value: false 131 | - 132 | name: "client.bootstrap.socket.timeout" 133 | value: 15 134 | -------------------------------------------------------------------------------- /modules/distribution/carbon-home/bin/osgi-lib.sh: -------------------------------------------------------------------------------- 1 | #!/bin/sh 2 | # --------------------------------------------------------------------------- 3 | # Copyright (c) 2020, WSO2 Inc. (http://www.wso2.org) All Rights Reserved. 4 | # 5 | # Licensed under the Apache License, Version 2.0 (the "License"); 6 | # you may not use this file except in compliance with the License. 7 | # You may obtain a copy of the License at 8 | # 9 | # http://www.apache.org/licenses/LICENSE-2.0 10 | # 11 | # Unless required by applicable law or agreed to in writing, software 12 | # distributed under the License is distributed on an "AS IS" BASIS, 13 | # WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 14 | # See the License for the specific language governing permissions and 15 | # limitations under the License. 16 | 17 | # ---------------------------------------------------------------------------- 18 | 19 | cygwin=false; 20 | darwin=false; 21 | os400=false; 22 | mingw=false; 23 | case "`uname`" in 24 | CYGWIN*) cygwin=true;; 25 | MINGW*) mingw=true;; 26 | OS400*) os400=true;; 27 | Darwin*) darwin=true 28 | if [ -z "$JAVA_VERSION" ] ; then 29 | JAVA_VERSION="CurrentJDK" 30 | else 31 | echo "Using Java version: $JAVA_VERSION" 32 | fi 33 | if [ -z "$JAVA_HOME" ] ; then 34 | JAVA_HOME=/System/Library/Frameworks/JavaVM.framework/Versions/${JAVA_VERSION}/Home 35 | fi 36 | ;; 37 | esac 38 | 39 | # resolve links - $0 may be a softlink 40 | PRG="$0" 41 | 42 | while [ -h "$PRG" ]; do 43 | ls=`ls -ld "$PRG"` 44 | link=`expr "$ls" : '.*-> \(.*\)$'` 45 | if expr "$link" : '.*/.*' > /dev/null; then 46 | PRG="$link" 47 | else 48 | PRG=`dirname "$PRG"`/"$link" 49 | fi 50 | done 51 | 52 | # Get standard environment variables 53 | PRGDIR=`dirname "$PRG"` 54 | 55 | # Only set CARBON_HOME if not already set 56 | [ -z "$CARBON_HOME" ] && CARBON_HOME=`cd "$PRGDIR/.." ; pwd` 57 | 58 | # For Cygwin, ensure paths are in UNIX format before anything is touched 59 | if $cygwin; then 60 | [ -n "$JAVA_HOME" ] && JAVA_HOME=`cygpath --unix "$JAVA_HOME"` 61 | [ -n "$CARBON_HOME" ] && CARBON_HOME=`cygpath --unix "$CARBON_HOME"` 62 | fi 63 | 64 | # For OS400 65 | if $os400; then 66 | # Set job priority to standard for interactive (interactive - 6) by using 67 | # the interactive priority - 6, the helper threads that respond to requests 68 | # will be running at the same priority as interactive jobs. 69 | COMMAND='chgjob job('$JOBNAME') runpty(6)' 70 | system $COMMAND 71 | 72 | # Enable multi threading 73 | QIBM_MULTI_THREADED=Y 74 | export QIBM_MULTI_THREADED 75 | fi 76 | 77 | # For Migwn, ensure paths are in UNIX format before anything is touched 78 | if $mingw ; then 79 | [ -n "$CARBON_HOME" ] && 80 | CARBON_HOME="`(cd "$CARBON_HOME"; pwd)`" 81 | [ -n "$JAVA_HOME" ] && 82 | JAVA_HOME="`(cd "$JAVA_HOME"; pwd)`" 83 | fi 84 | 85 | if [ -z "$JAVACMD" ] ; then 86 | if [ -n "$JAVA_HOME" ] ; then 87 | if [ -x "$JAVA_HOME/jre/sh/java" ] ; then 88 | # IBM's JDK on AIX uses strange locations for the executables 89 | JAVACMD="$JAVA_HOME/jre/sh/java" 90 | else 91 | JAVACMD="$JAVA_HOME/bin/java" 92 | fi 93 | else 94 | JAVACMD=java 95 | fi 96 | fi 97 | 98 | if [ ! -x "$JAVACMD" ] ; then 99 | echo "Error: JAVA_HOME is not defined correctly." 100 | echo " CARBON cannot execute $JAVACMD" 101 | exit 1 102 | fi 103 | 104 | # if JAVA_HOME is not set we're not happy 105 | if [ -z "$JAVA_HOME" ]; then 106 | echo "You must set the JAVA_HOME variable before running CARBON." 107 | exit 1 108 | fi 109 | 110 | java_version=$("$JAVACMD" -version 2>&1 | awk -F '"' '/version/ {print $2}') 111 | java_version_formatted=$(echo "$java_version" | awk -F. '{printf("%02d%02d",$1,$2);}') 112 | if [ $java_version_formatted -lt 0108 ] || [ $java_version_formatted -gt 1100 ]; then 113 | echo " Starting WSO2 Carbon (in unsupported JDK)" 114 | echo " [ERROR] CARBON is supported only on JDK 1.8, 9, 10 and 11" 115 | exit 1 116 | fi 117 | 118 | echo JAVA_HOME environment variable is set to $JAVA_HOME 119 | echo CARBON_HOME environment variable is set to $CARBON_HOME 120 | 121 | cd "$CARBON_HOME/bin/"; 122 | 123 | java -cp "../bin/tools/*:../bin/bootstrap/*" -Dwso2.carbon.tool="osgi-lib-deployer" org.wso2.carbon.tools.CarbonToolExecutor "$1" "$CARBON_HOME" 124 | -------------------------------------------------------------------------------- /modules/distribution/carbon-home/bin/jartobundle.sh: -------------------------------------------------------------------------------- 1 | #!/bin/sh 2 | # --------------------------------------------------------------------------- 3 | # Copyright (c) 2020, WSO2 Inc. (http://www.wso2.org) All Rights Reserved. 4 | # 5 | # Licensed under the Apache License, Version 2.0 (the "License"); 6 | # you may not use this file except in compliance with the License. 7 | # You may obtain a copy of the License at 8 | # 9 | # http://www.apache.org/licenses/LICENSE-2.0 10 | # 11 | # Unless required by applicable law or agreed to in writing, software 12 | # distributed under the License is distributed on an "AS IS" BASIS, 13 | # WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 14 | # See the License for the specific language governing permissions and 15 | # limitations under the License. 16 | 17 | # ---------------------------------------------------------------------------- 18 | 19 | cygwin=false; 20 | darwin=false; 21 | os400=false; 22 | mingw=false; 23 | case "`uname`" in 24 | CYGWIN*) cygwin=true;; 25 | MINGW*) mingw=true;; 26 | OS400*) os400=true;; 27 | Darwin*) darwin=true 28 | if [ -z "$JAVA_VERSION" ] ; then 29 | JAVA_VERSION="CurrentJDK" 30 | else 31 | echo "Using Java version: $JAVA_VERSION" 32 | fi 33 | if [ -z "$JAVA_HOME" ] ; then 34 | JAVA_HOME=/System/Library/Frameworks/JavaVM.framework/Versions/${JAVA_VERSION}/Home 35 | fi 36 | ;; 37 | esac 38 | 39 | # resolve links - $0 may be a softlink 40 | PRG="$0" 41 | 42 | while [ -h "$PRG" ]; do 43 | ls=`ls -ld "$PRG"` 44 | link=`expr "$ls" : '.*-> \(.*\)$'` 45 | if expr "$link" : '.*/.*' > /dev/null; then 46 | PRG="$link" 47 | else 48 | PRG=`dirname "$PRG"`/"$link" 49 | fi 50 | done 51 | 52 | # Get standard environment variables 53 | PRGDIR=`dirname "$PRG"` 54 | 55 | # Only set CARBON_HOME if not already set 56 | [ -z "$CARBON_HOME" ] && CARBON_HOME=`cd "$PRGDIR/.." ; pwd` 57 | 58 | # For Cygwin, ensure paths are in UNIX format before anything is touched 59 | if $cygwin; then 60 | [ -n "$JAVA_HOME" ] && JAVA_HOME=`cygpath --unix "$JAVA_HOME"` 61 | [ -n "$CARBON_HOME" ] && CARBON_HOME=`cygpath --unix "$CARBON_HOME"` 62 | fi 63 | 64 | # For OS400 65 | if $os400; then 66 | # Set job priority to standard for interactive (interactive - 6) by using 67 | # the interactive priority - 6, the helper threads that respond to requests 68 | # will be running at the same priority as interactive jobs. 69 | COMMAND='chgjob job('$JOBNAME') runpty(6)' 70 | system $COMMAND 71 | 72 | # Enable multi threading 73 | QIBM_MULTI_THREADED=Y 74 | export QIBM_MULTI_THREADED 75 | fi 76 | 77 | # For Migwn, ensure paths are in UNIX format before anything is touched 78 | if $mingw ; then 79 | [ -n "$CARBON_HOME" ] && 80 | CARBON_HOME="`(cd "$CARBON_HOME"; pwd)`" 81 | [ -n "$JAVA_HOME" ] && 82 | JAVA_HOME="`(cd "$JAVA_HOME"; pwd)`" 83 | fi 84 | 85 | if [ -z "$JAVACMD" ] ; then 86 | if [ -n "$JAVA_HOME" ] ; then 87 | if [ -x "$JAVA_HOME/jre/sh/java" ] ; then 88 | # IBM's JDK on AIX uses strange locations for the executables 89 | JAVACMD="$JAVA_HOME/jre/sh/java" 90 | else 91 | JAVACMD="$JAVA_HOME/bin/java" 92 | fi 93 | else 94 | JAVACMD=java 95 | fi 96 | fi 97 | 98 | if [ ! -x "$JAVACMD" ] ; then 99 | echo "Error: JAVA_HOME is not defined correctly." 100 | echo " CARBON cannot execute $JAVACMD" 101 | exit 1 102 | fi 103 | 104 | # if JAVA_HOME is not set we're not happy 105 | if [ -z "$JAVA_HOME" ]; then 106 | echo "You must set the JAVA_HOME variable before running CARBON." 107 | exit 1 108 | fi 109 | 110 | java_version=$("$JAVACMD" -version 2>&1 | awk -F '"' '/version/ {print $2}') 111 | java_version_formatted=$(echo "$java_version" | awk -F. '{printf("%02d%02d",$1,$2);}') 112 | if [ $java_version_formatted -lt 0108 ] || [ $java_version_formatted -gt 1100 ]; then 113 | echo " Starting WSO2 Carbon (in unsupported JDK)" 114 | echo " [ERROR] CARBON is supported only on JDK 1.8, 9, 10 and 11" 115 | exit 1 116 | fi 117 | 118 | echo JAVA_HOME environment variable is set to $JAVA_HOME 119 | echo CARBON_HOME environment variable is set to $CARBON_HOME 120 | 121 | # get the current directory from which the script is executed 122 | CURRENT_DIR=${PWD}; 123 | 124 | cd "$CARBON_HOME/bin/"; 125 | java -cp "../bin/tools/*" -Dwso2.carbon.tool="jar-to-bundle-converter" org.wso2.carbon.tools.CarbonToolExecutor "$1" "$2" "$CURRENT_DIR" 126 | -------------------------------------------------------------------------------- /modules/distribution/carbon-home/bin/icf-provider.sh: -------------------------------------------------------------------------------- 1 | #!/bin/sh 2 | # --------------------------------------------------------------------------- 3 | # Copyright (c) 2020, WSO2 Inc. (http://www.wso2.org) All Rights Reserved. 4 | # 5 | # Licensed under the Apache License, Version 2.0 (the "License"); 6 | # you may not use this file except in compliance with the License. 7 | # You may obtain a copy of the License at 8 | # 9 | # http://www.apache.org/licenses/LICENSE-2.0 10 | # 11 | # Unless required by applicable law or agreed to in writing, software 12 | # distributed under the License is distributed on an "AS IS" BASIS, 13 | # WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 14 | # See the License for the specific language governing permissions and 15 | # limitations under the License. 16 | 17 | # ---------------------------------------------------------------------------- 18 | 19 | cygwin=false; 20 | darwin=false; 21 | os400=false; 22 | mingw=false; 23 | case "`uname`" in 24 | CYGWIN*) cygwin=true;; 25 | MINGW*) mingw=true;; 26 | OS400*) os400=true;; 27 | Darwin*) darwin=true 28 | if [ -z "$JAVA_VERSION" ] ; then 29 | JAVA_VERSION="CurrentJDK" 30 | else 31 | echo "Using Java version: $JAVA_VERSION" 32 | fi 33 | if [ -z "$JAVA_HOME" ] ; then 34 | JAVA_HOME=/System/Library/Frameworks/JavaVM.framework/Versions/${JAVA_VERSION}/Home 35 | fi 36 | ;; 37 | esac 38 | 39 | # resolve links - $0 may be a softlink 40 | PRG="$0" 41 | 42 | while [ -h "$PRG" ]; do 43 | ls=`ls -ld "$PRG"` 44 | link=`expr "$ls" : '.*-> \(.*\)$'` 45 | if expr "$link" : '.*/.*' > /dev/null; then 46 | PRG="$link" 47 | else 48 | PRG=`dirname "$PRG"`/"$link" 49 | fi 50 | done 51 | 52 | # Get standard environment variables 53 | PRGDIR=`dirname "$PRG"` 54 | 55 | # Only set CARBON_HOME if not already set 56 | [ -z "$CARBON_HOME" ] && CARBON_HOME=`cd "$PRGDIR/.." ; pwd` 57 | 58 | # For Cygwin, ensure paths are in UNIX format before anything is touched 59 | if $cygwin; then 60 | [ -n "$JAVA_HOME" ] && JAVA_HOME=`cygpath --unix "$JAVA_HOME"` 61 | [ -n "$CARBON_HOME" ] && CARBON_HOME=`cygpath --unix "$CARBON_HOME"` 62 | fi 63 | 64 | # For OS400 65 | if $os400; then 66 | # Set job priority to standard for interactive (interactive - 6) by using 67 | # the interactive priority - 6, the helper threads that respond to requests 68 | # will be running at the same priority as interactive jobs. 69 | COMMAND='chgjob job('$JOBNAME') runpty(6)' 70 | system $COMMAND 71 | 72 | # Enable multi threading 73 | QIBM_MULTI_THREADED=Y 74 | export QIBM_MULTI_THREADED 75 | fi 76 | 77 | # For Migwn, ensure paths are in UNIX format before anything is touched 78 | if $mingw ; then 79 | [ -n "$CARBON_HOME" ] && 80 | CARBON_HOME="`(cd "$CARBON_HOME"; pwd)`" 81 | [ -n "$JAVA_HOME" ] && 82 | JAVA_HOME="`(cd "$JAVA_HOME"; pwd)`" 83 | fi 84 | 85 | if [ -z "$JAVACMD" ] ; then 86 | if [ -n "$JAVA_HOME" ] ; then 87 | if [ -x "$JAVA_HOME/jre/sh/java" ] ; then 88 | # IBM's JDK on AIX uses strange locations for the executables 89 | JAVACMD="$JAVA_HOME/jre/sh/java" 90 | else 91 | JAVACMD="$JAVA_HOME/bin/java" 92 | fi 93 | else 94 | JAVACMD=java 95 | fi 96 | fi 97 | 98 | if [ ! -x "$JAVACMD" ] ; then 99 | echo "Error: JAVA_HOME is not defined correctly." 100 | echo " CARBON cannot execute $JAVACMD" 101 | exit 1 102 | fi 103 | 104 | # if JAVA_HOME is not set we're not happy 105 | if [ -z "$JAVA_HOME" ]; then 106 | echo "You must set the JAVA_HOME variable before running CARBON." 107 | exit 1 108 | fi 109 | 110 | java_version=$("$JAVACMD" -version 2>&1 | awk -F '"' '/version/ {print $2}') 111 | java_version_formatted=$(echo "$java_version" | awk -F. '{printf("%02d%02d",$1,$2);}') 112 | if [ $java_version_formatted -lt 0108 ] || [ $java_version_formatted -gt 1100 ]; then 113 | echo " Starting WSO2 Carbon (in unsupported JDK)" 114 | echo " [ERROR] CARBON is supported only on JDK 1.8, 9, 10 and 11" 115 | exit 1 116 | fi 117 | 118 | echo JAVA_HOME environment variable is set to $JAVA_HOME 119 | echo CARBON_HOME environment variable is set to $CARBON_HOME 120 | 121 | # get the current directory from which the script is executed 122 | CURRENT_DIR=${PWD}; 123 | 124 | cd "$CARBON_HOME/bin/"; 125 | java -cp "../bin/tools/*" -Dcarbon.home="$CARBON_HOME" -Dwso2.carbon.tool="icf-provider" org.wso2.carbon.tools.CarbonToolExecutor $1 $2 $3 $4 126 | -------------------------------------------------------------------------------- /modules/distribution/carbon-home/bin/ciphertool.sh: -------------------------------------------------------------------------------- 1 | #!/bin/sh 2 | # --------------------------------------------------------------------------- 3 | # Copyright (c) 2020, WSO2 Inc. (http://www.wso2.org) All Rights Reserved. 4 | # 5 | # Licensed under the Apache License, Version 2.0 (the "License"); 6 | # you may not use this file except in compliance with the License. 7 | # You may obtain a copy of the License at 8 | # 9 | # http://www.apache.org/licenses/LICENSE-2.0 10 | # 11 | # Unless required by applicable law or agreed to in writing, software 12 | # distributed under the License is distributed on an "AS IS" BASIS, 13 | # WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 14 | # See the License for the specific language governing permissions and 15 | # limitations under the License. 16 | 17 | # ---------------------------------------------------------------------------- 18 | 19 | cygwin=false; 20 | darwin=false; 21 | os400=false; 22 | mingw=false; 23 | case "`uname`" in 24 | CYGWIN*) cygwin=true;; 25 | MINGW*) mingw=true;; 26 | OS400*) os400=true;; 27 | Darwin*) darwin=true 28 | if [ -z "$JAVA_VERSION" ] ; then 29 | JAVA_VERSION="CurrentJDK" 30 | else 31 | echo "Using Java version: $JAVA_VERSION" 32 | fi 33 | if [ -z "$JAVA_HOME" ] ; then 34 | JAVA_HOME=/System/Library/Frameworks/JavaVM.framework/Versions/${JAVA_VERSION}/Home 35 | fi 36 | ;; 37 | esac 38 | 39 | # resolve links - $0 may be a softlink 40 | PRG="$0" 41 | 42 | while [ -h "$PRG" ]; do 43 | ls=`ls -ld "$PRG"` 44 | link=`expr "$ls" : '.*-> \(.*\)$'` 45 | if expr "$link" : '.*/.*' > /dev/null; then 46 | PRG="$link" 47 | else 48 | PRG=`dirname "$PRG"`/"$link" 49 | fi 50 | done 51 | 52 | # Get standard environment variables 53 | PRGDIR=`dirname "$PRG"` 54 | 55 | # Only set CARBON_HOME if not already set 56 | [ -z "$CARBON_HOME" ] && CARBON_HOME=`cd "$PRGDIR/.." ; pwd` 57 | 58 | # For Cygwin, ensure paths are in UNIX format before anything is touched 59 | if $cygwin; then 60 | [ -n "$JAVA_HOME" ] && JAVA_HOME=`cygpath --unix "$JAVA_HOME"` 61 | [ -n "$CARBON_HOME" ] && CARBON_HOME=`cygpath --unix "$CARBON_HOME"` 62 | [ -n "$CLASSPATH" ] && CLASSPATH=`cygpath --path --unix "$CLASSPATH"` 63 | fi 64 | 65 | # For OS400 66 | if $os400; then 67 | # Set job priority to standard for interactive (interactive - 6) by using 68 | # the interactive priority - 6, the helper threads that respond to requests 69 | # will be running at the same priority as interactive jobs. 70 | COMMAND='chgjob job('$JOBNAME') runpty(6)' 71 | system $COMMAND 72 | 73 | # Enable multi threading 74 | QIBM_MULTI_THREADED=Y 75 | export QIBM_MULTI_THREADED 76 | fi 77 | 78 | # For Migwn, ensure paths are in UNIX format before anything is touched 79 | if $mingw ; then 80 | [ -n "$CARBON_HOME" ] && 81 | CARBON_HOME="`(cd "$CARBON_HOME"; pwd)`" 82 | [ -n "$JAVA_HOME" ] && 83 | JAVA_HOME="`(cd "$JAVA_HOME"; pwd)`" 84 | fi 85 | 86 | if [ -z "$JAVACMD" ] ; then 87 | if [ -n "$JAVA_HOME" ] ; then 88 | if [ -x "$JAVA_HOME/jre/sh/java" ] ; then 89 | # IBM's JDK on AIX uses strange locations for the executables 90 | JAVACMD="$JAVA_HOME/jre/sh/java" 91 | else 92 | JAVACMD="$JAVA_HOME/bin/java" 93 | fi 94 | else 95 | JAVACMD=java 96 | fi 97 | fi 98 | 99 | if [ ! -x "$JAVACMD" ] ; then 100 | echo "Error: JAVA_HOME is not defined correctly." 101 | echo " CARBON cannot execute $JAVACMD" 102 | exit 1 103 | fi 104 | 105 | # if JAVA_HOME is not set we're not happy 106 | if [ -z "$JAVA_HOME" ]; then 107 | echo "You must set the JAVA_HOME variable before running CARBON." 108 | exit 1 109 | fi 110 | 111 | java_version=$("$JAVACMD" -version 2>&1 | awk -F '"' '/version/ {print $2}') 112 | java_version_formatted=$(echo "$java_version" | awk -F. '{printf("%02d%02d",$1,$2);}') 113 | if [ $java_version_formatted -lt 0108 ] || [ $java_version_formatted -gt 1100 ]; then 114 | echo " Starting WSO2 Carbon (in unsupported JDK)" 115 | echo " [ERROR] CARBON is supported only on JDK 1.8, 9, 10 and 11" 116 | exit 1 117 | fi 118 | 119 | # For Cygwin, switch paths to Windows format before running java 120 | if $cygwin; then 121 | JAVA_HOME=`cygpath --absolute --windows "$JAVA_HOME"` 122 | CARBON_HOME=`cygpath --absolute --windows "$CARBON_HOME"` 123 | CLASSPATH=`cygpath --path --windows "$CLASSPATH"` 124 | fi 125 | 126 | echo JAVA_HOME environment variable is set to $JAVA_HOME 127 | echo CARBON_HOME environment variable is set to $CARBON_HOME 128 | 129 | cd "$CARBON_HOME"; 130 | 131 | $JAVACMD \ 132 | -Dcarbon.home="$CARBON_HOME" \ 133 | -cp "bin/tools/*" org.wso2.carbon.secvault.ciphertool.CipherToolInitializer $* 134 | -------------------------------------------------------------------------------- /.gitignore: -------------------------------------------------------------------------------- 1 | 2 | # Created by https://www.gitignore.io/api/node,linux,macos,maven,windows,eclipse,intellij,intellij+all 3 | 4 | ### Eclipse ### 5 | 6 | .metadata 7 | bin/ 8 | tmp/ 9 | *.tmp 10 | *.bak 11 | *.swp 12 | *~.nib 13 | local.properties 14 | .settings/ 15 | .loadpath 16 | .recommenders 17 | 18 | # External tool builders 19 | .externalToolBuilders/ 20 | 21 | # Locally stored "Eclipse launch configurations" 22 | *.launch 23 | 24 | # PyDev specific (Python IDE for Eclipse) 25 | *.pydevproject 26 | 27 | # CDT-specific (C/C++ Development Tooling) 28 | .cproject 29 | 30 | # Java annotation processor (APT) 31 | .factorypath 32 | 33 | # PDT-specific (PHP Development Tools) 34 | .buildpath 35 | 36 | # sbteclipse plugin 37 | .target 38 | 39 | # Tern plugin 40 | .tern-project 41 | 42 | # TeXlipse plugin 43 | .texlipse 44 | 45 | # STS (Spring Tool Suite) 46 | .springBeans 47 | 48 | # Code Recommenders 49 | .recommenders/ 50 | 51 | # Scala IDE specific (Scala & Java development for Eclipse) 52 | .cache-main 53 | .scala_dependencies 54 | .worksheet 55 | 56 | ### Eclipse Patch ### 57 | # Eclipse Core 58 | .project 59 | 60 | # JDT-specific (Eclipse Java Development Tools) 61 | .classpath 62 | 63 | # Annotation Processing 64 | .apt_generated 65 | 66 | ### Intellij ### 67 | # Covers JetBrains IDEs: IntelliJ, RubyMine, PhpStorm, AppCode, PyCharm, CLion, Android Studio and Webstorm 68 | # Reference: https://intellij-support.jetbrains.com/hc/en-us/articles/206544839 69 | 70 | # User-specific stuff: 71 | .idea/**/workspace.xml 72 | .idea/**/tasks.xml 73 | .idea/dictionaries 74 | 75 | # Sensitive or high-churn files: 76 | .idea/**/dataSources/ 77 | .idea/**/dataSources.ids 78 | .idea/**/dataSources.xml 79 | .idea/**/dataSources.local.xml 80 | .idea/**/sqlDataSources.xml 81 | .idea/**/dynamic.xml 82 | .idea/**/uiDesigner.xml 83 | 84 | # Gradle: 85 | .idea/**/gradle.xml 86 | .idea/**/libraries 87 | 88 | # CMake 89 | cmake-build-debug/ 90 | 91 | # Mongo Explorer plugin: 92 | .idea/**/mongoSettings.xml 93 | 94 | ## File-based project format: 95 | *.iws 96 | 97 | ## Plugin-specific files: 98 | 99 | # IntelliJ 100 | /out/ 101 | 102 | # mpeltonen/sbt-idea plugin 103 | .idea_modules/ 104 | 105 | # JIRA plugin 106 | atlassian-ide-plugin.xml 107 | 108 | # Cursive Clojure plugin 109 | .idea/replstate.xml 110 | 111 | # Ruby plugin and RubyMine 112 | /.rakeTasks 113 | 114 | # Crashlytics plugin (for Android Studio and IntelliJ) 115 | com_crashlytics_export_strings.xml 116 | crashlytics.properties 117 | crashlytics-build.properties 118 | fabric.properties 119 | 120 | ### Intellij Patch ### 121 | # Comment Reason: https://github.com/joeblau/gitignore.io/issues/186#issuecomment-215987721 122 | 123 | # *.iml 124 | # modules.xml 125 | # .idea/misc.xml 126 | # *.ipr 127 | 128 | # Sonarlint plugin 129 | .idea/sonarlint 130 | 131 | ### Intellij+all ### 132 | # Covers JetBrains IDEs: IntelliJ, RubyMine, PhpStorm, AppCode, PyCharm, CLion, Android Studio and Webstorm 133 | # Reference: https://intellij-support.jetbrains.com/hc/en-us/articles/206544839 134 | 135 | # User-specific stuff: 136 | 137 | # Sensitive or high-churn files: 138 | 139 | # Gradle: 140 | 141 | # CMake 142 | 143 | # Mongo Explorer plugin: 144 | 145 | ## File-based project format: 146 | 147 | ## Plugin-specific files: 148 | 149 | # IntelliJ 150 | 151 | # mpeltonen/sbt-idea plugin 152 | 153 | # JIRA plugin 154 | 155 | # Cursive Clojure plugin 156 | 157 | # Ruby plugin and RubyMine 158 | 159 | # Crashlytics plugin (for Android Studio and IntelliJ) 160 | 161 | ### Intellij+all Patch ### 162 | # Ignores the whole .idea folder and all .iml files 163 | # See https://github.com/joeblau/gitignore.io/issues/186 and https://github.com/joeblau/gitignore.io/issues/360 164 | 165 | .idea/ 166 | 167 | # Reason: https://github.com/joeblau/gitignore.io/issues/186#issuecomment-249601023 168 | 169 | *.iml 170 | modules.xml 171 | .idea/misc.xml 172 | *.ipr 173 | 174 | ### Linux ### 175 | *~ 176 | 177 | # temporary files which can be created if a process still has a handle open of a deleted file 178 | .fuse_hidden* 179 | 180 | # KDE directory preferences 181 | .directory 182 | 183 | # Linux trash folder which might appear on any partition or disk 184 | .Trash-* 185 | 186 | # .nfs files are created when an open file is removed but is still being accessed 187 | .nfs* 188 | 189 | ### macOS ### 190 | *.DS_Store 191 | .AppleDouble 192 | .LSOverride 193 | 194 | # Icon must end with two \r 195 | Icon 196 | 197 | # Thumbnails 198 | ._* 199 | 200 | # Files that might appear in the root of a volume 201 | .DocumentRevisions-V100 202 | .fseventsd 203 | .Spotlight-V100 204 | .TemporaryItems 205 | .Trashes 206 | .VolumeIcon.icns 207 | .com.apple.timemachine.donotpresent 208 | 209 | # Directories potentially created on remote AFP share 210 | .AppleDB 211 | .AppleDesktop 212 | Network Trash Folder 213 | Temporary Items 214 | .apdisk 215 | 216 | ### Maven ### 217 | target/ 218 | pom.xml.tag 219 | pom.xml.releaseBackup 220 | pom.xml.versionsBackup 221 | pom.xml.next 222 | release.properties 223 | dependency-reduced-pom.xml 224 | buildNumber.properties 225 | .mvn/timing.properties 226 | 227 | # Avoid ignoring Maven wrapper jar file (.jar files are usually ignored) 228 | !/.mvn/wrapper/maven-wrapper.jar 229 | 230 | ### Node ### 231 | # Logs 232 | logs 233 | *.log 234 | npm-debug.log* 235 | yarn-debug.log* 236 | yarn-error.log* 237 | dist/ 238 | 239 | # Runtime data 240 | pids 241 | *.pid 242 | *.seed 243 | *.pid.lock 244 | 245 | # Directory for instrumented libs generated by jscoverage/JSCover 246 | lib-cov 247 | 248 | # Coverage directory used by tools like istanbul 249 | coverage 250 | 251 | # nyc test coverage 252 | .nyc_output 253 | 254 | # Grunt intermediate storage (http://gruntjs.com/creating-plugins#storing-task-files) 255 | .grunt 256 | 257 | # Bower dependency directory (https://bower.io/) 258 | bower_components 259 | 260 | # node-waf configuration 261 | .lock-wscript 262 | 263 | # Compiled binary addons (http://nodejs.org/api/addons.html) 264 | build/Release 265 | 266 | # Dependency directories 267 | node_modules/ 268 | jspm_packages/ 269 | 270 | # Typescript v1 declaration files 271 | typings/ 272 | 273 | # Optional npm cache directory 274 | .npm 275 | 276 | # Optional eslint cache 277 | .eslintcache 278 | 279 | # Optional REPL history 280 | .node_repl_history 281 | 282 | # Output of 'npm pack' 283 | *.tgz 284 | 285 | # Yarn Integrity file 286 | .yarn-integrity 287 | 288 | # dotenv environment variables file 289 | .env 290 | 291 | ### Windows ### 292 | # Windows thumbnail cache files 293 | Thumbs.db 294 | ehthumbs.db 295 | ehthumbs_vista.db 296 | 297 | # Folder config file 298 | Desktop.ini 299 | 300 | # Recycle Bin used on file shares 301 | $RECYCLE.BIN/ 302 | 303 | # Windows Installer files 304 | *.cab 305 | *.msi 306 | *.msm 307 | *.msp 308 | 309 | # Windows shortcuts 310 | *.lnk 311 | 312 | # Mobile Tools for Java (J2ME) 313 | .mtj.tmp/ 314 | 315 | # Package Files # 316 | *.war 317 | *.ear 318 | 319 | # virtual machine crash logs, see http://www.java.com/en/download/help/error_hotspot.xml 320 | hs_err_pid* 321 | 322 | # End of https://www.gitignore.io/api/node,linux,macos,maven,windows,eclipse,intellij,intellij+all -------------------------------------------------------------------------------- /modules/distribution/carbon-home/runtime/monitor/carbon.bat: -------------------------------------------------------------------------------- 1 | @echo off 2 | 3 | REM --------------------------------------------------------------------------- 4 | REM Copyright (c) 2019, WSO2 Inc. (http://www.wso2.org) All Rights Reserved. 5 | REM 6 | REM Licensed under the Apache License, Version 2.0 (the "License"); 7 | REM you may not use this file except in compliance with the License. 8 | REM You may obtain a copy of the License at 9 | REM 10 | REM http://www.apache.org/licenses/LICENSE-2.0 11 | REM 12 | REM Unless required by applicable law or agreed to in writing, software 13 | REM distributed under the License is distributed on an "AS IS" BASIS, 14 | REM WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 15 | REM See the License for the specific language governing permissions and 16 | REM limitations under the License. 17 | 18 | rem --------------------------------------------------------------------------- 19 | rem Main Script for WSO2 Carbon 20 | rem 21 | rem Environment Variable Prerequisites 22 | rem 23 | rem CARBON_HOME Home of CARBON installation. If not set I will try 24 | rem to figure it out. 25 | rem 26 | rem RUNTIME_HOME Home of WSO2 Carbon Runtime. 27 | rem 28 | rem JAVA_HOME Must point at your Java Development Kit installation. 29 | rem 30 | rem JAVA_OPTS (Optional) Java runtime options used when the commands 31 | rem is executed. 32 | rem --------------------------------------------------------------------------- 33 | 34 | rem ----- if JAVA_HOME is not set we're not happy ------------------------------ 35 | :checkJava 36 | 37 | if "%JAVA_HOME%" == "" goto noJavaHome 38 | if not exist "%JAVA_HOME%\bin\java.exe" goto noJavaHome 39 | goto checkServer 40 | 41 | :noJavaHome 42 | echo "You must set the JAVA_HOME variable before running CARBON." 43 | goto end 44 | 45 | rem ----- Only set CARBON_HOME if not already set ---------------------------- 46 | :checkServer 47 | rem %~sdp0 is expanded pathname of the current script under NT with spaces in the path removed 48 | if "%CARBON_HOME%"=="" set CARBON_HOME=%~sdp0..\..\.. 49 | SET curDrive=%cd:~0,1% 50 | SET wsasDrive=%CARBON_HOME:~0,1% 51 | if not "%curDrive%" == "%wsasDrive%" %wsasDrive%: 52 | 53 | rem ----- Only set RUNTIME_HOME if not already set ---------------------------- 54 | :setRuntimeHome 55 | setlocal 56 | if "%RUNTIME_HOME%"=="" set RUNTIME_HOME=%~sdp0.. 57 | rem --- derive RUNTIME NAME from the RUNTIME_HOME path. 58 | cd /d %RUNTIME_HOME% 59 | set path1=%cd% 60 | cd .. 61 | set path2=%cd% 62 | call set "RUNTIME=%%path1:%path2%\=%%" 63 | 64 | rem find CARBON_HOME if it does not exist due to either an invalid value passed 65 | rem by the user or the %0 problem on Windows 9x 66 | if not exist "%CARBON_HOME%\bin\kernel-version.txt" goto noServerHome 67 | 68 | goto updateClasspath 69 | 70 | :noServerHome 71 | echo CARBON_HOME is set incorrectly or CARBON_HOME could not be located. Please set CARBON_HOME. 72 | goto end 73 | 74 | rem ----- update classpath ----------------------------------------------------- 75 | :updateClasspath 76 | 77 | setlocal EnableDelayedExpansion 78 | cd %RUNTIME_HOME% 79 | set CARBON_CLASSPATH= 80 | FOR %%C in ("%CARBON_HOME%\bin\bootstrap\*.jar") DO set CARBON_CLASSPATH=!CARBON_CLASSPATH!;".\bin\bootstrap\%%~nC%%~xC" 81 | 82 | set CARBON_CLASSPATH="%JAVA_HOME%\lib\tools.jar";%CARBON_CLASSPATH%; 83 | 84 | FOR %%D in ("%CARBON_HOME%\bin\bootstrap\commons-lang*.jar") DO set CARBON_CLASSPATH=!CARBON_CLASSPATH!;".\bin\bootstrap\%%~nD%%~xD" 85 | 86 | rem ----- Process the input command ------------------------------------------- 87 | 88 | rem Slurp the command line arguments. This loop allows for an unlimited number 89 | rem of arguments (up to the command line limit, anyway). 90 | 91 | 92 | :setupArgs 93 | if ""%1""=="""" goto doneStart 94 | 95 | if ""%1""==""-run"" goto commandLifecycle 96 | if ""%1""==""--run"" goto commandLifecycle 97 | if ""%1""==""run"" goto commandLifecycle 98 | 99 | if ""%1""==""-restart"" goto commandLifecycle 100 | if ""%1""==""--restart"" goto commandLifecycle 101 | if ""%1""==""restart"" goto commandLifecycle 102 | 103 | if ""%1""==""debug"" goto commandDebug 104 | if ""%1""==""-debug"" goto commandDebug 105 | if ""%1""==""--debug"" goto commandDebug 106 | 107 | if ""%1""==""version"" goto commandVersion 108 | if ""%1""==""-version"" goto commandVersion 109 | if ""%1""==""--version"" goto commandVersion 110 | 111 | shift 112 | goto setupArgs 113 | 114 | rem ----- commandVersion ------------------------------------------------------- 115 | :commandVersion 116 | shift 117 | type "%CARBON_HOME%\bin\kernel-version.txt" 118 | goto end 119 | 120 | rem ----- commandDebug --------------------------------------------------------- 121 | :commandDebug 122 | shift 123 | set DEBUG_PORT=%1 124 | if "%DEBUG_PORT%"=="" goto noDebugPort 125 | if not "%JAVA_OPTS%"=="" echo Warning !!!. User specified JAVA_OPTS will be ignored, once you give the --debug option. 126 | set JAVA_OPTS=-Xdebug -Xnoagent -Djava.compiler=NONE -Xrunjdwp:transport=dt_socket,server=y,suspend=y,address=%DEBUG_PORT% 127 | echo Please start the remote debugging client to continue... 128 | goto findJdk 129 | 130 | :noDebugPort 131 | echo Please specify the debug port after the --debug option 132 | goto end 133 | 134 | rem ----- commandLifecycle ----------------------------------------------------- 135 | :commandLifecycle 136 | goto findJdk 137 | 138 | :doneStart 139 | if "%OS%"=="Windows_NT" @setlocal 140 | if "%OS%"=="WINNT" @setlocal 141 | 142 | rem ---------- Handle the SSL Issue with proper JDK version -------------------- 143 | rem find the version of the jdk 144 | :findJdk 145 | 146 | set CMD=RUN %* 147 | 148 | :checkJdk16 149 | "%JAVA_HOME%\bin\java" -version 2>&1 | findstr /r "1.[8]" >NUL 150 | IF ERRORLEVEL 1 goto unknownJdk 151 | goto jdk16 152 | 153 | :unknownJdk 154 | echo Starting WSO2 Carbon (in unsupported JDK) 155 | echo [ERROR] CARBON is supported only on JDK 1.8 156 | goto jdk16 157 | 158 | :jdk16 159 | goto runServer 160 | 161 | rem ----------------- Execute The Requested Command ---------------------------- 162 | 163 | :runServer 164 | cd %RUNTIME_HOME% 165 | 166 | rem ---------- Add jars to classpath ---------------- 167 | 168 | set CARBON_CLASSPATH="%CARBON_HOME%\bin\bootstrap\*";%CARBON_CLASSPATH% 169 | 170 | set JAVA_ENDORSED="%CARBON_HOME%\bin\bootstrap\endorsed";"%JAVA_HOME%\jre\lib\endorsed";"%JAVA_HOME%\lib\endorsed" 171 | 172 | set CMD_LINE_ARGS=-Xbootclasspath/a:%CARBON_XBOOTCLASSPATH% -Xms256m -Xmx1024m -XX:+HeapDumpOnOutOfMemoryError -XX:HeapDumpPath="%RUNTIME_HOME%\logs\heap-dump.hprof" -Dcom.sun.management.jmxremote -classpath %CARBON_CLASSPATH% %JAVA_OPTS% -Djava.endorsed.dirs=%JAVA_ENDORSED% -Dcarbon.home="%CARBON_HOME%" -Dwso2.runtime.path="%RUNTIME_HOME%" -Dwso2.runtime="%RUNTIME%" -Djava.command="%JAVA_HOME%\bin\java" -Djava.opts="%JAVA_OPTS%" -Djava.io.tmpdir="%CARBON_HOME%\tmp" -Dcarbon.classpath=%CARBON_CLASSPATH% -Dfile.encoding=UTF8 -Djavax.net.ssl.keyStore="%CARBON_HOME%\resources\security\wso2carbon.jks" -Djavax.net.ssl.keyStorePassword="wso2carbon" -Djavax.net.ssl.trustStore="%CARBON_HOME%\resources\security\client-truststore.jks" -Djavax.net.ssl.trustStorePassword="wso2carbon" 173 | 174 | :runJava 175 | echo JAVA_HOME environment variable is set to %JAVA_HOME% 176 | echo CARBON_HOME environment variable is set to %CARBON_HOME% 177 | echo RUNTIME_HOME environment variable is set to %RUNTIME_HOME% 178 | echo RUNTIME environment variable is set to %RUNTIME% 179 | "%JAVA_HOME%\bin\java" %CMD_LINE_ARGS% org.wso2.carbon.launcher.Main %CMD% 180 | if "%ERRORLEVEL%"=="121" goto runJava 181 | :end 182 | goto endlocal 183 | 184 | :endlocal 185 | 186 | :END 187 | -------------------------------------------------------------------------------- /modules/distribution/carbon-home/runtime/portal/carbon.bat: -------------------------------------------------------------------------------- 1 | @echo off 2 | 3 | REM --------------------------------------------------------------------------- 4 | REM Copyright (c) 2019, WSO2 Inc. (http://www.wso2.org) All Rights Reserved. 5 | REM 6 | REM Licensed under the Apache License, Version 2.0 (the "License"); 7 | REM you may not use this file except in compliance with the License. 8 | REM You may obtain a copy of the License at 9 | REM 10 | REM http://www.apache.org/licenses/LICENSE-2.0 11 | REM 12 | REM Unless required by applicable law or agreed to in writing, software 13 | REM distributed under the License is distributed on an "AS IS" BASIS, 14 | REM WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 15 | REM See the License for the specific language governing permissions and 16 | REM limitations under the License. 17 | 18 | rem --------------------------------------------------------------------------- 19 | rem Main Script for WSO2 Carbon 20 | rem 21 | rem Environment Variable Prerequisites 22 | rem 23 | rem CARBON_HOME Home of CARBON installation. If not set I will try 24 | rem to figure it out. 25 | rem 26 | rem RUNTIME_HOME Home of WSO2 Carbon Runtime. 27 | rem 28 | rem JAVA_HOME Must point at your Java Development Kit installation. 29 | rem 30 | rem JAVA_OPTS (Optional) Java runtime options used when the commands 31 | rem is executed. 32 | rem --------------------------------------------------------------------------- 33 | 34 | rem ----- if JAVA_HOME is not set we're not happy ------------------------------ 35 | :checkJava 36 | 37 | if "%JAVA_HOME%" == "" goto noJavaHome 38 | if not exist "%JAVA_HOME%\bin\java.exe" goto noJavaHome 39 | goto checkServer 40 | 41 | :noJavaHome 42 | echo "You must set the JAVA_HOME variable before running CARBON." 43 | goto end 44 | 45 | rem ----- Only set CARBON_HOME if not already set ---------------------------- 46 | :checkServer 47 | rem %~sdp0 is expanded pathname of the current script under NT with spaces in the path removed 48 | if "%CARBON_HOME%"=="" set CARBON_HOME=%~sdp0..\..\.. 49 | SET curDrive=%cd:~0,1% 50 | SET wsasDrive=%CARBON_HOME:~0,1% 51 | if not "%curDrive%" == "%wsasDrive%" %wsasDrive%: 52 | 53 | rem ----- Only set RUNTIME_HOME if not already set ---------------------------- 54 | :setRuntimeHome 55 | setlocal 56 | if "%RUNTIME_HOME%"=="" set RUNTIME_HOME=%~sdp0.. 57 | rem --- derive RUNTIME NAME from the RUNTIME_HOME path. 58 | cd /d %RUNTIME_HOME% 59 | set path1=%cd% 60 | cd .. 61 | set path2=%cd% 62 | call set "RUNTIME=%%path1:%path2%\=%%" 63 | 64 | rem find CARBON_HOME if it does not exist due to either an invalid value passed 65 | rem by the user or the %0 problem on Windows 9x 66 | if not exist "%CARBON_HOME%\bin\kernel-version.txt" goto noServerHome 67 | 68 | goto updateClasspath 69 | 70 | :noServerHome 71 | echo CARBON_HOME is set incorrectly or CARBON_HOME could not be located. Please set CARBON_HOME. 72 | goto end 73 | 74 | rem ----- update classpath ----------------------------------------------------- 75 | :updateClasspath 76 | 77 | setlocal EnableDelayedExpansion 78 | cd %RUNTIME_HOME% 79 | set CARBON_CLASSPATH= 80 | FOR %%C in ("%CARBON_HOME%\bin\bootstrap\*.jar") DO set CARBON_CLASSPATH=!CARBON_CLASSPATH!;".\bin\bootstrap\%%~nC%%~xC" 81 | 82 | set CARBON_CLASSPATH="%JAVA_HOME%\lib\tools.jar";%CARBON_CLASSPATH%; 83 | 84 | FOR %%D in ("%CARBON_HOME%\bin\bootstrap\commons-lang*.jar") DO set CARBON_CLASSPATH=!CARBON_CLASSPATH!;".\bin\bootstrap\%%~nD%%~xD" 85 | 86 | rem ----- Process the input command ------------------------------------------- 87 | 88 | rem Slurp the command line arguments. This loop allows for an unlimited number 89 | rem of arguments (up to the command line limit, anyway). 90 | 91 | 92 | :setupArgs 93 | if ""%1""=="""" goto doneStart 94 | 95 | if ""%1""==""-run"" goto commandLifecycle 96 | if ""%1""==""--run"" goto commandLifecycle 97 | if ""%1""==""run"" goto commandLifecycle 98 | 99 | if ""%1""==""-restart"" goto commandLifecycle 100 | if ""%1""==""--restart"" goto commandLifecycle 101 | if ""%1""==""restart"" goto commandLifecycle 102 | 103 | if ""%1""==""debug"" goto commandDebug 104 | if ""%1""==""-debug"" goto commandDebug 105 | if ""%1""==""--debug"" goto commandDebug 106 | 107 | if ""%1""==""version"" goto commandVersion 108 | if ""%1""==""-version"" goto commandVersion 109 | if ""%1""==""--version"" goto commandVersion 110 | 111 | shift 112 | goto setupArgs 113 | 114 | rem ----- commandVersion ------------------------------------------------------- 115 | :commandVersion 116 | shift 117 | type "%CARBON_HOME%\bin\kernel-version.txt" 118 | goto end 119 | 120 | rem ----- commandDebug --------------------------------------------------------- 121 | :commandDebug 122 | shift 123 | set DEBUG_PORT=%1 124 | if "%DEBUG_PORT%"=="" goto noDebugPort 125 | if not "%JAVA_OPTS%"=="" echo Warning !!!. User specified JAVA_OPTS will be ignored, once you give the --debug option. 126 | set JAVA_OPTS=-Xdebug -Xnoagent -Djava.compiler=NONE -Xrunjdwp:transport=dt_socket,server=y,suspend=y,address=%DEBUG_PORT% 127 | echo Please start the remote debugging client to continue... 128 | goto findJdk 129 | 130 | :noDebugPort 131 | echo Please specify the debug port after the --debug option 132 | goto end 133 | 134 | rem ----- commandLifecycle ----------------------------------------------------- 135 | :commandLifecycle 136 | goto findJdk 137 | 138 | :doneStart 139 | if "%OS%"=="Windows_NT" @setlocal 140 | if "%OS%"=="WINNT" @setlocal 141 | 142 | rem ---------- Handle the SSL Issue with proper JDK version -------------------- 143 | rem find the version of the jdk 144 | :findJdk 145 | 146 | set CMD=RUN %* 147 | 148 | :checkJdk16 149 | "%JAVA_HOME%\bin\java" -version 2>&1 | findstr /r "1.[8]" >NUL 150 | IF ERRORLEVEL 1 goto unknownJdk 151 | goto jdk16 152 | 153 | :unknownJdk 154 | echo Starting WSO2 Carbon (in unsupported JDK) 155 | echo [ERROR] CARBON is supported only on JDK 1.8 156 | goto jdk16 157 | 158 | :jdk16 159 | goto runServer 160 | 161 | rem ----------------- Execute The Requested Command ---------------------------- 162 | 163 | :runServer 164 | cd %RUNTIME_HOME% 165 | 166 | rem ---------- Add jars to classpath ---------------- 167 | 168 | set CARBON_CLASSPATH="%CARBON_HOME%\bin\bootstrap\*";%CARBON_CLASSPATH% 169 | 170 | set JAVA_ENDORSED="%CARBON_HOME%\bin\bootstrap\endorsed";"%JAVA_HOME%\jre\lib\endorsed";"%JAVA_HOME%\lib\endorsed" 171 | 172 | set CMD_LINE_ARGS=-Xbootclasspath/a:%CARBON_XBOOTCLASSPATH% -Xms256m -Xmx1024m -XX:+HeapDumpOnOutOfMemoryError -XX:HeapDumpPath="%RUNTIME_HOME%\logs\heap-dump.hprof" -Dcom.sun.management.jmxremote -classpath %CARBON_CLASSPATH% %JAVA_OPTS% -Djava.endorsed.dirs=%JAVA_ENDORSED% -Dcarbon.home="%CARBON_HOME%" -Dwso2.runtime.path="%RUNTIME_HOME%" -Dwso2.runtime="%RUNTIME%" -Djava.command="%JAVA_HOME%\bin\java" -Djava.opts="%JAVA_OPTS%" -Djava.io.tmpdir="%CARBON_HOME%\tmp" -Dcarbon.classpath=%CARBON_CLASSPATH% -Dfile.encoding=UTF8 -Djavax.net.ssl.keyStore="%CARBON_HOME%\resources\security\wso2carbon.jks" -Djavax.net.ssl.keyStorePassword="wso2carbon" -Djavax.net.ssl.trustStore="%CARBON_HOME%\resources\security\client-truststore.jks" -Djavax.net.ssl.trustStorePassword="wso2carbon" 173 | 174 | :runJava 175 | echo JAVA_HOME environment variable is set to %JAVA_HOME% 176 | echo CARBON_HOME environment variable is set to %CARBON_HOME% 177 | echo RUNTIME_HOME environment variable is set to %RUNTIME_HOME% 178 | echo RUNTIME environment variable is set to %RUNTIME% 179 | "%JAVA_HOME%\bin\java" %CMD_LINE_ARGS% org.wso2.carbon.launcher.Main %CMD% 180 | if "%ERRORLEVEL%"=="121" goto runJava 181 | :end 182 | goto endlocal 183 | 184 | :endlocal 185 | 186 | :END 187 | -------------------------------------------------------------------------------- /modules/distribution/src/policies/pages/privacy-policy.hbs: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | Privacy Policy | WSO2 Analytics Dashboard 7 | 9 | 10 | 11 | 12 | 13 | 14 |
15 |
16 | 17 | 18 |

WSO2 Analytics Dashboard

19 |
20 |
21 | 22 |
23 | 24 |

About WSO2 Analytics Dashboard

25 |

26 | WSO2 Analytics Dashboard (referred to as “WSO2 AD 4.5.1” within this policy) is an open source data 27 | visualization application that is based on open standards and specifications. 28 |

29 | 30 |

Privacy Policy

31 |

32 | This policy describes how WSO2 AD 4.5.1 captures your personal information, the purposes of collection, and 33 | information about the retention of your personal information. 34 |

35 |

36 | Please note that this policy is for reference only, and is applicable for the software as a product. WSO2 37 | Inc. and its developers have no access to the information held within WSO2 AD 4.5.1. Please see the 38 | Disclaimer section for more information. Entities, organisations or individuals controlling the use and 39 | administration of WSO2 AD 4.5.1 should create their own privacy policies setting out the manner in which 40 | data is controlled or processed by the respective entity, organisation or individual. 41 |

42 | 43 |

What is personal information?

44 |

45 | WSO2 AD 4.5.1 considers anything related to you and by which you may be identified as your personal 46 | information. This includes, but is not limited to: 47 |

48 |
    49 |
  • Your user name (except in cases where the user name created by your employer is under contract)
  • 50 |
  • Your date of birth/age
  • 51 |
  • IP address used to log in
  • 52 |
  • Your device ID if you use a device (e.g., phone or tablet) to log in
  • 53 |
54 | 55 |

How does WSO2 AD 4.5.1 collect personal information?

56 |

57 | WSO2 AD 4.5.1 collects your login details to serve your access requirements. 58 |

59 |

60 | In addition, the information sent to WSO2 AD 4.5.1 by your organization to be processed may include personal 61 | information. This information is not retained unless WSO2 AD 4.5.1 is specifically configured by server 62 | administrators to store that information in databases based on the client requirement. 63 |

64 |

65 | WSO2 strongly recommends you to verify whether the information you request to store in databases for the 66 | purpose of processing include personal information, and if it does, to use the data obfuscation/removal 67 | methods supported by WSO2 AD 4.5.1 to hide/delete that information once it is processed. 68 |

69 |

70 | WSO2 AD 4.5.1 also records the time of the day you logged in (year, month, week, hour or minute) for the 71 | purpose of processing the streaming data it handles when it needs to be analyzed based on time. 72 |

73 | 74 |

Tracking Technologies

75 |

76 | WSO2 AD 4.5.1 collects your information by: 77 |

78 |
    79 |
  • Tracking your IP address with HTTP request, HTTP headers, and TCP/IP.
  • 80 |
  • Tracking your login history with browser cookies. Please see our cookie policy for more information. 81 |
  • 82 |
83 | 84 |

Use of personal information

85 |

86 | WSO2 AD 4.5.1 uses the following personal information only to protect your account from unauthorized 87 | access or potential hacking attempts.: 88 |

89 |
    90 |
  • IP address
  • 91 |
  • Browser fingerprinting
  • 92 |
  • Cookies
  • 93 |
94 | 95 |

Disclosure of personal information

96 |

97 | Please note that the organisation, entity or individual running WSO2 AD 4.5.1 may be compelled to disclose 98 | your personal information with or without your consent when it is required by law following due and lawful 99 | process. 100 |

101 | 102 |

How to request the removal of personal information?

103 |

104 | If you, as a user of WSO2 AD 4.5.1 submit personal information relating to yourself or another party to 105 | WSO2 AD 4.5.1, you can use the data removal/obfuscation features supported by the product to hide/remove 106 | that information. 107 |

108 |

109 | If your personal information is submitted to WSO2 AD 4.5.1 by your organization or another third party, 110 | request that party to hide/delete that information. 111 |

112 | 113 |

More information

114 |

115 | Upgraded versions of WSO2 AD 4.5.1 may contain changes to this policy and revisions to this policy will be 116 | packaged within such upgrades. Such changes would only apply to users who choose to use upgraded versions. 117 |

118 | 119 |

Your choices

120 |

121 | If your data is already published to WSO2 AD 4.5.1 ; you have the right to deactivate your account if you 122 | find that this privacy policy is unacceptable to you. 123 |

124 |

125 | If you do not have an account and you do not agree with our privacy policy, you can chose not to create one. 126 |

127 | 128 |

Contact us

129 |

130 | Please contact WSO2 if you have any question or concerns regarding this privacy policy. 131 |

132 |

133 | https://wso2.com/contact/ 134 |

135 | 136 |

Disclaimer

137 |

138 | WSO2, its employees, partners, and affiliates do not have access to and do not require, store, process or 139 | control any of the data, including personal data contained in WSO2 AD 4.5.1. All data, including personal 140 | data is controlled and processed by the entity or individual running WSO2 AD 4.5.1. WSO2, its employees 141 | partners and affiliates are not a data processor or a data controller within the meaning of any data privacy 142 | regulations. WSO2 does not provide any warranties or undertake any responsibility or liability in connection 143 | with the lawfulness or the manner and purposes for which WSO2 AD 4.5.1 is used by such entities or persons. 144 |

145 |

146 | This privacy policy is for the informational purposes of the entity or persons running WOS2 AD 4.5.1 and 147 | sets out the processes and functionality contained within WSO2 AD 4.5.1 regarding personal data protection. 148 | It is the responsibility of entities and persons running WSO2 AD 4.5.1 to create and administer its own 149 | rules and processes governing users’ personal data, and such rules and processes may change the use, storage 150 | and disclosure policies contained herein. Therefore users should consult the entity or persons running WSO2 151 | AD 4.5.1 for its own privacy policy for details governing users’ personal data. 152 |

153 |
154 |
155 | Back 156 | 157 | 158 | -------------------------------------------------------------------------------- /modules/distribution/src/policies/public/js/libs/font-wso2_1.0.0/css/font-wso2.min.css: -------------------------------------------------------------------------------- 1 | .fw-fw,.fw-li{text-align:center}@font-face{font-family:font-wso2;src:local("font-wso2"),url(../fonts/font-wso2.eot?da6b3eebe240a78c9faa99e03425e31c);src:local("font-wso2"),url(../fonts/font-wso2.eot?#iefix) format("embedded-opentype"),url(../fonts/font-wso2.woff?da6b3eebe240a78c9faa99e03425e31c) format("woff"),url(../fonts/font-wso2.ttf?da6b3eebe240a78c9faa99e03425e31c) format("truetype"),url(../fonts/font-wso2.svg?da6b3eebe240a78c9faa99e03425e31c#font-wso2) format("svg");font-weight:400;font-style:normal}.fw,[class*=" fw-"],[class^=fw-]{font:normal normal normal 14px/1 font-wso2;display:inline-block;vertical-align:middle;line-height:1;font-weight:400;font-style:normal;font-size:inherit;font-variant:normal;speak:none;text-decoration:inherit;text-transform:none;text-rendering:auto;-webkit-font-smoothing:antialiased;-moz-osx-font-smoothing:grayscale}.fw-lg{font-size:1.33333333em;line-height:.75em;vertical-align:-15%}.fw-2x{font-size:2em}.fw-3x{font-size:3em}.fw-4x{font-size:4em}.fw-5x{font-size:5em}.fw-fw{width:1.28571429em}.fw-ul{padding-left:0;margin-left:2.14285714em;list-style-type:none}.fw-ul>li{position:relative}.fw-li{position:absolute;left:-2.14285714em;width:2.14285714em;top:.14285714em}.fw-li.fw-lg{left:-1.85714286em}.fw-border{padding:.2em .25em .15em;border:.08em solid #eee;border-radius:.1em}.fw-background{background:#888;border-radius:.3em;padding:.4em .5em .45em}.fw-pull-left{float:left}.fw-pull-right{float:right}.fw.fw-pull-left{margin-right:.3em}.fw.fw-pull-right{margin-left:.3em}.fw-spin{-webkit-animation:fw-spin 2s infinite linear;animation:fw-spin 2s infinite linear}@-webkit-keyframes fw-spin{0%{-webkit-transform:rotate(0);transform:rotate(0)}100%{-webkit-transform:rotate(359deg);transform:rotate(359deg)}}@keyframes fw-spin{0%{-webkit-transform:rotate(0);transform:rotate(0)}100%{-webkit-transform:rotate(359deg);transform:rotate(359deg)}}.fw-pulse{-webkit-animation:fw-pulse 2s ease-out infinite;animation:fw-pulse 2s ease-out infinite}@-webkit-keyframes fw-pulse{0%,100%,30%{opacity:.3}40%{opacity:1}}@keyframes fw-pulse{0%,100%,30%{opacity:.3}40%{opacity:1}}.fw-rotate-90{filter:progid:DXImageTransform.Microsoft.BasicImage(rotation=1);-webkit-transform:rotate(90deg);-ms-transform:rotate(90deg);transform:rotate(90deg)}.fw-rotate-180{filter:progid:DXImageTransform.Microsoft.BasicImage(rotation=2);-webkit-transform:rotate(180deg);-ms-transform:rotate(180deg);transform:rotate(180deg)}.fw-rotate-270{filter:progid:DXImageTransform.Microsoft.BasicImage(rotation=3);-webkit-transform:rotate(270deg);-ms-transform:rotate(270deg);transform:rotate(270deg)}.fw-flip-horizontal{filter:progid:DXImageTransform.Microsoft.BasicImage(rotation=0, mirror=1);-webkit-transform:scale(-1,1);-ms-transform:scale(-1,1);transform:scale(-1,1)}.fw-flip-vertical{filter:progid:DXImageTransform.Microsoft.BasicImage(rotation=2, mirror=1);-webkit-transform:scale(1,-1);-ms-transform:scale(1,-1);transform:scale(1,-1)}:root .fw-flip-horizontal,:root .fw-flip-vertical,:root .fw-rotate-180,:root .fw-rotate-270,:root .fw-rotate-90{filter:none}.fw-stack{position:relative;display:inline-block;width:2em;height:2em;line-height:2em;vertical-align:middle}.fw-stack-1x,.fw-stack-2x{position:absolute;left:0;width:100%;text-align:center}.fw-stack-1x{line-height:inherit}.fw-stack-2x{font-size:2em}.fw-stack>.fw-stack{position:absolute;font-size:.5em}.fw-stack>.fw-stack>.fw-stack-1x.fw-stroke{font-size:1.1em;left:0;top:0}.fw-stack>.fw-stack>.fw-stack-2x.fw-stroke{font-size:2.3em;left:-.07em;top:-.07em}.fw-stack>.fw-stack.fw-move-top{top:-.2em}.fw-stack>.fw-stack.fw-move-bottom{bottom:-.2em}.fw-stack>.fw.stack.fw-move-left{left:-.5em}.fw-stack>.fw-stack.fw-move-right{right:-.5em}.fw-inverse{color:#fff}.fw-number{line-height:1.8em}.fw-add:before{content:"\e615"}.fw-airplay:before{content:"\e600"}.fw-alarm:before{content:"\e6c2"}.fw-alert:before{content:"\e6be"}.fw-android:before{content:"\e606"}.fw-api:before{content:"\e601"}.fw-apn:before{content:"\e602"}.fw-apple:before{content:"\e604"}.fw-application:before{content:"\e608"}.fw-arduino:before{content:"\e6ab"}.fw-bar-chart:before{content:"\e690"}.fw-battery:before{content:"\e60a"}.fw-blank-document:before{content:"\e60c"}.fw-block:before{content:"\e695"}.fw-bookmark:before{content:"\e60d"}.fw-bpel:before{content:"\e60e"}.fw-bpmn:before{content:"\e60f"}.fw-bug:before{content:"\e611"}.fw-build:before{content:"\e6c1"}.fw-calendar:before{content:"\e612"}.fw-camera:before{content:"\e613"}.fw-cancel:before{content:"\e618"}.fw-chat:before{content:"\e65b"}.fw-check:before{content:"\e617"}.fw-checklist:before{content:"\e619"}.fw-circle-outline:before{content:"\e61f"}.fw-circle:before{content:"\e61a"}.fw-clear:before{content:"\e61b"}.fw-clock:before{content:"\e61d"}.fw-cloud:before{content:"\e61e"}.fw-compare:before{content:"\e610"}.fw-computer:before{content:"\e653"}.fw-configarations:before{content:"\e609"}.fw-contact:before{content:"\e620"}.fw-contract:before{content:"\e614"}.fw-copy:before{content:"\e621"}.fw-dashboard:before{content:"\e622"}.fw-database:before{content:"\e623"}.fw-delete:before{content:"\e624"}.fw-deploy:before{content:"\e625"}.fw-dial-up:before{content:"\e627"}.fw-display:before{content:"\e626"}.fw-document:before{content:"\e628"}.fw-down-arrow:before{content:"\e689"}.fw-down:before{content:"\e685"}.fw-download:before{content:"\e65f"}.fw-dss:before{content:"\e62a"}.fw-ebook:before{content:"\e62b"}.fw-edit:before{content:"\e62c"}.fw-ellipsis:before{content:"\e629"}.fw-endpoint:before{content:"\e62d"}.fw-enterprise:before{content:"\e6b6"}.fw-error:before{content:"\e630"}.fw-expand:before{content:"\e61c"}.fw-export:before{content:"\e631"}.fw-factory-reset:before{content:"\e632"}.fw-fan:before{content:"\e678"}.fw-faq:before{content:"\e62f"}.fw-file-browse:before{content:"\e633"}.fw-filter:before{content:"\e634"}.fw-folder:before{content:"\e62e"}.fw-forum:before{content:"\e636"}.fw-gadget:before{content:"\e637"}.fw-globe:before{content:"\e697"}.fw-grid:before{content:"\e638"}.fw-grip:before{content:"\e6b7"}.fw-group:before{content:"\e6af"}.fw-hardware:before{content:"\e6a9"}.fw-hdd:before{content:"\e639"}.fw-heart:before{content:"\e6c3"}.fw-home:before{content:"\e63a"}.fw-hour-glass:before{content:"\e63b"}.fw-html:before{content:"\e69d"}.fw-import:before{content:"\e63c"}.fw-incoming-call:before{content:"\e63d"}.fw-info:before{content:"\e63e"}.fw-invitation:before{content:"\e63f"}.fw-jaggery:before{content:"\e640"}.fw-java-spring:before{content:"\e644"}.fw-java:before{content:"\e641"}.fw-javaee:before{content:"\e642"}.fw-javascript:before{content:"\e643"}.fw-jaxrs:before{content:"\e645"}.fw-jquery:before{content:"\e646"}.fw-key:before{content:"\e647"}.fw-laptop:before{content:"\e648"}.fw-layout:before{content:"\e6bf"}.fw-ldap:before{content:"\e649"}.fw-left-arrow:before{content:"\e68a"}.fw-left:before{content:"\e686"}.fw-lifecycle:before{content:"\e64a"}.fw-light:before{content:"\e680"}.fw-list-sort:before{content:"\e64d"}.fw-list:before{content:"\e64c"}.fw-loader:before{content:"\e6b4"}.fw-loader2:before{content:"\e6ba"}.fw-loader3:before{content:"\e6bb"}.fw-loader4:before{content:"\e6bc"}.fw-loader5:before{content:"\e6bd"}.fw-lock:before{content:"\e64e"}.fw-mail:before{content:"\e64f"}.fw-map-location:before{content:"\e650"}.fw-menu:before{content:"\e651"}.fw-message:before{content:"\e635"}.fw-minus:before{content:"\e616"}.fw-mobile:before{content:"\e652"}.fw-ms-document:before{content:"\e654"}.fw-mute:before{content:"\e655"}.fw-nodejs:before{content:"\e656"}.fw-notification:before{content:"\e60b"}.fw-organization:before{content:"\e6ac"}.fw-pages:before{content:"\e6c0"}.fw-paste:before{content:"\e658"}.fw-pdf:before{content:"\e659"}.fw-pie-chart:before{content:"\e65a"}.fw-policy:before{content:"\e67d"}.fw-proxy:before{content:"\e699"}.fw-public:before{content:"\e6ad"}.fw-publish:before{content:"\e65c"}.fw-question:before{content:"\e6b0"}.fw-raspberry:before{content:"\e6aa"}.fw-redo:before{content:"\e65d"}.fw-refresh:before{content:"\e692"}.fw-register:before{content:"\e65e"}.fw-resource:before{content:"\e660"}.fw-rest-api:before{content:"\e661"}.fw-rest-service:before{content:"\e662"}.fw-retweet:before{content:"\e6b9"}.fw-right-arrow:before{content:"\e68b"}.fw-right:before{content:"\e687"}.fw-ringing:before{content:"\e694"}.fw-rules:before{content:"\e664"}.fw-save:before{content:"\e665"}.fw-scep:before{content:"\e666"}.fw-schema:before{content:"\e667"}.fw-search:before{content:"\e668"}.fw-security-policy:before{content:"\e67e"}.fw-security:before{content:"\e669"}.fw-paper-rocket:before,.fw-send:before{content:"\e66a"}.fw-sequence:before{content:"\e66b"}.fw-server:before{content:"\e66c"}.fw-service-provider:before{content:"\e66e"}.fw-cogwheels:before,.fw-gears:before,.fw-service:before{content:"\e66d"}.fw-cogwheel:before,.fw-gear:before,.fw-settings:before{content:"\e66f"}.fw-share:before{content:"\e670"}.fw-sign-out:before{content:"\e6b8"}.fw-sign-up:before{content:"\e671"}.fw-soap:before{content:"\e672"}.fw-sort-down:before{content:"\e663"}.fw-sort-up:before{content:"\e64b"}.fw-sort:before{content:"\e673"}.fw-square-outline:before{content:"\e6b2"}.fw-square:before{content:"\e6b1"}.fw-star:before{content:"\e674"}.fw-statistics:before{content:"\e675"}.fw-store:before{content:"\e676"}.fw-subscribe:before{content:"\e677"}.fw-success:before{content:"\e657"}.fw-swagger:before{content:"\e679"}.fw-sync:before{content:"\e6b3"}.fw-table:before{content:"\e6c4"}.fw-tag:before{content:"\e67a"}.fw-task:before{content:"\e67b"}.fw-text:before{content:"\e67c"}.fw-throttling-policy:before{content:"\e67f"}.fw-tiles:before{content:"\e681"}.fw-uncheck:before{content:"\e682"}.fw-undo:before{content:"\e683"}.fw-ungroup:before{content:"\e6b5"}.fw-unmute:before{content:"\e6ae"}.fw-up-arrow:before{content:"\e688"}.fw-up:before{content:"\e684"}.fw-upload:before{content:"\e68c"}.fw-uri:before{content:"\e68d"}.fw-usb-drive:before{content:"\e68e"}.fw-user:before{content:"\e68f"}.fw-view:before{content:"\e691"}.fw-vpn:before{content:"\e603"}.fw-wadl:before{content:"\e6a1"}.fw-war:before{content:"\e69e"}.fw-warning:before{content:"\e693"}.fw-web-app:before{content:"\e696"}.fw-web-clip:before{content:"\e698"}.fw-web-service:before{content:"\e69a"}.fw-website:before{content:"\e69b"}.fw-wifi:before{content:"\e607"}.fw-windows:before{content:"\e605"}.fw-wsdl:before{content:"\e6a0"}.fw-wso2-logo:before{content:"\e6a7"}.fw-wso2:before{content:"\e6a8"}.fw-xacml:before{content:"\e69f"}.fw-xml:before{content:"\e69c"}.fw-xq:before{content:"\e6a2"}.fw-xsd:before{content:"\e6a3"}.fw-xslt:before{content:"\e6a4"}.fw-zoom-in:before{content:"\e6a5"}.fw-zoom-out:before{content:"\e6a6"} -------------------------------------------------------------------------------- /modules/distribution/src/policies/pages/cookie-policy.hbs: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | Cookie Policy | WSO2 Analytics Dashboard 7 | 9 | 10 | 11 | 12 | 13 |
14 |
15 | 16 | 17 |

WSO2 Analytics Dashboard

18 |
19 |
20 |
21 |

About WSO2 Analytics Dashboard

22 | 23 |

24 | WSO2 Analytics Dashboard (referred to as "WSO2 AD" within this policy) is an open source data visualization 25 | application that is based on open standards and specifications. 26 |

27 | 28 |

Cookie Policy

29 |

30 | WSO2 SP uses cookies so that it can provide the best user experience for you and identify you for security 31 | purposes. If you disable cookies, some of the services may become inaccessible to you. 32 |

33 | 34 |

How does WSO2 AD 4.5.1 process cookies?

35 |

36 | WSO2 AD 4.5.1 stores and retrieves information on your browser using cookies. Some cookies allow a user to 37 | log in to the system and maintain sessions. Some cookies are simply used to give you a more personalised 38 | web experience and these cookies cannot be used to personally identify you or your activities. 39 |

40 |

41 | This cookie policy is part of the WSO2 AD 4.5.1 Privacy 42 | Policy. 43 |

44 | 45 |

What is a cookie?

46 |

47 | A browser cookie is a small piece of data that is stored on your device to help websites and mobile apps 48 | remember things about you. Other technologies, including web storage and identifiers associated with your 49 | device, may be used for similar purposes. In this policy, we use the term “cookies” to discuss all of these 50 | technologies. 51 |

52 | 53 |

What does WSO2 AD 4.5.1 use cookies for?

54 |

Cookies are used in two main ways in WSO2 AD 4.5.1.

55 |
    56 |
  1. To identify you as a unique user.
  2. 57 |
  3. To provide a satisfying user experience.
  4. 58 |
59 | 60 |

61 | WSO2 AD 4.5.1 uses cookies for the following purposes listed below: 62 |

63 | 64 |

Preferences

65 |

66 | WSO2 AD 4.5.1 uses these cookies to remember your settings and preferences, and to auto-fill the form fields 67 | to make your interactions with the site easier. 68 |

69 |

70 | These cookies cannot be used to personally identify you. 71 |

72 | 73 |

Security

74 |
    75 |
  • WSO2 AD 4.5.1 uses selected cookies to identify and prevent security risks. For example, WSO2 AD 4.5.1 76 | may use these cookies to store your session information in order to prevent others from changing your 77 | password without your username and password.
  • 78 |
  • WSO2 AD 4.5.1 uses session cookies to maintain your active session.
  • 79 |
80 |

Performance

81 |

82 | WSO2 AD 4.5.1 may use cookies to allow “Remember Me” functionalities. 83 |

84 |

Third party cookies

85 |

86 | Using WSO2 AD 4.5.1 may cause some third-party cookies to be set in your browser. WSO2 AD 4.5.1 has no 87 | control over how any of them operate. WSO2 strongly advises you to refer the respective cookie policy of 88 | such sites carefully as WSO2 has no knowledge or use on these cookies. 89 |

90 | 91 |

What type of cookies does WSO2 AD 4.5.1 use?

92 |

93 | WSO2 AD 4.5.1 uses persistent cookies and session cookies. A persistent cookie helps WSO2 AD 4.5.1 to 94 | recognize you as an existing user so that it is easier to return to WSO2 or interact with WSO2 AD 4.5.1 95 | without signing in again. After you sign in, a persistent cookie stays in your browser and will be read by 96 | WSO2 AD 4.5.1 when you return to WSO2 AD 4.5.1. 97 |

98 |

99 | A session cookie is a cookie that is erased when the user closes the web browser. The session cookie is 100 | stored in temporary memory and is not retained after the browser is closed. Session cookies do not collect 101 | information from the user's computer. 102 |

103 | 104 |

What are the cookies used?

105 |

106 | The following are the main types of cookies used by WSO2 AD 4.5.1 107 |

108 |
    109 |
  • Session User Cookie: This is stored as long as a browser session exists. It contains 110 | the username of the user, SDID, its validity period and expiration time.
  • 111 |
  • HID: This stores the partial access token (HID) that is only accessible from HTTPS.
  • 112 |
  • Refresh Token Cookie: This stores the refresh token.
  • 113 |
114 |

115 | Following cookies are used: 116 |

117 | 118 | 119 | 120 | 121 | 122 | 123 | 124 | 125 | 126 | 127 | 128 | 129 | 130 | 131 | 132 | 133 | 134 | 135 | 136 | 137 | 138 | 139 | 140 | 141 | 142 | 143 | 144 | 145 | 146 | 147 | 148 | 149 | 150 | 151 | 152 | 153 | 154 | 155 | 156 | 157 | 158 | 159 | 160 | 161 | 162 | 163 | 164 | 165 | 166 | 167 | 168 | 169 | 170 | 171 | 172 |
Web applicationCookie NamePurpose
Business Rules ManagerBR_USERMaintains the browser session of the Business Rules Manager.
HIDStores a part of the access token for the session that is only accessible from HTTPS.
RTKStores the refresh token for the session.
Status DashboardDASHBOARD_USERMaintains the browser session of the Status Dashboard.
HIDStores a part of the access token for the session that is only accessible from HTTPS.
REFRESH_TOKENStores the refresh token for the session.
Dashboard PortalDASHBOARD_USERMaintains the browser session of the Dashboard Portal.
HIDStores a part of the access token for the session that is only accessible from HTTPS.
REFRESH_TOKENStores the refresh token for the session.
173 | 174 |

How do I control my cookies?

175 |

176 | Most browsers allow you to control cookies through their settings preferences. However, if you limit the 177 | given ability for websites to set cookies, you may worsen your overall user experience since it will no 178 | longer be personalized to you. It may also stop you from saving customized settings such as login 179 | information. 180 |

181 |

182 | Most likely, disabling cookies will make you unable to use authentication and authorization functionalities 183 | offered by WSO2 AD 4.5.1. 184 |

185 |

186 | If you have any questions or concerns regarding the use of cookies, please contact the entity or individuals 187 | (or their data protection officer, if applicable) running this WSO2 AD 4.5.1 instance. 188 |

189 | 190 |

Disclaimer

191 |

192 | This cookie policy is only for illustrative purposes of the product WSO2 AD 4.5.1. The content in the policy 193 | is technically correct at the time of the product shipment. The organization which runs this WSO2 AD 4.5.1 194 | instance has full authority and responsibility with regard to the effective Cookie Policy. WSO2, its 195 | employees, partners, and affiliates do not have access to and do not require, store, process or control any 196 | of the data, including personal data contained in WSO2 IAD 4.5.1. All data, including personal data is 197 | controlled and processed by the entity or individual running WSO2 AD 4.5.1. WSO2, its employees partners and 198 | affiliates are not a data processor or a data controller within the meaning of any data privacy regulations. 199 | WSO2 does not provide any warranties or undertake any responsibility or liability in connection with the 200 | lawfulness or the manner and purposes for which WSO2 AD 4.5.1 is used by such entities or persons. 201 |

202 |
203 |
204 | Back 205 | 206 | 207 | -------------------------------------------------------------------------------- /modules/distribution/carbon-home/runtime/monitor/carbon.sh: -------------------------------------------------------------------------------- 1 | #!/bin/sh 2 | # --------------------------------------------------------------------------- 3 | # Copyright (c) 2019, WSO2 Inc. (http://www.wso2.org) All Rights Reserved. 4 | # 5 | # Licensed under the Apache License, Version 2.0 (the "License"); 6 | # you may not use this file except in compliance with the License. 7 | # You may obtain a copy of the License at 8 | # 9 | # http://www.apache.org/licenses/LICENSE-2.0 10 | # 11 | # Unless required by applicable law or agreed to in writing, software 12 | # distributed under the License is distributed on an "AS IS" BASIS, 13 | # WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 14 | # See the License for the specific language governing permissions and 15 | # limitations under the License. 16 | 17 | # ---------------------------------------------------------------------------- 18 | # Main Script for the WSO2 Carbon Server 19 | # 20 | # Environment Variable Prequisites 21 | # 22 | # CARBON_HOME Home of WSO2 Carbon installation. If not set I will try 23 | # to figure it out. 24 | # RUNTIME_HOME Home of WSO2 Carbon Runtime. . 25 | # 26 | # JAVA_HOME Must point at your Java Development Kit installation. 27 | # 28 | # JAVA_OPTS (Optional) Java runtime options used when the commands 29 | # is executed. 30 | # 31 | # NOTE: Borrowed generously from Apache Tomcat startup scripts. 32 | # ----------------------------------------------------------------------------- 33 | 34 | # OS specific support. $var _must_ be set to either true or false. 35 | #ulimit -n 100000 36 | 37 | cygwin=false; 38 | darwin=false; 39 | os400=false; 40 | mingw=false; 41 | case "`uname`" in 42 | CYGWIN*) cygwin=true;; 43 | MINGW*) mingw=true;; 44 | OS400*) os400=true;; 45 | Darwin*) darwin=true 46 | if [ -z "$JAVA_VERSION" ] ; then 47 | JAVA_VERSION="CurrentJDK" 48 | else 49 | echo "Using Java version: $JAVA_VERSION" 50 | fi 51 | if [ -z "$JAVA_HOME" ] ; then 52 | JAVA_HOME=/System/Library/Frameworks/JavaVM.framework/Versions/${JAVA_VERSION}/Home 53 | fi 54 | ;; 55 | esac 56 | 57 | # resolve links - $0 may be a softlink 58 | PRG="$0" 59 | 60 | while [ -h "$PRG" ]; do 61 | ls=`ls -ld "$PRG"` 62 | link=`expr "$ls" : '.*-> \(.*\)$'` 63 | if expr "$link" : '.*/.*' > /dev/null; then 64 | PRG="$link" 65 | else 66 | PRG=`dirname "$PRG"`/"$link" 67 | fi 68 | done 69 | 70 | # Get standard environment variables 71 | TEMPCURDIR=`dirname "$PRG"` 72 | 73 | # Only set RUNTIME_HOME if not already set 74 | [ -z "$RUNTIME_HOME" ] && RUNTIME_HOME=`cd "$TEMPCURDIR/.." ; pwd` 75 | 76 | # Only set CARBON_HOME if not already set 77 | [ -z "$CARBON_HOME" ] && CARBON_HOME=`cd "$TEMPCURDIR/../../../" ; pwd` 78 | 79 | # Only set RUNTIME if not already set 80 | [ -z "$RUNTIME" ] && RUNTIME=${RUNTIME_HOME##*/} 81 | 82 | # For Cygwin, ensure paths are in UNIX format before anything is touched 83 | if $cygwin; then 84 | [ -n "$JAVA_HOME" ] && JAVA_HOME=`cygpath --unix "$JAVA_HOME"` 85 | [ -n "$CARBON_HOME" ] && CARBON_HOME=`cygpath --unix "$CARBON_HOME"` 86 | [ -n "$RUNTIME_HOME" ] && RUNTIME_HOME=`cygpath --unix "$RUNTIME_HOME"` 87 | fi 88 | 89 | # For OS400 90 | if $os400; then 91 | # Set job priority to standard for interactive (interactive - 6) by using 92 | # the interactive priority - 6, the helper threads that respond to requests 93 | # will be running at the same priority as interactive jobs. 94 | COMMAND='chgjob job('$JOBNAME') runpty(6)' 95 | system $COMMAND 96 | 97 | # Enable multi threading 98 | QIBM_MULTI_THREADED=Y 99 | export QIBM_MULTI_THREADED 100 | fi 101 | 102 | # For Migwn, ensure paths are in UNIX format before anything is touched 103 | if $mingw ; then 104 | [ -n "$CARBON_HOME" ] && 105 | CARBON_HOME="`(cd "$CARBON_HOME"; pwd)`" 106 | [ -n "$JAVA_HOME" ] && 107 | JAVA_HOME="`(cd "$JAVA_HOME"; pwd)`" 108 | # TODO classpath? 109 | fi 110 | 111 | if [ -z "$JAVACMD" ] ; then 112 | if [ -n "$JAVA_HOME" ] ; then 113 | if [ -x "$JAVA_HOME/jre/sh/java" ] ; then 114 | # IBM's JDK on AIX uses strange locations for the executables 115 | JAVACMD="$JAVA_HOME/jre/sh/java" 116 | else 117 | JAVACMD="$JAVA_HOME/bin/java" 118 | fi 119 | else 120 | JAVACMD=java 121 | fi 122 | fi 123 | 124 | if [ ! -x "$JAVACMD" ] ; then 125 | echo "Error: JAVA_HOME is not defined correctly." 126 | echo " CARBON cannot execute $JAVACMD" 127 | exit 1 128 | fi 129 | 130 | # if JAVA_HOME is not set we're not happy 131 | if [ -z "$JAVA_HOME" ]; then 132 | echo "You must set the JAVA_HOME variable before running CARBON." 133 | exit 1 134 | fi 135 | 136 | if [ -e "$RUNTIME_HOME/runtime.pid" ]; then 137 | PID=`cat "$RUNTIME_HOME"/runtime.pid` 138 | fi 139 | 140 | # ----- Process the input command ---------------------------------------------- 141 | args="" 142 | for c in $* 143 | do 144 | if [ "$c" = "--debug" ] || [ "$c" = "-debug" ] || [ "$c" = "debug" ]; then 145 | CMD="--debug" 146 | continue 147 | elif [ "$CMD" = "--debug" ]; then 148 | if [ -z "$PORT" ]; then 149 | PORT=$c 150 | fi 151 | elif [ "$c" = "--stop" ] || [ "$c" = "-stop" ] || [ "$c" = "stop" ]; then 152 | CMD="stop" 153 | elif [ "$c" = "--start" ] || [ "$c" = "-start" ] || [ "$c" = "start" ]; then 154 | CMD="start" 155 | elif [ "$c" = "--version" ] || [ "$c" = "-version" ] || [ "$c" = "version" ]; then 156 | CMD="version" 157 | elif [ "$c" = "--restart" ] || [ "$c" = "-restart" ] || [ "$c" = "restart" ]; then 158 | CMD="restart" 159 | elif [ "$c" = "--test" ] || [ "$c" = "-test" ] || [ "$c" = "test" ]; then 160 | CMD="test" 161 | else 162 | args="$args $c" 163 | fi 164 | done 165 | 166 | if [ "$CMD" = "--debug" ]; then 167 | if [ "$PORT" = "" ]; then 168 | echo " Please specify the debug port after the --debug option" 169 | exit 1 170 | fi 171 | if [ -n "$JAVA_OPTS" ]; then 172 | echo "Warning !!!. User specified JAVA_OPTS will be ignored, once you give the --debug option." 173 | fi 174 | CMD="RUN" 175 | JAVA_OPTS="-Xdebug -Xnoagent -Djava.compiler=NONE -Xrunjdwp:transport=dt_socket,server=y,suspend=y,address=$PORT" 176 | echo "Please start the remote debugging client to continue..." 177 | elif [ "$CMD" = "start" ]; then 178 | if [ -e "$RUNTIME_HOME/runtime.pid" ]; then 179 | if ps -p $PID > /dev/null ; then 180 | echo "Process is already running" 181 | exit 0 182 | fi 183 | fi 184 | export CARBON_HOME=$CARBON_HOME 185 | # using nohup bash to avoid erros in solaris OS.TODO 186 | nohup bash $RUNTIME_HOME/bin/carbon.sh $args > /dev/null 2>&1 & 187 | exit 0 188 | elif [ "$CMD" = "stop" ]; then 189 | export CARBON_HOME=$CARBON_HOME 190 | kill -term `cat $RUNTIME_HOME/runtime.pid` 191 | exit 0 192 | elif [ "$CMD" = "restart" ]; then 193 | export CARBON_HOME=$CARBON_HOME 194 | kill -term `cat $RUNTIME_HOME/runtime.pid` 195 | process_status=0 196 | pid=`cat $RUNTIME_HOME/runtime.pid` 197 | while [ "$process_status" -eq "0" ] 198 | do 199 | sleep 1; 200 | ps -p$pid 2>&1 > /dev/null 201 | process_status=$? 202 | done 203 | 204 | # using nohup bash to avoid erros in solaris OS.TODO 205 | nohup bash $RUNTIME_HOME/bin/carbon.sh $args > /dev/null 2>&1 & 206 | exit 0 207 | elif [ "$CMD" = "test" ]; then 208 | JAVACMD="exec "$JAVACMD"" 209 | elif [ "$CMD" = "version" ]; then 210 | cat $CARBON_HOME/bin/kernel-version.txt 211 | exit 0 212 | fi 213 | 214 | # ---------- Handle the SSL Issue with proper JDK version -------------------- 215 | java_version=$("$JAVACMD" -version 2>&1 | awk -F '"' '/version/ {print $2}') 216 | java_version_formatted=$(echo "$java_version" | awk -F. '{printf("%02d%02d",$1,$2);}') 217 | if [ $java_version_formatted -lt 0107 ] || [ $java_version_formatted -gt 1100 ]; then 218 | echo " Starting WSO2 Carbon (in unsupported JDK)" 219 | echo " [ERROR] CARBON is supported only on JDK 1.7, 1.8, 9, 10 and 11" 220 | fi 221 | 222 | CARBON_XBOOTCLASSPATH="" 223 | for f in "$CARBON_HOME"/bin/bootstrap/xboot/*.jar 224 | do 225 | if [ "$f" != "$CARBON_HOME/bin/bootstrap/xboot/*.jar" ];then 226 | CARBON_XBOOTCLASSPATH="$CARBON_XBOOTCLASSPATH":$f 227 | fi 228 | done 229 | 230 | JAVA_ENDORSED_DIRS="$CARBON_HOME/bin/bootstrap/endorsed":"$JAVA_HOME/jre/lib/endorsed":"$JAVA_HOME/lib/endorsed" 231 | 232 | CARBON_CLASSPATH="" 233 | if [ -e "$JAVA_HOME/bin/bootstrap/tools.jar" ]; then 234 | CARBON_CLASSPATH="$JAVA_HOME/lib/tools.jar" 235 | fi 236 | for f in "$CARBON_HOME"/bin/bootstrap/*.jar 237 | do 238 | if [ "$f" != "$CARBON_HOME/bin/bootstrap/*.jar" ];then 239 | CARBON_CLASSPATH="$CARBON_CLASSPATH":$f 240 | fi 241 | done 242 | for t in "$CARBON_HOME"/bin/bootstrap/commons-lang*.jar 243 | do 244 | CARBON_CLASSPATH="$CARBON_CLASSPATH":$t 245 | done 246 | # For Cygwin, switch paths to Windows format before running java 247 | if $cygwin; then 248 | JAVA_HOME=`cygpath --absolute --windows "$JAVA_HOME"` 249 | CARBON_HOME=`cygpath --absolute --windows "$CARBON_HOME"` 250 | RUNTIME_HOME=`cygpath --absolute --windows "$RUNTIME_HOME"` 251 | CLASSPATH=`cygpath --path --windows "$CLASSPATH"` 252 | if [ $java_version_formatted -le 0108 ]; then 253 | JAVA_ENDORSED_DIRS=`cygpath --path --windows "$JAVA_ENDORSED_DIRS"` 254 | fi 255 | CARBON_CLASSPATH=`cygpath --path --windows "$CARBON_CLASSPATH"` 256 | CARBON_XBOOTCLASSPATH=`cygpath --path --windows "$CARBON_XBOOTCLASSPATH"` 257 | fi 258 | 259 | # ----- Execute The Requested Command ----------------------------------------- 260 | 261 | echo JAVA_HOME environment variable is set to $JAVA_HOME 262 | echo CARBON_HOME environment variable is set to $CARBON_HOME 263 | echo RUNTIME_HOME environment variable is set to $RUNTIME_HOME 264 | 265 | cd "$RUNTIME_HOME" 266 | 267 | START_EXIT_STATUS=121 268 | status=$START_EXIT_STATUS 269 | 270 | #To monitor a Carbon server in remote JMX mode on linux host machines, set the below system property. 271 | # -Djava.rmi.server.hostname="your.IP.goes.here" 272 | 273 | JAVA_VER_BASED_OPTS="" 274 | if [ $java_version_formatted -le 0108 ]; then 275 | JAVA_VER_BASED_OPTS="-Djava.endorsed.dirs=$JAVA_ENDORSED_DIRS" 276 | fi 277 | 278 | if [ $java_version_formatted -ge 1100 ] ; then 279 | JAVA_VER_BASED_OPTS="--add-opens=java.base/java.net=ALL-UNNAMED --add-opens=java.base/java.lang=ALL-UNNAMED --add-opens java.rmi/sun.rmi.transport=ALL-UNNAMED" 280 | fi 281 | 282 | while [ "$status" = "$START_EXIT_STATUS" ] 283 | do 284 | $JAVACMD \ 285 | -Xbootclasspath/a:"$CARBON_XBOOTCLASSPATH" \ 286 | -Xms256m -Xmx1024m \ 287 | -XX:+HeapDumpOnOutOfMemoryError \ 288 | -XX:HeapDumpPath="$RUNTIME_HOME/logs/heap-dump.hprof" \ 289 | $JAVA_OPTS \ 290 | -classpath "$CARBON_CLASSPATH" \ 291 | $JAVA_VER_BASED_OPTS \ 292 | -Djava.io.tmpdir="$CARBON_HOME/tmp" \ 293 | -Dcarbon.registry.root=/ \ 294 | -Djava.command="$JAVACMD" \ 295 | -Dcarbon.home="$CARBON_HOME" \ 296 | -Dwso2.runtime.path="$RUNTIME_HOME" \ 297 | -Dwso2.runtime="$RUNTIME" \ 298 | -Djava.util.logging.config.file="$RUNTIME_HOME/bin/bootstrap/logging.properties" \ 299 | -Djava.security.egd=file:/dev/./urandom \ 300 | -Dfile.encoding=UTF8 \ 301 | -Djavax.net.ssl.keyStore="$CARBON_HOME/resources/security/wso2carbon.jks" \ 302 | -Djavax.net.ssl.keyStorePassword="wso2carbon" \ 303 | -Djavax.net.ssl.trustStore="$CARBON_HOME/resources/security/client-truststore.jks" \ 304 | -Djavax.net.ssl.trustStorePassword="wso2carbon" \ 305 | org.wso2.carbon.launcher.Main $* 306 | status=$? 307 | done 308 | -------------------------------------------------------------------------------- /modules/distribution/carbon-home/runtime/portal/carbon.sh: -------------------------------------------------------------------------------- 1 | #!/bin/sh 2 | # --------------------------------------------------------------------------- 3 | # Copyright (c) 2019, WSO2 Inc. (http://www.wso2.org) All Rights Reserved. 4 | # 5 | # Licensed under the Apache License, Version 2.0 (the "License"); 6 | # you may not use this file except in compliance with the License. 7 | # You may obtain a copy of the License at 8 | # 9 | # http://www.apache.org/licenses/LICENSE-2.0 10 | # 11 | # Unless required by applicable law or agreed to in writing, software 12 | # distributed under the License is distributed on an "AS IS" BASIS, 13 | # WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 14 | # See the License for the specific language governing permissions and 15 | # limitations under the License. 16 | 17 | # ---------------------------------------------------------------------------- 18 | # Main Script for the WSO2 Carbon Server 19 | # 20 | # Environment Variable Prequisites 21 | # 22 | # CARBON_HOME Home of WSO2 Carbon installation. If not set I will try 23 | # to figure it out. 24 | # RUNTIME_HOME Home of WSO2 Carbon Runtime. . 25 | # 26 | # JAVA_HOME Must point at your Java Development Kit installation. 27 | # 28 | # JAVA_OPTS (Optional) Java runtime options used when the commands 29 | # is executed. 30 | # 31 | # NOTE: Borrowed generously from Apache Tomcat startup scripts. 32 | # ----------------------------------------------------------------------------- 33 | 34 | # OS specific support. $var _must_ be set to either true or false. 35 | #ulimit -n 100000 36 | 37 | cygwin=false; 38 | darwin=false; 39 | os400=false; 40 | mingw=false; 41 | case "`uname`" in 42 | CYGWIN*) cygwin=true;; 43 | MINGW*) mingw=true;; 44 | OS400*) os400=true;; 45 | Darwin*) darwin=true 46 | if [ -z "$JAVA_VERSION" ] ; then 47 | JAVA_VERSION="CurrentJDK" 48 | else 49 | echo "Using Java version: $JAVA_VERSION" 50 | fi 51 | if [ -z "$JAVA_HOME" ] ; then 52 | JAVA_HOME=/System/Library/Frameworks/JavaVM.framework/Versions/${JAVA_VERSION}/Home 53 | fi 54 | ;; 55 | esac 56 | 57 | # resolve links - $0 may be a softlink 58 | PRG="$0" 59 | 60 | while [ -h "$PRG" ]; do 61 | ls=`ls -ld "$PRG"` 62 | link=`expr "$ls" : '.*-> \(.*\)$'` 63 | if expr "$link" : '.*/.*' > /dev/null; then 64 | PRG="$link" 65 | else 66 | PRG=`dirname "$PRG"`/"$link" 67 | fi 68 | done 69 | 70 | # Get standard environment variables 71 | TEMPCURDIR=`dirname "$PRG"` 72 | 73 | # Only set RUNTIME_HOME if not already set 74 | [ -z "$RUNTIME_HOME" ] && RUNTIME_HOME=`cd "$TEMPCURDIR/.." ; pwd` 75 | 76 | # Only set CARBON_HOME if not already set 77 | [ -z "$CARBON_HOME" ] && CARBON_HOME=`cd "$TEMPCURDIR/../../../" ; pwd` 78 | 79 | # Only set RUNTIME if not already set 80 | [ -z "$RUNTIME" ] && RUNTIME=${RUNTIME_HOME##*/} 81 | 82 | # For Cygwin, ensure paths are in UNIX format before anything is touched 83 | if $cygwin; then 84 | [ -n "$JAVA_HOME" ] && JAVA_HOME=`cygpath --unix "$JAVA_HOME"` 85 | [ -n "$CARBON_HOME" ] && CARBON_HOME=`cygpath --unix "$CARBON_HOME"` 86 | [ -n "$RUNTIME_HOME" ] && RUNTIME_HOME=`cygpath --unix "$RUNTIME_HOME"` 87 | fi 88 | 89 | # For OS400 90 | if $os400; then 91 | # Set job priority to standard for interactive (interactive - 6) by using 92 | # the interactive priority - 6, the helper threads that respond to requests 93 | # will be running at the same priority as interactive jobs. 94 | COMMAND='chgjob job('$JOBNAME') runpty(6)' 95 | system $COMMAND 96 | 97 | # Enable multi threading 98 | QIBM_MULTI_THREADED=Y 99 | export QIBM_MULTI_THREADED 100 | fi 101 | 102 | # For Migwn, ensure paths are in UNIX format before anything is touched 103 | if $mingw ; then 104 | [ -n "$CARBON_HOME" ] && 105 | CARBON_HOME="`(cd "$CARBON_HOME"; pwd)`" 106 | [ -n "$JAVA_HOME" ] && 107 | JAVA_HOME="`(cd "$JAVA_HOME"; pwd)`" 108 | # TODO classpath? 109 | fi 110 | 111 | if [ -z "$JAVACMD" ] ; then 112 | if [ -n "$JAVA_HOME" ] ; then 113 | if [ -x "$JAVA_HOME/jre/sh/java" ] ; then 114 | # IBM's JDK on AIX uses strange locations for the executables 115 | JAVACMD="$JAVA_HOME/jre/sh/java" 116 | else 117 | JAVACMD="$JAVA_HOME/bin/java" 118 | fi 119 | else 120 | JAVACMD=java 121 | fi 122 | fi 123 | 124 | if [ ! -x "$JAVACMD" ] ; then 125 | echo "Error: JAVA_HOME is not defined correctly." 126 | echo " CARBON cannot execute $JAVACMD" 127 | exit 1 128 | fi 129 | 130 | # if JAVA_HOME is not set we're not happy 131 | if [ -z "$JAVA_HOME" ]; then 132 | echo "You must set the JAVA_HOME variable before running CARBON." 133 | exit 1 134 | fi 135 | 136 | if [ -e "$RUNTIME_HOME/runtime.pid" ]; then 137 | PID=`cat "$RUNTIME_HOME"/runtime.pid` 138 | fi 139 | 140 | # ----- Process the input command ---------------------------------------------- 141 | args="" 142 | for c in $* 143 | do 144 | if [ "$c" = "--debug" ] || [ "$c" = "-debug" ] || [ "$c" = "debug" ]; then 145 | CMD="--debug" 146 | continue 147 | elif [ "$CMD" = "--debug" ]; then 148 | if [ -z "$PORT" ]; then 149 | PORT=$c 150 | fi 151 | elif [ "$c" = "--stop" ] || [ "$c" = "-stop" ] || [ "$c" = "stop" ]; then 152 | CMD="stop" 153 | elif [ "$c" = "--start" ] || [ "$c" = "-start" ] || [ "$c" = "start" ]; then 154 | CMD="start" 155 | elif [ "$c" = "--version" ] || [ "$c" = "-version" ] || [ "$c" = "version" ]; then 156 | CMD="version" 157 | elif [ "$c" = "--restart" ] || [ "$c" = "-restart" ] || [ "$c" = "restart" ]; then 158 | CMD="restart" 159 | elif [ "$c" = "--test" ] || [ "$c" = "-test" ] || [ "$c" = "test" ]; then 160 | CMD="test" 161 | else 162 | args="$args $c" 163 | fi 164 | done 165 | 166 | if [ "$CMD" = "--debug" ]; then 167 | if [ "$PORT" = "" ]; then 168 | echo " Please specify the debug port after the --debug option" 169 | exit 1 170 | fi 171 | if [ -n "$JAVA_OPTS" ]; then 172 | echo "Warning !!!. User specified JAVA_OPTS will be ignored, once you give the --debug option." 173 | fi 174 | CMD="RUN" 175 | JAVA_OPTS="-Xdebug -Xnoagent -Djava.compiler=NONE -Xrunjdwp:transport=dt_socket,server=y,suspend=y,address=$PORT" 176 | echo "Please start the remote debugging client to continue..." 177 | elif [ "$CMD" = "start" ]; then 178 | if [ -e "$RUNTIME_HOME/runtime.pid" ]; then 179 | if ps -p $PID > /dev/null ; then 180 | echo "Process is already running" 181 | exit 0 182 | fi 183 | fi 184 | export CARBON_HOME=$CARBON_HOME 185 | # using nohup bash to avoid erros in solaris OS.TODO 186 | nohup bash $RUNTIME_HOME/bin/carbon.sh $args > /dev/null 2>&1 & 187 | exit 0 188 | elif [ "$CMD" = "stop" ]; then 189 | export CARBON_HOME=$CARBON_HOME 190 | kill -term `cat $RUNTIME_HOME/runtime.pid` 191 | exit 0 192 | elif [ "$CMD" = "restart" ]; then 193 | export CARBON_HOME=$CARBON_HOME 194 | kill -term `cat $RUNTIME_HOME/runtime.pid` 195 | process_status=0 196 | pid=`cat $RUNTIME_HOME/runtime.pid` 197 | while [ "$process_status" -eq "0" ] 198 | do 199 | sleep 1; 200 | ps -p$pid 2>&1 > /dev/null 201 | process_status=$? 202 | done 203 | 204 | # using nohup bash to avoid erros in solaris OS.TODO 205 | nohup bash $RUNTIME_HOME/bin/carbon.sh $args > /dev/null 2>&1 & 206 | exit 0 207 | elif [ "$CMD" = "test" ]; then 208 | JAVACMD="exec "$JAVACMD"" 209 | elif [ "$CMD" = "version" ]; then 210 | cat $CARBON_HOME/bin/kernel-version.txt 211 | exit 0 212 | fi 213 | 214 | # ---------- Handle the SSL Issue with proper JDK version -------------------- 215 | java_version=$("$JAVACMD" -version 2>&1 | awk -F '"' '/version/ {print $2}') 216 | java_version_formatted=$(echo "$java_version" | awk -F. '{printf("%02d%02d",$1,$2);}') 217 | if [ $java_version_formatted -lt 0107 ] || [ $java_version_formatted -gt 1100 ]; then 218 | echo " Starting WSO2 Carbon (in unsupported JDK)" 219 | echo " [ERROR] CARBON is supported only on JDK 1.7, 1.8, 9, 10 and 11" 220 | fi 221 | 222 | CARBON_XBOOTCLASSPATH="" 223 | for f in "$CARBON_HOME"/bin/bootstrap/xboot/*.jar 224 | do 225 | if [ "$f" != "$CARBON_HOME/bin/bootstrap/xboot/*.jar" ];then 226 | CARBON_XBOOTCLASSPATH="$CARBON_XBOOTCLASSPATH":$f 227 | fi 228 | done 229 | 230 | JAVA_ENDORSED_DIRS="$CARBON_HOME/bin/bootstrap/endorsed":"$JAVA_HOME/jre/lib/endorsed":"$JAVA_HOME/lib/endorsed" 231 | 232 | CARBON_CLASSPATH="" 233 | if [ -e "$JAVA_HOME/bin/bootstrap/tools.jar" ]; then 234 | CARBON_CLASSPATH="$JAVA_HOME/lib/tools.jar" 235 | fi 236 | for f in "$CARBON_HOME"/bin/bootstrap/*.jar 237 | do 238 | if [ "$f" != "$CARBON_HOME/bin/bootstrap/*.jar" ];then 239 | CARBON_CLASSPATH="$CARBON_CLASSPATH":$f 240 | fi 241 | done 242 | for t in "$CARBON_HOME"/bin/bootstrap/commons-lang*.jar 243 | do 244 | CARBON_CLASSPATH="$CARBON_CLASSPATH":$t 245 | done 246 | # For Cygwin, switch paths to Windows format before running java 247 | if $cygwin; then 248 | JAVA_HOME=`cygpath --absolute --windows "$JAVA_HOME"` 249 | CARBON_HOME=`cygpath --absolute --windows "$CARBON_HOME"` 250 | RUNTIME_HOME=`cygpath --absolute --windows "$RUNTIME_HOME"` 251 | CLASSPATH=`cygpath --path --windows "$CLASSPATH"` 252 | if [ $java_version_formatted -le 0108 ]; then 253 | JAVA_ENDORSED_DIRS=`cygpath --path --windows "$JAVA_ENDORSED_DIRS"` 254 | fi 255 | CARBON_CLASSPATH=`cygpath --path --windows "$CARBON_CLASSPATH"` 256 | CARBON_XBOOTCLASSPATH=`cygpath --path --windows "$CARBON_XBOOTCLASSPATH"` 257 | fi 258 | 259 | # ----- Execute The Requested Command ----------------------------------------- 260 | 261 | echo JAVA_HOME environment variable is set to $JAVA_HOME 262 | echo CARBON_HOME environment variable is set to $CARBON_HOME 263 | echo RUNTIME_HOME environment variable is set to $RUNTIME_HOME 264 | 265 | cd "$RUNTIME_HOME" 266 | 267 | START_EXIT_STATUS=121 268 | status=$START_EXIT_STATUS 269 | 270 | #To monitor a Carbon server in remote JMX mode on linux host machines, set the below system property. 271 | # -Djava.rmi.server.hostname="your.IP.goes.here" 272 | 273 | JAVA_VER_BASED_OPTS="" 274 | if [ $java_version_formatted -le 0108 ]; then 275 | JAVA_VER_BASED_OPTS="-Djava.endorsed.dirs=$JAVA_ENDORSED_DIRS" 276 | fi 277 | 278 | if [ $java_version_formatted -ge 1100 ] ; then 279 | JAVA_VER_BASED_OPTS="--add-opens=java.base/java.net=ALL-UNNAMED --add-opens=java.base/java.lang=ALL-UNNAMED --add-opens java.rmi/sun.rmi.transport=ALL-UNNAMED" 280 | fi 281 | 282 | while [ "$status" = "$START_EXIT_STATUS" ] 283 | do 284 | $JAVACMD \ 285 | -Xbootclasspath/a:"$CARBON_XBOOTCLASSPATH" \ 286 | -Xms256m -Xmx1024m \ 287 | -XX:+HeapDumpOnOutOfMemoryError \ 288 | -XX:HeapDumpPath="$RUNTIME_HOME/logs/heap-dump.hprof" \ 289 | $JAVA_OPTS \ 290 | -classpath "$CARBON_CLASSPATH" \ 291 | $JAVA_VER_BASED_OPTS \ 292 | -Djava.io.tmpdir="$CARBON_HOME/tmp" \ 293 | -Dcarbon.registry.root=/ \ 294 | -Djava.command="$JAVACMD" \ 295 | -Dcarbon.home="$CARBON_HOME" \ 296 | -Dwso2.runtime.path="$RUNTIME_HOME" \ 297 | -Dwso2.runtime="$RUNTIME" \ 298 | -Djava.util.logging.config.file="$RUNTIME_HOME/bin/bootstrap/logging.properties" \ 299 | -Djava.security.egd=file:/dev/./urandom \ 300 | -Dfile.encoding=UTF8 \ 301 | -Djavax.net.ssl.keyStore="$CARBON_HOME/resources/security/wso2carbon.jks" \ 302 | -Djavax.net.ssl.keyStorePassword="wso2carbon" \ 303 | -Djavax.net.ssl.trustStore="$CARBON_HOME/resources/security/client-truststore.jks" \ 304 | -Djavax.net.ssl.trustStorePassword="wso2carbon" \ 305 | org.wso2.carbon.launcher.Main $* 306 | status=$? 307 | done 308 | -------------------------------------------------------------------------------- /LICENSE: -------------------------------------------------------------------------------- 1 | Apache License 2 | Version 2.0, January 2004 3 | http://www.apache.org/licenses/ 4 | 5 | TERMS AND CONDITIONS FOR USE, REPRODUCTION, AND DISTRIBUTION 6 | 7 | 1. Definitions. 8 | 9 | "License" shall mean the terms and conditions for use, reproduction, 10 | and distribution as defined by Sections 1 through 9 of this document. 11 | 12 | "Licensor" shall mean the copyright owner or entity authorized by 13 | the copyright owner that is granting the License. 14 | 15 | "Legal Entity" shall mean the union of the acting entity and all 16 | other entities that control, are controlled by, or are under common 17 | control with that entity. For the purposes of this definition, 18 | "control" means (i) the power, direct or indirect, to cause the 19 | direction or management of such entity, whether by contract or 20 | otherwise, or (ii) ownership of fifty percent (50%) or more of the 21 | outstanding shares, or (iii) beneficial ownership of such entity. 22 | 23 | "You" (or "Your") shall mean an individual or Legal Entity 24 | exercising permissions granted by this License. 25 | 26 | "Source" form shall mean the preferred form for making modifications, 27 | including but not limited to software source code, documentation 28 | source, and configuration files. 29 | 30 | "Object" form shall mean any form resulting from mechanical 31 | transformation or translation of a Source form, including but 32 | not limited to compiled object code, generated documentation, 33 | and conversions to other media types. 34 | 35 | "Work" shall mean the work of authorship, whether in Source or 36 | Object form, made available under the License, as indicated by a 37 | copyright notice that is included in or attached to the work 38 | (an example is provided in the Appendix below). 39 | 40 | "Derivative Works" shall mean any work, whether in Source or Object 41 | form, that is based on (or derived from) the Work and for which the 42 | editorial revisions, annotations, elaborations, or other modifications 43 | represent, as a whole, an original work of authorship. For the purposes 44 | of this License, Derivative Works shall not include works that remain 45 | separable from, or merely link (or bind by name) to the interfaces of, 46 | the Work and Derivative Works thereof. 47 | 48 | "Contribution" shall mean any work of authorship, including 49 | the original version of the Work and any modifications or additions 50 | to that Work or Derivative Works thereof, that is intentionally 51 | submitted to Licensor for inclusion in the Work by the copyright owner 52 | or by an individual or Legal Entity authorized to submit on behalf of 53 | the copyright owner. For the purposes of this definition, "submitted" 54 | means any form of electronic, verbal, or written communication sent 55 | to the Licensor or its representatives, including but not limited to 56 | communication on electronic mailing lists, source code control systems, 57 | and issue tracking systems that are managed by, or on behalf of, the 58 | Licensor for the purpose of discussing and improving the Work, but 59 | excluding communication that is conspicuously marked or otherwise 60 | designated in writing by the copyright owner as "Not a Contribution." 61 | 62 | "Contributor" shall mean Licensor and any individual or Legal Entity 63 | on behalf of whom a Contribution has been received by Licensor and 64 | subsequently incorporated within the Work. 65 | 66 | 2. Grant of Copyright License. Subject to the terms and conditions of 67 | this License, each Contributor hereby grants to You a perpetual, 68 | worldwide, non-exclusive, no-charge, royalty-free, irrevocable 69 | copyright license to reproduce, prepare Derivative Works of, 70 | publicly display, publicly perform, sublicense, and distribute the 71 | Work and such Derivative Works in Source or Object form. 72 | 73 | 3. Grant of Patent License. Subject to the terms and conditions of 74 | this License, each Contributor hereby grants to You a perpetual, 75 | worldwide, non-exclusive, no-charge, royalty-free, irrevocable 76 | (except as stated in this section) patent license to make, have made, 77 | use, offer to sell, sell, import, and otherwise transfer the Work, 78 | where such license applies only to those patent claims licensable 79 | by such Contributor that are necessarily infringed by their 80 | Contribution(s) alone or by combination of their Contribution(s) 81 | with the Work to which such Contribution(s) was submitted. If You 82 | institute patent litigation against any entity (including a 83 | cross-claim or counterclaim in a lawsuit) alleging that the Work 84 | or a Contribution incorporated within the Work constitutes direct 85 | or contributory patent infringement, then any patent licenses 86 | granted to You under this License for that Work shall terminate 87 | as of the date such litigation is filed. 88 | 89 | 4. Redistribution. You may reproduce and distribute copies of the 90 | Work or Derivative Works thereof in any medium, with or without 91 | modifications, and in Source or Object form, provided that You 92 | meet the following conditions: 93 | 94 | (a) You must give any other recipients of the Work or 95 | Derivative Works a copy of this License; and 96 | 97 | (b) You must cause any modified files to carry prominent notices 98 | stating that You changed the files; and 99 | 100 | (c) You must retain, in the Source form of any Derivative Works 101 | that You distribute, all copyright, patent, trademark, and 102 | attribution notices from the Source form of the Work, 103 | excluding those notices that do not pertain to any part of 104 | the Derivative Works; and 105 | 106 | (d) If the Work includes a "NOTICE" text file as part of its 107 | distribution, then any Derivative Works that You distribute must 108 | include a readable copy of the attribution notices contained 109 | within such NOTICE file, excluding those notices that do not 110 | pertain to any part of the Derivative Works, in at least one 111 | of the following places: within a NOTICE text file distributed 112 | as part of the Derivative Works; within the Source form or 113 | documentation, if provided along with the Derivative Works; or, 114 | within a display generated by the Derivative Works, if and 115 | wherever such third-party notices normally appear. The contents 116 | of the NOTICE file are for informational purposes only and 117 | do not modify the License. You may add Your own attribution 118 | notices within Derivative Works that You distribute, alongside 119 | or as an addendum to the NOTICE text from the Work, provided 120 | that such additional attribution notices cannot be construed 121 | as modifying the License. 122 | 123 | You may add Your own copyright statement to Your modifications and 124 | may provide additional or different license terms and conditions 125 | for use, reproduction, or distribution of Your modifications, or 126 | for any such Derivative Works as a whole, provided Your use, 127 | reproduction, and distribution of the Work otherwise complies with 128 | the conditions stated in this License. 129 | 130 | 5. Submission of Contributions. Unless You explicitly state otherwise, 131 | any Contribution intentionally submitted for inclusion in the Work 132 | by You to the Licensor shall be under the terms and conditions of 133 | this License, without any additional terms or conditions. 134 | Notwithstanding the above, nothing herein shall supersede or modify 135 | the terms of any separate license agreement you may have executed 136 | with Licensor regarding such Contributions. 137 | 138 | 6. Trademarks. This License does not grant permission to use the trade 139 | names, trademarks, service marks, or product names of the Licensor, 140 | except as required for reasonable and customary use in describing the 141 | origin of the Work and reproducing the content of the NOTICE file. 142 | 143 | 7. Disclaimer of Warranty. Unless required by applicable law or 144 | agreed to in writing, Licensor provides the Work (and each 145 | Contributor provides its Contributions) on an "AS IS" BASIS, 146 | WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or 147 | implied, including, without limitation, any warranties or conditions 148 | of TITLE, NON-INFRINGEMENT, MERCHANTABILITY, or FITNESS FOR A 149 | PARTICULAR PURPOSE. You are solely responsible for determining the 150 | appropriateness of using or redistributing the Work and assume any 151 | risks associated with Your exercise of permissions under this License. 152 | 153 | 8. Limitation of Liability. In no event and under no legal theory, 154 | whether in tort (including negligence), contract, or otherwise, 155 | unless required by applicable law (such as deliberate and grossly 156 | negligent acts) or agreed to in writing, shall any Contributor be 157 | liable to You for damages, including any direct, indirect, special, 158 | incidental, or consequential damages of any character arising as a 159 | result of this License or out of the use or inability to use the 160 | Work (including but not limited to damages for loss of goodwill, 161 | work stoppage, computer failure or malfunction, or any and all 162 | other commercial damages or losses), even if such Contributor 163 | has been advised of the possibility of such damages. 164 | 165 | 9. Accepting Warranty or Additional Liability. While redistributing 166 | the Work or Derivative Works thereof, You may choose to offer, 167 | and charge a fee for, acceptance of support, warranty, indemnity, 168 | or other liability obligations and/or rights consistent with this 169 | License. However, in accepting such obligations, You may act only 170 | on Your own behalf and on Your sole responsibility, not on behalf 171 | of any other Contributor, and only if You agree to indemnify, 172 | defend, and hold each Contributor harmless for any liability 173 | incurred by, or claims asserted against, such Contributor by reason 174 | of your accepting any such warranty or additional liability. 175 | 176 | END OF TERMS AND CONDITIONS 177 | 178 | APPENDIX: How to apply the Apache License to your work. 179 | 180 | To apply the Apache License to your work, attach the following 181 | boilerplate notice, with the fields enclosed by brackets "[]" 182 | replaced with your own identifying information. (Don't include 183 | the brackets!) The text should be enclosed in the appropriate 184 | comment syntax for the file format. We also recommend that a 185 | file or class name and description of purpose be included on the 186 | same "printed page" as the copyright notice for easier 187 | identification within third-party archives. 188 | 189 | Copyright [yyyy] [name of copyright owner] 190 | 191 | Licensed under the Apache License, Version 2.0 (the "License"); 192 | you may not use this file except in compliance with the License. 193 | You may obtain a copy of the License at 194 | 195 | http://www.apache.org/licenses/LICENSE-2.0 196 | 197 | Unless required by applicable law or agreed to in writing, software 198 | distributed under the License is distributed on an "AS IS" BASIS, 199 | WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 200 | See the License for the specific language governing permissions and 201 | limitations under the License. 202 | -------------------------------------------------------------------------------- /modules/distribution/src/assembly/bin.xml: -------------------------------------------------------------------------------- 1 | 18 | 19 | true 20 | wso2ad-${project.version} 21 | WSO2 Analytics Dashboard Distribution 22 | 23 | zip 24 | 25 | 26 | 27 | 28 | target/wso2carbon-kernel-${carbon.kernel.version} 29 | . 30 | 31 | README.txt 32 | LICENSE.txt 33 | bin/carbon.sh 34 | release-notes.html 35 | conf/osgi/launch.properties 36 | conf/deployment.yaml 37 | conf/log4j2.xml 38 | conf/transports/netty-transports.yml 39 | **/*.ipr 40 | **/*.iwr 41 | **/*.eclipse 42 | 43 | bin/ciphertool.sh 44 | bin/ciphertool.bat 45 | bin/icf-provider.bat 46 | bin/icf-provider.sh 47 | bin/jartobundle.sh 48 | bin/jartobundle.bat 49 | bin/osgi-lib.bat 50 | bin/osgi-lib.sh 51 | 52 | 53 | 54 | ../.. 55 | . 56 | 57 | README.md 58 | 59 | 60 | 61 | 62 | carbon-home/conf/portal 63 | conf/portal 64 | 644 65 | 66 | 67 | carbon-home/conf/monitor 68 | conf/monitor 69 | 644 70 | 71 | 72 | carbon-home/conf/transports/monitor 73 | wso2/monitor/conf/transports 74 | 644 75 | 76 | 77 | carbon-home/conf/transports/portal 78 | wso2/portal/conf/transports 79 | 644 80 | 81 | 82 | 83 | carbon-home/conf/osgi 84 | conf/osgi 85 | 644 86 | 87 | 88 | carbon-home/resources/security 89 | resources/security 90 | 644 91 | 92 | 93 | carbon-home/bin 94 | bin 95 | 96 | **/*.sh 97 | **/*.bat 98 | 99 | 755 100 | 101 | 102 | carbon-home/bin 103 | bin 104 | 105 | **/*.txt 106 | 107 | 444 108 | 109 | 110 | carbon-home/bin/bootstrap 111 | bin/bootstrap 112 | 644 113 | 114 | 115 | 116 | target/extensions 117 | lib 118 | 119 | **/*.jar 120 | 121 | 664 122 | 123 | 124 | carbon-home/external-libs 125 | lib 126 | 127 | **/*.jar 128 | 129 | 664 130 | 131 | 132 | . 133 | deployment/siddhi-files 134 | 135 | */** 136 | 137 | 644 138 | 139 | 140 | 141 | 142 | 143 | target/forget-me/identity-anonymization-tool-${forgetme.tool.version}/ 144 | wso2/tools/identity-anonymization-tool/ 145 | 146 | **/forget-me 147 | **/forget-me.bat 148 | 149 | 150 | **/log4j.properties 151 | **/conf/log-config/sp-patterns.xml 152 | **/lib/** 153 | 154 | 644 155 | 156 | 157 | 158 | 159 | src/policies/ 160 | wso2/portal/deployment/web-ui-apps/policies 161 | 644 162 | 163 | 164 | src/policies/ 165 | wso2/monitor/deployment/web-ui-apps/policies 166 | 644 167 | 168 | 169 | 170 | target/java-dependencies 171 | bin/bootstrap 172 | 173 | **/*.jar 174 | 175 | 644 176 | 177 | 178 | 179 | 180 | carbon-home/updates/product.txt 181 | updates/ 182 | true 183 | 444 184 | 185 | 186 | target/wso2carbon-kernel-${carbon.kernel.version}/bin/kernel-version.txt 187 | bin/ 188 | true 189 | 444 190 | 191 | 192 | target/wso2carbon-kernel-${carbon.kernel.version}/bin/README.txt 193 | bin/ 194 | true 195 | 444 196 | 197 | 198 | carbon-home/bin/version.txt 199 | bin/ 200 | true 201 | 644 202 | 203 | 204 | carbon-home/LICENSE.txt 205 | / 206 | true 207 | 644 208 | 209 | 210 | carbon-home/deployment/stream-definitions.yaml 211 | deployment/ 212 | true 213 | 644 214 | 215 | 217 | 218 | carbon-home/runtime/portal/carbon.sh 219 | wso2/portal/bin/ 220 | true 221 | 755 222 | 223 | 224 | carbon-home/runtime/portal/carbon.bat 225 | wso2/portal/bin/ 226 | true 227 | 755 228 | 229 | 230 | 231 | carbon-home/conf/portal/log4j2.xml 232 | conf/portal/ 233 | true 234 | 644 235 | 236 | 237 | carbon-home/runtime/monitor/carbon.sh 238 | wso2/monitor/bin/ 239 | true 240 | 755 241 | 242 | 243 | carbon-home/runtime/monitor/carbon.bat 244 | wso2/monitor/bin/ 245 | true 246 | 755 247 | 248 | 249 | 250 | carbon-home/conf/monitor/log4j2.xml 251 | conf/monitor/ 252 | true 253 | 644 254 | 255 | 256 | 257 | 258 | src/scripts/forgetme.sh 259 | bin/ 260 | 744 261 | 262 | 263 | 264 | src/scripts/forgetme.bat 265 | bin/ 266 | 744 267 | 268 | 269 | 270 | target/forget-me/identity-anonymization-tool-${forgetme.tool.version}/bin/forgetme.sh 271 | wso2/tools/identity-anonymization-tool/bin/ 272 | 744 273 | 274 | 275 | 276 | target/forget-me/identity-anonymization-tool-${forgetme.tool.version}/bin/forgetme.bat 277 | wso2/tools/identity-anonymization-tool/bin/ 278 | 744 279 | 280 | 281 | 282 | target/forget-me/identity-anonymization-tool-${forgetme.tool.version}/conf/product-config/config-sp.json 283 | wso2/tools/identity-anonymization-tool/conf/ 284 | config.json 285 | 644 286 | 287 | 288 | 289 | -------------------------------------------------------------------------------- /modules/distribution/carbon-home/conf/monitor/deployment.yaml: -------------------------------------------------------------------------------- 1 | ################################################################################ 2 | # Copyright (c) 2019, WSO2 Inc. (http://www.wso2.org) All Rights Reserved 3 | # 4 | # Licensed under the Apache License, Version 2.0 (the \"License\"); 5 | # you may not use this file except in compliance with the License. 6 | # You may obtain a copy of the License at 7 | # 8 | # http://www.apache.org/licenses/LICENSE-2.0 9 | # 10 | # Unless required by applicable law or agreed to in writing, software 11 | # distributed under the License is distributed on an \"AS IS\" BASIS, 12 | # WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 13 | # See the License for the specific language governing permissions and 14 | # limitations under the License. 15 | ################################################################################ 16 | 17 | # Carbon Configuration Parameters 18 | wso2.carbon: 19 | # value to uniquely identify a server 20 | id: wso2-sp 21 | # server name 22 | name: WSO2 Analytics Dashboard 23 | # server type 24 | type: wso2-sp 25 | # ports used by this server 26 | ports: 27 | # port offset 28 | offset: 3 29 | 30 | # Configuration used for the databridge communication 31 | databridge.config: 32 | # No of worker threads to consume events 33 | # THIS IS A MANDATORY FIELD 34 | workerThreads: 10 35 | # Maximum amount of messages that can be queued internally in MB 36 | # THIS IS A MANDATORY FIELD 37 | maxEventBufferCapacity: 10000000 38 | # Queue size; the maximum number of events that can be stored in the queue 39 | # THIS IS A MANDATORY FIELD 40 | eventBufferSize: 2000 41 | # Keystore file path 42 | # THIS IS A MANDATORY FIELD 43 | keyStoreLocation : ${sys:carbon.home}/resources/security/wso2carbon.jks 44 | # Keystore password 45 | # THIS IS A MANDATORY FIELD 46 | keyStorePassword : wso2carbon 47 | # Session Timeout value in mins 48 | # THIS IS A MANDATORY FIELD 49 | clientTimeoutMin: 30 50 | # Data receiver configurations 51 | # THIS IS A MANDATORY FIELD 52 | dataReceivers: 53 | - 54 | # Data receiver configuration 55 | dataReceiver: 56 | # Data receiver type 57 | # THIS IS A MANDATORY FIELD 58 | type: Thrift 59 | # Data receiver properties 60 | properties: 61 | tcpPort: '7611' 62 | sslPort: '7711' 63 | 64 | - 65 | # Data receiver configuration 66 | dataReceiver: 67 | # Data receiver type 68 | # THIS IS A MANDATORY FIELD 69 | type: Binary 70 | # Data receiver properties 71 | properties: 72 | tcpPort: '9611' 73 | sslPort: '9711' 74 | tcpReceiverThreadPoolSize: '100' 75 | sslReceiverThreadPoolSize: '100' 76 | hostName: 0.0.0.0 77 | 78 | # Configuration of the Data Agents - to publish events through databridge 79 | data.agent.config: 80 | # Data agent configurations 81 | # THIS IS A MANDATORY FIELD 82 | agents: 83 | - 84 | # Data agent configuration 85 | agentConfiguration: 86 | # Data agent name 87 | # THIS IS A MANDATORY FIELD 88 | name: Thrift 89 | # Data endpoint class 90 | # THIS IS A MANDATORY FIELD 91 | dataEndpointClass: org.wso2.carbon.databridge.agent.endpoint.thrift.ThriftDataEndpoint 92 | # Data publisher strategy 93 | publishingStrategy: async 94 | # Trust store path 95 | trustStorePath: '${sys:carbon.home}/resources/security/client-truststore.jks' 96 | # Trust store password 97 | trustStorePassword: 'wso2carbon' 98 | # Queue Size 99 | queueSize: 32768 100 | # Batch Size 101 | batchSize: 200 102 | # Core pool size 103 | corePoolSize: 1 104 | # Socket timeout in milliseconds 105 | socketTimeoutMS: 30000 106 | # Maximum pool size 107 | maxPoolSize: 1 108 | # Keep alive time in pool 109 | keepAliveTimeInPool: 20 110 | # Reconnection interval 111 | reconnectionInterval: 30 112 | # Max transport pool size 113 | maxTransportPoolSize: 250 114 | # Max idle connections 115 | maxIdleConnections: 250 116 | # Eviction time interval 117 | evictionTimePeriod: 5500 118 | # Min idle time in pool 119 | minIdleTimeInPool: 5000 120 | # Secure max transport pool size 121 | secureMaxTransportPoolSize: 250 122 | # Secure max idle connections 123 | secureMaxIdleConnections: 250 124 | # secure eviction time period 125 | secureEvictionTimePeriod: 5500 126 | # Secure min idle time in pool 127 | secureMinIdleTimeInPool: 5000 128 | # SSL enabled protocols 129 | sslEnabledProtocols: TLSv1.1,TLSv1.2 130 | # Ciphers 131 | ciphers: TLS_ECDHE_ECDSA_WITH_AES_128_CBC_SHA256,TLS_ECDHE_RSA_WITH_AES_128_CBC_SHA256,TLS_DHE_RSA_WITH_AES_128_CBC_SHA256,TLS_ECDHE_ECDSA_WITH_AES_128_CBC_SHA,TLS_ECDHE_RSA_WITH_AES_128_CBC_SHA,TLS_DHE_RSA_WITH_AES_128_CBC_SHA,TLS_ECDHE_ECDSA_WITH_AES_128_GCM_SHA256,TLS_ECDHE_RSA_WITH_AES_128_GCM_SHA256,TLS_DHE_RSA_WITH_AES_128_GCM_SHA256 132 | - 133 | # Data agent configuration 134 | agentConfiguration: 135 | # Data agent name 136 | # THIS IS A MANDATORY FIELD 137 | name: Binary 138 | # Data endpoint class 139 | # THIS IS A MANDATORY FIELD 140 | dataEndpointClass: org.wso2.carbon.databridge.agent.endpoint.binary.BinaryDataEndpoint 141 | # Data publisher strategy 142 | publishingStrategy: async 143 | # Trust store path 144 | trustStorePath: '${sys:carbon.home}/resources/security/client-truststore.jks' 145 | # Trust store password 146 | trustStorePassword: 'wso2carbon' 147 | # Queue Size 148 | queueSize: 32768 149 | # Batch Size 150 | batchSize: 200 151 | # Core pool size 152 | corePoolSize: 1 153 | # Socket timeout in milliseconds 154 | socketTimeoutMS: 30000 155 | # Maximum pool size 156 | maxPoolSize: 1 157 | # Keep alive time in pool 158 | keepAliveTimeInPool: 20 159 | # Reconnection interval 160 | reconnectionInterval: 30 161 | # Max transport pool size 162 | maxTransportPoolSize: 250 163 | # Max idle connections 164 | maxIdleConnections: 250 165 | # Eviction time interval 166 | evictionTimePeriod: 5500 167 | # Min idle time in pool 168 | minIdleTimeInPool: 5000 169 | # Secure max transport pool size 170 | secureMaxTransportPoolSize: 250 171 | # Secure max idle connections 172 | secureMaxIdleConnections: 250 173 | # secure eviction time period 174 | secureEvictionTimePeriod: 5500 175 | # Secure min idle time in pool 176 | secureMinIdleTimeInPool: 5000 177 | # SSL enabled protocols 178 | sslEnabledProtocols: TLSv1.1,TLSv1.2 179 | # Ciphers 180 | ciphers: TLS_ECDHE_ECDSA_WITH_AES_128_CBC_SHA256,TLS_ECDHE_RSA_WITH_AES_128_CBC_SHA256,TLS_DHE_RSA_WITH_AES_128_CBC_SHA256,TLS_ECDHE_ECDSA_WITH_AES_128_CBC_SHA,TLS_ECDHE_RSA_WITH_AES_128_CBC_SHA,TLS_DHE_RSA_WITH_AES_128_CBC_SHA,TLS_ECDHE_ECDSA_WITH_AES_128_GCM_SHA256,TLS_ECDHE_RSA_WITH_AES_128_GCM_SHA256,TLS_DHE_RSA_WITH_AES_128_GCM_SHA256 181 | 182 | # Deployment configuration parameters 183 | wso2.artifact.deployment: 184 | # Scheduler update interval 185 | updateInterval: 5 186 | 187 | # HA Configuration 188 | state.persistence: 189 | enabled: false 190 | intervalInMin: 1 191 | revisionsToKeep: 2 192 | persistenceStore: org.wso2.carbon.streaming.integrator.core.persistence.FileSystemPersistenceStore 193 | config: 194 | location: siddhi-app-persistence 195 | 196 | # Secure Vault Configuration 197 | wso2.securevault: 198 | secretRepository: 199 | type: org.wso2.carbon.secvault.repository.DefaultSecretRepository 200 | parameters: 201 | privateKeyAlias: wso2carbon 202 | keystoreLocation: ${sys:carbon.home}/resources/security/securevault.jks 203 | secretPropertiesFile: ${sys:carbon.home}/conf/${sys:wso2.runtime}/secrets.properties 204 | masterKeyReader: 205 | type: org.wso2.carbon.secvault.reader.DefaultMasterKeyReader 206 | parameters: 207 | masterKeyReaderFile: ${sys:carbon.home}/conf/${sys:wso2.runtime}/master-keys.yaml 208 | 209 | 210 | # Data Sources Configuration 211 | wso2.datasources: 212 | dataSources: 213 | # Dashboard data source 214 | - name: WSO2_STATUS_DASHBOARD_DB 215 | description: The datasource used for dashboard feature 216 | jndiConfig: 217 | name: jdbc/WSO2_STATUS_DASHBOARD_DB 218 | useJndiReference: true 219 | definition: 220 | type: RDBMS 221 | configuration: 222 | jdbcUrl: 'jdbc:h2:${sys:carbon.home}/wso2/${sys:wso2.runtime}/database/wso2_status_dashboard;DB_CLOSE_ON_EXIT=FALSE;LOCK_TIMEOUT=60000;MVCC=TRUE' 223 | username: wso2carbon 224 | password: wso2carbon 225 | driverClassName: org.h2.Driver 226 | maxPoolSize: 20 227 | idleTimeout: 60000 228 | connectionTestQuery: SELECT 1 229 | validationTimeout: 30000 230 | isAutoCommit: false 231 | 232 | # carbon metrics data source 233 | - name: WSO2_METRICS_DB 234 | description: The datasource used for dashboard feature 235 | jndiConfig: 236 | name: jdbc/WSO2MetricsDB 237 | definition: 238 | type: RDBMS 239 | configuration: 240 | jdbcUrl: 'jdbc:h2:${sys:carbon.home}/wso2/${sys:wso2.runtime}/database/metrics;AUTO_SERVER=TRUE;DB_CLOSE_ON_EXIT=FALSE;LOCK_TIMEOUT=60000;' 241 | username: wso2carbon 242 | password: wso2carbon 243 | driverClassName: org.h2.Driver 244 | maxPoolSize: 20 245 | idleTimeout: 60000 246 | connectionTestQuery: SELECT 1 247 | validationTimeout: 30000 248 | isAutoCommit: false 249 | 250 | - name: Message_Tracing_DB 251 | description: "The datasource used for message tracer to store span information." 252 | jndiConfig: 253 | name: jdbc/Message_Tracing_DB 254 | definition: 255 | type: RDBMS 256 | configuration: 257 | jdbcUrl: 'jdbc:h2:${sys:carbon.home}/wso2/${sys:wso2.runtime}/database/MESSAGE_TRACING_DB;AUTO_SERVER=TRUE' 258 | username: wso2carbon 259 | password: wso2carbon 260 | driverClassName: org.h2.Driver 261 | maxPoolSize: 30 262 | idleTimeout: 60000 263 | connectionTestQuery: SELECT 1 264 | validationTimeout: 30000 265 | isAutoCommit: false 266 | 267 | - name: WSO2_PERMISSIONS_DB 268 | description: The datasource used for dashboard feature 269 | jndiConfig: 270 | name: jdbc/PERMISSION_DB 271 | useJndiReference: true 272 | definition: 273 | type: RDBMS 274 | configuration: 275 | jdbcUrl: 'jdbc:h2:${sys:carbon.home}/wso2/${sys:wso2.runtime}/database/PERMISSION_DB;IFEXISTS=TRUE;DB_CLOSE_ON_EXIT=FALSE;LOCK_TIMEOUT=60000;MVCC=TRUE' 276 | username: wso2carbon 277 | password: wso2carbon 278 | driverClassName: org.h2.Driver 279 | maxPoolSize: 50 280 | idleTimeout: 60000 281 | connectionTestQuery: SELECT 1 282 | validationTimeout: 30000 283 | isAutoCommit: false 284 | 285 | wso2.status.dashboard: 286 | pollingInterval: 5 287 | metricsDatasourceName: 'WSO2_METRICS_DB' 288 | dashboardDatasourceName: 'WSO2_STATUS_DASHBOARD_DB' 289 | workerAccessCredentials: 290 | username: 'admin' 291 | password: 'admin' 292 | 293 | wso2.dashboard.datasearch: 294 | workerList: 295 | - localhost:9443 296 | workerAccessCredentials: 297 | username: admin 298 | password: admin 299 | 300 | wso2.transport.http: 301 | transportProperties: 302 | - name: "server.bootstrap.socket.timeout" 303 | value: 60 304 | - name: "client.bootstrap.socket.timeout" 305 | value: 60 306 | - name: "latency.metrics.enabled" 307 | value: true 308 | 309 | listenerConfigurations: 310 | - id: "default-https" 311 | host: "0.0.0.0" 312 | port: 9645 313 | scheme: https 314 | keyStoreFile: "${carbon.home}/resources/security/wso2carbon.jks" 315 | keyStorePassword: wso2carbon 316 | certPass: wso2carbon 317 | 318 | # Authentication configuration 319 | auth.configs: 320 | type: 'local' # Type of the IdP client used 321 | userManager: 322 | adminRole: admin # Admin role which is granted all permissions 323 | userStore: # User store 324 | users: 325 | - 326 | user: 327 | username: admin 328 | password: YWRtaW4= 329 | roles: 1 330 | roles: 331 | - 332 | role: 333 | id: 1 334 | displayName: admin 335 | 336 | -------------------------------------------------------------------------------- /modules/distribution/carbon-home/conf/portal/deployment.yaml: -------------------------------------------------------------------------------- 1 | ################################################################################ 2 | # Copyright (c) 2019, WSO2 Inc. (http://www.wso2.org) All Rights Reserved 3 | # 4 | # Licensed under the Apache License, Version 2.0 (the \"License\"); 5 | # you may not use this file except in compliance with the License. 6 | # You may obtain a copy of the License at 7 | # 8 | # http://www.apache.org/licenses/LICENSE-2.0 9 | # 10 | # Unless required by applicable law or agreed to in writing, software 11 | # distributed under the License is distributed on an \"AS IS\" BASIS, 12 | # WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 13 | # See the License for the specific language governing permissions and 14 | # limitations under the License. 15 | ################################################################################ 16 | 17 | # Carbon Configuration Parameters 18 | wso2.carbon: 19 | # value to uniquely identify a server 20 | id: wso2-sp 21 | # server name 22 | name: WSO2 Analytics Dashboard 23 | # server type 24 | type: wso2-sp 25 | # ports used by this server 26 | ports: 27 | # port offset 28 | offset: 2 29 | 30 | # Configuration used for the databridge communication 31 | databridge.config: 32 | # No of worker threads to consume events 33 | # THIS IS A MANDATORY FIELD 34 | workerThreads: 10 35 | # Maximum amount of messages that can be queued internally in MB 36 | # THIS IS A MANDATORY FIELD 37 | maxEventBufferCapacity: 10000000 38 | # Queue size; the maximum number of events that can be stored in the queue 39 | # THIS IS A MANDATORY FIELD 40 | eventBufferSize: 2000 41 | # Keystore file path 42 | # THIS IS A MANDATORY FIELD 43 | keyStoreLocation : ${sys:carbon.home}/resources/security/wso2carbon.jks 44 | # Keystore password 45 | # THIS IS A MANDATORY FIELD 46 | keyStorePassword : wso2carbon 47 | # Session Timeout value in mins 48 | # THIS IS A MANDATORY FIELD 49 | clientTimeoutMin: 30 50 | # Data receiver configurations 51 | # THIS IS A MANDATORY FIELD 52 | dataReceivers: 53 | - 54 | # Data receiver configuration 55 | dataReceiver: 56 | # Data receiver type 57 | # THIS IS A MANDATORY FIELD 58 | type: Thrift 59 | # Data receiver properties 60 | properties: 61 | tcpPort: '7611' 62 | sslPort: '7711' 63 | 64 | - 65 | # Data receiver configuration 66 | dataReceiver: 67 | # Data receiver type 68 | # THIS IS A MANDATORY FIELD 69 | type: Binary 70 | # Data receiver properties 71 | properties: 72 | tcpPort: '9611' 73 | sslPort: '9711' 74 | tcpReceiverThreadPoolSize: '100' 75 | sslReceiverThreadPoolSize: '100' 76 | hostName: 0.0.0.0 77 | 78 | # Configuration of the Data Agents - to publish events through databridge 79 | data.agent.config: 80 | # Data agent configurations 81 | # THIS IS A MANDATORY FIELD 82 | agents: 83 | - 84 | # Data agent configuration 85 | agentConfiguration: 86 | # Data agent name 87 | # THIS IS A MANDATORY FIELD 88 | name: Thrift 89 | # Data endpoint class 90 | # THIS IS A MANDATORY FIELD 91 | dataEndpointClass: org.wso2.carbon.databridge.agent.endpoint.thrift.ThriftDataEndpoint 92 | # Data publisher strategy 93 | publishingStrategy: async 94 | # Trust store path 95 | trustStorePath: '${sys:carbon.home}/resources/security/client-truststore.jks' 96 | # Trust store password 97 | trustStorePassword: 'wso2carbon' 98 | # Queue Size 99 | queueSize: 32768 100 | # Batch Size 101 | batchSize: 200 102 | # Core pool size 103 | corePoolSize: 1 104 | # Socket timeout in milliseconds 105 | socketTimeoutMS: 30000 106 | # Maximum pool size 107 | maxPoolSize: 1 108 | # Keep alive time in pool 109 | keepAliveTimeInPool: 20 110 | # Reconnection interval 111 | reconnectionInterval: 30 112 | # Max transport pool size 113 | maxTransportPoolSize: 250 114 | # Max idle connections 115 | maxIdleConnections: 250 116 | # Eviction time interval 117 | evictionTimePeriod: 5500 118 | # Min idle time in pool 119 | minIdleTimeInPool: 5000 120 | # Secure max transport pool size 121 | secureMaxTransportPoolSize: 250 122 | # Secure max idle connections 123 | secureMaxIdleConnections: 250 124 | # secure eviction time period 125 | secureEvictionTimePeriod: 5500 126 | # Secure min idle time in pool 127 | secureMinIdleTimeInPool: 5000 128 | # SSL enabled protocols 129 | sslEnabledProtocols: TLSv1.1,TLSv1.2 130 | # Ciphers 131 | ciphers: TLS_ECDHE_ECDSA_WITH_AES_128_CBC_SHA256,TLS_ECDHE_RSA_WITH_AES_128_CBC_SHA256,TLS_DHE_RSA_WITH_AES_128_CBC_SHA256,TLS_ECDHE_ECDSA_WITH_AES_128_CBC_SHA,TLS_ECDHE_RSA_WITH_AES_128_CBC_SHA,TLS_DHE_RSA_WITH_AES_128_CBC_SHA,TLS_ECDHE_ECDSA_WITH_AES_128_GCM_SHA256,TLS_ECDHE_RSA_WITH_AES_128_GCM_SHA256,TLS_DHE_RSA_WITH_AES_128_GCM_SHA256 132 | - 133 | # Data agent configuration 134 | agentConfiguration: 135 | # Data agent name 136 | # THIS IS A MANDATORY FIELD 137 | name: Binary 138 | # Data endpoint class 139 | # THIS IS A MANDATORY FIELD 140 | dataEndpointClass: org.wso2.carbon.databridge.agent.endpoint.binary.BinaryDataEndpoint 141 | # Data publisher strategy 142 | publishingStrategy: async 143 | # Trust store path 144 | trustStorePath: '${sys:carbon.home}/resources/security/client-truststore.jks' 145 | # Trust store password 146 | trustStorePassword: 'wso2carbon' 147 | # Queue Size 148 | queueSize: 32768 149 | # Batch Size 150 | batchSize: 200 151 | # Core pool size 152 | corePoolSize: 1 153 | # Socket timeout in milliseconds 154 | socketTimeoutMS: 30000 155 | # Maximum pool size 156 | maxPoolSize: 1 157 | # Keep alive time in pool 158 | keepAliveTimeInPool: 20 159 | # Reconnection interval 160 | reconnectionInterval: 30 161 | # Max transport pool size 162 | maxTransportPoolSize: 250 163 | # Max idle connections 164 | maxIdleConnections: 250 165 | # Eviction time interval 166 | evictionTimePeriod: 5500 167 | # Min idle time in pool 168 | minIdleTimeInPool: 5000 169 | # Secure max transport pool size 170 | secureMaxTransportPoolSize: 250 171 | # Secure max idle connections 172 | secureMaxIdleConnections: 250 173 | # secure eviction time period 174 | secureEvictionTimePeriod: 5500 175 | # Secure min idle time in pool 176 | secureMinIdleTimeInPool: 5000 177 | # SSL enabled protocols 178 | sslEnabledProtocols: TLSv1.1,TLSv1.2 179 | # Ciphers 180 | ciphers: TLS_ECDHE_ECDSA_WITH_AES_128_CBC_SHA256,TLS_ECDHE_RSA_WITH_AES_128_CBC_SHA256,TLS_DHE_RSA_WITH_AES_128_CBC_SHA256,TLS_ECDHE_ECDSA_WITH_AES_128_CBC_SHA,TLS_ECDHE_RSA_WITH_AES_128_CBC_SHA,TLS_DHE_RSA_WITH_AES_128_CBC_SHA,TLS_ECDHE_ECDSA_WITH_AES_128_GCM_SHA256,TLS_ECDHE_RSA_WITH_AES_128_GCM_SHA256,TLS_DHE_RSA_WITH_AES_128_GCM_SHA256 181 | 182 | # Deployment configuration parameters 183 | wso2.artifact.deployment: 184 | # Scheduler update interval 185 | updateInterval: 5 186 | 187 | # HA Configuration 188 | state.persistence: 189 | enabled: false 190 | intervalInMin: 1 191 | revisionsToKeep: 2 192 | persistenceStore: org.wso2.carbon.streaming.integrator.core.persistence.FileSystemPersistenceStore 193 | config: 194 | location: siddhi-app-persistence 195 | 196 | # Secure Vault Configuration 197 | wso2.securevault: 198 | secretRepository: 199 | type: org.wso2.carbon.secvault.repository.DefaultSecretRepository 200 | parameters: 201 | privateKeyAlias: wso2carbon 202 | keystoreLocation: ${sys:carbon.home}/resources/security/securevault.jks 203 | secretPropertiesFile: ${sys:carbon.home}/conf/${sys:wso2.runtime}/secrets.properties 204 | masterKeyReader: 205 | type: org.wso2.carbon.secvault.reader.DefaultMasterKeyReader 206 | parameters: 207 | masterKeyReaderFile: ${sys:carbon.home}/conf/${sys:wso2.runtime}/master-keys.yaml 208 | 209 | 210 | # Data Sources Configuration 211 | wso2.datasources: 212 | dataSources: 213 | # Dashboard data source 214 | - name: WSO2_DASHBOARD_DB 215 | description: The datasource used for dashboard feature 216 | jndiConfig: 217 | name: jdbc/DASHBOARD_DB 218 | useJndiReference: true 219 | definition: 220 | type: RDBMS 221 | configuration: 222 | jdbcUrl: 'jdbc:h2:${sys:carbon.home}/wso2/${sys:wso2.runtime}/database/DASHBOARD_DB;IFEXISTS=TRUE;DB_CLOSE_ON_EXIT=FALSE;LOCK_TIMEOUT=60000;MVCC=TRUE' 223 | username: wso2carbon 224 | password: wso2carbon 225 | driverClassName: org.h2.Driver 226 | maxPoolSize: 20 227 | idleTimeout: 60000 228 | connectionTestQuery: SELECT 1 229 | validationTimeout: 30000 230 | isAutoCommit: false 231 | 232 | - name: SAMPLE_DB 233 | description: Sample datasource used for gadgets generation wizard 234 | jndiConfig: 235 | name: jdbc/SAMPLE_DB 236 | useJndiReference: true 237 | definition: 238 | type: RDBMS 239 | configuration: 240 | jdbcUrl: 'jdbc:h2:${sys:carbon.home}/wso2/${sys:wso2.runtime}/database/SAMPLE_DB;IFEXISTS=TRUE;DB_CLOSE_ON_EXIT=FALSE;LOCK_TIMEOUT=60000;MVCC=TRUE' 241 | username: wso2carbon 242 | password: wso2carbon 243 | driverClassName: org.h2.Driver 244 | maxPoolSize: 10 245 | idleTimeout: 60000 246 | connectionTestQuery: SELECT 1 247 | validationTimeout: 30000 248 | isAutoCommit: false 249 | 250 | # carbon metrics data source 251 | - name: WSO2_METRICS_DB 252 | description: The datasource used for dashboard feature 253 | jndiConfig: 254 | name: jdbc/WSO2MetricsDB 255 | definition: 256 | type: RDBMS 257 | configuration: 258 | jdbcUrl: 'jdbc:h2:${sys:carbon.home}/wso2/${sys:wso2.runtime}/database/metrics;AUTO_SERVER=TRUE;DB_CLOSE_ON_EXIT=FALSE;LOCK_TIMEOUT=60000;' 259 | username: wso2carbon 260 | password: wso2carbon 261 | driverClassName: org.h2.Driver 262 | maxPoolSize: 20 263 | idleTimeout: 60000 264 | connectionTestQuery: SELECT 1 265 | validationTimeout: 30000 266 | isAutoCommit: false 267 | 268 | - name: WSO2_PERMISSIONS_DB 269 | description: The datasource used for dashboard feature 270 | jndiConfig: 271 | name: jdbc/PERMISSION_DB 272 | useJndiReference: true 273 | definition: 274 | type: RDBMS 275 | configuration: 276 | jdbcUrl: 'jdbc:h2:${sys:carbon.home}/wso2/${sys:wso2.runtime}/database/PERMISSION_DB;IFEXISTS=TRUE;DB_CLOSE_ON_EXIT=FALSE;LOCK_TIMEOUT=60000;MVCC=TRUE' 277 | username: wso2carbon 278 | password: wso2carbon 279 | driverClassName: org.h2.Driver 280 | maxPoolSize: 10 281 | idleTimeout: 60000 282 | connectionTestQuery: SELECT 1 283 | validationTimeout: 30000 284 | isAutoCommit: false 285 | - name: HTTP_ANALYTICS_DB 286 | description: The datasource used for HTTP Analytics dashboard 287 | jndiConfig: 288 | name: jdbc/HTTP_ANALYTICS_DB 289 | useJndiReference: false 290 | definition: 291 | type: RDBMS 292 | configuration: 293 | jdbcUrl: 'jdbc:h2:${sys:carbon.home}/wso2/${sys:wso2.runtime}/database/HTTP_ANALYTICS_DB;DB_CLOSE_ON_EXIT=FALSE;LOCK_TIMEOUT=60000;MVCC=TRUE;AUTO_SERVER=TRUE' 294 | username: wso2carbon 295 | password: wso2carbon 296 | driverClassName: org.h2.Driver 297 | maxPoolSize: 30 298 | idleTimeout: 60000 299 | connectionTestQuery: SELECT 1 300 | validationTimeout: 30000 301 | isAutoCommit: false 302 | - name: Twitter_Analytics 303 | description: The datasource used for Twitter Analytics dashboard 304 | jndiConfig: 305 | name: jdbc/Twitter_Analytics 306 | useJndiReference: false 307 | definition: 308 | type: RDBMS 309 | configuration: 310 | jdbcUrl: 'jdbc:h2:${sys:carbon.home}/wso2/${sys:wso2.runtime}/database/Twitter_Analytics;DB_CLOSE_ON_EXIT=FALSE;LOCK_TIMEOUT=60000;MVCC=TRUE;AUTO_SERVER=TRUE' 311 | username: wso2carbon 312 | password: wso2carbon 313 | driverClassName: org.h2.Driver 314 | maxPoolSize: 30 315 | idleTimeout: 60000 316 | connectionTestQuery: SELECT 1 317 | validationTimeout: 30000 318 | isAutoCommit: false 319 | - name: Message_Tracing_DB 320 | description: "The datasource used for message tracer to store span information." 321 | jndiConfig: 322 | name: jdbc/Message_Tracing_DB 323 | definition: 324 | type: RDBMS 325 | configuration: 326 | jdbcUrl: 'jdbc:h2:${sys:carbon.home}/wso2/${sys:wso2.runtime}/database/MESSAGE_TRACING_DB;AUTO_SERVER=TRUE' 327 | username: wso2carbon 328 | password: wso2carbon 329 | driverClassName: org.h2.Driver 330 | maxPoolSize: 30 331 | idleTimeout: 60000 332 | connectionTestQuery: SELECT 1 333 | validationTimeout: 30000 334 | isAutoCommit: false 335 | 336 | - name: IS_ANALYTICS_DB 337 | description: "The data source used for WSO2 IS Analytics statistics" 338 | jndiConfig: 339 | name: jdbc/IS_ANALYTICS_DB 340 | definition: 341 | type: RDBMS 342 | configuration: 343 | jdbcUrl: 'jdbc:h2:${sys:carbon.home}/wso2/${sys:wso2.runtime}/database/IS_ANALYTICS_DB;AUTO_SERVER=TRUE' 344 | username: wso2carbon 345 | password: wso2carbon 346 | driverClassName: org.h2.Driver 347 | maxPoolSize: 50 348 | idleTimeout: 60000 349 | validationTimeout: 30000 350 | isAutoCommit: false 351 | 352 | 353 | - name: EI_ANALYTICS 354 | description: "The datasource used for EI Analytics dashboard feature" 355 | jndiConfig: 356 | name: jdbc/EI_ANALYTICS 357 | definition: 358 | type: RDBMS 359 | configuration: 360 | jdbcUrl: 'jdbc:h2:${sys:carbon.home}/wso2/${sys:wso2.runtime}/database/EI_ANALYTICS;AUTO_SERVER=TRUE' 361 | username: wso2carbon 362 | password: wso2carbon 363 | driverClassName: org.h2.Driver 364 | maxPoolSize: 50 365 | idleTimeout: 60000 366 | connectionTestQuery: SELECT 1 367 | validationTimeout: 30000 368 | isAutoCommit: false 369 | 370 | #Data source for APIM Analytics 371 | - name: APIM_ANALYTICS_DB 372 | description: Datasource used for APIM Analytics 373 | jndiConfig: 374 | name: jdbc/APIM_ANALYTICS_DB 375 | definition: 376 | type: RDBMS 377 | configuration: 378 | jdbcUrl: 'jdbc:h2:${sys:carbon.home}/wso2/${sys:wso2.runtime}/database/WSO2AM_STATS_DB;AUTO_SERVER=TRUE' 379 | username: wso2carbon 380 | password: wso2carbon 381 | driverClassName: org.h2.Driver 382 | maxPoolSize: 50 383 | idleTimeout: 60000 384 | connectionTestQuery: SELECT 1 385 | validationTimeout: 30000 386 | isAutoCommit: false 387 | 388 | wso2.dashboard.datasearch: 389 | workerList: 390 | - localhost:9443 391 | workerAccessCredentials: 392 | username: admin 393 | password: admin 394 | 395 | wso2.transport.http: 396 | transportProperties: 397 | - name: "server.bootstrap.socket.timeout" 398 | value: 60 399 | - name: "client.bootstrap.socket.timeout" 400 | value: 60 401 | - name: "latency.metrics.enabled" 402 | value: true 403 | 404 | listenerConfigurations: 405 | - id: "default-https" 406 | host: "0.0.0.0" 407 | port: 9643 408 | scheme: https 409 | keyStoreFile: "${carbon.home}/resources/security/wso2carbon.jks" 410 | keyStorePassword: wso2carbon 411 | certPass: wso2carbon 412 | 413 | # Authentication configuration 414 | auth.configs: 415 | type: 'local' # Type of the IdP client used 416 | userManager: 417 | adminRole: admin # Admin role which is granted all permissions 418 | userStore: # User store 419 | users: 420 | - 421 | user: 422 | username: admin 423 | password: YWRtaW4= 424 | roles: 1 425 | roles: 426 | - 427 | role: 428 | id: 1 429 | displayName: admin 430 | -------------------------------------------------------------------------------- /modules/distribution/src/policies/public/js/libs/font-wso2_1.0.0/css/font-wso2.css: -------------------------------------------------------------------------------- 1 | /* 2 | ~ Copyright (c) WSO2 Inc. (http://wso2.com) All Rights Reserved. 3 | ~ 4 | ~ Licensed under the Apache License, Version 2.0 (the "License"); 5 | ~ you may not use this file except in compliance with the License. 6 | ~ You may obtain a copy of the License at 7 | ~ 8 | ~ http://www.apache.org/licenses/LICENSE-2.0 9 | ~ 10 | ~ Unless required by applicable law or agreed to in writing, software 11 | ~ distributed under the License is distributed on an "AS IS" BASIS, 12 | ~ WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 13 | ~ See the License for the specific language governing permissions and 14 | ~ limitations under the License. 15 | */ 16 | 17 | 18 | @font-face { 19 | font-family:"font-wso2"; 20 | src:local("font-wso2"), url("../fonts/font-wso2.eot?da6b3eebe240a78c9faa99e03425e31c"); 21 | src:local("font-wso2"), 22 | url("../fonts/font-wso2.eot?#iefix") format("embedded-opentype"), 23 | url("../fonts/font-wso2.woff?da6b3eebe240a78c9faa99e03425e31c") format("woff"), 24 | url("../fonts/font-wso2.ttf?da6b3eebe240a78c9faa99e03425e31c") format("truetype"), 25 | url("../fonts/font-wso2.svg?da6b3eebe240a78c9faa99e03425e31c#font-wso2") format("svg"); 26 | font-weight:normal; 27 | font-style:normal; 28 | } 29 | 30 | .fw, [class^="fw-"], [class*=" fw-"] { 31 | font: normal normal normal 14px/1 font-wso2; 32 | display:inline-block; 33 | vertical-align:middle; 34 | line-height:1; 35 | font-weight:normal; 36 | font-style:normal; 37 | font-size: inherit; 38 | font-variant: normal; 39 | speak:none; 40 | text-decoration:inherit; 41 | 42 | /* Better Font Rendering =========== */ 43 | text-transform:none; 44 | text-rendering:auto; 45 | -webkit-font-smoothing:antialiased; 46 | -moz-osx-font-smoothing:grayscale; 47 | } 48 | 49 | 50 | /* ======================================================================== 51 | * font options 52 | * ======================================================================== */ 53 | 54 | .fw-lg { 55 | font-size: 1.33333333em; 56 | line-height: 0.75em; 57 | vertical-align: -15%; 58 | } 59 | .fw-2x { 60 | font-size: 2em; 61 | } 62 | .fw-3x { 63 | font-size: 3em; 64 | } 65 | .fw-4x { 66 | font-size: 4em; 67 | } 68 | .fw-5x { 69 | font-size: 5em; 70 | } 71 | .fw-fw { 72 | width: 1.28571429em; 73 | text-align: center; 74 | } 75 | .fw-ul { 76 | padding-left: 0; 77 | margin-left: 2.14285714em; 78 | list-style-type: none; 79 | } 80 | .fw-ul > li { 81 | position: relative; 82 | } 83 | .fw-li { 84 | position: absolute; 85 | left: -2.14285714em; 86 | width: 2.14285714em; 87 | top: 0.14285714em; 88 | text-align: center; 89 | } 90 | .fw-li.fw-lg { 91 | left: -1.85714286em; 92 | } 93 | .fw-border { 94 | padding: .2em .25em .15em; 95 | border: solid 0.08em #eeeeee; 96 | border-radius: .1em; 97 | } 98 | .fw-background { 99 | background: #888; 100 | border-radius: .3em; 101 | padding: .4em .50em .45em; 102 | } 103 | .fw-pull-left { 104 | float: left; 105 | } 106 | .fw-pull-right { 107 | float: right; 108 | } 109 | .fw.fw-pull-left { 110 | margin-right: .3em; 111 | } 112 | .fw.fw-pull-right { 113 | margin-left: .3em; 114 | } 115 | .fw-spin { 116 | -webkit-animation: fw-spin 2s infinite linear; 117 | animation: fw-spin 2s infinite linear; 118 | } 119 | @-webkit-keyframes fw-spin { 120 | 0% { 121 | -webkit-transform: rotate(0deg); 122 | transform: rotate(0deg); 123 | } 124 | 100% { 125 | -webkit-transform: rotate(359deg); 126 | transform: rotate(359deg); 127 | } 128 | } 129 | @keyframes fw-spin { 130 | 0% { 131 | -webkit-transform: rotate(0deg); 132 | transform: rotate(0deg); 133 | } 134 | 100% { 135 | -webkit-transform: rotate(359deg); 136 | transform: rotate(359deg); 137 | } 138 | } 139 | .fw-pulse { 140 | -webkit-animation: fw-pulse 2s ease-out infinite; 141 | animation: fw-pulse 2s ease-out infinite; 142 | } 143 | @-webkit-keyframes fw-pulse { 144 | 0%, 30% { 145 | opacity: 0.3; 146 | } 147 | 40% { 148 | opacity: 1; 149 | } 150 | 100% { 151 | opacity: 0.3; 152 | } 153 | } 154 | @keyframes fw-pulse { 155 | 0%, 30% { 156 | opacity: 0.3; 157 | } 158 | 40% { 159 | opacity: 1; 160 | } 161 | 100% { 162 | opacity: 0.3; 163 | } 164 | } 165 | .fw-rotate-90 { 166 | filter: progid:DXImageTransform.Microsoft.BasicImage(rotation=1); 167 | -webkit-transform: rotate(90deg); 168 | -ms-transform: rotate(90deg); 169 | transform: rotate(90deg); 170 | } 171 | .fw-rotate-180 { 172 | filter: progid:DXImageTransform.Microsoft.BasicImage(rotation=2); 173 | -webkit-transform: rotate(180deg); 174 | -ms-transform: rotate(180deg); 175 | transform: rotate(180deg); 176 | } 177 | .fw-rotate-270 { 178 | filter: progid:DXImageTransform.Microsoft.BasicImage(rotation=3); 179 | -webkit-transform: rotate(270deg); 180 | -ms-transform: rotate(270deg); 181 | transform: rotate(270deg); 182 | } 183 | .fw-flip-horizontal { 184 | filter: progid:DXImageTransform.Microsoft.BasicImage(rotation=0, mirror=1); 185 | -webkit-transform: scale(-1, 1); 186 | -ms-transform: scale(-1, 1); 187 | transform: scale(-1, 1); 188 | } 189 | .fw-flip-vertical { 190 | filter: progid:DXImageTransform.Microsoft.BasicImage(rotation=2, mirror=1); 191 | -webkit-transform: scale(1, -1); 192 | -ms-transform: scale(1, -1); 193 | transform: scale(1, -1); 194 | } 195 | :root .fw-rotate-90, 196 | :root .fw-rotate-180, 197 | :root .fw-rotate-270, 198 | :root .fw-flip-horizontal, 199 | :root .fw-flip-vertical { 200 | filter: none; 201 | } 202 | .fw-stack { 203 | position: relative; 204 | display: inline-block; 205 | width: 2em; 206 | height: 2em; 207 | line-height: 2em; 208 | vertical-align: middle; 209 | } 210 | .fw-stack-1x, 211 | .fw-stack-2x { 212 | position: absolute; 213 | left: 0; 214 | width: 100%; 215 | text-align: center; 216 | } 217 | .fw-stack-1x { 218 | line-height: inherit; 219 | } 220 | .fw-stack-2x { 221 | font-size: 2em; 222 | } 223 | .fw-stack > .fw-stack { 224 | position: absolute; 225 | font-size: 0.5em; 226 | } 227 | .fw-stack > .fw-stack > .fw-stack-1x.fw-stroke { 228 | font-size: 1.1em; 229 | left: 0; 230 | top: 0; 231 | } 232 | .fw-stack > .fw-stack > .fw-stack-2x.fw-stroke { 233 | font-size: 2.3em; 234 | left: -0.07em; 235 | top: -0.07em; 236 | } 237 | .fw-stack > .fw-stack.fw-move-top { 238 | top: -0.2em; 239 | } 240 | .fw-stack > .fw-stack.fw-move-bottom { 241 | bottom: -0.2em; 242 | } 243 | .fw-stack > .fw.stack.fw-move-left { 244 | left: -0.5em; 245 | } 246 | .fw-stack > .fw-stack.fw-move-right { 247 | right: -0.5em; 248 | } 249 | .fw-inverse { 250 | color: #ffffff; 251 | } 252 | .fw-number { 253 | line-height: 1.8em; 254 | } 255 | 256 | 257 | /* ======================================================================== 258 | * font icons 259 | * ======================================================================== */ 260 | 261 | .fw-add:before { 262 | content:"\e615"; 263 | } 264 | 265 | .fw-airplay:before { 266 | content:"\e600"; 267 | } 268 | 269 | .fw-alarm:before { 270 | content:"\e6c2"; 271 | } 272 | 273 | .fw-alert:before { 274 | content:"\e6be"; 275 | } 276 | 277 | .fw-android:before { 278 | content:"\e606"; 279 | } 280 | 281 | .fw-api:before { 282 | content:"\e601"; 283 | } 284 | 285 | .fw-apn:before { 286 | content:"\e602"; 287 | } 288 | 289 | .fw-apple:before { 290 | content:"\e604"; 291 | } 292 | 293 | .fw-application:before { 294 | content:"\e608"; 295 | } 296 | 297 | .fw-arduino:before { 298 | content:"\e6ab"; 299 | } 300 | 301 | .fw-bar-chart:before { 302 | content:"\e690"; 303 | } 304 | 305 | .fw-battery:before { 306 | content:"\e60a"; 307 | } 308 | 309 | .fw-blank-document:before { 310 | content:"\e60c"; 311 | } 312 | 313 | .fw-block:before { 314 | content:"\e695"; 315 | } 316 | 317 | .fw-bookmark:before { 318 | content:"\e60d"; 319 | } 320 | 321 | .fw-bpel:before { 322 | content:"\e60e"; 323 | } 324 | 325 | .fw-bpmn:before { 326 | content:"\e60f"; 327 | } 328 | 329 | .fw-bug:before { 330 | content:"\e611"; 331 | } 332 | 333 | .fw-build:before { 334 | content:"\e6c1"; 335 | } 336 | 337 | .fw-calendar:before { 338 | content:"\e612"; 339 | } 340 | 341 | .fw-camera:before { 342 | content:"\e613"; 343 | } 344 | 345 | .fw-cancel:before { 346 | content:"\e618"; 347 | } 348 | 349 | .fw-chat:before { 350 | content:"\e65b"; 351 | } 352 | 353 | .fw-check:before { 354 | content:"\e617"; 355 | } 356 | 357 | .fw-checklist:before { 358 | content:"\e619"; 359 | } 360 | 361 | .fw-circle-outline:before { 362 | content:"\e61f"; 363 | } 364 | 365 | .fw-circle:before { 366 | content:"\e61a"; 367 | } 368 | 369 | .fw-clear:before { 370 | content:"\e61b"; 371 | } 372 | 373 | .fw-clock:before { 374 | content:"\e61d"; 375 | } 376 | 377 | .fw-cloud:before { 378 | content:"\e61e"; 379 | } 380 | 381 | .fw-compare:before { 382 | content:"\e610"; 383 | } 384 | 385 | .fw-computer:before { 386 | content:"\e653"; 387 | } 388 | 389 | .fw-configarations:before { 390 | content:"\e609"; 391 | } 392 | 393 | .fw-contact:before { 394 | content:"\e620"; 395 | } 396 | 397 | .fw-contract:before { 398 | content:"\e614"; 399 | } 400 | 401 | .fw-copy:before { 402 | content:"\e621"; 403 | } 404 | 405 | .fw-dashboard:before { 406 | content:"\e622"; 407 | } 408 | 409 | .fw-database:before { 410 | content:"\e623"; 411 | } 412 | 413 | .fw-delete:before { 414 | content:"\e624"; 415 | } 416 | 417 | .fw-deploy:before { 418 | content:"\e625"; 419 | } 420 | 421 | .fw-dial-up:before { 422 | content:"\e627"; 423 | } 424 | 425 | .fw-display:before { 426 | content:"\e626"; 427 | } 428 | 429 | .fw-document:before { 430 | content:"\e628"; 431 | } 432 | 433 | .fw-down-arrow:before { 434 | content:"\e689"; 435 | } 436 | 437 | .fw-down:before { 438 | content:"\e685"; 439 | } 440 | 441 | .fw-download:before { 442 | content:"\e65f"; 443 | } 444 | 445 | .fw-dss:before { 446 | content:"\e62a"; 447 | } 448 | 449 | .fw-ebook:before { 450 | content:"\e62b"; 451 | } 452 | 453 | .fw-edit:before { 454 | content:"\e62c"; 455 | } 456 | 457 | .fw-ellipsis:before { 458 | content:"\e629"; 459 | } 460 | 461 | .fw-endpoint:before { 462 | content:"\e62d"; 463 | } 464 | 465 | .fw-enterprise:before { 466 | content:"\e6b6"; 467 | } 468 | 469 | .fw-error:before { 470 | content:"\e630"; 471 | } 472 | 473 | .fw-expand:before { 474 | content:"\e61c"; 475 | } 476 | 477 | .fw-export:before { 478 | content:"\e631"; 479 | } 480 | 481 | .fw-factory-reset:before { 482 | content:"\e632"; 483 | } 484 | 485 | .fw-fan:before { 486 | content:"\e678"; 487 | } 488 | 489 | .fw-faq:before { 490 | content:"\e62f"; 491 | } 492 | 493 | .fw-file-browse:before { 494 | content:"\e633"; 495 | } 496 | 497 | .fw-filter:before { 498 | content:"\e634"; 499 | } 500 | 501 | .fw-folder:before { 502 | content:"\e62e"; 503 | } 504 | 505 | .fw-forum:before { 506 | content:"\e636"; 507 | } 508 | 509 | .fw-gadget:before { 510 | content:"\e637"; 511 | } 512 | 513 | .fw-globe:before { 514 | content:"\e697"; 515 | } 516 | 517 | .fw-grid:before { 518 | content:"\e638"; 519 | } 520 | 521 | .fw-grip:before { 522 | content:"\e6b7"; 523 | } 524 | 525 | .fw-group:before { 526 | content:"\e6af"; 527 | } 528 | 529 | .fw-hardware:before { 530 | content:"\e6a9"; 531 | } 532 | 533 | .fw-hdd:before { 534 | content:"\e639"; 535 | } 536 | 537 | .fw-heart:before { 538 | content:"\e6c3"; 539 | } 540 | 541 | .fw-home:before { 542 | content:"\e63a"; 543 | } 544 | 545 | .fw-hour-glass:before { 546 | content:"\e63b"; 547 | } 548 | 549 | .fw-html:before { 550 | content:"\e69d"; 551 | } 552 | 553 | .fw-import:before { 554 | content:"\e63c"; 555 | } 556 | 557 | .fw-incoming-call:before { 558 | content:"\e63d"; 559 | } 560 | 561 | .fw-info:before { 562 | content:"\e63e"; 563 | } 564 | 565 | .fw-invitation:before { 566 | content:"\e63f"; 567 | } 568 | 569 | .fw-jaggery:before { 570 | content:"\e640"; 571 | } 572 | 573 | .fw-java-spring:before { 574 | content:"\e644"; 575 | } 576 | 577 | .fw-java:before { 578 | content:"\e641"; 579 | } 580 | 581 | .fw-javaee:before { 582 | content:"\e642"; 583 | } 584 | 585 | .fw-javascript:before { 586 | content:"\e643"; 587 | } 588 | 589 | .fw-jaxrs:before { 590 | content:"\e645"; 591 | } 592 | 593 | .fw-jquery:before { 594 | content:"\e646"; 595 | } 596 | 597 | .fw-key:before { 598 | content:"\e647"; 599 | } 600 | 601 | .fw-laptop:before { 602 | content:"\e648"; 603 | } 604 | 605 | .fw-layout:before { 606 | content:"\e6bf"; 607 | } 608 | 609 | .fw-ldap:before { 610 | content:"\e649"; 611 | } 612 | 613 | .fw-left-arrow:before { 614 | content:"\e68a"; 615 | } 616 | 617 | .fw-left:before { 618 | content:"\e686"; 619 | } 620 | 621 | .fw-lifecycle:before { 622 | content:"\e64a"; 623 | } 624 | 625 | .fw-light:before { 626 | content:"\e680"; 627 | } 628 | 629 | .fw-list-sort:before { 630 | content:"\e64d"; 631 | } 632 | 633 | .fw-list:before { 634 | content:"\e64c"; 635 | } 636 | 637 | .fw-loader:before { 638 | content:"\e6b4"; 639 | } 640 | 641 | .fw-loader2:before { 642 | content:"\e6ba"; 643 | } 644 | 645 | .fw-loader3:before { 646 | content:"\e6bb"; 647 | } 648 | 649 | .fw-loader4:before { 650 | content:"\e6bc"; 651 | } 652 | 653 | .fw-loader5:before { 654 | content:"\e6bd"; 655 | } 656 | 657 | .fw-lock:before { 658 | content:"\e64e"; 659 | } 660 | 661 | .fw-mail:before { 662 | content:"\e64f"; 663 | } 664 | 665 | .fw-map-location:before { 666 | content:"\e650"; 667 | } 668 | 669 | .fw-menu:before { 670 | content:"\e651"; 671 | } 672 | 673 | .fw-message:before { 674 | content:"\e635"; 675 | } 676 | 677 | .fw-minus:before { 678 | content:"\e616"; 679 | } 680 | 681 | .fw-mobile:before { 682 | content:"\e652"; 683 | } 684 | 685 | .fw-ms-document:before { 686 | content:"\e654"; 687 | } 688 | 689 | .fw-mute:before { 690 | content:"\e655"; 691 | } 692 | 693 | .fw-nodejs:before { 694 | content:"\e656"; 695 | } 696 | 697 | .fw-notification:before { 698 | content:"\e60b"; 699 | } 700 | 701 | .fw-organization:before { 702 | content:"\e6ac"; 703 | } 704 | 705 | .fw-pages:before { 706 | content:"\e6c0"; 707 | } 708 | 709 | .fw-paste:before { 710 | content:"\e658"; 711 | } 712 | 713 | .fw-pdf:before { 714 | content:"\e659"; 715 | } 716 | 717 | .fw-pie-chart:before { 718 | content:"\e65a"; 719 | } 720 | 721 | .fw-policy:before { 722 | content:"\e67d"; 723 | } 724 | 725 | .fw-proxy:before { 726 | content:"\e699"; 727 | } 728 | 729 | .fw-public:before { 730 | content:"\e6ad"; 731 | } 732 | 733 | .fw-publish:before { 734 | content:"\e65c"; 735 | } 736 | 737 | .fw-question:before { 738 | content:"\e6b0"; 739 | } 740 | 741 | .fw-raspberry:before { 742 | content:"\e6aa"; 743 | } 744 | 745 | .fw-redo:before { 746 | content:"\e65d"; 747 | } 748 | 749 | .fw-refresh:before { 750 | content:"\e692"; 751 | } 752 | 753 | .fw-register:before { 754 | content:"\e65e"; 755 | } 756 | 757 | .fw-resource:before { 758 | content:"\e660"; 759 | } 760 | 761 | .fw-rest-api:before { 762 | content:"\e661"; 763 | } 764 | 765 | .fw-rest-service:before { 766 | content:"\e662"; 767 | } 768 | 769 | .fw-retweet:before { 770 | content:"\e6b9"; 771 | } 772 | 773 | .fw-right-arrow:before { 774 | content:"\e68b"; 775 | } 776 | 777 | .fw-right:before { 778 | content:"\e687"; 779 | } 780 | 781 | .fw-ringing:before { 782 | content:"\e694"; 783 | } 784 | 785 | .fw-rules:before { 786 | content:"\e664"; 787 | } 788 | 789 | .fw-save:before { 790 | content:"\e665"; 791 | } 792 | 793 | .fw-scep:before { 794 | content:"\e666"; 795 | } 796 | 797 | .fw-schema:before { 798 | content:"\e667"; 799 | } 800 | 801 | .fw-search:before { 802 | content:"\e668"; 803 | } 804 | 805 | .fw-security-policy:before { 806 | content:"\e67e"; 807 | } 808 | 809 | .fw-security:before { 810 | content:"\e669"; 811 | } 812 | 813 | .fw-send:before, .fw-paper-rocket:before { 814 | content:"\e66a"; 815 | } 816 | 817 | .fw-sequence:before { 818 | content:"\e66b"; 819 | } 820 | 821 | .fw-server:before { 822 | content:"\e66c"; 823 | } 824 | 825 | .fw-service-provider:before { 826 | content:"\e66e"; 827 | } 828 | 829 | .fw-service:before, .fw-cogwheels:before, .fw-gears:before { 830 | content:"\e66d"; 831 | } 832 | 833 | .fw-settings:before, .fw-cogwheel:before, .fw-gear:before { 834 | content:"\e66f"; 835 | } 836 | 837 | .fw-share:before { 838 | content:"\e670"; 839 | } 840 | 841 | .fw-sign-out:before { 842 | content:"\e6b8"; 843 | } 844 | 845 | .fw-sign-up:before { 846 | content:"\e671"; 847 | } 848 | 849 | .fw-soap:before { 850 | content:"\e672"; 851 | } 852 | 853 | .fw-sort-down:before { 854 | content:"\e663"; 855 | } 856 | 857 | .fw-sort-up:before { 858 | content:"\e64b"; 859 | } 860 | 861 | .fw-sort:before { 862 | content:"\e673"; 863 | } 864 | 865 | .fw-square-outline:before { 866 | content:"\e6b2"; 867 | } 868 | 869 | .fw-square:before { 870 | content:"\e6b1"; 871 | } 872 | 873 | .fw-star:before { 874 | content:"\e674"; 875 | } 876 | 877 | .fw-statistics:before { 878 | content:"\e675"; 879 | } 880 | 881 | .fw-store:before { 882 | content:"\e676"; 883 | } 884 | 885 | .fw-subscribe:before { 886 | content:"\e677"; 887 | } 888 | 889 | .fw-success:before { 890 | content:"\e657"; 891 | } 892 | 893 | .fw-swagger:before { 894 | content:"\e679"; 895 | } 896 | 897 | .fw-sync:before { 898 | content:"\e6b3"; 899 | } 900 | 901 | .fw-table:before { 902 | content:"\e6c4"; 903 | } 904 | 905 | .fw-tag:before { 906 | content:"\e67a"; 907 | } 908 | 909 | .fw-task:before { 910 | content:"\e67b"; 911 | } 912 | 913 | .fw-text:before { 914 | content:"\e67c"; 915 | } 916 | 917 | .fw-throttling-policy:before { 918 | content:"\e67f"; 919 | } 920 | 921 | .fw-tiles:before { 922 | content:"\e681"; 923 | } 924 | 925 | .fw-uncheck:before { 926 | content:"\e682"; 927 | } 928 | 929 | .fw-undo:before { 930 | content:"\e683"; 931 | } 932 | 933 | .fw-ungroup:before { 934 | content:"\e6b5"; 935 | } 936 | 937 | .fw-unmute:before { 938 | content:"\e6ae"; 939 | } 940 | 941 | .fw-up-arrow:before { 942 | content:"\e688"; 943 | } 944 | 945 | .fw-up:before { 946 | content:"\e684"; 947 | } 948 | 949 | .fw-upload:before { 950 | content:"\e68c"; 951 | } 952 | 953 | .fw-uri:before { 954 | content:"\e68d"; 955 | } 956 | 957 | .fw-usb-drive:before { 958 | content:"\e68e"; 959 | } 960 | 961 | .fw-user:before { 962 | content:"\e68f"; 963 | } 964 | 965 | .fw-view:before { 966 | content:"\e691"; 967 | } 968 | 969 | .fw-vpn:before { 970 | content:"\e603"; 971 | } 972 | 973 | .fw-wadl:before { 974 | content:"\e6a1"; 975 | } 976 | 977 | .fw-war:before { 978 | content:"\e69e"; 979 | } 980 | 981 | .fw-warning:before { 982 | content:"\e693"; 983 | } 984 | 985 | .fw-web-app:before { 986 | content:"\e696"; 987 | } 988 | 989 | .fw-web-clip:before { 990 | content:"\e698"; 991 | } 992 | 993 | .fw-web-service:before { 994 | content:"\e69a"; 995 | } 996 | 997 | .fw-website:before { 998 | content:"\e69b"; 999 | } 1000 | 1001 | .fw-wifi:before { 1002 | content:"\e607"; 1003 | } 1004 | 1005 | .fw-windows:before { 1006 | content:"\e605"; 1007 | } 1008 | 1009 | .fw-wsdl:before { 1010 | content:"\e6a0"; 1011 | } 1012 | 1013 | .fw-wso2-logo:before { 1014 | content:"\e6a7"; 1015 | } 1016 | 1017 | .fw-wso2:before { 1018 | content:"\e6a8"; 1019 | } 1020 | 1021 | .fw-xacml:before { 1022 | content:"\e69f"; 1023 | } 1024 | 1025 | .fw-xml:before { 1026 | content:"\e69c"; 1027 | } 1028 | 1029 | .fw-xq:before { 1030 | content:"\e6a2"; 1031 | } 1032 | 1033 | .fw-xsd:before { 1034 | content:"\e6a3"; 1035 | } 1036 | 1037 | .fw-xslt:before { 1038 | content:"\e6a4"; 1039 | } 1040 | 1041 | .fw-zoom-in:before { 1042 | content:"\e6a5"; 1043 | } 1044 | 1045 | .fw-zoom-out:before { 1046 | content:"\e6a6"; 1047 | } 1048 | 1049 | --------------------------------------------------------------------------------