This is an automated email from the ASF dual-hosted git repository.
davsclaus pushed a commit to branch main
in repository https://gitbox.apache.org/repos/asf/camel.git
The following commit(s) were added to refs/heads/main by this push:
new 6960e19227b7 CAMEL-22504: camel-jasypt - Deprecate Main CLI entrypoint
(#23439)
6960e19227b7 is described below
commit 6960e19227b7e39f826c6bf93e7fece27c3b290a
Author: Devendra Reddy Pennabadi <[email protected]>
AuthorDate: Fri May 22 02:03:26 2026 +0530
CAMEL-22504: camel-jasypt - Deprecate Main CLI entrypoint (#23439)
* CAMEL-22504: camel-jasypt - Deprecate Main CLI entrypoint
Replaced by the supported Jasypt CLI (http://www.jasypt.org/cli.html);
marked @Deprecated(since="4.21") with docs + upgrade-guide note.
* CAMEL-22504: Fix dead jasypt CLI link
Point to jasypt-1.9.3 GitHub release (which ships the standalone
encrypt/decrypt scripts) instead of the now-404 http://www.jasypt.org/cli.html.
---
components/camel-jasypt/src/main/docs/jasypt.adoc | 8 ++++++++
.../src/main/java/org/apache/camel/component/jasypt/Main.java | 10 ++++++++++
.../test/java/org/apache/camel/component/jasypt/MainTest.java | 1 +
.../modules/ROOT/pages/camel-4x-upgrade-guide-4_21.adoc | 11 +++++++++++
4 files changed, 30 insertions(+)
diff --git a/components/camel-jasypt/src/main/docs/jasypt.adoc
b/components/camel-jasypt/src/main/docs/jasypt.adoc
index 3165019294d1..63a8b528946a 100644
--- a/components/camel-jasypt/src/main/docs/jasypt.adoc
+++ b/components/camel-jasypt/src/main/docs/jasypt.adoc
@@ -34,6 +34,14 @@ for this component:
== Tooling
+[WARNING]
+====
+The command line utility shipped with `camel-jasypt` (the `Main` class) is
*deprecated* and will be removed in a
+future Camel release. Use the standalone CLI scripts (`encrypt.sh` /
`decrypt.sh` / `digest.sh`) shipped in the
+upstream
link:https://github.com/jasypt/jasypt/releases/tag/jasypt-1.9.3[jasypt-1.9.3
distribution] instead — they
+cover the same encrypt/decrypt workflow and let us drop the duplicated
implementation maintained here.
+====
+
The Jasypt component is a runnable JAR that provides a command line utility to
encrypt or decrypt values.
The usage documentation can be output to the console to describe the syntax
and options it provides:
diff --git
a/components/camel-jasypt/src/main/java/org/apache/camel/component/jasypt/Main.java
b/components/camel-jasypt/src/main/java/org/apache/camel/component/jasypt/Main.java
index 85e7d39fbeed..b3468ee6282c 100644
---
a/components/camel-jasypt/src/main/java/org/apache/camel/component/jasypt/Main.java
+++
b/components/camel-jasypt/src/main/java/org/apache/camel/component/jasypt/Main.java
@@ -25,6 +25,16 @@ import org.jasypt.encryption.pbe.StandardPBEStringEncryptor;
import org.jasypt.iv.RandomIvGenerator;
import org.jasypt.salt.RandomSaltGenerator;
+/**
+ * Command line entrypoint for the camel-jasypt component, kept around so the
{@code camel-jasypt} jar can be invoked
+ * directly (e.g. with JBang) to encrypt or decrypt property values.
+ * <p>
+ * Deprecated in favour of the standalone Jasypt CLI scripts (encrypt.sh /
decrypt.sh / digest.sh) shipped in the
+ * upstream <a
href="https://github.com/jasypt/jasypt/releases/tag/jasypt-1.9.3">jasypt-1.9.3
distribution</a>, which
+ * remove the need to maintain a duplicate implementation here. This class is
scheduled for removal in a future Camel
+ * release.
+ */
+@Deprecated(since = "4.21")
public class Main {
private final StandardPBEStringEncryptor encryptor = new
StandardPBEStringEncryptor();
diff --git
a/components/camel-jasypt/src/test/java/org/apache/camel/component/jasypt/MainTest.java
b/components/camel-jasypt/src/test/java/org/apache/camel/component/jasypt/MainTest.java
index 589f0a6db860..e70cdfbec57d 100644
---
a/components/camel-jasypt/src/test/java/org/apache/camel/component/jasypt/MainTest.java
+++
b/components/camel-jasypt/src/test/java/org/apache/camel/component/jasypt/MainTest.java
@@ -20,6 +20,7 @@ import org.junit.jupiter.api.Test;
import static org.junit.jupiter.api.Assertions.assertDoesNotThrow;
+@SuppressWarnings("deprecation")
public class MainTest {
@Test
diff --git
a/docs/user-manual/modules/ROOT/pages/camel-4x-upgrade-guide-4_21.adoc
b/docs/user-manual/modules/ROOT/pages/camel-4x-upgrade-guide-4_21.adoc
index f9e4f6fa80e1..878f9c966d54 100644
--- a/docs/user-manual/modules/ROOT/pages/camel-4x-upgrade-guide-4_21.adoc
+++ b/docs/user-manual/modules/ROOT/pages/camel-4x-upgrade-guide-4_21.adoc
@@ -782,6 +782,17 @@ The component camel-irc is deprecated. The library used
had no stable release si
The component camel-iec-60870 is deprecated. The library used to implement it
NeoScada is no more maintained since 2021. There are no alternatives in Java
with compatible license.
+=== Deprecation of camel-jasypt CLI entrypoint
+
+The `org.apache.camel.component.jasypt.Main` class — the command line
entrypoint that lets the `camel-jasypt`
+jar be invoked directly (e.g. via JBang) to encrypt or decrypt property values
— is now deprecated and will be
+removed in a future Camel release.
+
+Use the standalone CLI scripts (`encrypt.sh` / `decrypt.sh` / `digest.sh`)
shipped in the upstream
+link:https://github.com/jasypt/jasypt/releases/tag/jasypt-1.9.3[jasypt-1.9.3
distribution] instead. They cover
+the same workflow and let us drop the duplicate implementation maintained
inside `camel-jasypt`. The component
+itself (property-source decryption at runtime) is unaffected.
+
=== Deprecation of camel-paho
The components camel-paho is deprecated. There were no new release since 2020
of the Java client, last non-regulatory commit was in 2022.