Multiple Issues with `deck file ai2kong`

Aperta
#2,286 0 commenti 0 reazioni 0 assegnatari Vedi su GitHub

I maintainer di solito rispondono entro 1 giorno

Nessuno ha ancora preso questa issue.

Valutazione

Difficoltà
5/5
Tempo stimato
Più di una settimana
Idoneità per principianti
35/100
Tipo di issue
Bug
Chiarezza
Abbastanza chiara
Stato di attività
Attiva
Stack tecnologico
go

Direzione di ricerca

Start with the attached federated Kongctl YAML and reproduce the reported problems using decK v1.68.0 and deck file ai2kong. Read the conversion path for AI Gateway entities, secrets, MCP servers, consumer groups, and the ai-proxy-advanced plugin. Compare the generated configuration and errors with the seven reported cases; done when those cases convert and validate correctly without duplicate models or placeholder URLs.

Scritto dal modello di indicizzazione a partire dal testo della issue.

Descrizione

See kongctl yaml in attached files to reproduce the issues with deck file ai2kong version v1.68.0

federated.zip

  1. deck doesn't support ai_gateway_consumers, ai_gateway_model_providers, ai_gateway_models, etc. It only supports consumers, model_providers, models, etc.
  2. An empty string is supported by kongtcl in vault.config.namespace but not by deck
  3. Issue with MCP servers:the url is set to a default localhost
  • deck says:
Warning MCP server "weather-service" tool "weather" has no description; ai-mcp-proxy requires one
Warning: MCP server "weather-service" is passthrough-listener but has no upstream_url; using placeholder host "localhost"
  1. decK can create multiple ai_models entries (with the same name) because deck creates 1 entry per config.route.model.values. But keep in mind that we can have multiple models having the same config.route.model.values but with different config.route.paths

Here decK creates a file with multiple gpt-5-nano-openai entries:
ai_models:

  • name: gpt-5-nano-openai
    tags:
    • KONGCTL-namespace:se-demo
  • name: gpt-5.4-nano-azure
    tags:
    • KONGCTL-namespace:se-demo
  • name: gpt-5-nano-openai
    tags:
    • KONGCTL-namespace:se-demo
  • name: best-model-semantic
    tags:
    • KONGCTL-namespace:se-demo
  1. The consumers are not declared in the consumer group

  2. deck doesn't manage the kongctl api-key with !secret
    kongctl:

  • name: silver-partner
    credentials:
    • name: silver-partner-key
      type: api-key
      api_key: !secret {source: !env KONNECT_AI_GATEWAY_SILVER_APIKEY}

deck returns: cannot unmarshal !secret '' into string

  1. deck doesn't correctly convert the ai-proxy-advanced with config.balancer.algorithm=semantic. There is an issue with config.embeddings and config.vectordb:

while processing event: Create plugin ai-proxy-advanced for route openai-chat-3 failed: HTTP status 400 (message: "2 schema violations (config.embeddings: {\n config = "unknown field",\n model = {\n name = "required field missing",\n provider = "required field missing"\n },\n name = "unknown field"\n}; config.vectordb: {\n connect_timeout = "unknown field",\n database = "unknown field",\n host = "unknown field",\n password = "unknown field",\n port = "unknown field",\n ssl = "unknown field",\n ssl_verify = "unknown field",\n strategy = "required field missing",\n type = "unknown field",\n username = "unknown field"\n})")`

Lingua principale
Go
Stelle
507
Fork
142
Merge medio
1g 15h
PR unite (30g)
9

Preparare l'ambiente

  • Include un Dockerfile o un file Docker Compose
  • Nessun modello di pull request
  • Nessuna guida per i contributori

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 Kong/deck

Tutte le issue di Kong/deck

Issue simili

Altre issue su Go

Ricevi le nuove issue nella tua casella

Un breve riepilogo di issue GitHub adatte ai principianti.