api7 / api7/adc

Validate mutual exclusion of StreamRoute sni and snis

Open
#619 0 comments 0 reactions 1 assignee View on GitHub

@bzp2010 is already working on this.

Since Sep 18, 2026.

Dominant language
Rust
Stars
70
Forks
15
Avg merge
1h 58m
Merged PRs (30d)
42

Description

Summary

Add ADC validation that rejects a stream route when both sni and snis are configured.

Rationale

The current schema and backend conversion paths can pass both fields to a backend. The gateway or API7 control plane rejects this invalid configuration. ADC should reject the configuration before it reaches a backend.

Affected areas

  • TypeScript stream-route schema validation in libs/sdk/src/core/schema.ts
  • Rust stream-route schema validation in rust/crates/adc-sdk/src/resources/route.rs
  • Generated TypeScript and Rust schema artifacts, if required
  • Validation tests for all supported backend write paths

Acceptance criteria

  • ADC rejects any StreamRoute that sets both sni and snis.
  • A route with only sni remains valid.
  • A route with only snis remains valid.
  • TypeScript and Rust validation tests cover the invalid and valid configurations.
  • The configuration fails before backend-specific conversion or write operations.

Backlinks

Contributor guide

No contributing guide indexed for this repository

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.