Skip to content

Commit ec60368

Browse files
committed
[S3AG] restrict import plugin
1 parent 8f6beaf commit ec60368

File tree

1 file changed

+10
-0
lines changed

1 file changed

+10
-0
lines changed

hadoop-tools/hadoop-aws/pom.xml

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -464,6 +464,16 @@
464464
<bannedImport>org.apache.hadoop.mapred.**</bannedImport>
465465
</bannedImports>
466466
</restrictImports>
467+
<restrictImports>
468+
<includeTestCode>false</includeTestCode>
469+
<reason>Restrict S3AG plugin class imports to default client factory</reason>
470+
<exclusions>
471+
<exclusion>org.apache.hadoop.fs.s3a.DefaultS3ClientFactory</exclusion>
472+
</exclusions>
473+
<bannedImports>
474+
<bannedImport>software.amazon.awssdk.s3accessgrants.plugin.S3AccessGrantsPlugin</bannedImport>
475+
</bannedImports>
476+
</restrictImports>
467477
</rules>
468478
</configuration>
469479
</execution>

0 commit comments

Comments
 (0)