Skip to content

Conversation

@rjrudin
Copy link
Contributor

@rjrudin rjrudin commented Oct 22, 2025

Kafka validator for securityContextType values needs to accept "cloud".

Deleted a couple unused test classes too.

Copilot AI review requested due to automatic review settings October 22, 2025 15:38
@rjrudin rjrudin requested a review from BillFarber as a code owner October 22, 2025 15:38
Copy link

Copilot AI left a comment

Choose a reason for hiding this comment

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

Pull Request Overview

This PR enables cloud authentication support for the Kafka connector by adding "CLOUD" as a valid security context type in the configuration validator.

  • Added "CLOUD" to the list of valid security context types
  • Added a new test to verify cloud authentication configuration is accepted
  • Removed two unused test utility classes (MarkLogicSourceConnectorConfigBuilder and MarkLogicSinkConnectorConfigBuilder)
  • Updated documentation to clarify cloud authentication configuration

Reviewed Changes

Copilot reviewed 5 out of 5 changed files in this pull request and generated 1 comment.

Show a summary per file
File Description
src/main/java/com/marklogic/kafka/connect/MarkLogicConfig.java Added "CLOUD" to the validator for CONNECTION_SECURITY_CONTEXT_TYPE
src/test/java/com/marklogic/kafka/connect/source/ReadRowsViaOpticDslTest.java Added cloudAuth test to verify cloud security context type is accepted
src/test/java/com/marklogic/kafka/connect/source/MarkLogicSourceConnectorConfigBuilder.java Deleted unused test utility class
src/test/java/com/marklogic/kafka/connect/sink/MarkLogicSinkConnectorConfigBuilder.java Deleted unused test utility class
docs/configuring-the-connector.md Updated documentation to include CLOUD in list of security context types and added explicit configuration examples

Tip: Customize your code reviews with copilot-instructions.md. Create the file or learn how to get started.

- `ml.connection.securityContextType=CLOUD`
- `ml.connection.basePath` = the base path in your Progress Data Cloud instance that points to the REST API server you
wish to connect to
- `ml.connection.cloudApiKey` = the API key for authenticating with your MarkLogic Cloud instance
Copy link

Copilot AI Oct 22, 2025

Choose a reason for hiding this comment

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

The documentation still references 'MarkLogic Cloud' but line 65 was updated to 'Progress Data Cloud'. This should be updated to 'Progress Data Cloud' for consistency.

Copilot uses AI. Check for mistakes.
@github-actions
Copy link

github-actions bot commented Oct 22, 2025

Copyright Validation Results
Total: 5 | Passed: 3 | Failed: 0 | Skipped: 2 | at: 2025-10-22 18:31:37 UTC | commit: 47be8ce

⏭️ Skipped (Excluded) Files

  • build.gradle
  • docs/configuring-the-connector.md

✅ Valid Files

  • src/main/java/com/marklogic/kafka/connect/MarkLogicConfig.java
  • src/test/java/com/marklogic/kafka/connect/BuildDatabaseClientConfigTest.java
  • src/test/java/com/marklogic/kafka/connect/source/ReadRowsViaOpticDslTest.java

✅ All files have valid copyright headers!

@rjrudin rjrudin force-pushed the feature/cloud-fix branch 2 times, most recently from 2cabbc8 to 43dcf4b Compare October 22, 2025 18:22
Kafka validator for securityContextType values needs to accept "cloud".

Deleted a couple unused test classes too.
@rjrudin rjrudin merged commit e2b1f16 into develop Oct 22, 2025
3 checks passed
@rjrudin rjrudin deleted the feature/cloud-fix branch October 22, 2025 18:58
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