Cloudron makes it easy to run web apps like WordPress, Nextcloud, GitLab on your server. Find out more or install now.


Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • Bookmarks
  • Search
Skins
  • Light
  • Cerulean
  • Cosmo
  • Flatly
  • Journal
  • Litera
  • Lumen
  • Lux
  • Materia
  • Minty
  • Morph
  • Pulse
  • Sandstone
  • Simplex
  • Sketchy
  • Spacelab
  • United
  • Yeti
  • Zephyr
  • Dark
  • Cyborg
  • Darkly
  • Quartz
  • Slate
  • Solar
  • Superhero
  • Vapor

  • Default (No Skin)
  • No Skin
Collapse
Brand Logo

Cloudron Forum

Apps | Demo | Docs | Install
  1. Cloudron Forum
  2. Verdaccio
  3. Verdaccio complaining about secret key length

Verdaccio complaining about secret key length

Scheduled Pinned Locked Moved Verdaccio
6 Posts 2 Posters 196 Views 2 Watching
  • Oldest to Newest
  • Newest to Oldest
  • Most Votes
    Reply
    • Reply as topic
    Log in to reply
    This topic has been deleted. Only users with topic management privileges can see it.
    • philkunzP Offline
      philkunzP Offline
      philkunz
      wrote on last edited by philkunz
      #1

      Screenshot 2025-04-15 at 15.31.56.png

      caused:

      Screenshot 2025-04-15 at 15.32.42.png

      1 Reply Last reply
      0
      • philkunzP Offline
        philkunzP Offline
        philkunz
        wrote on last edited by
        #2

        Seems like the secret key needs to be updated...

        girishG 1 Reply Last reply
        0
        • philkunzP philkunz

          Seems like the secret key needs to be updated...

          girishG Do not disturb
          girishG Do not disturb
          girish
          Staff
          wrote on last edited by
          #3

          @philkunz is that a warning or does it refuse to start?

          1 Reply Last reply
          0
          • girishG Do not disturb
            girishG Do not disturb
            girish
            Staff
            wrote on last edited by
            #4

            There seems to be a /app/data/.verdaccio-db.json which has a secret. Maybe change this to some 32 char value? This file is managed by verdaccio and not generated by the package.

            1 Reply Last reply
            0
            • girishG Do not disturb
              girishG Do not disturb
              girish
              Staff
              wrote on last edited by girish
              #5

              ok, the information is here - https://github.com/verdaccio/verdaccio/blob/master/website/versioned_docs/version-6.x/config.md?plain=1#L46 . we updated the app to use node 22

              For users who have been using Verdaccio for an extended period and the `.verdaccio-db` file already exist the secret
              may be **64 characters** long. However, for newer installations, the length will be generated as **32 characters** long.
              
              If the secret length is **64 characters** long:
              
              - For users running Verdaccio 5.x on **Node.js 22** or higher, **the application will fail to start** if the secret length **is not** 32 characters long.
              - For users running Verdaccio 5.x on **Node.js 21** or lower, the application will start, but it will display a deprecation warning at the console.
              
              #### How to upgrade the token secret at the storage?
              
              :warning: **If the secret is updated will invalidate all previous generated tokens.**
              
              ##### Option 1: Manually
              
              Go to the [storage location](cli.md) and edit manually the secret to be 32 characters long.
              
              ##### Option 2: Automatically (since v5.31.0)
              
              The `migrateToSecureLegacySignature` property is used to generate a new secret token if the length is 64 characters.
              
              security:
                api:
                  migrateToSecureLegacySignature: true
              
              The token will be automatically updated to 32 characters long and the application will start without any issues.
              The property won't have any other effect on the application and could be removed after the secret is updated.
              
              
              1 Reply Last reply
              0
              • philkunzP Offline
                philkunzP Offline
                philkunz
                wrote on last edited by
                #6
                security:
                  api:
                    migrateToSecureLegacySignature: true
                

                solves this.

                1 Reply Last reply
                1
                Reply
                • Reply as topic
                Log in to reply
                • Oldest to Newest
                • Newest to Oldest
                • Most Votes


                  • Login

                  • Don't have an account? Register

                  • Login or register to search.
                  • First post
                    Last post
                  0
                  • Categories
                  • Recent
                  • Tags
                  • Popular
                  • Bookmarks
                  • Search