Skip to content

Validate mutual exclusion of StreamRoute sni and snis #619

Description

@coderabbitai

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

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

Labels

No labels
No labels

Type

No type

Projects

No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions