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. Vaultwarden
  3. Bitwarden 2FA

Bitwarden 2FA

Scheduled Pinned Locked Moved Solved Vaultwarden
9 Posts 4 Posters 2.9k Views 4 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.
  • luckowL Offline
    luckowL Offline
    luckow
    translator
    wrote on last edited by luckow
    #1

    Trying to activate 2FA for YubiKey:

    `YUBICO_CLIENT_ID` or `YUBICO_SECRET_KEY` environment variable is not set. Yubikey OTP Disabled
    

    It seems that we need more variables in the .env environment.

    https://github.com/dani-garcia/bitwarden_rs/wiki/Enabling-Yubikey-OTP-authentication

    Pronouns: he/him | Primary language: German

    1 Reply Last reply
    0
    • nebulonN Offline
      nebulonN Offline
      nebulon
      Staff
      wrote on last edited by
      #2

      You can just add them to /app/data/config.env and the app will pick them up. In this case add something like:

      export YUBICO_CLIENT_ID="clientId"
      export YUBICO_SECRET_KEY="secretKey"
      
      1 Reply Last reply
      1
      • luckowL Offline
        luckowL Offline
        luckow
        translator
        wrote on last edited by
        #3

        cool. i will try it.

        Pronouns: he/him | Primary language: German

        1 Reply Last reply
        0
        • nebulonN Offline
          nebulonN Offline
          nebulon
          Staff
          wrote on last edited by
          #4

          Let us know if it works and then I will put a section in the app docs for it.

          1 Reply Last reply
          0
          • luckowL Offline
            luckowL Offline
            luckow
            translator
            wrote on last edited by
            #5

            BAM! It works like a charm.

            Pronouns: he/him | Primary language: German

            1 Reply Last reply
            1
            • nebulonN Offline
              nebulonN Offline
              nebulon
              Staff
              wrote on last edited by
              #6

              Put the notes at https://cloudron.io/documentation/apps/bitwardenrs/#yubikey

              humptydumptyH 1 Reply Last reply
              2
              • nebulonN nebulon

                Put the notes at https://cloudron.io/documentation/apps/bitwardenrs/#yubikey

                humptydumptyH Offline
                humptydumptyH Offline
                humptydumpty
                wrote on last edited by
                #7

                @nebulon sorry to revive but the doc link is dead and I'm having issues loggin in to my VW on a new device. I logged in to VW admin page and the Yubikey section is enabled but fields are empty. Does this look right? Do I have to enter anything in the env file to have Yubikeys working properly?

                3618e22a-f97b-4113-acf0-31de5b09ce3d-image.png

                1 Reply Last reply
                0
                • girishG Offline
                  girishG Offline
                  girish
                  Staff
                  wrote on last edited by
                  #8

                  The app got renamed since and the new docs are at https://docs.cloudron.io/apps/vaultwarden/ . This doesn't have the yubikey section though. We decided it's best not to maintain app specific config options in our docs. These things keep changing and we can't keep up.

                  To answer your question, see https://docs.cloudron.io/apps/vaultwarden/#custom-config . Anything in VW admin pages will override the env vars (even more details here - https://github.com/dani-garcia/vaultwarden/wiki/Configuration-overview ). Setting the yubikey info in admin page should be good enough. (I have no idea about yubikey itself though)

                  humptydumptyH 1 Reply Last reply
                  1
                  • girishG girish

                    The app got renamed since and the new docs are at https://docs.cloudron.io/apps/vaultwarden/ . This doesn't have the yubikey section though. We decided it's best not to maintain app specific config options in our docs. These things keep changing and we can't keep up.

                    To answer your question, see https://docs.cloudron.io/apps/vaultwarden/#custom-config . Anything in VW admin pages will override the env vars (even more details here - https://github.com/dani-garcia/vaultwarden/wiki/Configuration-overview ). Setting the yubikey info in admin page should be good enough. (I have no idea about yubikey itself though)

                    humptydumptyH Offline
                    humptydumptyH Offline
                    humptydumpty
                    wrote on last edited by humptydumpty
                    #9

                    Thanks, Girish.

                    So if no Yubikey info is provided then it'll use the default Yubico server which works fine. I knew my issue is a time thing but it wouldn't work even after manually syncing the date/time on the new windows PC. It works ONLY if the settings are as shown in the screenshot below. Obviously, replace with your actual timezone but keep "set time zone automatically" as off. Location services are off too. Make sure to sync afterwards.

                    a1715119-f03e-45b4-8f80-2cdc03fded93-image.png

                    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