Giter Site home page Giter Site logo

Comments (10)

aweb-01 avatar aweb-01 commented on June 2, 2024 1

I had the same issue. I figured it out, the problem is that
MICROBIN_UPLOADER_PASSWORD: ${MICROBIN_UPLOADER_PASSWORD}

is missing from the default compose.yaml. Add that and if you go to the admin page you'll see that it changes "uploader password" from "unset" to "set" and the tool behaves as expected.

from microbin.

monomycelium avatar monomycelium commented on June 2, 2024

I am facing the same issue on microbin 2.0.4. The feature would have been really useful as I do not wish for strangers to upload content to my server.

from microbin.

ThankRain avatar ThankRain commented on June 2, 2024

Level 3: Read-only

With this privacy setting, the upload cannot be found unless someone knows its unique, random identifier. If someone knows this identifier, they can see the contents but cannot modify or remove it without entering the password of the upload.

This is consistent with the description in the document, and what you expect should be private. Although the document description is correct, it may not be intuitive.

from microbin.

zeitwesen avatar zeitwesen commented on June 2, 2024

oh, I see - seems then I did not understand that in detail .

could you still put my whish on the feature request list? So globally secure uploading/posting with a password - so that no one but the password-knowers can upload?

from microbin.

ThankRain avatar ThankRain commented on June 2, 2024

oh, I see - seems then I did not understand that in detail .

could you still put my whish on the feature request list? So globally secure uploading/posting with a password - so that no one but the password-knowers can upload?

I think I may understand what you need, what you need is to set the environment variable MICROBIN_READONLY to true, not MICROBIN_ENABLE_READONLY

If that's not what it's meant to be, sadly, I'm not the maintainer, I do not have the access to put it into the feature request list. But maybe I will fork a new repository to support this feature, if I have spare time.

The password required for uploading, if read-only mode is enabled
Default value: unset
export MICROBIN_UPLOADER_PASSWORD=

If set to true, authentication required for uploading
Default value: false
export MICROBIN_READONLY=false

from microbin.

zeitwesen avatar zeitwesen commented on June 2, 2024

@xeulife oops, I overlooked that you are not the maintainer :-D

well, I checked my config again and saw that I have the settings set to
MICROBIN_UPLOADER_PASSWORD="my secret"
MICROBIN_READONLY=false
MICROBIN_ENABLE_READONLY=true

anyway the restriction to upload only when password is given does not trigger. It shows the password-field but it is not checkend when posting. for me this now seems to be a bug. do you have thime to investigate the issue? maybe you could then provide the maintainer @szabodanika a bugfix 🥇

from microbin.

ThankRain avatar ThankRain commented on June 2, 2024

@xeulife oops, I overlooked that you are not the maintainer :-D

well, I checked my config again and saw that I have the settings set to
MICROBIN_UPLOADER_PASSWORD="my secret"
MICROBIN_READONLY=false
MICROBIN_ENABLE_READONLY=true

anyway the restriction to upload only when password is given does not trigger. It shows the password-field but it is not checkend when posting. for me this now seems to be a bug. do you have thime to investigate the issue? maybe you could then provide the maintainer @szabodanika a bugfix 🥇

Just try

MICROBIN_UPLOADER_PASSWORD="my secret"
MICROBIN_READONLY=true // it should be true

MICROBIN_READONLY should be true
If you find that the above actions are indeed not effective, I think it may be a bug.

from microbin.

zeitwesen avatar zeitwesen commented on June 2, 2024

oops again - should not write any reports on a monday

MICROBIN_READONLY is set to true already.
but I can upload without providing the password

from microbin.

ThankRain avatar ThankRain commented on June 2, 2024

oops again - should not write any reports on a monday

MICROBIN_READONLY is set to true already.
but I can upload without providing the password

I just tried the configuration and it works properly. A "Uploader password" input box will appear on the left side of the Save button. If the password is incorrect, it will reject uploading anything and prompt "incorrect password". This is my deployment link, you can try it out:
bin.xeu.life

Here is my environment variable configuration

      - MICROBIN_EDITABLE=true
      - MICROBIN_ENABLE_READONLY=true
      - MICROBIN_READONLY=true
      - MICROBIN_UPLOADER_PASSWORD=MySecret
      - MICROBIN_HIGHLIGHTSYNTAX=true
      - MICROBIN_PUBLIC_PATH=https://bin.xeu.life
      - MICROBIN_ENABLE_BURN_AFTER=true
      - MICROBIN_ENABLE_CUSTOM_URL=true
      - MICROBIN_PRIVATE=true
      - MICROBIN_SHOW_READ_STATS=true
      - MICROBIN_QR=true
      - MICROBIN_HASH_IDS=true
      - MICROBIN_ENCRYPTION_CLIENT_SIDE=true
      - MICROBIN_ENCRYPTION_SERVER_SIDE=true

Although I think the most critical configuration is only the following two lines, I still post the complete configuration for your convenience in debugging.

      - MICROBIN_READONLY=true
      - MICROBIN_UPLOADER_PASSWORD=MySecret

Since I copied the environment variable configuration directly from docker-compose.yml, it will contain some "-" symbols, so don't worry about them

from microbin.

zeitwesen avatar zeitwesen commented on June 2, 2024

I had the same issue. I figured it out, the problem is that MICROBIN_UPLOADER_PASSWORD: ${MICROBIN_UPLOADER_PASSWORD}

is missing from the default compose.yaml. Add that and if you go to the admin page you'll see that it changes "uploader password" from "unset" to "set" and the tool behaves as expected.

cool, thanks! yes - this did the trick.

from microbin.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.