You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
FROM verdaccio/verdaccio:5.26ADD docker.yaml /verdaccio/conf/config.yaml USER rootRUN apk add -f curlRUN npm install --global verdaccio-github-oauth-ui@6USER $VERDACCIO_USER_UID
helm values.yaml:
extraEnvVars:
- name: VERDACCIO_PORTvalue: "4873"
- name: GLOBAL_AGENT_HTTP_PROXYvalue: http://192.168.50.254:6152
- name: GLOBAL_AGENT_HTTPS_PROXYvalue: http://192.168.50.254:6152
- name: GLOBAL_AGENT_NO_PROXYvalue: localhost,127.0.0.1
- name: HTTP_PROXYvalue: http://192.168.50.254:6152
- name: HTTPS_PROXYvalue: http://192.168.50.254:6152
- name: NO_PROXYvalue: localhost,127.0.0.1
- name: http_proxyvalue: http://192.168.50.254:6152
- name: https_proxyvalue: http://192.168.50.254:6152
- name: no_proxyvalue: localhost,127.0.0.1
- name: GLOBAL_AGENT_ENVIRONMENT_VARIABLE_NAMESPACEvalue: ""configMap: | # path to a directory with all packages storage: /verdaccio/storage/data web: # WebUI is enabled as default, if you want disable it, just uncomment this line #enable: false title: Verdaccio auth: github-oauth-ui: client-id: "Iv1.xxxx" client-secret: "87d57xxxxx" token: "ghp_xxxx" # a list of other known repositories we can talk to uplinks: npmjs: url: https://registry.npmjs.org/ agent_options: keepAlive: true maxSockets: 40 maxFreeSockets: 10 packages: '@*/*': # scoped packages access: $all publish: $authenticated proxy: npmjs '**': # allow all users (including non-authenticated users) to read and # publish all packages # # you can specify usernames/groupnames (depending on your auth plugin) # and three keywords: "$all", "$anonymous", "$authenticated" access: $all # allow all known users to publish packages # (anyone can register by default, remember?) publish: $authenticated # if package is not available locally, proxy requests to 'npmjs' registry proxy: npmjs # To use `npm audit` uncomment the following section middlewares: github-oauth-ui: enabled: true # log settings log: { type: file, path: /tmp/verdaccio.log, level: debug }
login button can open the github oauth page, but redirect to /-/oauth/callback url will 500.
The problem likely has to do with the use of a proxy server.
I believe, proxy support might have broken when switching from manual HTTP requests to using Octokit since Octokit uses fetch which does not respect HTTP_PROXY.
Bug Report
Versions
Environment
Observed behavior
docker file:
helm values.yaml:
login button can open the github oauth page, but redirect to
/-/oauth/callback
url will 500.the log is:
Expected behavior
expect to 200, like run by curl in the same pod:
The text was updated successfully, but these errors were encountered: