Agent
Change log for Lenses Agent 6.3.
6.3.3
New
Decommission a SQL Processor through the API.
DELETE /api/v1/streams/{id}/decommissionremoves 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 thesql-streaming:DeleteProcessorpermission. 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.
connectTimeoutis applied. The HQ connection'sconnectTimeoutsetting (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.
6.3.1
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_ALLOWLISTenvironment 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.whiteliststill applies to Webhook connections whenlenses.connections.allowlistisn't set, and accepts the same entries. Other entries, such as10.*orhost: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. Seelenses.connections.allowlistin the 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 TESTEDentry with the user and the connection, its template, where the test came from (test,validateorapply), the result and the names of any fields that failed, and the hosts tested, ashost: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:ApproveRequestandgovernance:DenyRequest. Roles withgovernance:*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.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.allowedsetting. 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 exampleregistry.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 theimagefield.GET /api/v1/deployment/targetslists the allowed images inallowedProcessorImages(nullwhen the Agent is not in Kubernetes mode). See 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 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:GetConnectionDetailson 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.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, whateverlenses.connections.allowlistallows. 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:GetLensesLogspermission 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
ORchains withIN (...).
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 undervalue. 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.
6.3.0
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.enabledtofalseto 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.sizeandrocksdb.table.block.cache.compressed.num.shard.bitsare 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 afterlenses.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=falseor the environment variableLENSES_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.hideenabled, 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:clusterresource. Users whose role names akafka:clusterresource 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 andclientsfor the client part of user-and-client quotas.
Last updated
Was this helpful?

