question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Verdaccio (Helm) - htpasswd permission denied

See original GitHub issue

Describe the bug I installed verdaccio helm chart with my custom configuration yaml file. I tried to ssh into the pod and create /verdaccio/storage/htpasswd with user records but I don’t have the permission to create a file inside /storage directory.

To Reproduce

  1. Create custom config.yaml

  2. Create configmap: kubectl create configmap verdaccio-config --from-file ./config.yaml

  3. Install Verdaccio Helm Chart: helm install verdaccio --set customConfigMap=verdaccio-config verdaccio/verdacio

  4. I ssh into the pod and wanted to create /verdaccio/storage/htpasswd file but I got ‘permission denied’. I also tried to run chown command on the folder but I couldn’t as I do not have enough privilege.

Configuration File (cat ~/.config/verdaccio/config.yaml)

storage: /verdaccio/storage/data
plugins: /verdaccio/plugins

web:
  title: Verdaccio

auth:
  htpasswd:
    file: /verdaccio/storage/htpasswd
    max_users: -1

uplinks:
  npmjs:
    url: https://registry.npmjs.org/

packages:
  '@my-scope/*':
    access: $authenticated
    publish: $authenticated
    unpublish: $authenticated
    proxy: npmjs

middlewares:
  audit:
    enabled: true

logs:
  - { type: stdout, format: pretty, level: http }

Issue Analytics

  • State:closed
  • Created 3 years ago
  • Comments:8 (2 by maintainers)

github_iconTop GitHub Comments

3reactions
marekafcommented, Oct 29, 2020

Maybe the chart should pass htpasswd as a secret? Is this feasible? Instead of manually creating the file in the pod.

definitely, nothing should be created manually in the pod

2reactions
jfrancisco0commented, Oct 29, 2020

Maybe the chart should pass htpasswd as a secret? Is this feasible? Instead of manually creating the file in the pod.

Read more comments on GitHub >

github_iconTop Results From Across the Web

Configuration File - Verdaccio
This file is the cornerstone of Verdaccio where you can modify the default behaviour, enable plugins and extend features.
Read more >
Lennart Nordgreen / helm-charts · GitLab
Name Last commit Last update aerospike Fixed imagePullSecrets (#19705) 2 years ago airflow fix(requirements): updated versions (#20228) 2 years ago ambassador Add deprecation warning to helm...
Read more >
npm 私有库搭建- verdaccio (一) - CSDN博客
安装npm install -g verdaccio --unsafe-perm加上–unsafe-perm的原因会导致 ... configure error gyp ERR! stack Error: EACCES: permission denied, ...
Read more >
unRaid App List - GitHub Pages
Supports multi-user w/ permissions and keeps progress in sync across devices. ... Verdaccio comes out of the box with its own tiny database,...
Read more >
Untitled
Can you maybe explain how did you install verdaccio? well, in the case if you are using kubernetes, I recommend deploying verdaccio via...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found