New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

ini-file admin users always cause auth cache miss #1746

wohali opened this Issue Nov 19, 2018 · 0 comments


None yet
1 participant

wohali commented Nov 19, 2018

When accessing CouchDB with an admin user defined ONLY in the ini file, the auth_cache_misses counter is incremented.

Expected Behavior

The counter should not increment.

Current Behavior

The counter does increment.

Possible Solution

auth_cache should have a filter of ini admins before logging the stat.

A workaround is to create users in _users with identical credentials.

Steps to Reproduce (for bugs)

  1. dev/run -n 1 -a user:pass
  2. curl http://user:pass@localhost:15984/_node/_local/_stats | jq .couchdb.auth_cache_misses
  3. Repeat and see the counter go up.


Dashboards tracking auth cache misses will see their own activity reflected in the graph. AUGH!

@wohali wohali added the production label Nov 19, 2018

@wohali wohali added this to the 2.3.0 milestone Nov 22, 2018

janl added a commit that referenced this issue Nov 22, 2018

@janl janl closed this in #1755 Nov 22, 2018

janl added a commit that referenced this issue Nov 22, 2018

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment