OpenConfig & gRPC¶
This page covers gNMI, gNOI (same gRPC transport), gRIBI, gNSI, gNPSI, RESTCONF, and eos-sdk-rpc TLS configuration on EOS.
Live checks: make test-openconfig (test matrix).
| Item | Value |
|---|---|
| Template | configs/ceos/ceos*.cfg.in → lab/.gen/ |
| Configured policy | TLS 1.3 only, PQC-hybrid group X25519MLKEM768, AEAD ciphers |
| Certificates | Classical RSA with SANs for each switch MGMT address (make containerlab-gentopo) |
See also Certificates and TLS 1.3.
All services below use VRF MGMT unless noted. Results were verified on EOS 4.37.0F on the default lab image. Configured policy and live enforcement differ for RESTCONF, gRIBI, and eos-sdk-rpc; see their caveats.
gNMI / gNOI (gRPC)¶
| Item | Value |
|---|---|
| Port | 6030 |
| Profile | GNMI |
| mTLS | Client cert signed by lab CA (radsec-ca.pem trust on switch) |
Configuration¶
SSL profile GNMI¶
Complete profile from configs/ceos/ceos1-both.cfg.in:
management security
ssl profile GNMI
tls versions 1.3
key-establishment-group X25519MLKEM768
cipher v1.3 TLS_AES_256_GCM_SHA384:TLS_CHACHA20_POLY1305_SHA256:TLS_AES_128_GCM_SHA256
certificate ceos1-both-gnmi.pem key ceos1-both-gnmi.key
trust certificate radsec-ca.pem
Service binding¶
management api gnmi
transport grpc default
vrf MGMT
ssl profile GNMI
gNOI shares the same gRPC endpoint and GNMI ssl profile as gNMI.
Caveats¶
| Topic | Status on EOS |
|---|---|
| Config | Profile valid; PQC-hybrid only |
| Live wire | PQC-safe - TLS 1.3 + X25519MLKEM768 |
| Live mTLS | PQC-safe with lab client cert |
| gNOI | Same transport and PQC policy as gNMI; separate make test-openconfig check lines |
| SA-0146 | Safe - lab uses mTLS (trust certificate) (details) |
Verification¶
Configuration¶
docker exec -i arista-quantum-safe-ceos1-both Cli <<'EOF'
enable
show management security ssl profile GNMI detail
show management api gnmi
EOF
Live PQC handshake¶
TLS (server auth only):
docker exec arista-quantum-safe-test-runner sh -c \
'OPENSSL_CONF=/etc/probe/openssl-pqc.cnf \
openssl s_client -connect 172.20.127.11:6030 -tls1_3 \
-CAfile /etc/probe/certs/radsec-ca.pem -brief </dev/null 2>&1' \
| grep -E 'Protocol|Negotiated TLS1.3 group'
mTLS (client cert per switch, e.g. ceos1-both):
docker exec arista-quantum-safe-test-runner sh -c \
'OPENSSL_CONF=/etc/probe/openssl-pqc.cnf \
openssl s_client -connect 172.20.127.11:6030 -tls1_3 \
-CAfile /etc/probe/certs/radsec-ca.pem \
-cert /etc/probe/certs/ceos1-both-client.pem \
-key /etc/probe/certs/ceos1-both-client.key \
-brief </dev/null 2>&1' \
| grep -E 'Protocol|Negotiated TLS1.3 group'
gNOI (Ping and reflection)¶
Primary live gRPC probes use gnoic, gribic, gnmic, and gnsic (Go 1.24+, PQC-hybrid crypto/tls) on :6030. grpcurl is rebuilt with Go 1.24+ in the test-runner image for gNPSI :6031 and as an RPC fallback when primary clients fail - see Tool chain.
gRPC reflection (expects gnoi.system.System):
docker exec arista-quantum-safe-test-runner gnoic -a 172.20.127.11:6030 \
--tls-ca /etc/probe/certs/radsec-ca.pem \
--tls-cert /etc/probe/certs/ceos1-both-client.pem \
--tls-key /etc/probe/certs/ceos1-both-client.key \
--tls-version 1.3 services
System/Ping over mTLS (gnoic):
docker exec arista-quantum-safe-test-runner gnoic -a 172.20.127.11:6030 \
--tls-ca /etc/probe/certs/radsec-ca.pem \
--tls-cert /etc/probe/certs/ceos1-both-client.pem \
--tls-key /etc/probe/certs/ceos1-both-client.key \
--tls-version 1.3 system ping --destination 127.0.0.1 --count 1 --do-not-resolve
Automated: make test-openconfig - gNMI TLS/mTLS/GET and separate gNOI lines (OpenConfig tests).
RESTCONF (HTTPS)¶
| Item | Value |
|---|---|
| Port | 6020 |
| Profile | RESTCONF |
Configuration¶
SSL profile RESTCONF¶
Complete profile from configs/ceos/ceos1-both.cfg.in (reuses gNMI server cert on each switch):
management security
ssl profile RESTCONF
tls versions 1.3
key-establishment-group X25519MLKEM768
cipher v1.3 TLS_AES_256_GCM_SHA384:TLS_CHACHA20_POLY1305_SHA256:TLS_AES_128_GCM_SHA256
certificate ceos1-both-gnmi.pem key ceos1-both-gnmi.key
trust certificate radsec-ca.pem
Service binding¶
management api restconf
transport https restconf
ssl profile RESTCONF
vrf MGMT
Caveats¶
| Topic | Status on EOS |
|---|---|
| Config | Profile valid; TLS 1.3 and PQC-hybrid only |
| Live hybrid probe | PQC-safe - TLS 1.3 + X25519MLKEM768 |
| Policy enforcement | Gap - classical secp256r1 TLS 1.3 and TLS 1.2 also complete |
Known EOS gap - RESTCONF policy enforcement
EOS 4.37.0F accepts classical TLS 1.3 and TLS 1.2 on 6020, despite the RESTCONF profile’s TLS 1.3 / hybrid-only settings. A successful positive hybrid probe proves support, not enforcement. make test-openconfig checks the positive handshake; separate negative probes confirm this gap on all six endpoints.
Verification¶
Configuration¶
docker exec -i arista-quantum-safe-ceos1-both Cli <<'EOF'
enable
show management security ssl profile RESTCONF detail
show management api restconf
EOF
Live PQC handshake¶
docker exec arista-quantum-safe-test-runner sh -c \
'OPENSSL_CONF=/etc/probe/openssl-pqc.cnf \
openssl s_client -connect 172.20.127.11:6020 -tls1_3 \
-CAfile /etc/probe/certs/radsec-ca.pem -brief </dev/null 2>&1' \
| grep -E 'Protocol|Negotiated TLS1.3 group'
Automated: make test-openconfig - RESTCONF HTTPS handshake (OpenConfig tests).
eos-sdk-rpc (gRPC mTLS)¶
| Item | Value |
|---|---|
| Port | 9543 |
| Profile | GNMI (reused) |
| Auth | mTLS |
Configuration¶
SSL profile¶
Reuses the complete GNMI ssl profile (see gNMI).
Service binding¶
Complete stanza from configs/ceos/ceos1-both.cfg.in:
management api eos-sdk-rpc
transport grpc default
local interface Management0
service all
no disabled
ssl profile GNMI
Unlike gNMI, eos-sdk-rpc uses local interface Management0 rather than vrf MGMT. On 4.37.0F, this lab binding resolves to the interface primary IPv4 address. It does not create a native IPv6 listener. show management api eos-sdk-rpc reports:
Listening on:
Local interface:
Management0, IP address is 172.20.127.11
port: 9543, VRF: MGMT
gNMI on the same GNMI ssl profile listens on :: (IPv4 + IPv6) when configured with vrf MGMT.
Caveats¶
| Topic | Status on EOS |
|---|---|
| Config | Profile lists X25519MLKEM768 |
| Live wire (IPv4) | Not PQC-safe - PQC-only probe EOF; explicit secp256r1 client completes TLS 1.3 |
| Live wire (IPv6) | No listener - local interface Management0 binds IPv4 only; make test-openconfig SKIPs IPv6 |
| SA-0146 | Safe - uses GNMI mTLS (trust certificate); not named in the advisory (details) |
IPv6 limitation (binding model)
Verified directly on all three switches: ip netns exec ns-MGMT ss -lntp shows EosSdkRpcAgent bound to an IPv4-mapped address such as [::ffff:172.20.127.11]:9543. An IPv4-mapped socket is not a native IPv6 listener. TCP and mTLS work on IPv4; native IPv6 port 9543 refuses connections while IPv6 eAPI works as a connectivity control. This finding applies to the current binding configuration; alternative binding configurations were not evaluated.
Not an ACL issue. Control-plane ACLs permit TCP 9543 on both IPv4 and IPv6. Management0 has an IPv6 address, but eos-sdk-rpc does not listen on it because the transport is bound via local interface Management0, which resolves to the primary IPv4. There is no equivalent of gNMI's vrf MGMT dual-stack listener for eos-sdk-rpc in this lab config.
Known EOS gap - eos-sdk-rpc
Configuration lists X25519MLKEM768, but live handshakes on port 9543 fail PQC negotiation on IPv4 in the verified 4.37.0F lab:
- PQC-only OpenSSL client → EOF / no handshake
- Explicit
-groups secp256r1→ TLS 1.3 with classical KEX (diagnostic /make test-openconfigfallback)
make test-openconfig validates [config] and reports WARN on the IPv4 live probe instead of failing the suite. IPv6 live probes are SKIPped. Separate TLS 1.2 probes negotiate protocol parameters then end with EOF; this does not establish a successful TLS 1.2 application session.
Verification¶
Configuration¶
docker exec -i arista-quantum-safe-ceos1-both Cli <<'EOF'
enable
show management security ssl profile GNMI detail
show management api eos-sdk-rpc
EOF
Live PQC handshake¶
PQC-only probe (fails on the verified 4.37.0F image):
docker exec arista-quantum-safe-test-runner sh -c \
'OPENSSL_CONF=/etc/probe/openssl-pqc.cnf \
openssl s_client -connect 172.20.127.11:9543 -tls1_3 \
-CAfile /etc/probe/certs/radsec-ca.pem \
-cert /etc/probe/certs/ceos1-both-client.pem \
-key /etc/probe/certs/ceos1-both-client.key \
-brief </dev/null 2>&1'
Compare with a classical-tolerant client (diagnostic only):
docker exec arista-quantum-safe-test-runner sh -c \
'openssl s_client -connect 172.20.127.11:9543 -tls1_3 -groups secp256r1 \
-CAfile /etc/probe/certs/radsec-ca.pem \
-cert /etc/probe/certs/ceos1-both-client.pem \
-key /etc/probe/certs/ceos1-both-client.key \
-brief </dev/null 2>&1' \
| grep -E 'Protocol|Negotiated TLS1.3 group'
Automated: make test-openconfig - mTLS on IPv4 (WARN when not PQC-safe); IPv6 SKIP (OpenConfig tests).
gRIBI (gRPC)¶
| Item | Value |
|---|---|
| Port | 9340 |
| Profile | GRIBI (dedicated; reuses gNMI cert/key files) |
| Transport | vrf MGMT (dual-stack) |
Configuration¶
SSL profile GRIBI¶
Complete profile from configs/ceos/ceos1-both.cfg.in (reuses gNMI cert/key files):
management security
ssl profile GRIBI
tls versions 1.3
key-establishment-group X25519MLKEM768
cipher v1.3 TLS_AES_256_GCM_SHA384:TLS_CHACHA20_POLY1305_SHA256:TLS_AES_128_GCM_SHA256
certificate ceos1-both-gnmi.pem key ceos1-both-gnmi.key
trust certificate radsec-ca.pem
Service binding¶
management api gribi
transport grpc default
vrf MGMT
ssl profile GRIBI
Caveats¶
| Topic | Status on EOS |
|---|---|
| Config | Profile valid; PQC-hybrid only (X25519MLKEM768) |
| Live wire | Not PQC-safe on 4.37.0F - wire accepts classical KEX (secp256r1); PQC-only clients get handshake failure |
| TLS version enforcement | TLS 1.2 also completes despite the strict profile on 4.37.0F |
| Probe client | gribic rebuilt with Go 1.24+ in the test-runner image (Tool chain) |
| SA-0146 | Safe - lab uses mTLS (trust certificate) (details) |
Known EOS gap - gRIBI
Configuration lists X25519MLKEM768, but live handshakes on port 9340 negotiate classical KEX (secp256r1) on EOS 4.37.0F. PQC-only clients get handshake failure.
make test-openconfig validates [config] and runs OpenSSL probes that try PQC-hybrid mTLS first, then fall back to an explicit secp256r1 diagnostic. The live probe WARNs instead of failing the suite (same class of issue as eos-sdk-rpc).
Verification¶
Configuration¶
docker exec -i arista-quantum-safe-ceos1-both Cli <<'EOF'
enable
show management security ssl profile GRIBI detail
show management api gribi
EOF
Live PQC mTLS¶
docker exec arista-quantum-safe-test-runner gribic -a 172.20.127.11:9340 \
--tls-ca /etc/probe/certs/radsec-ca.pem \
--tls-cert /etc/probe/certs/ceos1-both-client.pem \
--tls-key /etc/probe/certs/ceos1-both-client.key \
get --aft IPv4
Automated: make test-openconfig - mTLS + Get (WARN on 4.37.0F) (OpenConfig tests).
gNSI (gRPC)¶
| Item | Value |
|---|---|
| Port | 6030 (shared gNMI listener) |
| Profile | GNSI (dedicated ssl profile; wire TLS uses GNMI on :6030) |
| Services | certz, authz |
| Transport | transport gnmi default (not transport grpc) |
The lab defines a dedicated GNSI ssl profile under management security (PQC-hybrid-only, mTLS trust). Certz/Authz RPCs register on the gNMI listener when bound with transport gnmi default.
Configuration¶
SSL profile GNSI¶
Complete profile from configs/ceos/ceos1-both.cfg.in:
management security
ssl profile GNSI
tls versions 1.3
key-establishment-group X25519MLKEM768
cipher v1.3 TLS_AES_256_GCM_SHA384:TLS_CHACHA20_POLY1305_SHA256:TLS_AES_128_GCM_SHA256
certificate ceos1-both-gnmi.pem key ceos1-both-gnmi.key
trust certificate radsec-ca.pem
Service binding¶
management api gnsi
transport gnmi default
service authz
service certz
Certz/Authz RPCs register on the shared gNMI listener (:6030). Wire TLS on that port uses the GNMI ssl profile, not GNSI.
Caveats¶
| Topic | Status on EOS |
|---|---|
| Config | Dedicated GNSI profile valid; PQC-hybrid only |
| Live wire | PQC-safe on shared gNMI listener (GNMI profile on :6030) |
| Transport | Use transport gnmi default - validated binding on 4.37.0F |
| RPC access | Certz not in gRPC reflection; use gnsic -u admin |
| SA-0146 | Safe - shares gNMI :6030 mTLS (details) |
Transport binding
Use transport gnmi default, the binding validated on 4.37.0F. Alternative transport bindings were not evaluated.
Verification¶
Configuration¶
Port is read from show management api gnsi | json (transports.default.port, typically 6030).
docker exec -i arista-quantum-safe-ceos1-both Cli <<'EOF'
enable
show management security ssl profile GNSI detail
show management api gnsi
EOF
Live PQC mTLS (Certz)¶
Certz is not advertised in gRPC reflection; use gnsic with mTLS and gRPC metadata username (admin, nopassword in the lab):
docker exec arista-quantum-safe-test-runner gnsic -u admin -a 172.20.127.11:6030 \
--tls-ca /etc/probe/certs/radsec-ca.pem \
--tls-cert /etc/probe/certs/ceos1-both-client.pem \
--tls-key /etc/probe/certs/ceos1-both-client.key \
certz get-profile-list
Automated: make test-openconfig - Certz.GetProfileList with -u admin (OpenConfig tests).
gNPSI (gRPC / sFlow proxy)¶
| Item | Value |
|---|---|
| Port | 6031 (lab-chosen; CP-ACL permits it) |
| Profile | GNPSI (dedicated) |
| Source | sFlow |
Configuration¶
SSL profile GNPSI¶
Complete profile from configs/ceos/ceos1-both.cfg.in:
management security
ssl profile GNPSI
tls versions 1.3
key-establishment-group X25519MLKEM768
cipher v1.3 TLS_AES_256_GCM_SHA384:TLS_CHACHA20_POLY1305_SHA256:TLS_AES_128_GCM_SHA256
certificate ceos1-both-gnmi.pem key ceos1-both-gnmi.key
trust certificate radsec-ca.pem
Service binding¶
management api gnpsi
transport grpc default
listen-address vrf MGMT ::
port 6031
ssl profile GNPSI
source sFlow
no disabled
!
interface Ethernet8
sflow enable
!
sflow source-interface Ethernet8
sflow polling-interval 2
sflow run
sflow interface egress enable default Ethernet8
gNPSI proxies sFlow samples to gRPC clients. Requires sFlow enabled on at least one interface. Unlike gRIBI/gNMI (which use vrf MGMT on the transport), gNPSI binds the listen socket with listen-address vrf MGMT - vrf MGMT alone is not accepted under management api gnpsi transport grpc. Only one listen-address is permitted; listen-address vrf MGMT :: dual-stacks IPv4 and IPv6 on MGMT.
Ingress sampling is enabled under interface Ethernet8 (sflow enable), the routed port towards each Alpine host. Egress sampling is also configured. Set sflow source-interface Ethernet8 so the agent has usable IPv4/IPv6 addresses. sflow polling-interval 2 supplies counter samples within the eight-second Subscribe window even when the lab is idle; the normal flow sampling rate is 1:4096.
Caveats¶
| Topic | Status on EOS |
|---|---|
| Config | Dedicated GNPSI profile; PQC-hybrid only |
| Live TLS / reflection | PQC-safe on 4.37.0F - X25519MLKEM768 on all three switches over IPv4 + IPv6 |
| Policy enforcement | Classical TLS 1.3 and TLS 1.2 offers rejected on all six endpoints |
| Subscribe live | PASS, all six endpoints; counter samples at 1:4096, flow samples also verified with temporary 1:1 sampling |
| SA-0146 | Safe - lab uses mTLS (trust certificate); not named in the advisory (details) |
Subscribe delivery on EOS 4.37.0F
With the configuration above, all three switches deliver nonempty JSON Sample.packet over IPv4 and IPv6. Captures of the actual Subscribe connections select TLS 1.3 / X25519MLKEM768 / TLS_AES_128_GCM_SHA256. Idle probes decode as sFlow v5 counter samples; a separate controlled run with temporary 1:1 sampling and 500 routed pings per host also delivers flow samples on all six endpoints. The normal suite proves datagram delivery and does not require a sampled user packet.
Verification¶
Configuration¶
docker exec -i arista-quantum-safe-ceos1-both Cli <<'EOF'
enable
show management security ssl profile GNPSI detail
show management api gnpsi
show sflow
show sflow interfaces
EOF
Live PQC mTLS and Subscribe¶
mTLS + gRPC reflection (gnoic):
docker exec arista-quantum-safe-test-runner gnoic -a 172.20.127.11:6031 \
--tls-ca /etc/probe/certs/radsec-ca.pem \
--tls-cert /etc/probe/certs/ceos1-both-client.pem \
--tls-key /etc/probe/certs/ceos1-both-client.key \
--tls-version 1.3 services
Subscribe RPC (grpcurl; expects gnpsi.gNPSI):
docker exec arista-quantum-safe-test-runner grpcurl \
-cacert /etc/probe/certs/radsec-ca.pem \
-cert /etc/probe/certs/ceos1-both-client.pem \
-key /etc/probe/certs/ceos1-both-client.key \
-d '{}' '172.20.127.11:6031' gnpsi.gNPSI/Subscribe
Automated: make test-openconfig - hybrid mTLS and reflection PASS on IPv4 and IPv6; Subscribe PASS on all six endpoints (OpenConfig tests).
Other remarks¶
Security Advisory 0146¶
Arista Security Advisory 0146 (19 August 2026) is an HTTP/2 Rapid Reset DoS in gRPC-go. Exploitation requires a non-default gRPC server such as gNMI or gRIBI.
This lab uses Arista's published mTLS mitigation (trust certificate on the gRPC ssl profiles). No extra ssl-profile or transport knobs are required beyond configs/ceos/ceos*.cfg.in. The configuration is considered safe against SA-0146.
| Item | Lab status |
|---|---|
gNMI (:6030) / gRIBI (:9340) |
Enabled, with ssl profiles GNMI / GRIBI using trust certificate radsec-ca.pem |
| Other gRPC listeners | gNPSI and eos-sdk-rpc use the same trust certificate pattern |
Summary¶
| Service | Port | Profile | Live PQC | make test-openconfig |
|---|---|---|---|---|
| gNMI | 6030 | GNMI |
Yes | TLS, mTLS, GET |
| gNOI | 6030 (shared) | GNMI |
Yes | Ping RPC, reflection |
| gRIBI | 9340 | GRIBI |
No (wire) | mTLS + Get (WARN on 4.37.0F) |
| gNSI | 6030 (via transport gnmi default) |
GNSI profile; wire TLS on GNMI |
Yes | Certz.GetProfileList (-u admin) |
| gNPSI | 6031 | GNPSI |
Yes (TLS/reflection/Subscribe) | Hybrid mTLS + reflection + Subscribe PASS |
| RESTCONF | 6020 | RESTCONF |
Yes (positive probe) | HTTPS handshake; weaker offers also accepted |
| eos-sdk-rpc | 9543 | GNMI (reused) |
No (wire) | mTLS (WARN on IPv4); SKIP IPv6 |
SA-0146: Security Advisory 0146. Automated checks: make test-openconfig. Test matrix: OpenConfig tests. Related: eAPI, SSH, RadSec.