Skip to content

Commit b3051fc

Browse files
committed
gate sdk-pqc-bc runtime dep behind non-fips profile
1 parent bfe9a42 commit b3051fc

1 file changed

Lines changed: 22 additions & 10 deletions

File tree

cmdline/pom.xml

Lines changed: 22 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -77,15 +77,27 @@
7777
<artifactId>sdk</artifactId>
7878
<version>${project.version}</version>
7979
</dependency>
80-
<!-- Pulls the BouncyCastle KemProvider onto the classpath at runtime
81-
so cmdline supports hybrid PQC (X-Wing, ECDH+ML-KEM). Discovered
82-
via ServiceLoader; cmdline has no compile-time reference to BC.
83-
FIPS deployments should omit this dep. -->
84-
<dependency>
85-
<groupId>io.opentdf.platform</groupId>
86-
<artifactId>sdk-pqc-bc</artifactId>
87-
<version>${project.version}</version>
88-
<scope>runtime</scope>
89-
</dependency>
9080
</dependencies>
81+
82+
<profiles>
83+
<!-- Pulls the BouncyCastle KemProvider onto the classpath at runtime so
84+
cmdline supports hybrid PQC (X-Wing, ECDH+ML-KEM). Gated behind
85+
non-fips to mirror the reactor gating in the root pom: a fips
86+
build does NOT include sdk-pqc-bc, so cmdline must not declare
87+
a hard dep on it under fips either. -->
88+
<profile>
89+
<id>non-fips</id>
90+
<activation>
91+
<activeByDefault>true</activeByDefault>
92+
</activation>
93+
<dependencies>
94+
<dependency>
95+
<groupId>io.opentdf.platform</groupId>
96+
<artifactId>sdk-pqc-bc</artifactId>
97+
<version>${project.version}</version>
98+
<scope>runtime</scope>
99+
</dependency>
100+
</dependencies>
101+
</profile>
102+
</profiles>
91103
</project>

0 commit comments

Comments
 (0)