fix: align Vector component schemas with v0.53.0 spec#80
Merged
TerrifiedBug merged 3 commits intomainfrom Mar 9, 2026
Merged
Conversation
Bump Vector to 0.53.0 and audit all VectorFlow component schemas against `vector generate-schema` to fix mismatches: - Bump Vector from 0.44.0 to 0.53.0 in agent and server Dockerfiles - Add encoding to required arrays for 25 sinks - Remove invalid TLS fields from 12 components (implicit via HTTPS/rediss) - Remove deprecated fields (http headers, elasticsearch suppress_type_name, splunk_hec token, databend tls) - Remove invalid fields (mqtt qos, pulsar dead_letter_queue_topic, etc.) - Fix required arrays for 8 components (kafka group_id, nats connection_name, vector address, opentelemetry grpc/http, throttle window_secs, etc.) - Fix aws_sns queue_url → topic_arn (Vector docs have copy-paste bug from SQS) - Add dependsOn for 6 modal components (syslog, socket, fluent, dnstap, statsd sources + socket sink) so fields show/hide based on selected mode
Contributor
Greptile SummaryThis PR bumps Vector from 0.44.0 → 0.53.0 across all three Dockerfiles/install scripts and performs a comprehensive audit of all 114 VectorFlow component schemas against Key changes include:
Confidence Score: 4/5
Important Files Changed
Flowchart%%{init: {'theme': 'neutral'}}%%
flowchart TD
A[User selects component in Pipeline Editor] --> B[SchemaForm renders configSchema]
B --> C[FieldRenderer iterates over schema properties]
C --> D{Field has dependsOn?}
D -- No --> E[Render field unconditionally]
D -- Yes --> F[Read parentValues for dependsOn.field]
F --> G{dependsOn.value\nis array?}
G -- Yes --> H[Use value as-is]
G -- No --> I[Wrap string in array]
H --> J{parentValues includes\ncurrent mode?}
I --> J
J -- No --> K[return null — field hidden]
J -- Yes --> E
E --> L[Rendered field in config form]
subgraph "New in this PR: mode-gated fields"
M["socket sink: address / path / send_buffer_bytes"]
N["syslog source: address / path / socket_file_mode"]
O["socket source: address / path / socket_file_mode"]
P["fluent source: address / path / socket_file_mode"]
Q["dnstap source: address / socket_path / socket_file_mode"]
R["statsd source: address / path"]
end
Last reviewed commit: d17d194 |
…tor spec Deep value-level validation against `vector generate-schema`: Encoding codecs: - Remove invalid `ndjson` codec from all sinks and shared.ts default (NDJSON in Vector = codec:json + framing:newline_delimited) - Add missing `otlp` and `syslog` codecs to 20+ sinks - Standardize all sinks to Vector's canonical 13-codec list Compression options: - Add missing algorithms to AWS, GCP, network, and search-db sinks (snappy, zlib, zstd where missing) - Keep Kafka's unique list (lz4 instead of zlib) Enum value fixes: - source:http_server method — add DELETE, HEAD, OPTIONS, PATCH - source:http_client method — add DELETE, OPTIONS, PATCH - sink:http method — add trace - sink:clickhouse format — add arrow_stream - source:host_metrics collectors — add tcp - source:vector version — remove deprecated v1 - source:docker_logs multiline mode — halt_after → halt_with - sink:gcp_chronicle region — remove invalid australia-southeast1 Default value fixes: - source:aws_sqs visibility_timeout_secs — 30 → 300 (10x too low)
Small ExternalLink icon next to the component name in the detail panel
that opens the Vector documentation for that component type. URL is
computed from kind/type: vector.dev/docs/reference/configuration/{kind}s/{type}/
Owner
Author
|
@greptile review |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
vector generate-schema— 112/114 clean (remaining 2 are informational missing optional fields for dnstap and kubernetes_logs)dependsOnconditional visibility to 6 modal components so fields show/hide based on selected modeField presence & required status
encodingto required arrays for 25 sinksgroup_id, natsconnection_name, vectoraddress, opentelemetrygrpc/http, throttlewindow_secs, gcp stackdriverresource)headers, elasticsearchsuppress_type_name, splunk_hectoken, databendtlsqueue_url→topic_arn(Vector docs have a copy-paste bug)Encoding codecs
ndjsoncodec from all sinks (NDJSON =codec:json+framing:newline_delimited)otlpandsyslogcodecs to 20+ sinksCompression options
lz4instead ofzlib)Enum values
method— add missing HTTP methodsmethod— addtraceformat— addarrow_streamcollectors— addtcpversion— remove deprecated v1mode—halt_after→halt_withregion— remove invalidaustralia-southeast1Default values
visibility_timeout_secs— 30 → 300 (was 10x too low, would cause premature message redelivery)UX — conditional field visibility
address,path,socket_file_modeshow/hide based onmodeselectionTest plan
vector generate-schema 2>/dev/null > /tmp/vector-schema.json && python3 scripts/audit-vector-schemas.py→ 112/114 cleannpx tsc --noEmitpassesaddressshows for tcp/udp,pathshows for unixaddressfor tcp/udp,pathfor unix modesndjson