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
I'm using an S3 bucket as storage and it just doesn't work with that. When I try to use the storage on my k8s volume it works normally
REPRODUCE
upload verdaccio in a k8s environment, configure it with a google auth plugin, npm audit and s3 bucket, configure them and then authenticate and get a token.
Now go to your project, export the captured registry and token values and run npm install and then npm audit.
Comportamento esperado
return the output of an npm audit
Arquivo de configuração (cat ~/.config/verdaccio/config.yaml)
image:
repository:
tag: 1.1.0
pullPolicy: Always
affinity:
{{- if .Values.affinity }}
{{ toYaml .Values.affinity | indent 4 }}
{{- end }}
ingress:
enabled: true
className: nginx
paths:
- /
hosts:
- {{ .Values.lbHostname }}
# Extra Environment Values - allows yaml definitions
extraEnvVars:
- name: VERDACCIO_PORT
value: "4873"
configMap: |
max_body_size: 100mb
storage: /verdaccio/storage/data
plugins: /verdaccio/plugins
web:
title: Verdaccio
auth:
{{ if .Values.googleAuth.enabled -}}
google-oauth-ui-2:
client-id: {{ .Values.clientID }}
client-secret: {{ .Values.clientSecret }}
domain: {{ .Values.googleAuth.allowedDomain }}
{{ end -}}
htpasswd:
# Do not change this path if secrets htpasswd is used.
file: /verdaccio/storage/htpasswd
# Maximum amount of users allowed to register, defaults to "+infinity".
# You can set this to -1 to disable registration.
algorithm: bcrypt
# Rounds number for "bcrypt", will be ignored for other algorithms.
rounds: 10
max_users: -1
security:
api:
legacy: false
jwt:
sign:
expiresIn: 365d
web:
sign:
expiresIn: 7d
# a list of other known repositories we can talk to
uplinks:
npmjs:
url: https://registry.npmjs.org/
maxage: 60m
agent_options:
keepAlive: true
maxSockets: 40
maxFreeSockets: 10
"@*/*":
access: '$authenticated'
publish: '$authenticated'
unpublish: '$authenticated'
proxy: npmjs
"**":
access: '$authenticated'
publish: '$authenticated'
unpublish: '$authenticated'
proxy: npmjs
middlewares:
audit:
enabled: true
{{ if .Values.googleAuth.enabled -}}
google-oauth-ui-2:
enabled: true
{{ end -}}
{{ if .Values.bucketS3.enabled -}}
store:
aws-s3-storage:
bucket: {{ .Values.bucketS3.name }}
region: {{ .Values.bucketS3.region }}
accessKeyId: {{ .Values.bucketS3.accessKeyId }}
secretAccessKey: {{ .Values.bucketS3.secretAccessKey }}
{{ end -}}
The text was updated successfully, but these errors were encountered:
Set the log level to debug. then you can see in the log how the audit request is forwarded to registry.npmjs.com and what kind of error is returned to verdaccio.
ENVIRONMENT
BUG
When trying to run npm audit or npm audit fix it returns the following error
I'm using an S3 bucket as storage and it just doesn't work with that. When I try to use the storage on my k8s volume it works normally
REPRODUCE
upload verdaccio in a k8s environment, configure it with a google auth plugin, npm audit and s3 bucket, configure them and then authenticate and get a token.
Now go to your project, export the captured registry and token values and run npm install and then npm audit.
Comportamento esperado
return the output of an npm audit
Arquivo de configuração (cat ~/.config/verdaccio/config.yaml)
The text was updated successfully, but these errors were encountered: