Uploaded image for project: 'Solr'
  1. Solr
  2. SOLR-8440

Script support for enabling basic auth

Attach filesAttach ScreenshotVotersWatch issueWatchersCreate sub-taskLinkCloneUpdate Comment AuthorReplace String in CommentUpdate Comment VisibilityDelete Comments



      Now that BasicAuthPlugin will be able to work without an AuthorizationPlugin (SOLR-8429), it would be sweet to provide a super simple way to "Password protect Solr"™ right from the command line:

      bin/solr basicAuth -adduser -user solr -pass SolrRocks

      It would take the mystery out of enabling one single password across the board. The command would do something like this

      1. Check if HTTPS is enabled, and if not, print a friendly warning
      2. Check if /security.json already exists
        1. NO => create one with only plugin class defined
        2. YES => Abort if exists but plugin is not BasicAuthPlugin
      3. Using security REST API, add the new user


        1. SOLR-8840_opt_parsing.patch
          28 kB
          Jan Høydahl
        2. SOLR-8440-follow-up.patch
          19 kB
          Ishan Chattopadhyaya
        3. SOLR-8440-follow-up.patch
          31 kB
          Ishan Chattopadhyaya
        4. SOLR-8440.patch
          6 kB
          Ishan Chattopadhyaya
        5. SOLR-8440.patch
          9 kB
          Ishan Chattopadhyaya
        6. SOLR-8440.patch
          13 kB
          Ishan Chattopadhyaya
        7. SOLR-8440.patch
          13 kB
          Ishan Chattopadhyaya
        8. SOLR-8440.patch
          14 kB
          Ishan Chattopadhyaya
        9. SOLR-8440.patch
          12 kB
          Ishan Chattopadhyaya
        10. SOLR-8440.patch
          18 kB
          Ishan Chattopadhyaya
        11. SOLR-8440.patch
          18 kB
          Ishan Chattopadhyaya

        Issue Links



            • Assignee:
              ichattopadhyaya Ishan Chattopadhyaya
              janhoy Jan Høydahl


              • Created:

                Issue deployment