Hacktoberfest 2026: le issue che i maintainer hanno segnato per ottobre, aperte e adatte ai principianti. Sfoglia le issue Hacktoberfest

new-counter-demo OTLP push accepts invalid endpoint URLs

Aperta
#175 1 commento 0 reazioni 1 assegnatario Vedi su GitHub

@blackdragoon26 ci sta già lavorando.

Dal 14/8/2026.

  • #176 di @blackdragoon26 — aperta

Valutazione

Questa issue non è ancora stata valutata.

Descrizione

What happened:

new-counter-demo only checks whether the OTLP endpointURL field is non-empty. Relative values and unsupported schemes are accepted, then converted into exporter options with an empty or invalid host. The configuration error is discovered later during provider initialization.

What I expected to happen:

The configuration parser should reject endpoint values that are not absolute HTTP or HTTPS URLs and report the problem at configuration time.

How to reproduce it (as minimally and precisely as possible):

  1. Configure the OTLP push method with endpointURL: localhost:4318.
  2. Initialize the OTLP provider.
  3. Observe that the invalid value passes NewConfig and fails later with exporter configuration behavior.

A focused regression test covers rejection of the invalid value and acceptance of a valid OTLP HTTP endpoint.

Anything else we need to know?:

The change only validates the existing URL-based configuration contract and does not change provider or export behavior.

Lingua principale
Go
Stelle
269
Fork
172
Metriche di merge delle PR
Nessuna PR unita negli ultimi 30g

Preparare l'ambiente

Questo progetto non fornisce container di sviluppo, Dockerfile né guida per i contributori, quindi l'ambiente è a tuo carico: parti dal suo README e consulta la nostra guida al primo contributo per i passaggi generali.

Come iniziare

  1. Leggi tutta la issue e poi la guida ai contributi del progetto.
  2. Commenta sulla issue per dire che te ne occupi tu — evita che due persone facciano lo stesso lavoro.
  3. Fai un fork del repository e lavora su un branch.
  4. Apri una pull request che faccia riferimento al numero della issue.

Altre issue di kubeedge/examples

Tutte le issue di kubeedge/examples

Issue simili

Altre issue su Go

Ricevi le nuove issue nella tua casella

Un breve riepilogo di issue GitHub adatte ai principianti.