apache / apache/camel-kamelets

kafka-source defaults saslAuthType to NONE without the not-secured naming its siblings use

Open
#2,970 0 comments 0 reactions 1 assignee Claimed by @oscerd View on GitHub
Dominant language
Java
Stars
71
Forks
88
Avg merge
1d 13h
Merged PRs (30d)
70

Description

`kafka-source` declares:

```yaml
saslAuthType:
title: Authentication Type
description: Authentication type to use. Use NONE for no authentication, PLAIN or SCRAM_SHA_256/SCRAM_SHA_512 for username/password, ...
type: string
default: NONE
enum: ["NONE", "PLAIN", "SCRAM_SHA_256", "SCRAM_SHA_512", "SSL", "OAUTH", "AWS_MSK_IAM", "KERBEROS"]
```

With `NONE` and no SSL, the connection is plaintext and unauthenticated out of the box.

The catalog already has a convention for Kamelets that ship in that posture — six `kafka-not-secured-*` Kamelets state it in the name. `kafka-source` does not, so the name suggests a secured default that the schema does not provide.

Options, roughly in order of disruption:

1. Make the security selector required (no default), forcing an explicit choice.
2. Change the default to a secured value.
3. Split into `kafka-source` (secured default) and a `kafka-not-secured-source` sibling, matching the existing convention.

Option 1 is probably the least disruptive while still removing the silent-plaintext default, but this is a catalog-convention decision rather than a mechanical fix — flagging for maintainer input before anyone implements it.

_Claude Code on behalf of Andrea Cosentino_

Contributor guide

No contributing guide indexed for this repository

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.