[BUG]: ops cannot reach a local apihost behind a proxy
Nadie ha tomado este issue todavía.
Evaluación
- Dificultad
- 2/5
- Tiempo estimado
- 1-3 horas
- Aptitud para principiantes
- 68/100
- Tipo de issue
- Error
- Claridad
- Bien especificado
- Estado de actividad
- Activo
- Área
- cli, networking
Línea de trabajo
Sigue las referencias a issue #175 y openserverless-cli PR #56, y luego rastrea cómo ops configura apihost y pasa las variables de entorno del proxy a los comandos secundarios. Reprodúcelo con un devcluster local y HTTP_PROXY/HTTPS_PROXY configurados mientras NO_PROXY está vacío. Se considera completado cuando las solicitudes al apihost local omiten el proxy, mientras que las solicitudes remotas siguen usándolo.
Escrito por el modelo de indexación a partir del texto del issue.
Descripción
- I have searched the issues of this repository and believe that this is not a duplicate.
Ⅰ. Issue Description
following up on #175 and https://github.com/apache/openserverless-cli/pull/56
The issue was that when HTTP_PROXY/HTTPS_PROXY are set, ops cannot talk to a local OpenServerless installation (eg. the devcluster at http://miniops.me, which resolves to 127.0.0.1). commands like ops ide deploy and ops env list failed, showing a ambigous error like repeat login.
The proxy variables themselves are honoured fine, go (ops -wsk, go-git), bun and curl all pick them up. so the suspection that the env vars propogation was the main culprit was wrong. the actual problem is that ops never sets its apihosts to NO_PROXY, so requests to the local apihost are also sent to the proxy, and the proxy cannot reach the developer's own machine. proxy for remote apihost worked fine, even before the fix.
Ⅱ. Describe what happened
with a forward proxy configured and no NO_PROXY, every request to the apihost goes to the proxy (even the local ones, that made it through a Repeat lgoin error. The proxy refuses the loopback target, so ops thinks the login is broken.
apache/issue175-test/proj
❯ export HTTP_PROXY=http://172.18.0.1:3128 HTTPS_PROXY=http://172.18.0.1:3128 NO_PROXY=
apache/issue175-test/proj
❯ ops ide deploy --packages
Repeat the login
ops: Failed to run task "deploy": exit status 1
task execution error: ops: Failed to run task "deploy": exit status 1
Ⅲ. Describe what you expected to happen
ops should work behind a proxy against a local installation, reqs to the local apihost go direct (bypassing the proxy, this can be done by appending the local apihost to NO_PROXY, everything else (github for ops -update, image registries,...) keeps going through the proxy.
Ⅳ. How to reproduce it (as minimally and precisely as possible)
ops setup devclusterandops ide login openserverless http://miniops.me(no proxy yet).- run a forward proxy that the shell can reach. (i'll attach the one i used below in the comments).
export HTTP_PROXY=http://<proxy>:3128 HTTPS_PROXY=http://<proxy>:3128.- in a sample project run
ops ide deploy --packagesfails, (i've already attached a bash output above for this). ops env listfails as well.
Ⅴ. Anything else we need to know?
this happened beause ops passes its environment to every child (wsk, bun, curl in tasks) and none of these bypass the proxy for a hostname unless it is in NO_PROXY. Go for example only auto-bypasses literal localhost/loopback IPs, not a name that resolves to one. Nothing in ops sets NO_PROXY, so the apihost is never excluded.
Ⅵ. Environment:
- K8S Runtime and version: kind (docker), Kubernetes v1.33.1,
ops setup devcluster - OPS CLI version: 0.9.0-incubating (0.9.0 branch, 2026-10 snapshot)
- Others: linux
- Lenguaje dominante
- Python
- Estrellas
- 577
- Forks
- 29
- Merge medio
- 4 d 23 h
- PR fusionados (30 d)
- 3
Preparar el entorno
- Sin Dockerfile ni archivo de Docker Compose
- Tiene una plantilla de pull request
- Leer la guía de contribución
Primeros pasos
- Lee el issue completo y luego la guía de contribución del proyecto.
- Comenta en el issue que vas a ocuparte — evita que dos personas hagan lo mismo.
- Haz un fork del repositorio y trabaja en una rama.
- Abre un pull request que haga referencia al número del issue.
Más de apache/openserverless
-
Dificultad 2/5 1-3 horas Aptitud para principiantes 85/100
apache/openserverless#269 ·
-
Dificultad 2/5 1-3 horas Aptitud para principiantes 84/100
apache/openserverless#267 ·
-
Streamer 0.9.0 hardening: authenticated callbacks and backward-incompatible client migrationAbierto
Dificultad 5/5 Más de una semana Aptitud para principiantes 20/100
apache/openserverless#274 ·
-
Dificultad 5/5 Más de una semana Aptitud para principiantes 8/100
apache/openserverless#273 · 2 comentarios ·
-
Dificultad 4/5 1-2 días Aptitud para principiantes 42/100
apache/openserverless#271 · 9 comentarios ·
Todos los issues de apache/openserverless
Issues similares
-
Skill submission: negative-test-first (testing discipline; PR creation is collaborator-only)Abierto
Dificultad 2/5 1-3 horas Aptitud para principiantes 72/100
ComposioHQ/awesome-claude-skills#2398 ·
Los mantenedores suelen responder en 2 días
-
bug converter
Dificultad 2/5 1-3 horas Aptitud para principiantes 62/100
grafana/sigma-rule-deployment#435 ·
Los mantenedores suelen responder en 1 día
-
bug
Dificultad 2/5 1-3 horas Aptitud para principiantes 73/100
datamodel-code-generator/datamodel-code-generator#5589 ·
Los mantenedores suelen responder en 1 día
-
Shell: serve the home app's Cookie Policy on a hard reloadPosiblemente ocupada @2001anshkaushik la tomó hoy. Abiertofeature module:ai
Dificultad 2/5 1-3 horas Aptitud para principiantes 88/100
rocketride-org/rocketride-server#2899 · 1 comentario ·
Los mantenedores suelen responder en 2 días
-
GEFSv12
Dificultad 2/5 1-3 horas Aptitud para principiantes 70/100