├── schema.sql
├── .dockerignore
├── docker-compose.simple.yml
├── Dockerfile.user.example
├── hooks
├── pre_build
├── post_checkout
├── build
└── post_push
├── NOTICE
├── docker-compose.kerberos.yml
├── docker-compose.github.yml
├── python
└── swapcase.py
├── docker-compose.twowayssl.yml
├── conf
├── 0.5.0
│ ├── registry-aliases.xml
│ ├── bootstrap.conf
│ ├── nifi-registry.properties
│ ├── providers.xml
│ ├── identity-providers.xml
│ ├── logback.xml
│ └── authorizers.xml
├── 0.6.0
│ ├── registry-aliases.xml
│ ├── bootstrap.conf
│ ├── nifi-registry.properties
│ ├── providers.xml
│ ├── identity-providers.xml
│ ├── logback.xml
│ └── authorizers.xml
├── 0.7.0
│ ├── registry-aliases.xml
│ ├── bootstrap.conf
│ ├── nifi-registry.properties
│ ├── providers.xml
│ ├── identity-providers.xml
│ └── logback.xml
└── 0.8.0
│ ├── registry-aliases.xml
│ ├── bootstrap.conf
│ ├── nifi-registry.properties
│ ├── providers.xml
│ ├── identity-providers.xml
│ └── logback.xml
├── docker-compose.ldap.yml
├── docker-compose.mysql.yml
├── docker-compose.postgres.yml
├── docker-compose.mariadb.yml
├── RELEASE_NOTES.md
├── .gitignore
├── templates
├── bootstrap.conf.gotemplate
├── providers.xml.gotemplate
├── identity-providers.xml.gotemplate
└── nifi-registry.properties.gotemplate
├── sh
├── start-plain.sh
└── start.sh
├── Dockerfile
└── LICENSE
/schema.sql:
--------------------------------------------------------------------------------
1 | CREATE DATABASE db;
2 |
--------------------------------------------------------------------------------
/.dockerignore:
--------------------------------------------------------------------------------
1 | conf/
2 | python/
3 | hooks/
4 |
--------------------------------------------------------------------------------
/docker-compose.simple.yml:
--------------------------------------------------------------------------------
1 | version: "3.7"
2 |
3 | services:
4 | nifi-registry:
5 | image: michalklempa/nifi-registry
6 | ports:
7 | - target: 18080
8 | published: 18080
9 | protocol: tcp
10 | mode: host
11 |
--------------------------------------------------------------------------------
/Dockerfile.user.example:
--------------------------------------------------------------------------------
1 | FROM michalklempa/nifi-registry:latest.plain
2 | ARG UID=1000
3 | ARG GID=1000
4 |
5 | RUN addgroup -g ${GID} nifi \
6 | && adduser -s /bin/bash -u ${UID} -G nifi -D nifi \
7 | && chown -R nifi:nifi ${PROJECT_BASE_DIR}
8 | USER nifi
--------------------------------------------------------------------------------
/hooks/pre_build:
--------------------------------------------------------------------------------
1 | #!/bin/bash
2 | # thanks https://github.com/se1exin/
3 | # Register qemu-*-static for all supported processors except the
4 | # current one, but also remove all registered binfmt_misc before
5 |
6 | docker run --rm --privileged multiarch/qemu-user-static:register --reset
7 |
--------------------------------------------------------------------------------
/hooks/post_checkout:
--------------------------------------------------------------------------------
1 | #!/bin/bash
2 | # hooks/post_checkout
3 | # https://docs.docker.com/docker-cloud/builds/advanced/
4 |
5 | if [ -f $(git rev-parse --git-dir)/shallow ]; then
6 | echo "[***] Unshallowing to get correct tags to work."
7 | git fetch --tags --unshallow --quiet origin
8 | else
9 | echo "[***] Not a shallow repository."
10 | fi
11 |
--------------------------------------------------------------------------------
/NOTICE:
--------------------------------------------------------------------------------
1 | Unofficial Docker Image For NiFi Registry
2 | Copyright 2019 Michal Klempa
3 |
4 | This product includes software developed at
5 | The Apache Software Foundation (http://www.apache.org/).
6 |
7 | This includes derived works from the Apache NiFi Registry (ASLv2 licensed) project (https://git-wip-us.apache.org/repos/asf?p=nifi-registry.git):
8 | Copyright 2014-2018 The Apache Software Foundation
9 | This includes sources for configuration, Dockerfile
--------------------------------------------------------------------------------
/docker-compose.kerberos.yml:
--------------------------------------------------------------------------------
1 | version: "3.7"
2 |
3 | services:
4 | nifi-registry:
5 | image: michalklempa/nifi-registry
6 | ports:
7 | - target: 18080
8 | published: 18080
9 | protocol: tcp
10 | mode: host
11 | environment:
12 | INITIAL_ADMIN_IDENTITY: cn=nifi-admin,dc=example,dc=org
13 | NIFI_REGISTRY_SECURITY_IDENTITY_PROVIDER: kerberos-identity-provider
14 | NIFI_REGISTRY_SECURITY_NEEDcLIENTaUTH: false
15 |
--------------------------------------------------------------------------------
/docker-compose.github.yml:
--------------------------------------------------------------------------------
1 | version: "3.7"
2 |
3 | services:
4 | nifi-registry:
5 | image: michalklempa/nifi-registry
6 | volumes:
7 | - ~/.ssh:/home/nifi/.ssh
8 | ports:
9 | - target: 18080
10 | published: 18080
11 | protocol: tcp
12 | mode: host
13 | environment:
14 | DEBUG: 1
15 | FLOW_PROVIDER: git
16 | GIT_REMOTE_URL: git@github.com:michalklempa/docker-nifi-registry-example-flow.git
17 | GIT_CHECKOUT_BRANCH: example
18 | FLOW_PROVIDER_GIT_FLOW_STORAGE_DIRECTORY: /opt/nifi-registry/flow-storage-git
19 | FLOW_PROVIDER_GIT_REMOTE_TO_PUSH: origin
20 | GIT_CONFIG_USER_NAME: 'Michal Klempa'
21 | GIT_CONFIG_USER_EMAIL: michal.klempa@gmail.com
22 |
--------------------------------------------------------------------------------
/python/swapcase.py:
--------------------------------------------------------------------------------
1 | #!/usr/bin/env python2
2 |
3 | import sys
4 |
5 | prefix = sys.argv[1] if len(sys.argv) > 1 else ''
6 |
7 | for line in sys.stdin:
8 | if not line or line.isspace():
9 | sys.stdout.write(line)
10 | elif line.startswith('#') and '=' in line and line[1] != ' ':
11 | (key, value) = line[1:].split('=', 1)
12 | sys.stdout.write(line)
13 | sys.stdout.write('{{{{ if .Env.{}{} -}}}}\n'.format(prefix, key.swapcase().replace('.', '_')));
14 | sys.stdout.write('{}={{{{ .Env.{}{} }}}}\n'.format(key, prefix, key.swapcase().replace('.', '_') ))
15 | sys.stdout.write('{{- end }}\n')
16 | elif line.startswith('#'):
17 | sys.stdout.write(line)
18 | elif '=' in line:
19 | (key, value) = line.split('=', 1)
20 | sys.stdout.write('{}={{{{ default .Env.{}{} "{}" }}}}\n'.format(key, prefix, key.swapcase().replace('.', '_'), value.rstrip('\n') ))
21 | else:
22 | print 'omg', line
23 |
24 | sys.stdout.flush()
25 |
--------------------------------------------------------------------------------
/docker-compose.twowayssl.yml:
--------------------------------------------------------------------------------
1 | version: "3.7"
2 |
3 | services:
4 | nifi-registry:
5 | image: michalklempa/nifi-registry
6 | volumes:
7 | - ./keystore.jks:/opt/certs/keystore.jks
8 | - ./truststore.jks:/opt/certs/truststore.jks
9 | ports:
10 | - target: 18443
11 | published: 18443
12 | protocol: tcp
13 | mode: host
14 | environment:
15 | NIFI_REGISTRY_SECURITY_KEYSTORE: /opt/certs/keystore.jks
16 | NIFI_REGISTRY_SECURITY_KEYSTOREtYPE: JKS
17 | NIFI_REGISTRY_SECURITY_KEYSTOREpASSWD: QKZv1hSWAFQYZ+WU1jjF5ank+l4igeOfQRp+OSbkkrs
18 | NIFI_REGISTRY_SECURITY_TRUSTSTORE: /opt/certs/truststore.jks
19 | NIFI_REGISTRY_SECURITY_TRUSTSTOREtYPE: JKS
20 | NIFI_REGISTRY_SECURITY_TRUSTSTOREpASSWD: rHkWR1gDNW3R9hgbeRsT3OM3Ue0zwGtQqcFKJD2EXWE
21 | NIFI_REGISTRY_SECURITY_NEEDcLIENTaUTH: true
22 | NIFI_REGISTRY_WEB_HTTP_HOST:
23 | NIFI_REGISTRY_WEB_HTTP_PORT:
24 | NIFI_REGISTRY_WEB_HTTPS_HOST: 0.0.0.0
25 | NIFI_REGISTRY_WEB_HTTPS_PORT: 18443
26 | INITIAL_ADMIN_IDENTITY: CN=AdminUser, OU=nifi
--------------------------------------------------------------------------------
/conf/0.5.0/registry-aliases.xml:
--------------------------------------------------------------------------------
1 |
2 |
16 |
17 |
23 |
--------------------------------------------------------------------------------
/conf/0.6.0/registry-aliases.xml:
--------------------------------------------------------------------------------
1 |
2 |
16 |
17 |
23 |
--------------------------------------------------------------------------------
/conf/0.7.0/registry-aliases.xml:
--------------------------------------------------------------------------------
1 |
2 |
16 |
17 |
23 |
--------------------------------------------------------------------------------
/conf/0.8.0/registry-aliases.xml:
--------------------------------------------------------------------------------
1 |
2 |
16 |
17 |
23 |
--------------------------------------------------------------------------------
/hooks/build:
--------------------------------------------------------------------------------
1 | #!/bin/bash
2 | # hooks/build
3 | # https://docs.docker.com/docker-cloud/builds/advanced/
4 | # this file is from https://github.com/jnovack/dockerhub-hooks
5 |
6 | # $IMAGE_NAME var is injected into the build so the tag is correct.
7 | echo "[***] Build hook running"
8 | echo "Docker Tag: $DOCKER_TAG"
9 |
10 | echo "Flavour 1: $FLAVOUR"
11 | if [[ -z "${FLAVOUR}" ]]; then
12 | FLAVOUR=`echo ${DOCKER_TAG} | awk -F'-' '{print $2}' | awk -F'.' '{print $2}'`
13 | fi
14 | echo "Flavour 2: $FLAVOUR"
15 |
16 | if [[ -z "${UPSTREAM_VERSION}" ]]; then
17 | UPSTREAM_VERSION=`echo ${DOCKER_TAG} | awk -F'-' '{print $1}' | sed 's/latest//'`
18 | fi
19 | echo "Upstream version: $UPSTREAM_VERSION"
20 |
21 | docker build \
22 | --build-arg BUILD_RFC3339='"$(date -u +"%Y-%m-%dT%H:%M:%SZ")"' \
23 | --build-arg COMMIT=$(git rev-parse --short HEAD) \
24 | --build-arg VERSION=$(git describe --tags --always) \
25 | --build-arg UPSTREAM_VERSION=${UPSTREAM_VERSION:-0.8.0} \
26 | --build-arg 'MIRROR='"${MIRROR:-https://archive.apache.org/dist}"'' \
27 | --target ${FLAVOUR:-defaultuser} \
28 | -f $DOCKERFILE_PATH \
29 | -t $DOCKER_REPO:$DOCKER_TAG .
30 |
--------------------------------------------------------------------------------
/docker-compose.ldap.yml:
--------------------------------------------------------------------------------
1 | version: "3.7"
2 |
3 | services:
4 | nifi-registry:
5 | image: michalklempa/nifi-registry
6 | volumes:
7 | - ./keystore.jks:/opt/certs/keystore.jks
8 | - ./truststore.jks:/opt/certs/truststore.jks
9 | ports:
10 | - target: 18443
11 | published: 18443
12 | protocol: tcp
13 | mode: host
14 | environment:
15 | NIFI_REGISTRY_SECURITY_KEYSTORE: /opt/certs/keystore.jks
16 | NIFI_REGISTRY_SECURITY_KEYSTOREtYPE: JKS
17 | NIFI_REGISTRY_SECURITY_KEYSTOREpASSWD: QKZv1hSWAFQYZ+WU1jjF5ank+l4igeOfQRp+OSbkkrs
18 | NIFI_REGISTRY_SECURITY_TRUSTSTORE: /opt/certs/truststore.jks
19 | NIFI_REGISTRY_SECURITY_TRUSTSTOREtYPE: JKS
20 | NIFI_REGISTRY_SECURITY_TRUSTSTOREpASSWD: rHkWR1gDNW3R9hgbeRsT3OM3Ue0zwGtQqcFKJD2EXWE
21 | NIFI_REGISTRY_WEB_HTTP_HOST:
22 | NIFI_REGISTRY_WEB_HTTP_PORT:
23 | NIFI_REGISTRY_WEB_HTTPS_HOST: 0.0.0.0
24 | NIFI_REGISTRY_WEB_HTTPS_PORT: 18443
25 | INITIAL_ADMIN_IDENTITY: cn=nifi-admin,dc=example,dc=org
26 | NIFI_REGISTRY_SECURITY_IDENTITY_PROVIDER: ldap-identity-provider
27 | NIFI_REGISTRY_SECURITY_NEEDcLIENTaUTH: false
28 | LDAP_AUTHENTICATION_STRATEGY: SIMPLE
29 | LDAP_MANAGER_DN: cn=ldap-admin,dc=example,dc=org
30 | LDAP_MANAGER_PASSWORD: password
31 | LDAP_USER_SEARCH_BASE: dc=example,dc=org
32 | LDAP_USER_SEARCH_FILTER: cn={0}
33 | LDAP_IDENTITY_STRATEGY: USE_DN
34 | LDAP_URL: ldap://ldap:389
35 |
--------------------------------------------------------------------------------
/docker-compose.mysql.yml:
--------------------------------------------------------------------------------
1 | version: "3.7"
2 |
3 | services:
4 | nifi-registry:
5 | image: michalklempa/nifi-registry
6 | depends_on:
7 | - database
8 | # see https://dev.mysql.com/downloads/connector/j/
9 | volumes:
10 | - ./mysql-connector-java-5.1.47.jar:/opt/nifi-registry/libs/mysql-connector-java-5.1.47.jar
11 | ports:
12 | - target: 18080
13 | published: 18080
14 | protocol: tcp
15 | mode: host
16 | command: dockerize -timeout 60s -wait tcp://database:3306 /opt/nifi-registry/scripts/start.sh
17 | networks:
18 | - nifi-registry-network
19 | environment:
20 | NIFI_REGISTRY_DB_URL: jdbc:mysql://database:3306/db
21 | NIFI_REGISTRY_DB_DRIVER_CLASS: com.mysql.jdbc.Driver
22 | NIFI_REGISTRY_DB_DRIVER_DIRECTORY: /opt/nifi-registry/libs/
23 | NIFI_REGISTRY_DB_USERNAME: root
24 | NIFI_REGISTRY_DB_PASSWORD: myPassword
25 |
26 | # see https://hub.docker.com/_/mysql?tab=description
27 | # see https://flywaydb.org/documentation/database/mysql
28 | database:
29 | image: mysql:8
30 | ports:
31 | - target: 3306
32 | published: 3306
33 | protocol: tcp
34 | mode: host
35 | networks:
36 | - nifi-registry-network
37 | environment:
38 | MYSQL_ROOT_PASSWORD: myPassword
39 | MYSQL_DATABASE: db
40 |
41 | networks:
42 | nifi-registry-network:
43 | name: nifi-registry-network
44 | ipam:
45 | driver: default
46 | config:
47 | - subnet: 192.168.0.0/24
--------------------------------------------------------------------------------
/docker-compose.postgres.yml:
--------------------------------------------------------------------------------
1 | version: "3.7"
2 |
3 | services:
4 | nifi-registry:
5 | image: michalklempa/nifi-registry
6 | depends_on:
7 | - database
8 | # see https://jdbc.postgresql.org/download.html
9 | volumes:
10 | - ./postgresql-42.2.5.jar:/opt/nifi-registry/libs/postgresql-42.2.5.jar
11 | ports:
12 | - target: 18080
13 | published: 18080
14 | protocol: tcp
15 | mode: host
16 | command: dockerize -timeout 60s -wait tcp://database:5432 /opt/nifi-registry/scripts/start.sh
17 | networks:
18 | - nifi-registry-network
19 | environment:
20 | NIFI_REGISTRY_DB_URL: jdbc:postgresql://database:5432/db
21 | NIFI_REGISTRY_DB_DRIVER_CLASS: org.postgresql.Driver
22 | NIFI_REGISTRY_DB_DRIVER_DIRECTORY: /opt/nifi-registry/libs/
23 | NIFI_REGISTRY_DB_USERNAME: postgres
24 | NIFI_REGISTRY_DB_PASSWORD: myPassword
25 |
26 | # see https://hub.docker.com/_/postgres
27 | # see https://flywaydb.org/documentation/database/postgresql
28 | database:
29 | image: postgres:10
30 | ports:
31 | - target: 5432
32 | published: 5432
33 | protocol: tcp
34 | mode: host
35 | networks:
36 | - nifi-registry-network
37 | volumes:
38 | - type: bind
39 | source: ./schema.sql
40 | target: /docker-entrypoint-initdb.d/schema.sql
41 | environment:
42 | POSTGRES_PASSWORD: myPassword
43 |
44 | networks:
45 | nifi-registry-network:
46 | name: nifi-registry-network
47 | ipam:
48 | driver: default
49 | config:
50 | - subnet: 192.168.0.0/24
--------------------------------------------------------------------------------
/docker-compose.mariadb.yml:
--------------------------------------------------------------------------------
1 | version: "3.7"
2 |
3 | services:
4 | nifi-registry:
5 | image: michalklempa/nifi-registry
6 | depends_on:
7 | - database
8 | # see https://downloads.mariadb.com/Connectors/java/connector-java-2.3.0/
9 | volumes:
10 | - ./mariadb-java-client-2.3.0.jar:/opt/nifi-registry/libs/mariadb-java-client-2.3.0.jar
11 | ports:
12 | - target: 18080
13 | published: 18080
14 | protocol: tcp
15 | mode: host
16 | command: dockerize -timeout 60s -wait tcp://database:3306 /opt/nifi-registry/scripts/start.sh
17 | networks:
18 | - nifi-registry-network
19 | environment:
20 | NIFI_REGISTRY_DB_URL: jdbc:mariadb://database:3306/db
21 | NIFI_REGISTRY_DB_DRIVER_CLASS: org.mariadb.jdbc.Driver
22 | NIFI_REGISTRY_DB_DRIVER_DIRECTORY: /opt/nifi-registry/libs/
23 | NIFI_REGISTRY_DB_USERNAME: root
24 | NIFI_REGISTRY_DB_PASSWORD: myPassword
25 |
26 | # see https://hub.docker.com/_/mariadb
27 | # see https://flywaydb.org/documentation/database/mariadb
28 | database:
29 | image: mariadb:10.3.9-bionic
30 | ports:
31 | - target: 3306
32 | published: 3306
33 | protocol: tcp
34 | mode: host
35 | networks:
36 | - nifi-registry-network
37 | volumes:
38 | - type: bind
39 | source: ./mariadb_sql
40 | target: /docker-entrypoint-initdb.d
41 | environment:
42 | MYSQL_ROOT_PASSWORD: myPassword
43 |
44 | networks:
45 | nifi-registry-network:
46 | name: nifi-registry-network
47 | ipam:
48 | driver: default
49 | config:
50 | - subnet: 192.168.0.0/24
--------------------------------------------------------------------------------
/hooks/post_push:
--------------------------------------------------------------------------------
1 | #!/bin/bash
2 | # hooks/post_push
3 | # https://docs.docker.com/docker-cloud/builds/advanced/
4 | # https://semver.org/
5 |
6 | function add_tag() {
7 | echo "[***] Adding tag ${1}"
8 | docker tag $IMAGE_NAME $DOCKER_REPO:$1
9 | docker push $DOCKER_REPO:$1
10 | }
11 |
12 | TAG=$DOCKER_TAG
13 | # `git describe --tag --match "v*"`
14 |
15 | # Optional Kill Switch for only pushing 'latest', not any prior release versions
16 | # -- comment this out if you want to always update release tags on every push (not recommended)
17 | KILL=`echo ${TAG} | awk -F'-' '{print $3}'`
18 | if [ ! -z $KILL ]; then exit 0; fi
19 |
20 | # Extract versions
21 | MAJOR=`echo ${TAG} | awk -F'-' '{print $1}' | awk -F'.' '{print $1}' | sed 's/v//'`
22 | MINOR=`echo ${TAG} | awk -F'-' '{print $1}' | awk -F'.' '{print $2}' | sed 's/v//'`
23 | PATCH=`echo ${TAG} | awk -F'-' '{print $1}' | awk -F'.' '{print $3}' | sed 's/v//'`
24 | PRLS=`echo ${TAG} | awk -F'-' '{print $2}' | awk -F'.' '{print $2}'`
25 |
26 | num='^[0-9_]+$'
27 | pre='^[0-9A-Za-z.]+$'
28 |
29 | echo "[***] Current Build: ${TAG}"
30 |
31 | if [ ! -z $MAJOR ] && [[ $MAJOR =~ $num ]]; then
32 | add_tag ${MAJOR}${PRLS:+-$PRLS}
33 |
34 | if [ ! -z $MINOR ] && [[ $MINOR =~ $num ]]; then
35 | add_tag ${MAJOR}.${MINOR}${PRLS:+-$PRLS}
36 |
37 | if [ ! -z $PATCH ] && [[ $PATCH =~ $num ]]; then
38 | add_tag ${MAJOR}.${MINOR}.${PATCH}${PRLS:+-$PRLS}
39 |
40 | if [ ! -z $PRLS ] && [[ ! $PRLS =~ $num ]] && [[ $PRLS =~ $pre ]]; then
41 | add_tag ${MAJOR}.${MINOR}.${PATCH}-${PRLS}
42 | fi
43 | fi
44 | fi
45 | fi
46 |
47 | exit $?
48 |
--------------------------------------------------------------------------------
/RELEASE_NOTES.md:
--------------------------------------------------------------------------------
1 | # Unofficial Docker Image For NiFi Registry
2 |
3 | ## Release notes
4 |
5 |
6 |
7 | **Table of Contents** *generated with [DocToc](https://github.com/thlorenz/doctoc)*
8 |
9 | - [NiFi Registry 0.4.0](#nifi-registry-040)
10 |
11 |
12 |
13 | ## NiFi Registry 0.4.0
14 | - Added templating for [Bundle Persistence Providers](README.md#bundle-persistence-providers-configuration)
15 |
16 | ## NiFi Registry 0.5.0
17 | - Added templating for [org.apache.nifi.registry.provider.flow.DatabaseFlowPersistenceProvider](README.md#)
18 |
19 | ## NiFi Registry 0.5.0 (0.5.0-03.plain and 0.5.0-03)
20 | - Added -plain flavored images, these do not set UIG:GID (nifi:nifi) and do not render any config templates. Suitable for k8s deployments.
21 |
22 | ## NiFi Registry 0.6.0
23 | - Added -plain, -default flavored images
24 | - 0.6.0-plain: no UID:GID set (running as root), env var templating TURNED OFF.
25 | - 0.6.0-default: no UID:GID set (running as root), ENV var templating is done
26 | - 0.6.0: UID:GID set to nifi:nifi (1000:1000), ENV var templating is done
27 |
28 | ## NiFi Registry 0.7.0
29 | - upstream added possibility to clone repo (default branch), which we kindly ignore
30 |
31 | ## NiFi Registry 0.8.0
32 | - new `nifi-registry.properties`:
33 | ```
34 | # OIDC #
35 | nifi.registry.security.user.oidc.discovery.url=
36 | nifi.registry.security.user.oidc.connect.timeout=
37 | nifi.registry.security.user.oidc.read.timeout=
38 | nifi.registry.security.user.oidc.client.id=
39 | nifi.registry.security.user.oidc.client.secret=
40 | nifi.registry.security.user.oidc.preferred.jwsalgorithm=
41 | ```
42 | - new `DatabaseUserGroupProvider` in `authorizers.xml`, since we do not template this file, we ignore
--------------------------------------------------------------------------------
/conf/0.5.0/bootstrap.conf:
--------------------------------------------------------------------------------
1 | #
2 | # Licensed to the Apache Software Foundation (ASF) under one or more
3 | # contributor license agreements. See the NOTICE file distributed with
4 | # this work for additional information regarding copyright ownership.
5 | # The ASF licenses this file to You under the Apache License, Version 2.0
6 | # (the "License"); you may not use this file except in compliance with
7 | # the License. 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 | # Java command to use when running nifi-registry
19 | java=java
20 |
21 | # Username to use when running nifi-registry. This value will be ignored on Windows.
22 | run.as=
23 |
24 | # Configure the working directory for launching the NiFi Registry process
25 | # If not specified, the working directory will fall back to using the NIFI_REGISTRY_HOME env variable
26 | # If the environment variable is not specified, the working directory will fall back to the parent of this file's parent
27 | working.dir=
28 |
29 | # Configure where nifi-registry's lib and conf directories live
30 | lib.dir=./lib
31 | conf.dir=./conf
32 | docs.dir=./docs
33 |
34 | # How long to wait after telling nifi-registry to shutdown before explicitly killing the Process
35 | graceful.shutdown.seconds=20
36 |
37 | # Disable JSR 199 so that we can use JSP's without running a JDK
38 | java.arg.1=-Dorg.apache.jasper.compiler.disablejsr199=true
39 |
40 | # JVM memory settings
41 | java.arg.2=-Xms512m
42 | java.arg.3=-Xmx512m
43 |
44 | # Enable Remote Debugging
45 | #java.arg.debug=-agentlib:jdwp=transport=dt_socket,server=y,suspend=n,address=8000
46 |
47 | java.arg.4=-Djava.net.preferIPv4Stack=true
48 |
49 | # allowRestrictedHeaders is required for Cluster/Node communications to work properly
50 | java.arg.5=-Dsun.net.http.allowRestrictedHeaders=true
51 | java.arg.6=-Djava.protocol.handler.pkgs=sun.net.www.protocol
52 |
53 | # Master key in hexadecimal format for encrypted sensitive configuration values
54 | nifi.registry.bootstrap.sensitive.key=
--------------------------------------------------------------------------------
/conf/0.6.0/bootstrap.conf:
--------------------------------------------------------------------------------
1 | #
2 | # Licensed to the Apache Software Foundation (ASF) under one or more
3 | # contributor license agreements. See the NOTICE file distributed with
4 | # this work for additional information regarding copyright ownership.
5 | # The ASF licenses this file to You under the Apache License, Version 2.0
6 | # (the "License"); you may not use this file except in compliance with
7 | # the License. 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 | # Java command to use when running nifi-registry
19 | java=java
20 |
21 | # Username to use when running nifi-registry. This value will be ignored on Windows.
22 | run.as=
23 |
24 | # Configure the working directory for launching the NiFi Registry process
25 | # If not specified, the working directory will fall back to using the NIFI_REGISTRY_HOME env variable
26 | # If the environment variable is not specified, the working directory will fall back to the parent of this file's parent
27 | working.dir=
28 |
29 | # Configure where nifi-registry's lib and conf directories live
30 | lib.dir=./lib
31 | conf.dir=./conf
32 | docs.dir=./docs
33 |
34 | # How long to wait after telling nifi-registry to shutdown before explicitly killing the Process
35 | graceful.shutdown.seconds=20
36 |
37 | # Disable JSR 199 so that we can use JSP's without running a JDK
38 | java.arg.1=-Dorg.apache.jasper.compiler.disablejsr199=true
39 |
40 | # JVM memory settings
41 | java.arg.2=-Xms512m
42 | java.arg.3=-Xmx512m
43 |
44 | # Enable Remote Debugging
45 | #java.arg.debug=-agentlib:jdwp=transport=dt_socket,server=y,suspend=n,address=8000
46 |
47 | java.arg.4=-Djava.net.preferIPv4Stack=true
48 |
49 | # allowRestrictedHeaders is required for Cluster/Node communications to work properly
50 | java.arg.5=-Dsun.net.http.allowRestrictedHeaders=true
51 | java.arg.6=-Djava.protocol.handler.pkgs=sun.net.www.protocol
52 |
53 | # Master key in hexadecimal format for encrypted sensitive configuration values
54 | nifi.registry.bootstrap.sensitive.key=
--------------------------------------------------------------------------------
/conf/0.7.0/bootstrap.conf:
--------------------------------------------------------------------------------
1 | #
2 | # Licensed to the Apache Software Foundation (ASF) under one or more
3 | # contributor license agreements. See the NOTICE file distributed with
4 | # this work for additional information regarding copyright ownership.
5 | # The ASF licenses this file to You under the Apache License, Version 2.0
6 | # (the "License"); you may not use this file except in compliance with
7 | # the License. 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 | # Java command to use when running nifi-registry
19 | java=java
20 |
21 | # Username to use when running nifi-registry. This value will be ignored on Windows.
22 | run.as=
23 |
24 | # Configure the working directory for launching the NiFi Registry process
25 | # If not specified, the working directory will fall back to using the NIFI_REGISTRY_HOME env variable
26 | # If the environment variable is not specified, the working directory will fall back to the parent of this file's parent
27 | working.dir=
28 |
29 | # Configure where nifi-registry's lib and conf directories live
30 | lib.dir=./lib
31 | conf.dir=./conf
32 | docs.dir=./docs
33 |
34 | # How long to wait after telling nifi-registry to shutdown before explicitly killing the Process
35 | graceful.shutdown.seconds=20
36 |
37 | # Disable JSR 199 so that we can use JSP's without running a JDK
38 | java.arg.1=-Dorg.apache.jasper.compiler.disablejsr199=true
39 |
40 | # JVM memory settings
41 | java.arg.2=-Xms512m
42 | java.arg.3=-Xmx512m
43 |
44 | # Enable Remote Debugging
45 | #java.arg.debug=-agentlib:jdwp=transport=dt_socket,server=y,suspend=n,address=8000
46 |
47 | java.arg.4=-Djava.net.preferIPv4Stack=true
48 |
49 | # allowRestrictedHeaders is required for Cluster/Node communications to work properly
50 | java.arg.5=-Dsun.net.http.allowRestrictedHeaders=true
51 | java.arg.6=-Djava.protocol.handler.pkgs=sun.net.www.protocol
52 |
53 | # Master key in hexadecimal format for encrypted sensitive configuration values
54 | nifi.registry.bootstrap.sensitive.key=
--------------------------------------------------------------------------------
/conf/0.8.0/bootstrap.conf:
--------------------------------------------------------------------------------
1 | #
2 | # Licensed to the Apache Software Foundation (ASF) under one or more
3 | # contributor license agreements. See the NOTICE file distributed with
4 | # this work for additional information regarding copyright ownership.
5 | # The ASF licenses this file to You under the Apache License, Version 2.0
6 | # (the "License"); you may not use this file except in compliance with
7 | # the License. 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 | # Java command to use when running nifi-registry
19 | java=java
20 |
21 | # Username to use when running nifi-registry. This value will be ignored on Windows.
22 | run.as=
23 |
24 | # Configure the working directory for launching the NiFi Registry process
25 | # If not specified, the working directory will fall back to using the NIFI_REGISTRY_HOME env variable
26 | # If the environment variable is not specified, the working directory will fall back to the parent of this file's parent
27 | working.dir=
28 |
29 | # Configure where nifi-registry's lib and conf directories live
30 | lib.dir=./lib
31 | conf.dir=./conf
32 | docs.dir=./docs
33 |
34 | # How long to wait after telling nifi-registry to shutdown before explicitly killing the Process
35 | graceful.shutdown.seconds=20
36 |
37 | # Disable JSR 199 so that we can use JSP's without running a JDK
38 | java.arg.1=-Dorg.apache.jasper.compiler.disablejsr199=true
39 |
40 | # JVM memory settings
41 | java.arg.2=-Xms512m
42 | java.arg.3=-Xmx512m
43 |
44 | # Enable Remote Debugging
45 | #java.arg.debug=-agentlib:jdwp=transport=dt_socket,server=y,suspend=n,address=8000
46 |
47 | java.arg.4=-Djava.net.preferIPv4Stack=true
48 |
49 | # allowRestrictedHeaders is required for Cluster/Node communications to work properly
50 | java.arg.5=-Dsun.net.http.allowRestrictedHeaders=true
51 | java.arg.6=-Djava.protocol.handler.pkgs=sun.net.www.protocol
52 |
53 | # Master key in hexadecimal format for encrypted sensitive configuration values
54 | nifi.registry.bootstrap.sensitive.key=
--------------------------------------------------------------------------------
/.gitignore:
--------------------------------------------------------------------------------
1 | # nifi binaries
2 | nifi-registry-*-bin*
3 | nifi-registry-*-SNAPSHOT*
4 | *.jar
5 |
6 | # Created by https://www.gitignore.io/api/intellij+all
7 | # Edit at https://www.gitignore.io/?templates=intellij+all
8 |
9 | ### Intellij+all ###
10 | # Covers JetBrains IDEs: IntelliJ, RubyMine, PhpStorm, AppCode, PyCharm, CLion, Android Studio and WebStorm
11 | # Reference: https://intellij-support.jetbrains.com/hc/en-us/articles/206544839
12 |
13 | # User-specific stuff
14 | .idea/**/workspace.xml
15 | .idea/**/tasks.xml
16 | .idea/**/usage.statistics.xml
17 | .idea/**/dictionaries
18 | .idea/**/shelf
19 |
20 | # Generated files
21 | .idea/**/contentModel.xml
22 |
23 | # Sensitive or high-churn files
24 | .idea/**/dataSources/
25 | .idea/**/dataSources.ids
26 | .idea/**/dataSources.local.xml
27 | .idea/**/sqlDataSources.xml
28 | .idea/**/dynamic.xml
29 | .idea/**/uiDesigner.xml
30 | .idea/**/dbnavigator.xml
31 |
32 | # Gradle
33 | .idea/**/gradle.xml
34 | .idea/**/libraries
35 |
36 | # Gradle and Maven with auto-import
37 | # When using Gradle or Maven with auto-import, you should exclude module files,
38 | # since they will be recreated, and may cause churn. Uncomment if using
39 | # auto-import.
40 | # .idea/modules.xml
41 | # .idea/*.iml
42 | # .idea/modules
43 |
44 | # CMake
45 | cmake-build-*/
46 |
47 | # Mongo Explorer plugin
48 | .idea/**/mongoSettings.xml
49 |
50 | # File-based project format
51 | *.iws
52 |
53 | # IntelliJ
54 | out/
55 |
56 | # mpeltonen/sbt-idea plugin
57 | .idea_modules/
58 |
59 | # JIRA plugin
60 | atlassian-ide-plugin.xml
61 |
62 | # Cursive Clojure plugin
63 | .idea/replstate.xml
64 |
65 | # Crashlytics plugin (for Android Studio and IntelliJ)
66 | com_crashlytics_export_strings.xml
67 | crashlytics.properties
68 | crashlytics-build.properties
69 | fabric.properties
70 |
71 | # Editor-based Rest Client
72 | .idea/httpRequests
73 |
74 | # Android studio 3.1+ serialized cache file
75 | .idea/caches/build_file_checksums.ser
76 |
77 | ### Intellij+all Patch ###
78 | # Ignores the whole .idea folder and all .iml files
79 | # See https://github.com/joeblau/gitignore.io/issues/186 and https://github.com/joeblau/gitignore.io/issues/360
80 |
81 | .idea/
82 |
83 | # Reason: https://github.com/joeblau/gitignore.io/issues/186#issuecomment-249601023
84 |
85 | *.iml
86 | modules.xml
87 | .idea/misc.xml
88 | *.ipr
89 |
90 | # Sonarlint plugin
91 | .idea/sonarlint
92 |
93 | # End of https://www.gitignore.io/api/intellij+all
94 |
95 |
--------------------------------------------------------------------------------
/templates/bootstrap.conf.gotemplate:
--------------------------------------------------------------------------------
1 | #
2 | # Licensed to the Apache Software Foundation (ASF) under one or more
3 | # contributor license agreements. See the NOTICE file distributed with
4 | # this work for additional information regarding copyright ownership.
5 | # The ASF licenses this file to You under the Apache License, Version 2.0
6 | # (the "License"); you may not use this file except in compliance with
7 | # the License. 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 | # Java command to use when running nifi-registry
19 | java={{ default .Env.BOOTSTRAP_JAVA "java" }}
20 |
21 | # Username to use when running nifi-registry. This value will be ignored on Windows.
22 | run.as={{ default .Env.BOOTSTRAP_RUN_AS "" }}
23 |
24 | # Configure the working directory for launching the NiFi Registry process
25 | # If not specified, the working directory will fall back to using the NIFI_REGISTRY_HOME env variable
26 | # If the environment variable is not specified, the working directory will fall back to the parent of this file's parent
27 | working.dir={{ default .Env.BOOTSTRAP_WORKING_DIR "" }}
28 |
29 | # Configure where nifi-registry's lib and conf directories live
30 | lib.dir={{ default .Env.BOOTSTRAP_LIB_DIR "./lib" }}
31 | conf.dir={{ default .Env.BOOTSTRAP_CONF_DIR "./conf" }}
32 | docs.dir={{ default .Env.BOOTSTRAP_DOCS_DIR "./docs" }}
33 |
34 | # How long to wait after telling nifi-registry to shutdown before explicitly killing the Process
35 | graceful.shutdown.seconds={{ default .Env.BOOTSTRAP_GRACEFUL_SHUTDOWN_SECONDS "20" }}
36 |
37 | # Disable JSR 199 so that we can use JSP's without running a JDK
38 | java.arg.1={{ default .Env.BOOTSTRAP_JAVA_ARG_1 "-Dorg.apache.jasper.compiler.disablejsr199=true" }}
39 |
40 | # JVM memory settings
41 | java.arg.2={{ default .Env.BOOTSTRAP_JAVA_ARG_2 "-Xms512m" }}
42 | java.arg.3={{ default .Env.BOOTSTRAP_JAVA_ARG_3 "-Xmx512m" }}
43 |
44 | # Enable Remote Debugging
45 | #java.arg.debug=-agentlib:jdwp=transport=dt_socket,server=y,suspend=n,address=8000
46 | {{ if .Env.BOOTSTRAP_JAVA_ARG_DEBUG -}}
47 | java.arg.debug={{ .Env.BOOTSTRAP_JAVA_ARG_DEBUG }}
48 | {{- end }}
49 |
50 | java.arg.4={{ default .Env.BOOTSTRAP_JAVA_ARG_4 "-Djava.net.preferIPv4Stack=true" }}
51 |
52 | # allowRestrictedHeaders is required for Cluster/Node communications to work properly
53 | java.arg.5={{ default .Env.BOOTSTRAP_JAVA_ARG_5 "-Dsun.net.http.allowRestrictedHeaders=true" }}
54 | java.arg.6={{ default .Env.BOOTSTRAP_JAVA_ARG_6 "-Djava.protocol.handler.pkgs=sun.net.www.protocol" }}
55 |
56 | # Master key in hexadecimal format for encrypted sensitive configuration values
57 | nifi.registry.bootstrap.sensitive.key={{ default .Env.BOOTSTRAP_NIFI_REGISTRY_BOOTSTRAP_SENSITIVE_KEY "" }}
58 |
--------------------------------------------------------------------------------
/conf/0.5.0/nifi-registry.properties:
--------------------------------------------------------------------------------
1 | # Licensed to the Apache Software Foundation (ASF) under one or more
2 | # contributor license agreements. See the NOTICE file distributed with
3 | # this work for additional information regarding copyright ownership.
4 | # The ASF licenses this file to You under the Apache License, Version 2.0
5 | # (the "License"); you may not use this file except in compliance with
6 | # the License. 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 | # web properties #
17 | nifi.registry.web.war.directory=./lib
18 | nifi.registry.web.http.host=
19 | nifi.registry.web.http.port=18080
20 | nifi.registry.web.https.host=
21 | nifi.registry.web.https.port=
22 | nifi.registry.web.jetty.working.directory=./work/jetty
23 | nifi.registry.web.jetty.threads=200
24 |
25 | # security properties #
26 | nifi.registry.security.keystore=
27 | nifi.registry.security.keystoreType=
28 | nifi.registry.security.keystorePasswd=
29 | nifi.registry.security.keyPasswd=
30 | nifi.registry.security.truststore=
31 | nifi.registry.security.truststoreType=
32 | nifi.registry.security.truststorePasswd=
33 | nifi.registry.security.needClientAuth=
34 | nifi.registry.security.authorizers.configuration.file=./conf/authorizers.xml
35 | nifi.registry.security.authorizer=managed-authorizer
36 | nifi.registry.security.identity.providers.configuration.file=./conf/identity-providers.xml
37 | nifi.registry.security.identity.provider=
38 |
39 | # sensitive property protection properties #
40 | # nifi.registry.sensitive.props.additional.keys=
41 |
42 | # providers properties #
43 | nifi.registry.providers.configuration.file=./conf/providers.xml
44 |
45 | # registry alias properties #
46 | nifi.registry.registry.alias.configuration.file=./conf/registry-aliases.xml
47 |
48 | # extensions working dir #
49 | nifi.registry.extensions.working.directory=./work/extensions
50 |
51 | # legacy database properties, used to migrate data from original DB to new DB below
52 | # NOTE: Users upgrading from 0.1.0 should leave these populated, but new installs after 0.1.0 should leave these empty
53 | nifi.registry.db.directory=
54 | nifi.registry.db.url.append=
55 |
56 | # database properties
57 | nifi.registry.db.url=jdbc:h2:./database/nifi-registry-primary;AUTOCOMMIT=OFF;DB_CLOSE_ON_EXIT=FALSE;LOCK_MODE=3;LOCK_TIMEOUT=25000;WRITE_DELAY=0;AUTO_SERVER=FALSE
58 | nifi.registry.db.driver.class=org.h2.Driver
59 | nifi.registry.db.driver.directory=
60 | nifi.registry.db.username=nifireg
61 | nifi.registry.db.password=nifireg
62 | nifi.registry.db.maxConnections=5
63 | nifi.registry.db.sql.debug=false
64 |
65 | # extension directories #
66 | # Each property beginning with "nifi.registry.extension.dir." will be treated as location for an extension,
67 | # and a class loader will be created for each location, with the system class loader as the parent
68 | #
69 | #nifi.registry.extension.dir.1=/path/to/extension1
70 | #nifi.registry.extension.dir.2=/path/to/extension2
71 |
72 | nifi.registry.extension.dir.aws=./ext/aws/lib
73 |
74 | # Identity Mapping Properties #
75 | # These properties allow normalizing user identities such that identities coming from different identity providers
76 | # (certificates, LDAP, Kerberos) can be treated the same internally in NiFi. The following example demonstrates normalizing
77 | # DNs from certificates and principals from Kerberos into a common identity string:
78 | #
79 | # nifi.registry.security.identity.mapping.pattern.dn=^CN=(.*?), OU=(.*?), O=(.*?), L=(.*?), ST=(.*?), C=(.*?)$
80 | # nifi.registry.security.identity.mapping.value.dn=$1@$2
81 | # nifi.registry.security.identity.mapping.transform.dn=NONE
82 |
83 | # nifi.registry.security.identity.mapping.pattern.kerb=^(.*?)/instance@(.*?)$
84 | # nifi.registry.security.identity.mapping.value.kerb=$1@$2
85 | # nifi.registry.security.identity.mapping.transform.kerb=UPPER
86 |
87 | # Group Mapping Properties #
88 | # These properties allow normalizing group names coming from external sources like LDAP. The following example
89 | # lowercases any group name.
90 | #
91 | # nifi.registry.security.group.mapping.pattern.anygroup=^(.*)$
92 | # nifi.registry.security.group.mapping.value.anygroup=$1
93 | # nifi.registry.security.group.mapping.transform.anygroup=LOWER
94 |
95 |
96 | # kerberos properties #
97 | nifi.registry.kerberos.krb5.file=
98 | nifi.registry.kerberos.spnego.principal=
99 | nifi.registry.kerberos.spnego.keytab.location=
100 | nifi.registry.kerberos.spnego.authentication.expiration=12 hours
101 |
--------------------------------------------------------------------------------
/conf/0.6.0/nifi-registry.properties:
--------------------------------------------------------------------------------
1 | # Licensed to the Apache Software Foundation (ASF) under one or more
2 | # contributor license agreements. See the NOTICE file distributed with
3 | # this work for additional information regarding copyright ownership.
4 | # The ASF licenses this file to You under the Apache License, Version 2.0
5 | # (the "License"); you may not use this file except in compliance with
6 | # the License. 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 | # web properties #
17 | nifi.registry.web.war.directory=./lib
18 | nifi.registry.web.http.host=
19 | nifi.registry.web.http.port=18080
20 | nifi.registry.web.https.host=
21 | nifi.registry.web.https.port=
22 | nifi.registry.web.jetty.working.directory=./work/jetty
23 | nifi.registry.web.jetty.threads=200
24 |
25 | # security properties #
26 | nifi.registry.security.keystore=
27 | nifi.registry.security.keystoreType=
28 | nifi.registry.security.keystorePasswd=
29 | nifi.registry.security.keyPasswd=
30 | nifi.registry.security.truststore=
31 | nifi.registry.security.truststoreType=
32 | nifi.registry.security.truststorePasswd=
33 | nifi.registry.security.needClientAuth=
34 | nifi.registry.security.authorizers.configuration.file=./conf/authorizers.xml
35 | nifi.registry.security.authorizer=managed-authorizer
36 | nifi.registry.security.identity.providers.configuration.file=./conf/identity-providers.xml
37 | nifi.registry.security.identity.provider=
38 |
39 | # sensitive property protection properties #
40 | # nifi.registry.sensitive.props.additional.keys=
41 |
42 | # providers properties #
43 | nifi.registry.providers.configuration.file=./conf/providers.xml
44 |
45 | # registry alias properties #
46 | nifi.registry.registry.alias.configuration.file=./conf/registry-aliases.xml
47 |
48 | # extensions working dir #
49 | nifi.registry.extensions.working.directory=./work/extensions
50 |
51 | # legacy database properties, used to migrate data from original DB to new DB below
52 | # NOTE: Users upgrading from 0.1.0 should leave these populated, but new installs after 0.1.0 should leave these empty
53 | nifi.registry.db.directory=
54 | nifi.registry.db.url.append=
55 |
56 | # database properties
57 | nifi.registry.db.url=jdbc:h2:./database/nifi-registry-primary;AUTOCOMMIT=OFF;DB_CLOSE_ON_EXIT=FALSE;LOCK_MODE=3;LOCK_TIMEOUT=25000;WRITE_DELAY=0;AUTO_SERVER=FALSE
58 | nifi.registry.db.driver.class=org.h2.Driver
59 | nifi.registry.db.driver.directory=
60 | nifi.registry.db.username=nifireg
61 | nifi.registry.db.password=nifireg
62 | nifi.registry.db.maxConnections=5
63 | nifi.registry.db.sql.debug=false
64 |
65 | # extension directories #
66 | # Each property beginning with "nifi.registry.extension.dir." will be treated as location for an extension,
67 | # and a class loader will be created for each location, with the system class loader as the parent
68 | #
69 | #nifi.registry.extension.dir.1=/path/to/extension1
70 | #nifi.registry.extension.dir.2=/path/to/extension2
71 |
72 | nifi.registry.extension.dir.aws=./ext/aws/lib
73 |
74 | # Identity Mapping Properties #
75 | # These properties allow normalizing user identities such that identities coming from different identity providers
76 | # (certificates, LDAP, Kerberos) can be treated the same internally in NiFi. The following example demonstrates normalizing
77 | # DNs from certificates and principals from Kerberos into a common identity string:
78 | #
79 | # nifi.registry.security.identity.mapping.pattern.dn=^CN=(.*?), OU=(.*?), O=(.*?), L=(.*?), ST=(.*?), C=(.*?)$
80 | # nifi.registry.security.identity.mapping.value.dn=$1@$2
81 | # nifi.registry.security.identity.mapping.transform.dn=NONE
82 |
83 | # nifi.registry.security.identity.mapping.pattern.kerb=^(.*?)/instance@(.*?)$
84 | # nifi.registry.security.identity.mapping.value.kerb=$1@$2
85 | # nifi.registry.security.identity.mapping.transform.kerb=UPPER
86 |
87 | # Group Mapping Properties #
88 | # These properties allow normalizing group names coming from external sources like LDAP. The following example
89 | # lowercases any group name.
90 | #
91 | # nifi.registry.security.group.mapping.pattern.anygroup=^(.*)$
92 | # nifi.registry.security.group.mapping.value.anygroup=$1
93 | # nifi.registry.security.group.mapping.transform.anygroup=LOWER
94 |
95 |
96 | # kerberos properties #
97 | nifi.registry.kerberos.krb5.file=
98 | nifi.registry.kerberos.spnego.principal=
99 | nifi.registry.kerberos.spnego.keytab.location=
100 | nifi.registry.kerberos.spnego.authentication.expiration=12 hours
101 |
--------------------------------------------------------------------------------
/sh/start-plain.sh:
--------------------------------------------------------------------------------
1 | #!/bin/bash -e
2 |
3 | # Licensed to the Apache Software Foundation (ASF) under one or more
4 | # contributor license agreements. See the NOTICE file distributed with
5 | # this work for additional information regarding copyright ownership.
6 | # The ASF licenses this file to You under the Apache License, Version 2.0
7 | # (the "License"); you may not use this file except in compliance with
8 | # the License. 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 | # WITH OUT 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 | if [[ -n "$DEBUG" ]]; then
19 | echo 'Printing all environment variables for debugging'
20 | env | sort
21 | echo 'End of debug output'
22 | fi
23 |
24 | if [[ -n "$SSH_PRIVATE_KEY" ]]; then
25 | printf "%s\n" 'SSH_PRIVATE_KEY_FILE=$HOME/.ssh/id_rsa'
26 | SSH_PRIVATE_KEY_FILE="$HOME/.ssh/id_rsa"
27 |
28 | printf "%s\n" 'SSH_KNOWN_HOSTS_FILE=$HOME/.ssh/known_hosts'
29 | SSH_KNOWN_HOSTS_FILE="$HOME/.ssh/known_hosts"
30 |
31 | printf "%s\n" 'mkdir -p $HOME/.ssh && chmod 700 $HOME/.ssh'
32 | mkdir -p $HOME/.ssh && chmod 700 $HOME/.ssh
33 |
34 | printf "%s\n" 'echo -n "${SSH_PRIVATE_KEY}" | base64 -d > $SSH_PRIVATE_KEY_FILE && chmod 600 "${SSH_PRIVATE_KEY_FILE}"'
35 | echo -n "${SSH_PRIVATE_KEY}" | base64 -d > ${SSH_PRIVATE_KEY_FILE} && chmod 600 "${SSH_PRIVATE_KEY_FILE}"
36 |
37 | printf "%s\n" 'ssh-keygen ${SSH_PRIVATE_KEY_PASSPHRASE:+'\''-P'\'' "${SSH_PRIVATE_KEY_PASSPHRASE}"} -y -f ${SSH_PRIVATE_KEY_FILE} > ${SSH_PRIVATE_KEY_FILE}.pub && chmod 600 ${SSH_PRIVATE_KEY_FILE}.pub'
38 | ssh-keygen ${SSH_PRIVATE_KEY_PASSPHRASE:+'-P' "${SSH_PRIVATE_KEY_PASSPHRASE}"} -y -f ${SSH_PRIVATE_KEY_FILE} > ${SSH_PRIVATE_KEY_FILE}.pub && chmod 600 ${SSH_PRIVATE_KEY_FILE}.pub
39 |
40 | printf "%s\n" 'echo -n ${SSH_KNOWN_HOSTS} | base64 -d > $SSH_KNOWN_HOSTS_FILE && chmod 600 $SSH_KNOWN_HOSTS_FILE'
41 | echo -n ${SSH_KNOWN_HOSTS} | base64 -d > $SSH_KNOWN_HOSTS_FILE && chmod 600 $SSH_KNOWN_HOSTS_FILE
42 | fi
43 |
44 | if [[ -n "$GIT_REMOTE_URL" && ! -d "$FLOW_PROVIDER_GIT_FLOW_STORAGE_DIRECTORY" ]]; then
45 | if [[ -n "$FLOW_PROVIDER_GIT_REMOTE_ACCESS_PASSWORD" ]]; then
46 | echo "FLOW_PROVIDER_GIT_REMOTE_ACCESS_PASSWORD is set, trying to set git credential helper for HTTPS password"
47 | printf "%s\n" 'git config --global credential.${GIT_REMOTE_URL}.helper '\''!f() { sleep 1; echo -e "username=${FLOW_PROVIDER_GIT_REMOTE_ACCESS_USER}\npassword=*****"; }; f'\'
48 | git config --global credential.${GIT_REMOTE_URL}.helper '!f() { sleep 1; echo -e "username=${FLOW_PROVIDER_GIT_REMOTE_ACCESS_USER}\npassword=${FLOW_PROVIDER_GIT_REMOTE_ACCESS_PASSWORD}"; }; f'
49 | fi
50 | if [[ -n "$SSH_PRIVATE_KEY_PASSPHRASE" ]]; then
51 | printf 'SSH_PRIVATE_KEY_PASSPHRASE is set, hacking git ssh command with sshpass\n'
52 | printf "%s\n" 'export GIT_SSH_COMMAND="sshpass -e -P'assphrase' ssh"'
53 | export GIT_SSH_COMMAND="sshpass -e -P'assphrase' ssh"
54 | printf "%s\n" 'export SSHPASS=${SSH_PRIVATE_KEY_PASSPHRASE}'
55 | export SSHPASS=${SSH_PRIVATE_KEY_PASSPHRASE}
56 | fi
57 | printf "Found git remote: %s, cloning into: %s, with remote: %s and branch: %s\n" ${GIT_REMOTE_URL} ${FLOW_PROVIDER_GIT_FLOW_STORAGE_DIRECTORY} ${FLOW_PROVIDER_GIT_REMOTE_TO_PUSH} ${GIT_CHECKOUT_BRANCH}
58 | printf "%s\n" 'git clone -o $FLOW_PROVIDER_GIT_REMOTE_TO_PUSH -b $GIT_CHECKOUT_BRANCH $GIT_REMOTE_URL $FLOW_PROVIDER_GIT_FLOW_STORAGE_DIRECTORY'
59 | git clone -o $FLOW_PROVIDER_GIT_REMOTE_TO_PUSH -b $GIT_CHECKOUT_BRANCH $GIT_REMOTE_URL $FLOW_PROVIDER_GIT_FLOW_STORAGE_DIRECTORY
60 | for KEY in $(compgen -e); do
61 | if [[ $KEY == GIT_CONFIG* ]]; then
62 | printf "Found key: %s for git config\n" $KEY
63 | VALUE=${!KEY}
64 | KEY=${KEY#GIT_CONFIG_}
65 | KEY=${KEY~~}
66 | KEY=${KEY//_/.}
67 | printf "Setting git config: %s=%s\n" "${KEY}" "${VALUE}"
68 | printf "%s\n" 'git config -f ${FLOW_PROVIDER_GIT_FLOW_STORAGE_DIRECTORY}/.git/config ${KEY} '\''${VALUE}'\'
69 | git config -f "${FLOW_PROVIDER_GIT_FLOW_STORAGE_DIRECTORY}/.git/config" "${KEY}" "'${VALUE}'"
70 | fi
71 | done
72 | fi
73 |
74 | # Continuously provide logs so that 'docker logs' can produce them
75 | tail -F "${PROJECT_HOME}/logs/nifi-registry-app.log" &
76 | "${PROJECT_HOME}/bin/nifi-registry.sh" run &
77 | nifi_registry_pid="$!"
78 |
79 | trap "echo Received trapped signal, beginning shutdown...;" KILL TERM HUP INT EXIT;
80 |
81 | echo NiFi-Registry running with PID ${nifi_registry_pid}.
82 | wait ${nifi_registry_pid}
--------------------------------------------------------------------------------
/Dockerfile:
--------------------------------------------------------------------------------
1 | # build phase
2 | FROM alpine:3.9 as build
3 | LABEL stage=build
4 |
5 | RUN apk --update add --no-cache \
6 | && apk add --no-cache ca-certificates openssl curl wget \
7 | && update-ca-certificates \
8 | && rm -rf /var/lib/apt/lists/* \
9 | && rm -f /var/cache/apk/*
10 |
11 | ARG UPSTREAM_VERSION
12 | ARG MIRROR
13 |
14 | ENV PROJECT_BASE_DIR /opt/nifi-registry
15 | ENV PROJECT_HOME ${PROJECT_BASE_DIR}/nifi-registry-${UPSTREAM_VERSION}
16 |
17 | ENV UPSTREAM_BINARY_URL nifi/nifi-registry/nifi-registry-${UPSTREAM_VERSION}/nifi-registry-${UPSTREAM_VERSION}-bin.tar.gz
18 | ENV DOCKERIZE_VERSION v0.6.1
19 |
20 | # Download, validate, and expand Apache NiFi-Registry binary.
21 | RUN mkdir -p ${PROJECT_BASE_DIR} \
22 | && curl -fSL ${MIRROR}/${UPSTREAM_BINARY_URL} -o ${PROJECT_BASE_DIR}/nifi-registry-${UPSTREAM_VERSION}-bin.tar.gz \
23 | && echo "$(curl ${MIRROR}/${UPSTREAM_BINARY_URL}.sha256) *${PROJECT_BASE_DIR}/nifi-registry-${UPSTREAM_VERSION}-bin.tar.gz" | sha256sum -c - \
24 | && tar -xvzf ${PROJECT_BASE_DIR}/nifi-registry-${UPSTREAM_VERSION}-bin.tar.gz -C ${PROJECT_BASE_DIR} \
25 | && rm ${PROJECT_BASE_DIR}/nifi-registry-${UPSTREAM_VERSION}-bin.tar.gz \
26 | && rm -fr ${PROJECT_HOME}/docs
27 |
28 | RUN wget https://github.com/jwilder/dockerize/releases/download/$DOCKERIZE_VERSION/dockerize-alpine-linux-amd64-$DOCKERIZE_VERSION.tar.gz \
29 | && tar -C /usr/local/bin -xzvf dockerize-alpine-linux-amd64-$DOCKERIZE_VERSION.tar.gz \
30 | && rm dockerize-alpine-linux-amd64-$DOCKERIZE_VERSION.tar.gz
31 |
32 | # base phase
33 | FROM openjdk:8-jdk-alpine as base
34 |
35 | RUN apk --update add --no-cache ca-certificates bash git less openssh sshpass \
36 | && update-ca-certificates \
37 | && rm -rf /var/lib/apt/lists/* \
38 | && rm -f /var/cache/apk/*
39 |
40 | ARG BUILD_RFC3339
41 | ARG COMMIT
42 | ARG VERSION
43 |
44 | LABEL \
45 | org.opencontainers.image.ref.name="michalklempa/nifi-registry" \
46 | org.opencontainers.image.title="Unofficial Docker Image For NiFi Registry" \
47 | org.opencontainers.image.created=$BUILD_RFC3339 \
48 | org.opencontainers.image.authors="Michal Klempa " \
49 | org.opencontainers.image.documentation="https://github.com/michalklempa/docker-nifi-registry/blob/master/README.md" \
50 | org.opencontainers.image.description="michalklempa/nifi-registry docker image is an alternative and unofficial image for NiFi Registry project" \
51 | org.opencontainers.image.licenses="Apache-2.0" \
52 | org.opencontainers.image.source="https://github.com/michalklempa/docker-nifi-registry/" \
53 | org.opencontainers.image.revision=$COMMIT \
54 | org.opencontainers.image.version=$VERSION \
55 | org.opencontainers.image.url="https://hub.docker.com/r/michalklempa/nifi-registry" \
56 | org.label-schema.schema-version="1.0" \
57 | org.label-schema.docker.cmd='docker run -p 18080:18080 --name nifi-registry -d michalklempa/nifi-registry:latest' \
58 | org.label-schema.docker.cmd.devel='docker run -p 8000:8000 -p 18080:18080 -e''BOOTSTRAP_JAVA_ARG_DEBUG=-agentlib:jdwp=transport=dt_socket,server=y,suspend=n,address=8000'' --name nifi-registry -d michalklempa/nifi-registry:latest'
59 |
60 | ARG UPSTREAM_VERSION
61 |
62 | ENV PROJECT_BASE_DIR /opt/nifi-registry
63 | ENV PROJECT_HOME ${PROJECT_BASE_DIR}/nifi-registry-${UPSTREAM_VERSION}
64 |
65 | ENV PROJECT_TEMPLATE_DIR ${PROJECT_BASE_DIR}/templates
66 |
67 | ENV PROJECT_CONF_DIR ${PROJECT_HOME}/conf
68 |
69 | # Setup NiFi-Registry user
70 | RUN mkdir -p ${PROJECT_BASE_DIR}
71 |
72 | COPY --from=build ${PROJECT_HOME} ${PROJECT_HOME}
73 | COPY --from=build /usr/local/bin/dockerize /usr/local/bin/dockerize
74 | COPY ./templates ${PROJECT_TEMPLATE_DIR}
75 |
76 | COPY sh/ ${PROJECT_BASE_DIR}/scripts/
77 |
78 | RUN mkdir -p ${PROJECT_HOME}/docs
79 |
80 | # Web HTTP(s) ports
81 | EXPOSE 18080 18443
82 |
83 | WORKDIR ${PROJECT_HOME}
84 |
85 | FROM base as plain
86 |
87 | # Apply configuration and start NiFi Registry
88 | CMD ${PROJECT_BASE_DIR}/scripts/start-plain.sh
89 |
90 | FROM plain as plainuser
91 | ARG UID=1000
92 | ARG GID=1000
93 |
94 | RUN addgroup -g ${GID} nifi \
95 | && adduser -s /bin/bash -u ${UID} -G nifi -D nifi \
96 | && chown -R nifi:nifi ${PROJECT_BASE_DIR}
97 | USER nifi
98 |
99 | FROM base as default
100 |
101 | ENV FLOW_PROVIDER file
102 | ENV FLOW_PROVIDER_GIT_FLOW_STORAGE_DIRECTORY $PROJECT_BASE_DIR/flow-storage
103 | ENV FLOW_PROVIDER_FILE_FLOW_STORAGE_DIRECTORY $PROJECT_BASE_DIR/flow-storage
104 |
105 | ENV EXTENSION_BUNDLE_PROVIDER file
106 | ENV EXTENSION_BUNDLE_PROVIDER_FILE_EXTENSION_BUNDLE_STORAGE_DIRECTORY $PROJECT_BASE_DIR/extension-bundle-storage
107 |
108 | # Apply configuration and start NiFi Registry
109 | CMD ${PROJECT_BASE_DIR}/scripts/start.sh
110 |
111 | FROM default as defaultuser
112 | ARG UID=1000
113 | ARG GID=1000
114 |
115 | RUN addgroup -g ${GID} nifi \
116 | && adduser -s /bin/bash -u ${UID} -G nifi -D nifi \
117 | && chown -R nifi:nifi ${PROJECT_BASE_DIR}
118 | USER nifi
119 |
120 |
--------------------------------------------------------------------------------
/conf/0.7.0/nifi-registry.properties:
--------------------------------------------------------------------------------
1 | # Licensed to the Apache Software Foundation (ASF) under one or more
2 | # contributor license agreements. See the NOTICE file distributed with
3 | # this work for additional information regarding copyright ownership.
4 | # The ASF licenses this file to You under the Apache License, Version 2.0
5 | # (the "License"); you may not use this file except in compliance with
6 | # the License. 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 | # web properties #
17 | nifi.registry.web.war.directory=./lib
18 | nifi.registry.web.http.host=
19 | nifi.registry.web.http.port=18080
20 | nifi.registry.web.https.host=
21 | nifi.registry.web.https.port=
22 | nifi.registry.web.jetty.working.directory=./work/jetty
23 | nifi.registry.web.jetty.threads=200
24 | nifi.registry.web.should.send.server.version=true
25 |
26 | # security properties #
27 | nifi.registry.security.keystore=
28 | nifi.registry.security.keystoreType=
29 | nifi.registry.security.keystorePasswd=
30 | nifi.registry.security.keyPasswd=
31 | nifi.registry.security.truststore=
32 | nifi.registry.security.truststoreType=
33 | nifi.registry.security.truststorePasswd=
34 | nifi.registry.security.needClientAuth=
35 | nifi.registry.security.authorizers.configuration.file=./conf/authorizers.xml
36 | nifi.registry.security.authorizer=managed-authorizer
37 | nifi.registry.security.identity.providers.configuration.file=./conf/identity-providers.xml
38 | nifi.registry.security.identity.provider=
39 |
40 | # sensitive property protection properties #
41 | # nifi.registry.sensitive.props.additional.keys=
42 |
43 | # providers properties #
44 | nifi.registry.providers.configuration.file=./conf/providers.xml
45 |
46 | # registry alias properties #
47 | nifi.registry.registry.alias.configuration.file=./conf/registry-aliases.xml
48 |
49 | # extensions working dir #
50 | nifi.registry.extensions.working.directory=./work/extensions
51 |
52 | # legacy database properties, used to migrate data from original DB to new DB below
53 | # NOTE: Users upgrading from 0.1.0 should leave these populated, but new installs after 0.1.0 should leave these empty
54 | nifi.registry.db.directory=
55 | nifi.registry.db.url.append=
56 |
57 | # database properties
58 | nifi.registry.db.url=jdbc:h2:./database/nifi-registry-primary;AUTOCOMMIT=OFF;DB_CLOSE_ON_EXIT=FALSE;LOCK_MODE=3;LOCK_TIMEOUT=25000;WRITE_DELAY=0;AUTO_SERVER=FALSE
59 | nifi.registry.db.driver.class=org.h2.Driver
60 | nifi.registry.db.driver.directory=
61 | nifi.registry.db.username=nifireg
62 | nifi.registry.db.password=nifireg
63 | nifi.registry.db.maxConnections=5
64 | nifi.registry.db.sql.debug=false
65 |
66 | # extension directories #
67 | # Each property beginning with "nifi.registry.extension.dir." will be treated as location for an extension,
68 | # and a class loader will be created for each location, with the system class loader as the parent
69 | #
70 | #nifi.registry.extension.dir.1=/path/to/extension1
71 | #nifi.registry.extension.dir.2=/path/to/extension2
72 |
73 | nifi.registry.extension.dir.aws=./ext/aws/lib
74 |
75 | # Identity Mapping Properties #
76 | # These properties allow normalizing user identities such that identities coming from different identity providers
77 | # (certificates, LDAP, Kerberos) can be treated the same internally in NiFi. The following example demonstrates normalizing
78 | # DNs from certificates and principals from Kerberos into a common identity string:
79 | #
80 | #nifi.registry.security.identity.mapping.pattern.dn=^CN=(.*?), OU=(.*?), O=(.*?), L=(.*?), ST=(.*?), C=(.*?)$
81 | #nifi.registry.security.identity.mapping.value.dn=$1@$2
82 | #nifi.registry.security.identity.mapping.transform.dn=NONE
83 |
84 | #nifi.registry.security.identity.mapping.pattern.kerb=^(.*?)/instance@(.*?)$
85 | #nifi.registry.security.identity.mapping.value.kerb=$1@$2
86 | #nifi.registry.security.identity.mapping.transform.kerb=UPPER
87 |
88 | # Group Mapping Properties #
89 | # These properties allow normalizing group names coming from external sources like LDAP. The following example
90 | # lowercases any group name.
91 | #
92 | #nifi.registry.security.group.mapping.pattern.anygroup=^(.*)$
93 | #nifi.registry.security.group.mapping.value.anygroup=$1
94 | #nifi.registry.security.group.mapping.transform.anygroup=LOWER
95 |
96 |
97 | # kerberos properties #
98 | nifi.registry.kerberos.krb5.file=
99 | nifi.registry.kerberos.spnego.principal=
100 | nifi.registry.kerberos.spnego.keytab.location=
101 | nifi.registry.kerberos.spnego.authentication.expiration=12 hours
102 |
103 | # revision management #
104 | # This feature should remain disabled until a future NiFi release that supports the revision API changes
105 | nifi.registry.revisions.enabled=false
--------------------------------------------------------------------------------
/conf/0.5.0/providers.xml:
--------------------------------------------------------------------------------
1 |
2 |
16 |
17 |
18 |
23 |
24 |
25 | org.apache.nifi.registry.provider.flow.FileSystemFlowPersistenceProvider
26 | ./flow_storage
27 |
28 |
29 |
38 |
39 |
44 |
45 |
51 |
55 |
58 |
59 |
60 |
65 |
66 |
67 | org.apache.nifi.registry.provider.extension.FileSystemBundlePersistenceProvider
68 | ./extension_bundles
69 |
70 |
71 |
86 |
98 |
99 |
--------------------------------------------------------------------------------
/conf/0.6.0/providers.xml:
--------------------------------------------------------------------------------
1 |
2 |
16 |
17 |
18 |
23 |
24 |
25 | org.apache.nifi.registry.provider.flow.FileSystemFlowPersistenceProvider
26 | ./flow_storage
27 |
28 |
29 |
38 |
39 |
44 |
45 |
51 |
55 |
58 |
59 |
60 |
65 |
66 |
67 | org.apache.nifi.registry.provider.extension.FileSystemBundlePersistenceProvider
68 | ./extension_bundles
69 |
70 |
71 |
86 |
98 |
99 |
--------------------------------------------------------------------------------
/conf/0.8.0/nifi-registry.properties:
--------------------------------------------------------------------------------
1 | # Licensed to the Apache Software Foundation (ASF) under one or more
2 | # contributor license agreements. See the NOTICE file distributed with
3 | # this work for additional information regarding copyright ownership.
4 | # The ASF licenses this file to You under the Apache License, Version 2.0
5 | # (the "License"); you may not use this file except in compliance with
6 | # the License. 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 | # web properties #
17 | nifi.registry.web.war.directory=./lib
18 | nifi.registry.web.http.host=
19 | nifi.registry.web.http.port=18080
20 | nifi.registry.web.https.host=
21 | nifi.registry.web.https.port=
22 | nifi.registry.web.jetty.working.directory=./work/jetty
23 | nifi.registry.web.jetty.threads=200
24 | nifi.registry.web.should.send.server.version=true
25 |
26 | # security properties #
27 | nifi.registry.security.keystore=
28 | nifi.registry.security.keystoreType=
29 | nifi.registry.security.keystorePasswd=
30 | nifi.registry.security.keyPasswd=
31 | nifi.registry.security.truststore=
32 | nifi.registry.security.truststoreType=
33 | nifi.registry.security.truststorePasswd=
34 | nifi.registry.security.needClientAuth=
35 | nifi.registry.security.authorizers.configuration.file=./conf/authorizers.xml
36 | nifi.registry.security.authorizer=managed-authorizer
37 | nifi.registry.security.identity.providers.configuration.file=./conf/identity-providers.xml
38 | nifi.registry.security.identity.provider=
39 |
40 | # sensitive property protection properties #
41 | # nifi.registry.sensitive.props.additional.keys=
42 |
43 | # providers properties #
44 | nifi.registry.providers.configuration.file=./conf/providers.xml
45 |
46 | # registry alias properties #
47 | nifi.registry.registry.alias.configuration.file=./conf/registry-aliases.xml
48 |
49 | # extensions working dir #
50 | nifi.registry.extensions.working.directory=./work/extensions
51 |
52 | # legacy database properties, used to migrate data from original DB to new DB below
53 | # NOTE: Users upgrading from 0.1.0 should leave these populated, but new installs after 0.1.0 should leave these empty
54 | nifi.registry.db.directory=
55 | nifi.registry.db.url.append=
56 |
57 | # database properties
58 | nifi.registry.db.url=jdbc:h2:./database/nifi-registry-primary;AUTOCOMMIT=OFF;DB_CLOSE_ON_EXIT=FALSE;LOCK_MODE=3;LOCK_TIMEOUT=25000;WRITE_DELAY=0;AUTO_SERVER=FALSE
59 | nifi.registry.db.driver.class=org.h2.Driver
60 | nifi.registry.db.driver.directory=
61 | nifi.registry.db.username=nifireg
62 | nifi.registry.db.password=nifireg
63 | nifi.registry.db.maxConnections=5
64 | nifi.registry.db.sql.debug=false
65 |
66 | # extension directories #
67 | # Each property beginning with "nifi.registry.extension.dir." will be treated as location for an extension,
68 | # and a class loader will be created for each location, with the system class loader as the parent
69 | #
70 | #nifi.registry.extension.dir.1=/path/to/extension1
71 | #nifi.registry.extension.dir.2=/path/to/extension2
72 |
73 | nifi.registry.extension.dir.aws=./ext/aws/lib
74 |
75 | # Identity Mapping Properties #
76 | # These properties allow normalizing user identities such that identities coming from different identity providers
77 | # (certificates, LDAP, Kerberos) can be treated the same internally in NiFi. The following example demonstrates normalizing
78 | # DNs from certificates and principals from Kerberos into a common identity string:
79 | #
80 | #nifi.registry.security.identity.mapping.pattern.dn=^CN=(.*?), OU=(.*?), O=(.*?), L=(.*?), ST=(.*?), C=(.*?)$
81 | #nifi.registry.security.identity.mapping.value.dn=$1@$2
82 | #nifi.registry.security.identity.mapping.transform.dn=NONE
83 |
84 | #nifi.registry.security.identity.mapping.pattern.kerb=^(.*?)/instance@(.*?)$
85 | #nifi.registry.security.identity.mapping.value.kerb=$1@$2
86 | #nifi.registry.security.identity.mapping.transform.kerb=UPPER
87 |
88 | # Group Mapping Properties #
89 | # These properties allow normalizing group names coming from external sources like LDAP. The following example
90 | # lowercases any group name.
91 | #
92 | #nifi.registry.security.group.mapping.pattern.anygroup=^(.*)$
93 | #nifi.registry.security.group.mapping.value.anygroup=$1
94 | #nifi.registry.security.group.mapping.transform.anygroup=LOWER
95 |
96 |
97 | # kerberos properties #
98 | nifi.registry.kerberos.krb5.file=
99 | nifi.registry.kerberos.spnego.principal=
100 | nifi.registry.kerberos.spnego.keytab.location=
101 | nifi.registry.kerberos.spnego.authentication.expiration=12 hours
102 |
103 | # OIDC #
104 | nifi.registry.security.user.oidc.discovery.url=
105 | nifi.registry.security.user.oidc.connect.timeout=
106 | nifi.registry.security.user.oidc.read.timeout=
107 | nifi.registry.security.user.oidc.client.id=
108 | nifi.registry.security.user.oidc.client.secret=
109 | nifi.registry.security.user.oidc.preferred.jwsalgorithm=
110 |
111 | # revision management #
112 | # This feature should remain disabled until a future NiFi release that supports the revision API changes
113 | nifi.registry.revisions.enabled=false
--------------------------------------------------------------------------------
/conf/0.7.0/providers.xml:
--------------------------------------------------------------------------------
1 |
2 |
16 |
17 |
18 |
23 |
24 |
25 | org.apache.nifi.registry.provider.flow.FileSystemFlowPersistenceProvider
26 | ./flow_storage
27 |
28 |
29 |
39 |
40 |
45 |
46 |
52 |
56 |
59 |
60 |
61 |
66 |
67 |
68 | org.apache.nifi.registry.provider.extension.FileSystemBundlePersistenceProvider
69 | ./extension_bundles
70 |
71 |
72 |
87 |
99 |
100 |
--------------------------------------------------------------------------------
/conf/0.8.0/providers.xml:
--------------------------------------------------------------------------------
1 |
2 |
16 |
17 |
18 |
23 |
24 |
25 | org.apache.nifi.registry.provider.flow.FileSystemFlowPersistenceProvider
26 | ./flow_storage
27 |
28 |
29 |
39 |
40 |
45 |
46 |
52 |
56 |
59 |
60 |
61 |
66 |
67 |
68 | org.apache.nifi.registry.provider.extension.FileSystemBundlePersistenceProvider
69 | ./extension_bundles
70 |
71 |
72 |
87 |
99 |
100 |
--------------------------------------------------------------------------------
/sh/start.sh:
--------------------------------------------------------------------------------
1 | #!/bin/bash -e
2 |
3 | # Licensed to the Apache Software Foundation (ASF) under one or more
4 | # contributor license agreements. See the NOTICE file distributed with
5 | # this work for additional information regarding copyright ownership.
6 | # The ASF licenses this file to You under the Apache License, Version 2.0
7 | # (the "License"); you may not use this file except in compliance with
8 | # the License. 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 | # WITH OUT 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 | if [[ -n "$DEBUG" ]]; then
19 | echo 'Printing all environment variables for debugging'
20 | env | sort
21 | echo 'End of debug output'
22 | fi
23 |
24 | if [[ -n "$SSH_PRIVATE_KEY" ]]; then
25 | printf "%s\n" 'SSH_PRIVATE_KEY_FILE=$HOME/.ssh/id_rsa'
26 | SSH_PRIVATE_KEY_FILE="$HOME/.ssh/id_rsa"
27 |
28 | printf "%s\n" 'SSH_KNOWN_HOSTS_FILE=$HOME/.ssh/known_hosts'
29 | SSH_KNOWN_HOSTS_FILE="$HOME/.ssh/known_hosts"
30 |
31 | printf "%s\n" 'mkdir -p $HOME/.ssh && chmod 700 $HOME/.ssh'
32 | mkdir -p $HOME/.ssh && chmod 700 $HOME/.ssh
33 |
34 | printf "%s\n" 'echo -n "${SSH_PRIVATE_KEY}" | base64 -d > $SSH_PRIVATE_KEY_FILE && chmod 600 "${SSH_PRIVATE_KEY_FILE}"'
35 | echo -n "${SSH_PRIVATE_KEY}" | base64 -d > ${SSH_PRIVATE_KEY_FILE} && chmod 600 "${SSH_PRIVATE_KEY_FILE}"
36 |
37 | printf "%s\n" 'ssh-keygen ${SSH_PRIVATE_KEY_PASSPHRASE:+'\''-P'\'' "${SSH_PRIVATE_KEY_PASSPHRASE}"} -y -f ${SSH_PRIVATE_KEY_FILE} > ${SSH_PRIVATE_KEY_FILE}.pub && chmod 600 ${SSH_PRIVATE_KEY_FILE}.pub'
38 | ssh-keygen ${SSH_PRIVATE_KEY_PASSPHRASE:+'-P' "${SSH_PRIVATE_KEY_PASSPHRASE}"} -y -f ${SSH_PRIVATE_KEY_FILE} > ${SSH_PRIVATE_KEY_FILE}.pub && chmod 600 ${SSH_PRIVATE_KEY_FILE}.pub
39 |
40 | printf "%s\n" 'echo -n ${SSH_KNOWN_HOSTS} | base64 -d > $SSH_KNOWN_HOSTS_FILE && chmod 600 $SSH_KNOWN_HOSTS_FILE'
41 | echo -n ${SSH_KNOWN_HOSTS} | base64 -d > $SSH_KNOWN_HOSTS_FILE && chmod 600 $SSH_KNOWN_HOSTS_FILE
42 | fi
43 |
44 | if [[ -n "$GIT_REMOTE_URL" && ! -d "$FLOW_PROVIDER_GIT_FLOW_STORAGE_DIRECTORY" ]]; then
45 | if [[ -n "$FLOW_PROVIDER_GIT_REMOTE_ACCESS_PASSWORD" ]]; then
46 | echo "FLOW_PROVIDER_GIT_REMOTE_ACCESS_PASSWORD is set, trying to set git credential helper for HTTPS password"
47 | printf "%s\n" 'git config --global credential.${GIT_REMOTE_URL}.helper '\''!f() { sleep 1; echo -e "username=${FLOW_PROVIDER_GIT_REMOTE_ACCESS_USER}\npassword=*****"; }; f'\'
48 | git config --global credential.${GIT_REMOTE_URL}.helper '!f() { sleep 1; echo -e "username=${FLOW_PROVIDER_GIT_REMOTE_ACCESS_USER}\npassword=${FLOW_PROVIDER_GIT_REMOTE_ACCESS_PASSWORD}"; }; f'
49 | fi
50 | if [[ -n "$SSH_PRIVATE_KEY_PASSPHRASE" ]]; then
51 | printf 'SSH_PRIVATE_KEY_PASSPHRASE is set, hacking git ssh command with sshpass\n'
52 | printf "%s\n" 'export GIT_SSH_COMMAND="sshpass -e -P'assphrase' ssh"'
53 | export GIT_SSH_COMMAND="sshpass -e -P'assphrase' ssh"
54 | printf "%s\n" 'export SSHPASS=${SSH_PRIVATE_KEY_PASSPHRASE}'
55 | export SSHPASS=${SSH_PRIVATE_KEY_PASSPHRASE}
56 | fi
57 | printf "Found git remote: %s, cloning into: %s, with remote: %s and branch: %s\n" ${GIT_REMOTE_URL} ${FLOW_PROVIDER_GIT_FLOW_STORAGE_DIRECTORY} ${FLOW_PROVIDER_GIT_REMOTE_TO_PUSH} ${GIT_CHECKOUT_BRANCH}
58 | printf "%s\n" 'git clone -o $FLOW_PROVIDER_GIT_REMOTE_TO_PUSH -b $GIT_CHECKOUT_BRANCH $GIT_REMOTE_URL $FLOW_PROVIDER_GIT_FLOW_STORAGE_DIRECTORY'
59 | git clone -o $FLOW_PROVIDER_GIT_REMOTE_TO_PUSH -b $GIT_CHECKOUT_BRANCH $GIT_REMOTE_URL $FLOW_PROVIDER_GIT_FLOW_STORAGE_DIRECTORY
60 | for KEY in $(compgen -e); do
61 | if [[ $KEY == GIT_CONFIG* ]]; then
62 | printf "Found key: %s for git config\n" $KEY
63 | VALUE=${!KEY}
64 | KEY=${KEY#GIT_CONFIG_}
65 | KEY=${KEY~~}
66 | KEY=${KEY//_/.}
67 | printf "Setting git config: %s=%s\n" "${KEY}" "${VALUE}"
68 | printf "%s\n" 'git config -f ${FLOW_PROVIDER_GIT_FLOW_STORAGE_DIRECTORY}/.git/config ${KEY} '\''${VALUE}'\'
69 | git config -f "${FLOW_PROVIDER_GIT_FLOW_STORAGE_DIRECTORY}/.git/config" "${KEY}" "'${VALUE}'"
70 | fi
71 | done
72 | fi
73 |
74 | if [[ -n "${!BOOTSTRAP_*}" ]]; then
75 | /usr/local/bin/dockerize -template ${PROJECT_TEMPLATE_DIR}/bootstrap.conf.gotemplate:${PROJECT_CONF_DIR}/bootstrap.conf
76 | fi
77 | if [[ -n "${!NIFI_REGISTRY*}" ]]; then
78 | /usr/local/bin/dockerize -template ${PROJECT_TEMPLATE_DIR}/nifi-registry.properties.gotemplate:${PROJECT_CONF_DIR}/nifi-registry.properties
79 | fi
80 | if [[ -n "${INITIAL_ADMIN_IDENTITY}" ]]; then
81 | /usr/local/bin/dockerize -template ${PROJECT_TEMPLATE_DIR}/authorizers.xml.gotemplate:${PROJECT_CONF_DIR}/authorizers.xml
82 | fi
83 | if [[ -n "${NIFI_REGISTRY_SECURITY_IDENTITY_PROVIDER}" ]]; then
84 | /usr/local/bin/dockerize -template ${PROJECT_TEMPLATE_DIR}/identity-providers.xml.gotemplate:${PROJECT_CONF_DIR}/identity-providers.xml
85 | fi
86 | if [[ -n "${FLOW_PROVIDER}" ]]; then
87 | /usr/local/bin/dockerize -template ${PROJECT_TEMPLATE_DIR}/providers.xml.gotemplate:${PROJECT_CONF_DIR}/providers.xml
88 | fi
89 |
90 | # Continuously provide logs so that 'docker logs' can produce them
91 | tail -F "${PROJECT_HOME}/logs/nifi-registry-app.log" &
92 | "${PROJECT_HOME}/bin/nifi-registry.sh" run &
93 | nifi_registry_pid="$!"
94 |
95 | trap "echo Received trapped signal, beginning shutdown...;" KILL TERM HUP INT EXIT;
96 |
97 | echo NiFi-Registry running with PID ${nifi_registry_pid}.
98 | wait ${nifi_registry_pid}
--------------------------------------------------------------------------------
/conf/0.5.0/identity-providers.xml:
--------------------------------------------------------------------------------
1 |
2 |
18 |
23 |
24 |
68 |
89 |
90 |
96 |
105 |
106 |
--------------------------------------------------------------------------------
/conf/0.6.0/identity-providers.xml:
--------------------------------------------------------------------------------
1 |
2 |
18 |
23 |
24 |
68 |
89 |
90 |
96 |
105 |
106 |
--------------------------------------------------------------------------------
/conf/0.7.0/identity-providers.xml:
--------------------------------------------------------------------------------
1 |
2 |
18 |
23 |
24 |
68 |
89 |
90 |
96 |
105 |
106 |
--------------------------------------------------------------------------------
/conf/0.8.0/identity-providers.xml:
--------------------------------------------------------------------------------
1 |
2 |
18 |
23 |
24 |
68 |
89 |
90 |
96 |
105 |
106 |
--------------------------------------------------------------------------------
/conf/0.8.0/logback.xml:
--------------------------------------------------------------------------------
1 |
2 |
16 |
17 |
18 | true
19 |
20 |
21 |
22 | ${org.apache.nifi.registry.bootstrap.config.log.dir}/nifi-registry-app.log
23 |
24 |
30 | ${org.apache.nifi.registry.bootstrap.config.log.dir}/nifi-registry-app_%d{yyyy-MM-dd_HH}.%i.log
31 | 100MB
32 |
33 | 30
34 |
35 | 10GB
36 |
37 | true
38 |
39 | %date %level [%thread] %logger{40} %msg%n
40 |
41 |
42 |
43 |
44 | ${org.apache.nifi.registry.bootstrap.config.log.dir}/nifi-registry-bootstrap.log
45 |
46 |
52 | ${org.apache.nifi.registry.bootstrap.config.log.dir}/nifi-registry-bootstrap_%d.log
53 |
54 | 5
55 |
56 |
57 | %date %level [%thread] %logger{40} %msg%n
58 |
59 |
60 |
61 |
62 | ${org.apache.nifi.registry.bootstrap.config.log.dir}/nifi-registry-event.log
63 |
64 |
70 | ${org.apache.nifi.registry.bootstrap.config.log.dir}/nifi-registry-event_%d.log
71 |
72 | 5
73 |
74 |
75 | %date ## %msg%n
76 |
77 |
78 |
79 |
80 |
81 | %date %level [%thread] %logger{40} %msg%n
82 |
83 |
84 |
85 |
86 |
87 |
88 |
89 |
90 |
91 |
92 |
95 |
96 |
97 |
98 |
99 |
100 |
101 |
102 |
103 |
104 |
105 |
106 |
107 |
108 |
109 |
110 |
111 |
112 |
113 |
114 |
115 |
116 |
117 |
118 |
119 |
120 |
121 |
122 |
123 |
--------------------------------------------------------------------------------
/conf/0.5.0/logback.xml:
--------------------------------------------------------------------------------
1 |
2 |
16 |
17 |
18 | true
19 |
20 |
21 |
22 | ${org.apache.nifi.registry.bootstrap.config.log.dir}/nifi-registry-app.log
23 |
24 |
30 | ${org.apache.nifi.registry.bootstrap.config.log.dir}/nifi-registry-app_%d{yyyy-MM-dd_HH}.%i.log
31 | 100MB
32 |
33 | 30
34 |
35 | 10GB
36 |
37 | true
38 |
39 | %date %level [%thread] %logger{40} %msg%n
40 |
41 |
42 |
43 |
44 | ${org.apache.nifi.registry.bootstrap.config.log.dir}/nifi-registry-bootstrap.log
45 |
46 |
52 | ${org.apache.nifi.registry.bootstrap.config.log.dir}/nifi-registry-bootstrap_%d.log
53 |
54 | 5
55 |
56 |
57 | %date %level [%thread] %logger{40} %msg%n
58 |
59 |
60 |
61 |
62 | ${org.apache.nifi.registry.bootstrap.config.log.dir}/nifi-registry-event.log
63 |
64 |
70 | ${org.apache.nifi.registry.bootstrap.config.log.dir}/nifi-registry-event_%d.log
71 |
72 | 5
73 |
74 |
75 | %date ## %msg%n
76 |
77 |
78 |
79 |
80 |
81 | %date %level [%thread] %logger{40} %msg%n
82 |
83 |
84 |
85 |
86 |
87 |
88 |
89 |
90 |
91 |
92 |
93 |
94 |
97 |
98 |
99 |
100 |
101 |
102 |
103 |
104 |
105 |
106 |
107 |
108 |
109 |
110 |
111 |
112 |
113 |
114 |
115 |
116 |
117 |
118 |
119 |
120 |
121 |
122 |
123 |
124 |
125 |
--------------------------------------------------------------------------------
/conf/0.6.0/logback.xml:
--------------------------------------------------------------------------------
1 |
2 |
16 |
17 |
18 | true
19 |
20 |
21 |
22 | ${org.apache.nifi.registry.bootstrap.config.log.dir}/nifi-registry-app.log
23 |
24 |
30 | ${org.apache.nifi.registry.bootstrap.config.log.dir}/nifi-registry-app_%d{yyyy-MM-dd_HH}.%i.log
31 | 100MB
32 |
33 | 30
34 |
35 | 10GB
36 |
37 | true
38 |
39 | %date %level [%thread] %logger{40} %msg%n
40 |
41 |
42 |
43 |
44 | ${org.apache.nifi.registry.bootstrap.config.log.dir}/nifi-registry-bootstrap.log
45 |
46 |
52 | ${org.apache.nifi.registry.bootstrap.config.log.dir}/nifi-registry-bootstrap_%d.log
53 |
54 | 5
55 |
56 |
57 | %date %level [%thread] %logger{40} %msg%n
58 |
59 |
60 |
61 |
62 | ${org.apache.nifi.registry.bootstrap.config.log.dir}/nifi-registry-event.log
63 |
64 |
70 | ${org.apache.nifi.registry.bootstrap.config.log.dir}/nifi-registry-event_%d.log
71 |
72 | 5
73 |
74 |
75 | %date ## %msg%n
76 |
77 |
78 |
79 |
80 |
81 | %date %level [%thread] %logger{40} %msg%n
82 |
83 |
84 |
85 |
86 |
87 |
88 |
89 |
90 |
91 |
92 |
93 |
94 |
97 |
98 |
99 |
100 |
101 |
102 |
103 |
104 |
105 |
106 |
107 |
108 |
109 |
110 |
111 |
112 |
113 |
114 |
115 |
116 |
117 |
118 |
119 |
120 |
121 |
122 |
123 |
124 |
125 |
--------------------------------------------------------------------------------
/conf/0.7.0/logback.xml:
--------------------------------------------------------------------------------
1 |
2 |
16 |
17 |
18 | true
19 |
20 |
21 |
22 | ${org.apache.nifi.registry.bootstrap.config.log.dir}/nifi-registry-app.log
23 |
24 |
30 | ${org.apache.nifi.registry.bootstrap.config.log.dir}/nifi-registry-app_%d{yyyy-MM-dd_HH}.%i.log
31 | 100MB
32 |
33 | 30
34 |
35 | 10GB
36 |
37 | true
38 |
39 | %date %level [%thread] %logger{40} %msg%n
40 |
41 |
42 |
43 |
44 | ${org.apache.nifi.registry.bootstrap.config.log.dir}/nifi-registry-bootstrap.log
45 |
46 |
52 | ${org.apache.nifi.registry.bootstrap.config.log.dir}/nifi-registry-bootstrap_%d.log
53 |
54 | 5
55 |
56 |
57 | %date %level [%thread] %logger{40} %msg%n
58 |
59 |
60 |
61 |
62 | ${org.apache.nifi.registry.bootstrap.config.log.dir}/nifi-registry-event.log
63 |
64 |
70 | ${org.apache.nifi.registry.bootstrap.config.log.dir}/nifi-registry-event_%d.log
71 |
72 | 5
73 |
74 |
75 | %date ## %msg%n
76 |
77 |
78 |
79 |
80 |
81 | %date %level [%thread] %logger{40} %msg%n
82 |
83 |
84 |
85 |
86 |
87 |
88 |
89 |
90 |
91 |
92 |
93 |
94 |
97 |
98 |
99 |
100 |
101 |
102 |
103 |
104 |
105 |
106 |
107 |
108 |
109 |
110 |
111 |
112 |
113 |
114 |
115 |
116 |
117 |
118 |
119 |
120 |
121 |
122 |
123 |
124 |
125 |
--------------------------------------------------------------------------------
/templates/providers.xml.gotemplate:
--------------------------------------------------------------------------------
1 |
2 |
16 |
17 |
18 |
23 |
24 | {{ if .Env.FLOW_PROVIDER }}
25 | {{ if eq .Env.FLOW_PROVIDER "file" }}
26 |
27 | org.apache.nifi.registry.provider.flow.FileSystemFlowPersistenceProvider
28 | {{ default .Env.FLOW_PROVIDER_FILE_FLOW_STORAGE_DIRECTORY "./flow_storage" }}
29 |
30 | {{ end }}
31 | {{ if eq .Env.FLOW_PROVIDER "git" }}
32 |
33 | org.apache.nifi.registry.provider.flow.git.GitFlowPersistenceProvider
34 | {{ default .Env.FLOW_PROVIDER_GIT_FLOW_STORAGE_DIRECTORY "./flow_storage" }}
35 | {{ default .Env.FLOW_PROVIDER_GIT_REMOTE_TO_PUSH "" }}
36 | {{ default .Env.FLOW_PROVIDER_GIT_REMOTE_ACCESS_USER "" }}
37 | {{ default .Env.FLOW_PROVIDER_GIT_REMOTE_ACCESS_PASSWORD "" }}
38 | {{ default .Env.FLOW_PROVIDER_GIT_REMOTE_CLONE_REPOSITORY "" }}
39 |
40 | {{ end }}
41 | {{ if eq .Env.FLOW_PROVIDER "database" }}
42 |
43 | org.apache.nifi.registry.provider.flow.DatabaseFlowPersistenceProvider
44 |
45 | {{ end }}
46 | {{ end }}
47 |
48 |
54 |
55 |
65 |
66 |
71 |
72 |
78 |
82 |
85 |
86 |
87 |
92 |
93 | {{ if .Env.EXTENSION_BUNDLE_PROVIDER }}
94 | {{ if eq .Env.EXTENSION_BUNDLE_PROVIDER "file" }}
95 |
96 | org.apache.nifi.registry.provider.extension.FileSystemBundlePersistenceProvider
97 | {{ default .Env.EXTENSION_BUNDLE_PROVIDER_FILE_EXTENSION_BUNDLE_STORAGE_DIRECTORY "./extension_bundles" }}
98 |
99 | {{ end }}
100 | {{ if eq .Env.EXTENSION_BUNDLE_PROVIDER "s3" }}
101 |
102 | org.apache.nifi.registry.aws.S3BundlePersistenceProvider
103 | {{ default .Env.EXTENSION_BUNDLE_PROVIDER_S3_REGION "" }}
104 | {{ default .Env.EXTENSION_BUNDLE_PROVIDER_S3_BUCKET_NAME "" }}
105 | {{ default .Env.EXTENSION_BUNDLE_PROVIDER_S3_KEY_PREFIX "" }}
106 | {{ default .Env.EXTENSION_BUNDLE_PROVIDER_S3_CREDENTIALS_PROVIDER "DEFAULT_CHAIN" }}
107 | {{ default .Env.EXTENSION_BUNDLE_PROVIDER_S3_ACCESS_KEY "" }}
108 | {{ default .Env.EXTENSION_BUNDLE_PROVIDER_S3_SECRET_ACCESS_KEY "" }}
109 | {{ default .Env.EXTENSION_BUNDLE_PROVIDER_S3_ENDPOINT_URL "" }}
110 |
111 | {{ end }}
112 | {{ end }}
113 |
114 |
120 |
121 |
136 |
148 |
149 |
--------------------------------------------------------------------------------
/templates/identity-providers.xml.gotemplate:
--------------------------------------------------------------------------------
1 |
2 |
18 |
23 |
24 |
25 | {{ if .Env.NIFI_REGISTRY_SECURITY_IDENTITY_PROVIDER }}
26 | {{ if eq .Env.NIFI_REGISTRY_SECURITY_IDENTITY_PROVIDER "ldap-identity-provider" }}
27 |
28 | ldap-identity-provider
29 | org.apache.nifi.registry.security.ldap.LdapIdentityProvider
30 | {{ default .Env.LDAP_AUTHENTICATION_STRATEGY "SIMPLE" }}
31 |
32 | {{ default .Env.LDAP_MANAGER_DN "" }}
33 | {{ default .Env.LDAP_MANAGER_PASSWORD "" }}
34 |
35 | {{ default .Env.LDAP_TLS_KEYSTORE "" }}
36 | {{ default .Env.LDAP_TLS_KEYSTORE_PASSWORD "" }}
37 | {{ default .Env.LDAP_TLS_KEYSTORE_TYPE "" }}
38 |
39 | {{ default .Env.LDAP_TLS_TRUSTSTORE "" }}
40 | {{ default .Env.LDAP_TLS_TRUSTSTORE_PASSWORD "" }}
41 | {{ default .Env.LDAP_TLS_TRUSTSTORE_TYPE "" }}
42 |
43 | {{ default .Env.LDAP_TLS_CLIENT_AUTH "" }}
44 | {{ default .Env.LDAP_TLS_PROTOCOL "" }}
45 | {{ default .Env.LDAP_TLS_SHUTDOWN_GRACEFULLY "" }}
46 |
47 | {{ default .Env.LDAP_REFERRAL_STRATEGY "FOLLOW" }}
48 | {{ default .Env.LDAP_CONNECT_TIMEOUT "10 secs" }}
49 | {{ default .Env.LDAP_READ_TIMEOUT "10 secs" }}
50 |
51 | {{ default .Env.LDAP_URL "" }}
52 | {{ default .Env.LDAP_USER_SEARCH_BASE "" }}
53 | {{ default .Env.LDAP_USER_SEARCH_FILTER "" }}
54 |
55 | {{ default .Env.LDAP_IDENTITY_STRATEGY "USE_USERNAME" }}
56 | {{ default .Env.LDAP_AUTHENTICATION_EXPIRATION "12 hours" }}
57 |
58 | {{ end }}
59 | {{ if eq .Env.NIFI_REGISTRY_SECURITY_IDENTITY_PROVIDER "kerberos-identity-provider" }}
60 |
61 | kerberos-identity-provider
62 | org.apache.nifi.registry.web.security.authentication.kerberos.KerberosIdentityProvider
63 | {{ default .Env.KERBEROS_DEFAULT_REALM "NIFI.APACHE.ORG" }}
64 | {{ default .Env.KERBEROS_AUTHENTICATION_EXPIRATION "12 hours" }}
65 | {{ default .Env.KERBEROS_ENABLE_DEBUG "false" }}
66 |
67 | {{ end }}
68 | {{ end }}
69 |
70 |
114 |
135 |
136 |
142 |
151 |
152 |
--------------------------------------------------------------------------------
/templates/nifi-registry.properties.gotemplate:
--------------------------------------------------------------------------------
1 | # Licensed to the Apache Software Foundation (ASF) under one or more
2 | # contributor license agreements. See the NOTICE file distributed with
3 | # this work for additional information regarding copyright ownership.
4 | # The ASF licenses this file to You under the Apache License, Version 2.0
5 | # (the "License"); you may not use this file except in compliance with
6 | # the License. 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 | # web properties #
17 | nifi.registry.web.war.directory={{ default .Env.NIFI_REGISTRY_WEB_WAR_DIRECTORY "./lib" }}
18 | nifi.registry.web.http.host={{ default .Env.NIFI_REGISTRY_WEB_HTTP_HOST "" }}
19 | nifi.registry.web.http.port={{ default .Env.NIFI_REGISTRY_WEB_HTTP_PORT "18080" }}
20 | nifi.registry.web.https.host={{ default .Env.NIFI_REGISTRY_WEB_HTTPS_HOST "" }}
21 | nifi.registry.web.https.port={{ default .Env.NIFI_REGISTRY_WEB_HTTPS_PORT "" }}
22 | nifi.registry.web.jetty.working.directory={{ default .Env.NIFI_REGISTRY_WEB_JETTY_WORKING_DIRECTORY "./work/jetty" }}
23 | nifi.registry.web.jetty.threads={{ default .Env.NIFI_REGISTRY_WEB_JETTY_THREADS "200" }}
24 | nifi.registry.web.should.send.server.version={{ default .Env.NIFI_REGISTRY_WEB_SHOULD_SEND_SERVER_VERSION "true" }}
25 |
26 | # security properties #
27 | nifi.registry.security.keystore={{ default .Env.NIFI_REGISTRY_SECURITY_KEYSTORE "" }}
28 | nifi.registry.security.keystoreType={{ default .Env.NIFI_REGISTRY_SECURITY_KEYSTOREtYPE "" }}
29 | nifi.registry.security.keystorePasswd={{ default .Env.NIFI_REGISTRY_SECURITY_KEYSTOREpASSWD "" }}
30 | nifi.registry.security.keyPasswd={{ default .Env.NIFI_REGISTRY_SECURITY_KEYpASSWD "" }}
31 | nifi.registry.security.truststore={{ default .Env.NIFI_REGISTRY_SECURITY_TRUSTSTORE "" }}
32 | nifi.registry.security.truststoreType={{ default .Env.NIFI_REGISTRY_SECURITY_TRUSTSTOREtYPE "" }}
33 | nifi.registry.security.truststorePasswd={{ default .Env.NIFI_REGISTRY_SECURITY_TRUSTSTOREpASSWD "" }}
34 | nifi.registry.security.needClientAuth={{ default .Env.NIFI_REGISTRY_SECURITY_NEEDcLIENTaUTH "" }}
35 | nifi.registry.security.authorizers.configuration.file={{ default .Env.NIFI_REGISTRY_SECURITY_AUTHORIZERS_CONFIGURATION_FILE "./conf/authorizers.xml" }}
36 | nifi.registry.security.authorizer={{ default .Env.NIFI_REGISTRY_SECURITY_AUTHORIZER "managed-authorizer" }}
37 | nifi.registry.security.identity.providers.configuration.file={{ default .Env.NIFI_REGISTRY_SECURITY_IDENTITY_PROVIDERS_CONFIGURATION_FILE "./conf/identity-providers.xml" }}
38 | nifi.registry.security.identity.provider={{ default .Env.NIFI_REGISTRY_SECURITY_IDENTITY_PROVIDER "" }}
39 |
40 | # sensitive property protection properties #
41 | # nifi.registry.sensitive.props.additional.keys=
42 |
43 | # providers properties #
44 | nifi.registry.providers.configuration.file={{ default .Env.NIFI_REGISTRY_PROVIDERS_CONFIGURATION_FILE "./conf/providers.xml" }}
45 |
46 | # registry alias properties #
47 | nifi.registry.registry.alias.configuration.file={{ default .Env.NIFI_REGISTRY_REGISTRY_ALIAS_CONFIGURATION_FILE "./conf/registry-aliases.xml" }}
48 |
49 | # extensions working dir #
50 | nifi.registry.extensions.working.directory={{ default .Env.NIFI_REGISTRY_EXTENSIONS_WORKING_DIRECTORY "./work/extensions" }}
51 |
52 | # legacy database properties, used to migrate data from original DB to new DB below
53 | # NOTE: Users upgrading from 0.1.0 should leave these populated, but new installs after 0.1.0 should leave these empty
54 | nifi.registry.db.directory={{ default .Env.NIFI_REGISTRY_DB_DIRECTORY "" }}
55 | nifi.registry.db.url.append={{ default .Env.NIFI_REGISTRY_DB_URL_APPEND "" }}
56 |
57 | # database properties
58 | nifi.registry.db.url={{ default .Env.NIFI_REGISTRY_DB_URL "jdbc:h2:./database/nifi-registry-primary;AUTOCOMMIT=OFF;DB_CLOSE_ON_EXIT=FALSE;LOCK_MODE=3;LOCK_TIMEOUT=25000;WRITE_DELAY=0;AUTO_SERVER=FALSE" }}
59 | nifi.registry.db.driver.class={{ default .Env.NIFI_REGISTRY_DB_DRIVER_CLASS "org.h2.Driver" }}
60 | nifi.registry.db.driver.directory={{ default .Env.NIFI_REGISTRY_DB_DRIVER_DIRECTORY "" }}
61 | nifi.registry.db.username={{ default .Env.NIFI_REGISTRY_DB_USERNAME "nifireg" }}
62 | nifi.registry.db.password={{ default .Env.NIFI_REGISTRY_DB_PASSWORD "nifireg" }}
63 | nifi.registry.db.maxConnections={{ default .Env.NIFI_REGISTRY_DB_MAXcONNECTIONS "5" }}
64 | nifi.registry.db.sql.debug={{ default .Env.NIFI_REGISTRY_DB_SQL_DEBUG "false" }}
65 |
66 | # extension directories #
67 | # Each property beginning with "nifi.registry.extension.dir." will be treated as location for an extension,
68 | # and a class loader will be created for each location, with the system class loader as the parent
69 | #
70 | #nifi.registry.extension.dir.1=/path/to/extension1
71 | {{ if .Env.NIFI_REGISTRY_EXTENSION_DIR_1 -}}
72 | nifi.registry.extension.dir.1={{ .Env.NIFI_REGISTRY_EXTENSION_DIR_1 }}
73 | {{- end }}
74 | #nifi.registry.extension.dir.2=/path/to/extension2
75 | {{ if .Env.NIFI_REGISTRY_EXTENSION_DIR_2 -}}
76 | nifi.registry.extension.dir.2={{ .Env.NIFI_REGISTRY_EXTENSION_DIR_2 }}
77 | {{- end }}
78 |
79 | nifi.registry.extension.dir.aws={{ default .Env.NIFI_REGISTRY_EXTENSION_DIR_AWS "./ext/aws/lib" }}
80 |
81 | # Identity Mapping Properties #
82 | # These properties allow normalizing user identities such that identities coming from different identity providers
83 | # (certificates, LDAP, Kerberos) can be treated the same internally in NiFi. The following example demonstrates normalizing
84 | # DNs from certificates and principals from Kerberos into a common identity string:
85 | #
86 | #nifi.registry.security.identity.mapping.pattern.dn=^CN=(.*?), OU=(.*?), O=(.*?), L=(.*?), ST=(.*?), C=(.*?)$
87 | {{ if .Env.NIFI_REGISTRY_SECURITY_IDENTITY_MAPPING_PATTERN_DN -}}
88 | nifi.registry.security.identity.mapping.pattern.dn={{ .Env.NIFI_REGISTRY_SECURITY_IDENTITY_MAPPING_PATTERN_DN }}
89 | {{- end }}
90 | #nifi.registry.security.identity.mapping.value.dn=$1@$2
91 | {{ if .Env.NIFI_REGISTRY_SECURITY_IDENTITY_MAPPING_VALUE_DN -}}
92 | nifi.registry.security.identity.mapping.value.dn={{ .Env.NIFI_REGISTRY_SECURITY_IDENTITY_MAPPING_VALUE_DN }}
93 | {{- end }}
94 | #nifi.registry.security.identity.mapping.transform.dn=NONE
95 | {{ if .Env.NIFI_REGISTRY_SECURITY_IDENTITY_MAPPING_TRANSFORM_DN -}}
96 | nifi.registry.security.identity.mapping.transform.dn={{ .Env.NIFI_REGISTRY_SECURITY_IDENTITY_MAPPING_TRANSFORM_DN }}
97 | {{- end }}
98 |
99 | #nifi.registry.security.identity.mapping.pattern.kerb=^(.*?)/instance@(.*?)$
100 | {{ if .Env.NIFI_REGISTRY_SECURITY_IDENTITY_MAPPING_PATTERN_KERB -}}
101 | nifi.registry.security.identity.mapping.pattern.kerb={{ .Env.NIFI_REGISTRY_SECURITY_IDENTITY_MAPPING_PATTERN_KERB }}
102 | {{- end }}
103 | #nifi.registry.security.identity.mapping.value.kerb=$1@$2
104 | {{ if .Env.NIFI_REGISTRY_SECURITY_IDENTITY_MAPPING_VALUE_KERB -}}
105 | nifi.registry.security.identity.mapping.value.kerb={{ .Env.NIFI_REGISTRY_SECURITY_IDENTITY_MAPPING_VALUE_KERB }}
106 | {{- end }}
107 | #nifi.registry.security.identity.mapping.transform.kerb=UPPER
108 | {{ if .Env.NIFI_REGISTRY_SECURITY_IDENTITY_MAPPING_TRANSFORM_KERB -}}
109 | nifi.registry.security.identity.mapping.transform.kerb={{ .Env.NIFI_REGISTRY_SECURITY_IDENTITY_MAPPING_TRANSFORM_KERB }}
110 | {{- end }}
111 |
112 | # Group Mapping Properties #
113 | # These properties allow normalizing group names coming from external sources like LDAP. The following example
114 | # lowercases any group name.
115 | #
116 | #nifi.registry.security.group.mapping.pattern.anygroup=^(.*)$
117 | {{ if .Env.NIFI_REGISTRY_SECURITY_GROUP_MAPPING_PATTERN_ANYGROUP -}}
118 | nifi.registry.security.group.mapping.pattern.anygroup={{ .Env.NIFI_REGISTRY_SECURITY_GROUP_MAPPING_PATTERN_ANYGROUP }}
119 | {{- end }}
120 | #nifi.registry.security.group.mapping.value.anygroup=$1
121 | {{ if .Env.NIFI_REGISTRY_SECURITY_GROUP_MAPPING_VALUE_ANYGROUP -}}
122 | nifi.registry.security.group.mapping.value.anygroup={{ .Env.NIFI_REGISTRY_SECURITY_GROUP_MAPPING_VALUE_ANYGROUP }}
123 | {{- end }}
124 | #nifi.registry.security.group.mapping.transform.anygroup=LOWER
125 | {{ if .Env.NIFI_REGISTRY_SECURITY_GROUP_MAPPING_TRANSFORM_ANYGROUP -}}
126 | nifi.registry.security.group.mapping.transform.anygroup={{ .Env.NIFI_REGISTRY_SECURITY_GROUP_MAPPING_TRANSFORM_ANYGROUP }}
127 | {{- end }}
128 |
129 |
130 | # kerberos properties #
131 | nifi.registry.kerberos.krb5.file={{ default .Env.NIFI_REGISTRY_KERBEROS_KRB5_FILE "" }}
132 | nifi.registry.kerberos.spnego.principal={{ default .Env.NIFI_REGISTRY_KERBEROS_SPNEGO_PRINCIPAL "" }}
133 | nifi.registry.kerberos.spnego.keytab.location={{ default .Env.NIFI_REGISTRY_KERBEROS_SPNEGO_KEYTAB_LOCATION "" }}
134 | nifi.registry.kerberos.spnego.authentication.expiration={{ default .Env.NIFI_REGISTRY_KERBEROS_SPNEGO_AUTHENTICATION_EXPIRATION "12 hours" }}
135 |
136 | # OIDC #
137 | nifi.registry.security.user.oidc.discovery.url={{ default .Env.NIFI_REGISTRY_SECURITY_USER_OIDC_DISCOVERY_URL "" }}
138 | nifi.registry.security.user.oidc.connect.timeout={{ default .Env.NIFI_REGISTRY_SECURITY_USER_OIDC_CONNECT_TIMEOUT "" }}
139 | nifi.registry.security.user.oidc.read.timeout={{ default .Env.NIFI_REGISTRY_SECURITY_USER_OIDC_READ_TIMEOUT "" }}
140 | nifi.registry.security.user.oidc.client.id={{ default .Env.NIFI_REGISTRY_SECURITY_USER_OIDC_CLIENT_ID "" }}
141 | nifi.registry.security.user.oidc.client.secret={{ default .Env.NIFI_REGISTRY_SECURITY_USER_OIDC_CLIENT_SECRET "" }}
142 | nifi.registry.security.user.oidc.preferred.jwsalgorithm={{ default .Env.NIFI_REGISTRY_SECURITY_USER_OIDC_PREFERRED_JWSALGORITHM "" }}
143 |
144 | # revision management #
145 | # This feature should remain disabled until a future NiFi release that supports the revision API changes
146 | nifi.registry.revisions.enabled={{ default .Env.NIFI_REGISTRY_REVISIONS_ENABLED "false" }}
147 |
--------------------------------------------------------------------------------
/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 |
--------------------------------------------------------------------------------
/conf/0.5.0/authorizers.xml:
--------------------------------------------------------------------------------
1 |
2 |
16 |
28 |
29 |
30 |
43 |
44 | file-user-group-provider
45 | org.apache.nifi.registry.security.authorization.file.FileUserGroupProvider
46 | ./conf/users.xml
47 |
48 |
49 |
50 |
122 |
167 |
168 |
178 |
185 |
186 |
200 |
208 |
209 |
236 |
237 | file-access-policy-provider
238 | org.apache.nifi.registry.security.authorization.file.FileAccessPolicyProvider
239 | file-user-group-provider
240 | ./conf/authorizations.xml
241 |
242 |
243 |
244 |
245 |
246 |
254 |
255 | managed-authorizer
256 | org.apache.nifi.registry.security.authorization.StandardManagedAuthorizer
257 | file-access-policy-provider
258 |
259 |
260 |
261 |
--------------------------------------------------------------------------------
/conf/0.6.0/authorizers.xml:
--------------------------------------------------------------------------------
1 |
2 |
16 |
28 |
29 |
30 |
43 |
44 | file-user-group-provider
45 | org.apache.nifi.registry.security.authorization.file.FileUserGroupProvider
46 | ./conf/users.xml
47 |
48 |
49 |
50 |
122 |
167 |
168 |
178 |
188 |
189 |
199 |
206 |
207 |
221 |
229 |
230 |
260 |
261 | file-access-policy-provider
262 | org.apache.nifi.registry.security.authorization.file.FileAccessPolicyProvider
263 | file-user-group-provider
264 | ./conf/authorizations.xml
265 |
266 |
267 |
268 |
269 |
270 |
271 |
279 |
280 | managed-authorizer
281 | org.apache.nifi.registry.security.authorization.StandardManagedAuthorizer
282 | file-access-policy-provider
283 |
284 |
285 |
286 |
--------------------------------------------------------------------------------