sensiblearts commented on issue #5343:
URL: https://github.com/apache/couchdb/issues/5343#issuecomment-2504431546

   Yes. I think you may have found it.
   
   There are 3 files in `default.d` that seem not relevant and one in `local.d` 
that seems to be the problem.  The `10-admins.ini` file seems to be overriding 
`local.ini`.
   
   In `10-admins.ini`, the `[chttpd_auth]` section is **blank**, and there is a 
`secret` in the `[admins]` section -- which looks nothing like the secret as 
visible in Fauxton:
   
   ```
   
   # Package-introduced administrative user
   [admins]
   admin = -pbkdf2:sha256-a38a96de..blah..blah..,600000
   nja_admin = -pbkdf2-1ee14f32adb86..blah...blah...,10
   secret = -pbkdf2:sha256-69537672cb...blah...blah...,600000
   
   [couchdb]
   uuid = 70385bcb4e0b8502e14e1577dc037af4
   
   [chttpd_auth]
   
   
   [couch_httpd_auth]
   timeout = 6000
   
   [chttpd]
   enable_cors = true
   bind_address = 0.0.0.0
   port = 5984
   
   [cors]
   origins = *
   credentials = true
   headers = Accept, Content-Type, Access-Control-Allow-Origin, 
X-Auth-CouchDB-Token, X-Auth-CouchDB-UserName, X-Auth-CouchDB-Roles
   methods = GET, PUT, POST, HEAD, DELETE
   
   [couch_peruser]
   enable = false
   
   [cluster]
   n = 1
   
   ```
   
   I can probably get this fixed, and I see discussion of the `10-admins.ini` 
at 
[https://docs.couchdb.org/en/stable/config/auth.html](https://docs.couchdb.org/en/stable/config/auth.html),
 but I **need to understand how/why apt upgrade overwrote my previous 
settings** -- should I make all my settings in local.ini and delete the 
10-admins.ini, or backup 10-admins.ini and restore it after apt-upgrade, or...?
   
   Thanks for any advice.


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: [email protected]

For queries about this service, please contact Infrastructure at:
[email protected]

Reply via email to