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
  • Brite
  • 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 - Status | Demo | Docs | Install
  1. Cloudron Forum
  2. Gitea
  3. Prevent external users joining gitea instance

Prevent external users joining gitea instance

Scheduled Pinned Locked Moved Gitea
13 Posts 5 Posters 4.6k 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.
  • fbartelsF Offline
    fbartelsF Offline
    fbartels
    App Dev
    wrote on last edited by
    #4

    @staff maybe it would be an idea to change the app that the default is a disabled registration. Sign in is the still possible with oauth.

    1 Reply Last reply
    2
    • SansGuidonS Offline
      SansGuidonS Offline
      SansGuidon
      wrote on last edited by SansGuidon
      #5

      I've also lost quite some time kicking accounts and repositories,
      in the end I've combined some of the options below (don't forget the [service] section marker and also restart after the changes !)

      [service]
      DISABLE_REGISTRATION = True
      REGISTER_MANUAL_CONFIRM = True
      EMAIL_DOMAIN_ALLOWLIST = XX_your_domain_here_XX,cloudron.local
      DEFAULT_USER_IS_RESTRICTED = True
      

      It's overkill if all are used at the same time, but depending on the needs and paranoia, it can be useful 🙂

      About me / Now

      1 Reply Last reply
      4
      • infogulchI infogulch referenced this topic on
      • infogulchI Offline
        infogulchI Offline
        infogulch
        wrote on last edited by infogulch
        #6

        +1 to "change the app so that the default is a disabled registration". I just had a big mess to clean up because of this. https://forum.cloudron.io/topic/14053/clean-up-external-users-that-have-accessed-gitea-instance

        At the very least these configs should be mentioned in the admin checklist.

        1 Reply Last reply
        2
        • SansGuidonS Offline
          SansGuidonS Offline
          SansGuidon
          wrote on last edited by
          #7

          @girish could you please have a look at the suggestions here above about disabling registration by default to prevent spam? 🙏

          About me / Now

          1 Reply Last reply
          0
          • J Offline
            J Offline
            joseph
            Staff
            wrote on last edited by
            #8

            Isn't it already false by default ? https://git.cloudron.io/packages/gitea-app/-/blob/master/app.ini.template?ref_type=heads#L78

            SansGuidonS 1 Reply Last reply
            0
            • J Offline
              J Offline
              joseph
              Staff
              wrote on last edited by joseph
              #9

              I checked in a new install and registration is disabled by default afaict .

              1 Reply Last reply
              0
              • J joseph

                Isn't it already false by default ? https://git.cloudron.io/packages/gitea-app/-/blob/master/app.ini.template?ref_type=heads#L78

                SansGuidonS Offline
                SansGuidonS Offline
                SansGuidon
                wrote on last edited by
                #10

                @joseph said in Prevent external users joining gitea instance:

                Isn't it already false by default ? https://git.cloudron.io/packages/gitea-app/-/blob/master/app.ini.template?ref_type=heads#L78

                I believe the flag should be set to True not False to block spam

                About me / Now

                J 1 Reply Last reply
                0
                • SansGuidonS SansGuidon

                  @joseph said in Prevent external users joining gitea instance:

                  Isn't it already false by default ? https://git.cloudron.io/packages/gitea-app/-/blob/master/app.ini.template?ref_type=heads#L78

                  I believe the flag should be set to True not False to block spam

                  J Offline
                  J Offline
                  joseph
                  Staff
                  wrote on last edited by
                  #11

                  @SansGuidon of course 😄 Not sure what i was thinking... Which makes me wonder how come I didn't find any registration button .

                  1 Reply Last reply
                  2
                  • infogulchI Offline
                    infogulchI Offline
                    infogulch
                    wrote on last edited by
                    #12

                    Maybe because the next line is SHOW_REGISTRATION_BUTTON = false. Not sure what this combination of features does, maybe it hides the register button but allows direct POST requests to the endpoint anyway?

                    1 Reply Last reply
                    1
                    • infogulchI Offline
                      infogulchI Offline
                      infogulch
                      wrote on last edited by
                      #13
                      This post is deleted!
                      1 Reply Last reply
                      0

                      Hello! It looks like you're interested in this conversation, but you don't have an account yet.

                      Getting fed up of having to scroll through the same posts each visit? When you register for an account, you'll always come back to exactly where you were before, and choose to be notified of new replies (either via email, or push notification). You'll also be able to save bookmarks and upvote posts to show your appreciation to other community members.

                      With your input, this post could be even better 💗

                      Register Login
                      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