The unified-authz-ext library has been refactored on the refactoredCustomSigner branch:
uc-authz-commonis gone- Its Hadoop-free content moved to
uc-authz-core - Its Hadoop-dependent content moved to
uc-authz-hadoop-common
The Flink flink-s3-fs-hadoop connector previously depended on uc-authz-common:1.0.2-66 and has been updated to use the new modules.
Run in a terminal (required for local macOS testing):
cd ~/unified-authz-ext
./gradlew publishToMavenLocal -x testInstalls all modules to ~/.m2/repository/com/apple/pie/unified-authz-ext/ with version 1.0.2-SNAPSHOT.
Note: The project version in
gradle.propertiesis1.0.2, which Gradle resolves to1.0.2-SNAPSHOTwhen publishing to a local Maven repository.
File: flink-filesystems/flink-s3-fs-base/pom.xml
<!-- Before -->
<unified.authz.version>1.0.2-66</unified.authz.version>
<!-- After -->
<unified.authz.version>1.0.2-SNAPSHOT</unified.authz.version><!-- Before -->
<dependency>
<groupId>com.apple.pie.unified-authz-ext</groupId>
<artifactId>uc-authz-common</artifactId>
<version>${unified.authz.version}</version>
</dependency>
<!-- After -->
<dependency>
<groupId>com.apple.pie.unified-authz-ext</groupId>
<artifactId>uc-authz-hadoop-common</artifactId>
<version>${unified.authz.version}</version>
</dependency>uc-authz-hadoop-common declares uc-authz-core as api, so it pulls in transitively. No need to add uc-authz-core explicitly.
UnifiedAuthDelegationTokenProvider.java was examined and requires no changes:
- It never called
PluginConfigs.getPropsWithPrefix()— it has its own equivalent inline (lines 93-101) - It uses Hadoop's own
ReflectionUtils(notPluginConfigs.newInstance()) — correct for a Hadoop module - All other imports (
PluginConfigs,CommonClientUtils,JwtTokenFetcher, etc.) live inuc-authz-corewith unchanged package names
cd ~/apache-flink/flink-filesystems
mvn compile -pl flink-s3-fs-base,flink-s3-fs-hadoop -am -DskipTests -UResult: BUILD SUCCESS
| What | Before | After |
|---|---|---|
| Library version | 1.0.2-66 |
1.0.2-SNAPSHOT (local) |
| Dependency | uc-authz-common |
uc-authz-hadoop-common |
| Java source changes | — | None required |