Installs into .claude/skills of the current project.
Sponsors
SSkills DirectorySkills Directory
Know which skills are safe — weekly.
SSkills DirectorySkills Directory
Is that skill safe to install?
Are you the author of Grpc Knowledge Patch?
Add the live security badge to your README. It updates with every re-scan.
[](https://www.skillsdirectory.com/skills/nevaberry-grpc-knowledge-patch)
---
name: grpc-knowledge-patch
description: gRPC
version: null
license: MIT
metadata:
author: Nevaberry
---
# gRPC Compatibility Guidance
Load this skill for gRPC API, configuration, transport, security, observability,
and build compatibility work across Core, Go, Java, Python, C#, Objective-C,
Ruby, and PHP. The topic references contain the detailed guidance.
## Reference index
| Reference | Topics |
| --- | --- |
| [Authorization, xDS, and telemetry](references/authorization-and-xds.md) | RBAC, route headers, listener matching, resource validation, load balancing, retries, metrics, tracing |
| [Java channels and configuration](references/java-channel-and-configuration.md) | Platform requirements, channel builders, name resolution, child channels, service configuration, server events, Bazel |
| [Python APIs, runtime, and dependencies](references/python-apis-runtime-and-dependencies.md) | Runtime support, protobuf, package dependencies, source builds, AsyncIO, synchronous handlers, credentials |
| [Transport security and tooling](references/transport-security-and-tooling.md) | TLS, trust roots, identities, HTTP/2, metadata, shutdown, proxies, code generation, Objective-C, Ruby, PHP |
## Breaking changes and deprecations
### Platform and TLS library support
- gRPC-Java 1.84.0 requires Android API level 24 (Android 7.0 Nougat) or later.
- gRPC Python 1.81.2 drops support for Python 3.9.
- gRPC Ruby 1.81.2 drops support for Ruby 3.1.
- gRPC Core 1.85.0 adds support for OpenSSL 4 and drops OpenSSL 1.0.2 support.
### Binder permission policies
gRPC-Java 1.85.0 adds a `SecurityPolicies.hasPermissions` overload taking an
Android `Context`. The overload taking a `PackageManager` is deprecated.
### Python servicer interfaces and credential arguments
`abort_with_status` is part of the abstract `grpc.aio.ServicerContext` interface.
Custom implementations that subclass it should provide the method.
In gRPC Python 1.85.0, `SyncServicerContext.abort()` raises an exception to
terminate the handler. In 1.86.0, a credential factory receiving `None` for a
required credential argument raises `ValueError`.
### Python dependency scope
gRPC Python 1.83.0 allows protobuf 6.x for `grpcio-status`. The release also lists
a Python protobuf minimum increase from `6.33.5` to `7.35.1` with unspecified
package scope. The `grpcio-status` package in gRPC Python 1.81.2 accepts protobuf 7.x.
gRPC Python 1.86.0 removes `setuptools` from the declared install dependencies
of `grpcio-tools` and `grpcio-observability`.
### Go telemetry instruments
gRPC-Go 1.84.0 removes the `grpc.lb.pick_first.*` metrics and replaces them with
the `grpc.subchannel.*` instruments specified by gRFC A94.
### Validation failures
- gRPC-Go fails an RPC with `codes.Internal` if per-RPC credentials,
`balancer.PickResult.Metadata`, or a resolver address provide invalid
metadata keys or values.
- gRPC-Go rejects an EDS resource whose drop policy uses an unsupported denominator.
- gRPC-Java reports a configuration error if `retryThrottling` omits `maxTokens`
or `tokenRatio`.
- gRPC-Java rejects EDS updates containing duplicate endpoint addresses and fails
the CDS cluster if its EDS update contains no usable endpoints.
## Authorization and routing
### Go RBAC headers and principals
RBAC configuration rejects `:scheme` and `grpc-`-prefixed header matchers
regardless of letter case, including inside nested `Principal` and `Permission`
rules. Mixed-case names such as `X-Role` match the lowercase header `x-role`.
Matchers for `host`, including `Host`, match `:authority`, also inside nested rules.
gRPC-Go evaluates the `Metadata` and `RequestedServerName` permission matcher
fields; earlier versions ignored them in DENY rules, which could fail open.
It accepts deprecated `source_ip` as equivalent to `direct_remote_ip`.
It rejects RBAC `CidrRange` configurations with unset `prefix_len`; set it
explicitly, including for a zero-length prefix.
### Go route header matching
`contains_match` matches a substring of the header value. Empty `exact_match`
strings are handled during route matching; empty `prefix_match` and `suffix_match`
strings cause routes to be rejected. Mixed-case route header names match their
lowercase HTTP/2 names.
### Host and authority behavior
gRPC Core 1.86.0 enables the `map_host_header_to_authority` experiment by default.
The gRPC-Go server rejects requests missing both `:authority` and `Host` with HTTP 400 and
gRPC status `Internal`. It uses the load balancer's selected `:authority` for each
RPC attempt, including retries. In gRPC-Go 1.85.0, client `stats.OutHeader` events
expose the effective authority sent in the HTTP/2 `:authority` pseudo-header.
### xDS resource sources and listener ports
gRPC-Java processes a resource update only if it arrives on an ADS stream from
the control plane responsible for the resource. gRPC Core 1.86.0 checks that each
update comes from the responsible control-plane server.
Core xDS servers can match listener addresses with wildcard ports. In gRPC-Java
1.85.0, zero in an LDS listener's socket address matches any port.
## Transport and security behavior
### Go control-buffer throttling
gRPC-Go now counts only peer-induced control frames toward
`GRPC_GO_EXPERIMENTAL_CONTROL_BUFFER_THROTTLE_LIMIT`, whose default rises from
100 to 10,000. The transport closes client connections if reads stay throttled
for 10 seconds. The transport reference preserves the earlier frame flood limit.
### HTTP/2 stream lifecycle
The gRPC-Java Netty server enforces its client-initiated stream limit from
connection startup, before receiving `SETTINGS_ACK`.
The gRPC-Go server records stream IDs even for truncated `HEADERS`; reusing such
an ID triggers an HTTP/2 protocol error. Request `HEADERS` with `END_STREAM` set
terminate the stream immediately, preventing a handler from hanging on a message read.
### Shutdown behavior
gRPC-Go `Server.Stop()` can force termination while `Server.GracefulStop()` waits
for active handlers. The gRPC-Java Netty server drains a connection before closing
it during graceful shutdown. gRPC Python 1.85.3 and 1.86.0 fix a synchronous channel
close deadlock while a gRPC background thread runs a Python callback, such as a
call credentials plugin.
### TLS defaults and hostname verification
gRPC Core enables post-quantum cryptography by default for TLS key exchange;
1.85.0 adds ML-KEM-1024 as an option. Core 1.86.0 switches bundled trust roots to
the Chromium root set. Java's S2A transport defaults to a post-quantum key exchange
group, and its OkHttp server transport enables TLS 1.3 on Android.
gRPC-Java 1.85.0 honors the endpoint identification algorithm configured on a
Netty client's TLS context. An explicit empty string disables hostname verification;
a `null` algorithm falls back to `HTTPS`.
### Token exchange and ALTS
gRPC-Go stops STS token exchange on an HTTP redirect. Configure the token endpoint
that handles the exchange directly. ALTS supports dynamic record frame size
negotiation; `GRPC_GO_EXPERIMENTAL_ALTS_MAX_FRAME_SIZE` sets the maximum frame
size, defaulting to 4 KiB and capped at 512 KiB.
## Channel, metadata, and server APIs
### Java channel construction
`Grpc.newChannelBuilder` has an overload accepting a `NameResolverRegistry` to
control name resolution independently of the global registry. RFC 3986 URI parsing
is enabled by default. `ChildChannelConfigurer` customizes dynamically created
load balancer child channels, for example by adding interceptors or changing credentials.
Repeated `childChannelConfigurator()` calls on `ManagedChannelImplBuilder` or
`XdsServerBuilder` preserve and run all registered configurators for child channels.
### Java configuration and events
`defaultServiceConfig()` accepts Java `Number` values and normalizes them to
`Double`, including JSON parser `Integer` values such as retry `maxAttempts` of `4`.
In gRPC-Java 1.85.0, `ServerCall.triggerEvent` delivers a custom event to the server
call listener's `onEvent` callback. `CallCredentials.allowedSecurityLevel()` queries
the transport security level allowed by call credentials.
### Metadata APIs
Go's `metadata.ValueFromOutgoingContext` reads one outgoing-context metadata key
without copying the entire map. In Python, deleting the last value for a key in
`grpc.aio.Metadata` removes the key. Java 1.85.0 adds
`NettyChannelBuilder.neverIndexMetadataKey` and `neverIndexMetadataKeys` to send
selected outbound metadata keys with HPACK's never-indexed literal representation.
## Load balancing and observability
### Policy and child channel behavior
gRPC-Java uses Pick First Leaf for `pick_first`, implementing gRFC A62's pick-first
improvements and gRFC A61's dual-stack Happy Eyeballs behavior. Core removes the
environment variable opt-in for custom backend metrics in weighted round robin
and enables service config fields for subchannel connection scaling. Core 1.85.0
adds support for passing options to child channels under gRFC A110.
### Attempt delays and load reports
Java's OpenTelemetry plugin records `grpc.client.attempt.delay.duration` and emits
`Attempt Delay` child spans for RPC attempts delayed during load balancing, including
`pick_first`, `round_robin`, RLS, and xDS. Custom policies can report delay type and
reason with `LoadBalancer.PickResult.withNoResult(delayType, delayReason)`;
`ClientStreamTracer` exposes delay callbacks.
Java enables ORCA-to-LRS propagation by default; xDS configuration selects which
ORCA backend metric fields appear in LRS load reports under gRFC A85. Core exposes
gRFC A94 subchannel metrics. Python 1.81.2 adds observability for `grpc.aio` RPCs.
## Build and code generation
C# `Grpc.Tools` builds Linux ARM64 `protoc` on `manylinux_2_28` and fixes an ARM64
segmentation fault. It ships universal macOS binaries for native Apple Silicon use.
Python adds 3.15 support for Bazel builds with `rules_python` 2.0.2 and publishes
Python 3.15 wheels in gRPC Python 1.84.0.
Java's compiler plugin supports `EDITION_2026` when built against Protobuf 7.35.0
(v35.0) or later. In gRPC-Java 1.85.0, `java_grpc_library` and
`java_lite_grpc_library` use the same `protoc` binary and options as
`java_proto_library`, selected through Protobuf's `proto_lang_toolchain`.
Java's Bazel `WORKSPACE` supports JDK 25 builds with `rules_java` 9.1.0.