Hi,
We use password-protected buckets. To set up sync gateway access to the bucket, the password needs to be specified, as plain text, in the config file. Is there anyway to specify the password separately? The config file contains code in the sync function, and we want to store it in git with the rest of our code. We don’t really want to fix the password in the code as this makes it difficult to have different passwords in different installations.
Our current thought is to rewrite the config file on startup, injecting the password from somewhere else (a different config, a command line parameter or whatever). Is there a better way?
Here is an example config file to illustrate:
{
"log":["CRUD+", "REST+", "Changes+", "Attach+"],
"databases": {
"mybucket": {
"server": "http://localhost:8091",
"username": "mybucket",
"password": "canWeMoveThisOutOfHere?",
[.....[
}
}
}