> For the complete documentation index, see [llms.txt](https://docs.lenses.io/latest/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://docs.lenses.io/latest/changelog/lenses-6.3/agent.md).

# Agent

Change log for Lenses Agent 6.3.

{% updates format="full" %}
{% update date="2026-11-05" tags="new,improvements,fixed" %}

## 6.3.3

{% hint style="warning" %}
**Before you upgrade**

* **Deleting a SQL Processor now always stops it first.** If it can't be stopped, for example because its Kubernetes cluster is unreachable, the delete fails, also with `force=true`. To remove such a processor, use the new decommission endpoint.
  {% endhint %}

### New

* **Decommission a SQL Processor through the API.** `DELETE /api/v1/streams/{id}/decommission` removes a SQL Processor that can't be deleted, for example because its cluster is unreachable. It doesn't contact the cluster, so remove any leftover Deployment and Secrets yourself. It works in Kubernetes mode only and needs the `sql-streaming:DeleteProcessor` permission. The HQ UI has no action for it.

### Improvements

* **The Agent detects a silent HQ connection.** With HQ 6.3.1 or later, the Agent reconnects within about 20 seconds when the connection still looks open but HQ has stopped responding.
* **Clearer HQ connection logs.** The Agent's logs now say why the HQ connection closed, for example a network error, a TLS failure or a missed ping, and include HQ's address.
* **Native transport on Linux.** On Linux, the Agent uses the native epoll transport for its HQ connection, and falls back to Java NIO where epoll isn't available.

### Fixed

* **Deleting a SQL Processor no longer leaves it running or leaves Kubernetes resources behind.** The Agent stops the processor and waits until Kubernetes has removed its Deployment before deleting it. If the processor can't be stopped, the delete fails and the processor is kept.
* **The Agent reconnects when HQ doesn't set it up.** If HQ hasn't configured the Agent within 30 seconds of connecting, or the connection handshake doesn't complete within 10 seconds, the Agent reconnects instead of staying connected, sometimes for hours. Its WARN and ERROR log lines say what to check, such as a proxy between the Agent and HQ that isn't a TCP passthrough, or a revoked agent key.
* **`connectTimeout` is applied.** The HQ connection's `connectTimeout` setting (default 20 seconds) now applies to every attempt to connect to HQ. Editing or deleting the connection, or stopping the Agent, no longer waits for a pending attempt.
* **Editing the HQ connection while reconnecting.** An Agent no longer keeps reconnecting with the old settings when its HQ connection is edited or deleted during a reconnect.
* **Reconnect delay during an HQ restart.** When HQ restarts and asks Agents to wait before reconnecting, the Agent now waits even if HQ closes the connection first.
  {% endupdate %}

{% update date="2026-11-02" tags="fixed" %}

## 6.3.2

### Fixed

* **Topic data displays again in the Agent UI (broke with the 6.3.1 release).** Browsing a topic's data in the Agent UI could fail with an error instead of showing the records, for records whose key or value is an object.
  {% endupdate %}

{% update date="2026-10-23" tags="new,improvements,fixed" %}

## 6.3.1

{% hint style="warning" %}
**Before you upgrade**

* **Grant `governance:ApproveRequest` and `governance:DenyRequest` to roles that approve or reject requests.** Approving and rejecting governance requests require `governance:ApproveRequest` and `governance:DenyRequest`. Roles with `governance:*` already have them. See the [IAM reference](https://docs.lenses.io/latest/user-guide/6.3-user-guide/using/security/iam-reference).
* **SQL Processor images must be allowed.** If you change SQL Processors to images outside the default SQL Processor repository, for example custom images with UDFs or images from another registry, add them to `lenses.kubernetes.processor.image.allowed` together with the default repository. In the Agent's configuration file, you can add the setting before upgrading. If you configure the Agent with the Docker environment variable `LENSES_KUBERNETES_PROCESSOR_IMAGE_ALLOWED`, set it in the same change that moves to the 6.3.1 image: earlier images don't handle an entry with a tag or digest, and the Agent then fails to start. See [Allowed images](https://docs.lenses.io/latest/devx/6.3/deployment/configuration/agent/sql-processor-deployment#allowed-images) in the SQL Processor deployment docs.
* **Channels need permission to view their connection.** If a role edits alert or audit channels but cannot view their connections, add `administration:GetConnectionDetails` for those connections. See the [IAM reference](https://docs.lenses.io/latest/user-guide/6.3-user-guide/using/security/iam-reference).
* **The lenses-agent Helm chart released with 6.3.1 needs Agent 6.3.1.**
  {% endhint %}

### New

* **Limit the hosts connections can reach.** A new setting, `lenses.connections.allowlist`, limits the hosts that connections can reach. When it is set, the Agent rejects a Webhook, Splunk, Slack, Prometheus Alertmanager, Confluent Schema Registry or Kafka Connect connection whose hosts are not in the list. The check runs when the connection is created, updated, tested or provisioned, and covers the metrics URLs of Schema Registry and Kafka Connect connections. Entries can be IP addresses, CIDR ranges, or host name patterns where `*` is the only wildcard. Matching ignores case. An empty or unset list allows every host, so nothing changes until you set it. For example:

  ```
  lenses.connections.allowlist = [
    "schema-registry.example.com",
    "*.connect.example.com",
    "10.20.0.0/16"
  ]
  ```

  With the Docker image, use the `LENSES_CONNECTIONS_ALLOWLIST` environment variable. The setting is read from the Agent's configuration and isn't exposed through the API. An invalid entry, such as a host with a port, stops the Agent at startup. Hosts of existing connections are checked again only when they change, so connections saved before you set the list can still be edited. At startup, the Agent logs a warning for each stored connection whose hosts are outside the list.

  The deprecated `lenses.connections.webhook.whitelist` still applies to Webhook connections when `lenses.connections.allowlist` isn't set, and accepts the same entries. Other entries, such as `10.*` or `host:443`, are logged as errors at startup and never match. Existing Webhook connections keep sending, but creating one or changing its host needs a host that matches a valid entry. Rewrite such entries as CIDR ranges (`10.0.0.0/8`) or host names without a port. See `lenses.connections.allowlist` in the [Agent configuration reference](https://docs.lenses.io/latest/devx/6.3/deployment/configuration/agent/configuration-reference).
* **Connection tests are audited.** Every connection test is now recorded in the Agent's audit log, including the tests that provisioning validate and **Apply to Agent** run on new and changed connections. Each tested connection, passed or failed, gets a `CONNECTION TESTED` entry with the user and the connection, its template, where the test came from (`test`, `validate` or `apply`), the result and the names of any fields that failed, and the hosts tested, as `host:port`. Credentials, URL paths and other property values are never recorded. **Apply to Agent** writes two entries per tested connection, because it tests each one twice.

### Improvements

* **Governance approvals require their permissions.** Approving and rejecting governance requests require `governance:ApproveRequest` and `governance:DenyRequest`. Roles with `governance:*` already have them. A topic creation request must be approved by a user other than the one who created it. Creators can still reject their own requests. See the [IAM reference](https://docs.lenses.io/latest/user-guide/6.3-user-guide/using/security/iam-reference).
* **SQL Processor images are limited to those an administrator allows.** A SQL Processor's image can be changed only to images allowed by the new `lenses.kubernetes.processor.image.allowed` setting. Without the setting, only tags and digests of the default SQL Processor image's repository (`lenses.kubernetes.processor.image.name`) are accepted. For example:

  ```
  lenses.kubernetes.processor.image.allowed = [
    "lensesioextra/sql-processor",
    "registry.example.com/team/sql-processor-udfs"
  ]
  ```

  An entry without a tag allows any tag of that repository, an entry with a tag or digest allows exactly that image, and `"*"` allows any image. In Kubernetes deployment mode, the Agent refuses to start if an entry is not valid (for example `registry.example.com/mirror/*`), if the list does not allow the default image, or if the default image name and tag are not a valid image reference. Existing processors keep running and keep their image. Changing a processor to an image that is not allowed returns 400 with the error on the `image` field. `GET /api/v1/deployment/targets` lists the allowed images in `allowedProcessorImages` (`null` when the Agent is not in Kubernetes mode). See [Allowed images](https://docs.lenses.io/latest/devx/6.3/deployment/configuration/agent/sql-processor-deployment#allowed-images) in the SQL Processor deployment docs.
* **SQL Processor pods don't mount a Kubernetes API token.** They still run as the ServiceAccount set by `lenses.kubernetes.service.account`, so image pull secrets and cloud workload identity keep working. The lenses-agent Helm chart released with 6.3.1 grants the Agent only the Kubernetes permissions it uses (see the Helm chart notes). If you manage the Agent's Role yourself, you can reduce it to the same permissions. See [SQL processors in Kubernetes](https://docs.lenses.io/latest/devx/6.3/deployment/installation/helm/agent#enabling-sql-processors-in-k8s-mode) in the Agent chart docs.
* **Channels need permission to view their connection.** Creating an alert or audit channel, replacing it, or changing its connection or properties requires permission to view the connection it uses (`administration:GetConnectionDetails` on that connection). This applies to every channel type. Turning a channel on or off, renaming it and deleting it need only the channel permission, as before. Webhook channels send requests only to their connection's host, and header names must be valid HTTP header names. At startup, the Agent logs a warning for each stored webhook channel that needs editing; such channels may stop sending until they are edited. See the [IAM reference](https://docs.lenses.io/latest/user-guide/6.3-user-guide/using/security/iam-reference).
* **Connections can't target cloud metadata services or link-local addresses.** This covers `169.254.0.0/16`, `fe80::/10`, and the metadata endpoints of AWS, Google Cloud, Azure, Alibaba Cloud, Oracle Cloud, Tencent Cloud and IBM Cloud, for every connection type, whatever `lenses.connections.allowlist` allows. A connection is also rejected if one of its hosts can't be checked, for example when its name can't be resolved in time. Existing connections that target these addresses are rejected the next time they are saved, tested or provisioned, and the Agent logs a warning for each one at startup. Alert and audit channels that target them don't send.
* **Testing changes to a saved connection requires permission to update it**, the same as saving it.
* **Connection test errors point to the Agent log.** Connection test errors show the kind of error, the error type or the HTTP status, and point to the Lenses Agent log for the full detail. Users with the `administration:GetLensesLogs` permission see the full detail in the error when they test a connection or validate a provisioning file; treat that permission as sensitive and grant it only to operators and administrators. A failed Confluent Schema Registry connection test can take several seconds to answer.
* **Limits on SQL expression nesting.** SQL expressions have a maximum nesting depth (50 levels) and size (about 200 chained operators). Longer expressions are rejected with an error that names the limit. Replace long `OR` chains with `IN (...)`.

### Fixed

* **Security related release.** All users are strongly recommended to upgrade.
* **AWS Glue Schema Registry with Protobuf.** SQL queries and SQL Processors can write Protobuf data with schemas in AWS Glue Schema Registry again. This failed in 6.3.0.
* **Topic data size with Jolokia metrics.** With brokers monitored through Jolokia, the topic data size counted only the replicas each broker led. It now counts every replica on the broker, as with JMX.
* **Text of XML elements with attributes.** In XML messages, the text of an element that also has attributes, such as `<price currency="EUR">10</price>`, now always appears under `value`. Some installations showed it under `_content`, depending on the host.
* **Schema inference jobs canceled right after starting.** Such a job no longer stays shown as running until the Agent restarts, which blocked new inference jobs for that topic.
* **Schema Registry table pagination.** The pagination controls of the Schema Registry table stay in place instead of floating over the table.
  {% endupdate %}

{% update date="2026-10-09" tags="new,improvements,fixed" %}

## 6.3.0

{% hint style="warning" %}
**Before you upgrade**

* **Java 17 or later is required.** The Docker images include it. An Agent started on Java 11 fails at startup.
* **Kafka brokers must run Apache Kafka 2.1 or later (Confluent Platform 5.1 or later).**
* **SASL/OAUTHBEARER with a token endpoint needs an allow-list.** The Kafka 4.2 client only calls token endpoints listed in the JVM system property `org.apache.kafka.sasl.oauthbearer.allowed.urls` (comma-separated). Set it with `LENSES_OPTS`, for example `-Dorg.apache.kafka.sasl.oauthbearer.allowed.urls=https://idp.example.com/oauth2/token`, or with `lensesAgent.lensesOpts` in the Helm chart. Setting it in the Kafka connection has no effect. Schema Registry connections that use OAuth bearer authentication need the same property. There is no setting yet to pass it to SQL Processors on Kubernetes, so keep processors that use such a connection on their current image. The callback handler `org.apache.kafka.common.security.oauthbearer.secured.OAuthBearerLoginCallbackHandler` was removed; use `org.apache.kafka.common.security.oauthbearer.OAuthBearerLoginCallbackHandler`.
* **SQL Processors must use `exactly_once_v2`.** `processing.guarantee` values `exactly_once` and `exactly_once_beta` are no longer accepted. Processors that run inside the Agent (`IN_PROC` mode) and use them fail to start after the upgrade, and must be recreated with `exactly_once_v2`. Processors on Kubernetes keep the image they were deployed with; recreate them the same way before moving them to the 6.3 image.
  {% endhint %}

### New

* **Data policies move to Lenses HQ.** Data policies can now be managed centrally in Lenses HQ, as part of IAM roles, instead of on each Agent. They become global: the Agent applies, for each user, the data policies of that user's roles, so the same masking applies in every environment. Set `lenses.data.policies.legacy.enabled` to `false` to switch an Agent over. The default, `true`, keeps the Agent's own data policies, which work as in 6.2. Switch only after upgrading Lenses HQ to 6.3 and re-creating your data policies on roles: with an older HQ, nothing is masked. Once switched, the Agent's data policy API is read-only, and its data policy list no longer reports which topics the inactive policies would mask. Agent-managed data policies will be replaced by IAM role data policies in a future release.
* **Read records by offset from Lenses HQ.** With Agent 6.3, Lenses HQ can fetch specific records from a topic partition by offset. HQ uses this for its new API endpoint for reading records, for the record preview shown when you click an offset in the consumer group and topic **Consumers** tables, and for the raw-bytes view of records that cannot be decoded. With older Agents these features are unavailable or fall back to SQL. The Agent checks that the user may read the topic, and applies data policies before records leave it. `lenses.kafka.read.topic.records.max.concurrent` (default 16) limits how many of these reads run at once. Each read holds its own Kafka connection, and reads beyond the limit are refused rather than queued.

### Improvements

* **Kafka 4.2 and Confluent 8.2.** The Agent and SQL Processors use the Apache Kafka 4.2 and Confluent Schema Registry 8.2 client libraries. Kafka clusters that still run on ZooKeeper remain supported, including ZooKeeper connections for broker discovery and monitoring.
* **SQL Processors on Kafka Streams 4.2.** Processors that repartition streams, such as joins between topics with different partition counts, keep their original topology, so redeploying or scaling them does not change their repartition topics. The RocksDB settings `rocksdb.table.block.cache.compressed.size` and `rocksdb.table.block.cache.compressed.num.shard.bits` are now ignored, with a warning, because RocksDB removed the compressed block cache.
* **Consumer group reads use their own Kafka admin clients.** Listing and describing consumer groups and reading their offsets no longer wait behind other admin operations. Set the pool size with `lenses.kafka.admin.pool.max.size` (default 1). Idle clients beyond the first close after `lenses.kafka.admin.pool.idle.ttl` (default 5m).
* **Faster topic format detection.** Detection keeps a pool of up to 8 Kafka consumers open, samples several partitions so an empty first partition no longer matters, skips tombstones, and honors the sampling poll timeout and attempts settings. A Kafka consumer leak when sampling shuts down is fixed.
* **Consumer groups open in Lenses HQ from the legacy Agent UI.** The legacy Agent UI no longer has its own consumer group screens. Its consumer group pages, and the consumer group links in its menu, dashboard, topic **Consumers** tab, alert rules and SQL Processors, now open the environment's consumer groups in Lenses HQ Studio.

### Fixed

* **Permissions and data policies the Agent cannot interpret.** A role permission whose resources the Agent cannot interpret, for example a resource type introduced by a newer Lenses HQ, now grants nothing. A request carrying a data policy the Agent cannot interpret used to have that policy ignored, leaving its fields unmasked. Such requests are now rejected. To drop only the unknown data policy during an upgrade instead, set the JVM system property `lenses.datapolicies.strict-conversion=false` or the environment variable `LENSES_DATAPOLICIES_STRICT_CONVERSION=false`.
* **Data policy list permissions.** A data policy's affected resources in the data policy list no longer include topics, SQL processors, connectors or applications that you are not allowed to list, matching the details view.
* **Kafka Connect worker addresses stay hidden.** With `lenses.api.services.endpoints.hide` enabled, Kafka Connect error messages no longer include worker URLs or addresses, and connector and task worker IDs are hidden. The health reason shown for a Kafka Connect cluster now reports only the HTTP status the worker returned.
* **Roles with a `kafka:cluster` resource.** Users whose role names a `kafka:cluster` resource can use the environment again; every request they made through Lenses HQ used to fail. The resource has no effect, as in Lenses HQ.
* **Connector restarts on Kafka Connect older than 3.0.** Restarting a connector now restarts its tasks too, and reports any task that could not be restarted.
* **Connector-to-topic lineage.** Lineage for connectors that do not name their topics in their configuration no longer disappears until the Agent restarts after a single 404 or 403 from a Kafka Connect worker, for example during a rolling restart.
* **Connector monitoring.** Monitoring of a Kafka Connect cluster no longer stops silently on an error whose chain of causes loops back on itself.
* **Schema inference.** Inference no longer hangs on topics with null keys or values, or whose last offset is a transaction marker, and reports an error if it stops making progress.
* **Kafka quota audit entries.** Audit entries for adding or removing Kafka quotas record the same entity names as the quota listing, with `<default>` for default quotas and `clients` for the client part of user-and-client quotas.
  {% endupdate %}
  {% endupdates %}


---

# Agent Instructions
This documentation is published with GitBook. GitBook is the documentation platform designed so that both humans and AI agents can read, navigate, and reason over technical content effectively. Learn more at gitbook.com.

## Querying This Documentation
If you need additional information that is not directly available in this page, you can query the documentation by asking a question.

Perform an HTTP GET request on the following URL with the `ask` and `goal` query parameters:

```
GET https://docs.lenses.io/latest/changelog/lenses-6.3/agent.md?ask=<question>&goal=<user_goal>
```

`ask` is the immediate question: it should be specific, self-contained, and written in natural language.
`goal` is what the user is ultimately trying to achieve, the reason they need the answer. Sharing it helps GitBook give you a better, more relevant answer. A goal is most helpful when it describes the outcome the user wants rather than restating the question. For example, with `ask=how do I create an API token`, a goal like `automate deployments from our CI pipeline` lets GitBook tailor the answer to that use case.

The response will contain a direct answer to the question and relevant excerpts and sources from the documentation.

Use this mechanism when the answer is not explicitly present in the current page, you need clarification or additional context, or you want to retrieve related documentation sections.
