Skip to content

[backport camel-4.18.x] CAMEL-23583: camel-google-functions + camel-google-secret-manager - align Exchange header constant names with Camel naming convention#23539

Open
oscerd wants to merge 1 commit into
apache:camel-4.18.xfrom
oscerd:backport/23467-to-camel-4.18.x
Open

Conversation

@oscerd
Copy link
Copy Markdown
Contributor

@oscerd oscerd commented May 26, 2026

Backports the camel-google-functions and camel-google-secret-manager
portions of #23467 to camel-4.18.x. The original PR also renamed
camel-google-vision, camel-google-text-to-speech and
camel-google-speech-to-text, but those components were added after the
4.18.x branch point and do not exist on this maintenance branch, so the
backport is intentionally scoped down to the two components that DO exist.

Cherry-pick of merge commit 3addcc5d10a with two adaptations:

  1. The original PR's upgrade-guide entry was added to
    camel-4x-upgrade-guide-4_21.adoc, which does not exist on 4.18.x. Per
    the project's backport policy the same content (scoped to the two
    surviving components) has been added to
    camel-4x-upgrade-guide-4_18.adoc instead.
  2. The vision / text-to-speech / speech-to-text deletions surfaced by the
    cherry-pick were git rm-ed because the components do not exist on
    4.18.x.

Summary

Renames the Exchange header string values in GoogleCloudFunctionsConstants
and GoogleSecretManagerConstants that had a GoogleCloud<Service> /
GoogleSecretManager prefix to CamelGoogle<Service><Name> so they sit
inside the Camel namespace filtered by the default HeaderFilterStrategy.

Constant Previous value New value
GoogleCloudFunctionsConstants.OPERATION GoogleCloudFunctionsOperation CamelGoogleCloudFunctionsOperation
GoogleCloudFunctionsConstants.ENTRY_POINT GoogleCloudFunctionsEntryPoint CamelGoogleCloudFunctionsEntryPoint
GoogleCloudFunctionsConstants.RUNTIME GoogleCloudFunctionsRuntime CamelGoogleCloudFunctionsRuntime
GoogleCloudFunctionsConstants.SOURCE_ARCHIVE_URL GoogleCloudFunctionsSourceArchiveUrl CamelGoogleCloudFunctionsSourceArchiveUrl
GoogleCloudFunctionsConstants.RESPONSE_OBJECT GoogleCloudFunctionsResponseObject CamelGoogleCloudFunctionsResponseObject
GoogleSecretManagerConstants.OPERATION GoogleSecretManagerOperation CamelGoogleSecretManagerOperation

GoogleSecretManagerConstants.SECRET_ID, VERSION_ID and REPLICATION were
already Camel-prefixed and are unchanged.

DSL accessor names unchanged (e.g. googleCloudFunctionsOperation()); they
now return the new Camel-prefixed values.

Test plan

  • mvn test in components/camel-google/camel-google-functions on
    4.18.x — BUILD SUCCESS
  • mvn test in components/camel-google/camel-google-secret-manager on
    4.18.x — BUILD SUCCESS
  • Cherry-pick applied with the two adaptations described above (no merge
    marker shipped)
  • Upgrade-guide entry added under
    === camel-google-functions / camel-google-secret-manager - potential breaking change in camel-4x-upgrade-guide-4_18.adoc, with an
    explicit NOTE that vision/tts/stt are not backported

Tracker: CAMEL-23577

Reported by Claude Code on behalf of Andrea Cosentino

Copy link
Copy Markdown
Contributor

@gnodet gnodet left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Standard header rename backport for camel-google-functions and camel-google-secret-manager to 4.18.x. Renames headers like GoogleCloudFunctionsOperationCamelGoogleCloudFunctionsOperation and GoogleSecretManagerOperationCamelGoogleSecretManagerOperation. Follows the established Camel header naming convention. Upgrade guide entry included.

LGTM.

Fully automatic review from Claude Code

…eech,speech-to-text} - align Exchange header constant names with Camel naming convention (apache#23467)

Renames the Exchange header string values in the Google Cloud component
constants from their GoogleCloud<Service> / GoogleSecretManager prefixes
(which are outside the Camel namespace and therefore not filtered by the
default HeaderFilterStrategy) to CamelGoogle<Service><Name>, following the
convention used across the rest of the Camel component catalog and matching
the pattern established in CAMEL-23526 (camel-cxf), CAMEL-23522 (camel-mail),
CAMEL-23461 (camel-aws-bedrock), CAMEL-23532 (camel-vertx-websocket /
camel-atmosphere-websocket / camel-iggy), and CAMEL-23576 (camel-jira).

Renamed values:
- GoogleCloudFunctions: OPERATION, ENTRY_POINT, RUNTIME, SOURCE_ARCHIVE_URL,
  RESPONSE_OBJECT
- GoogleSecretManager: OPERATION (SECRET_ID, VERSION_ID, REPLICATION were
  already Camel-prefixed)
- GoogleCloudVision: OPERATION, RESPONSE_OBJECT
- GoogleCloudTextToSpeech: OPERATION, RESPONSE_OBJECT
- GoogleCloudSpeechToText: OPERATION, RESPONSE_OBJECT

The Java field names are unchanged so routes referencing the constants
symbolically continue to work; routes using the literal string values must be
updated (documented in the 4.21 upgrade guide). The generated Endpoint DSL
header accessor names are unchanged (the Camel prefix is stripped when
deriving the accessor name); the accessors now return the new values.

All existing tests use symbolic constant references and continue to pass.

Tracker: CAMEL-23577

Reported by Claude Code on behalf of Andrea Cosentino

Signed-off-by: Andrea Cosentino <ancosen@gmail.com>
@oscerd oscerd force-pushed the backport/23467-to-camel-4.18.x branch from b22ede7 to df87c78 Compare May 27, 2026 07:36
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants