couchdb-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Russell Branca (JIRA)" <>
Subject [jira] [Created] (COUCHDB-2629) Hide internal config details from other applications
Date Thu, 26 Feb 2015 19:44:04 GMT
Russell Branca created COUCHDB-2629:

             Summary: Hide internal config details from other applications
                 Key: COUCHDB-2629
             Project: CouchDB
          Issue Type: Bug
      Security Level: public (Regular issues)
          Components: Database Core
            Reporter: Russell Branca

Throughout the code base we do things like `config:get("couch_httpd_auth", "authentication_db",
"_users")` which exposes internal details to other applications that don't need to be aware
of the particulars. This duplicates code unnecessarily and causes problematic typos to go
unnoticed like in COUCHDB-2628.

One possible approach that I'm a fan of is to go into the application responsible for relevant
config value, and add a function to hide the details. For instance, this is done in `cassim_metadata_cache:metadata_db`:

This message was sent by Atlassian JIRA

View raw message