It implements custom netty HTTP request inbound/outbound handlers to add basic authentication possibility to Flink. Please see FLIP-181 for further details.
In order to build the project one needs maven and java.
Since the authentication handler is Flink version dependent please make sure the version are matching in pom.xml.
mvn clean install
In order to install in one just needs to do the following:
- Make sure the following provided dependencies are available on the cluster:
flink-runtimecommons-codec
- Add the following jar to the classpath:
target/flink-basic-auth-handler-<VERSION>.jar
As described in the mentioned implementation proposal Flink loads all inbound/outbound handlers with service loader automatically.
The following configuration properties are supported:
| Property | Type | Default | Description |
|---|---|---|---|
| security.basic.auth.enabled | boolean | false | Turns on/off basic authentication |
| security.basic.auth.password.file | string | (none) | Basic authentication password file |
| security.basic.auth.client.credentials | string | (none) | Basic authentication client credentials user:pwd |
This is licensed under Apache License Version 2.0. You may obtain a copy of the License at http://www.apache.org/licenses/LICENSE-2.0.