summaryrefslogtreecommitdiff
path: root/lib
AgeCommit message (Collapse)Author
2015-03-17added support for tmp_users db. not backward compatible with prior config ↵elijah
files (seq_file changed to seq_dir)
2014-12-16restore older "Creating database" capitalization.version/0.6elijah
2014-12-14try to create the db many times until it existselijah
2014-12-14added TapiceroProcess, to handle starting and stopping tapicero during tests.elijah
2014-11-30set version to 0.6elijah
2014-11-30do not log an error if db or design docs already exist (another tapicero ↵elijah
created it).
2014-09-23Don't die when couchdb gets restarted (closes #6065)elijah
2014-07-02Fix couchrest missing the first change (#5452)Azul
CouchRest::Streamer will ignore the first line from a stream. Normally that's the line opening the results array. But for continuous feeds couch will start streaming the array elements right away. So we miss the first one. There's a pull request pending for couchrest here: https://github.com/couchrest/couchrest/pull/104 Until it's merged we'll monkeypatch. Also stopping tapicero again after travis run.
2014-06-27minor: lot's of small fixes to make replication workAzul
2014-06-26minor: include username in save_urlAzul
2014-06-23initial take on replicationAzul
2014-03-11make warnings more readable to nagios - #5247Azul
2014-02-04Merge pull request #10 from azul/refactor/user-databasejessib
Refactor/user database
2014-02-04Merge pull request #9 from azul/test/integration-with-travisjessib
Test/integration with travis
2014-02-04Version 0.4.00.4.0Azul
minor changes improving stability
2014-02-04prevent 409s and 412 and reraise them in testsAzul
Including tests that ensure this
2014-02-04refactor: moved prepare and destroy into user_event_handlerAzul
2014-02-04refactor: separate user event handlerAzul
2014-02-04refactor: init user_database with a couchrest dbAzul
2014-02-04hand config files on the command line to the daemonAzul
2014-02-04only set flags if they are definedAzul
2014-01-14properly refer to logger in user_databaseAzul
2014-01-14fix UserDatabase#prepareAzul
2014-01-11Revisions sometimes start at 2 - work around thisAzul
This is an intermediate fix. There's a user record that never had it's database created. The first time it shows up in the changes feed the revision starts with 2-. Not sure why this is. But we loose this user record if we rely on CouchRest::Changes.created which checks for a revision starting with 1-.
2014-01-03make logging more preciseAzul
* do not log the SystemExit after the fork * log error classes alongside messages * unify logging in retry_request_once * debug now logs every step * info has one message per user created * warn only logs errors during the actions * error only logs crashes
2014-01-03Version 0.3.2 - staying alive0.3.2Azul
This version mainly improves the stability and should keep tapicero from dying too early. * couchrest_changes 0.0.5 will resume if the connection died. * lock yajl version to 1.1.0 - 1.2.0 requires mkmf on the server * retry couch requests in case they fail * log all crashes
2014-01-03better debug loggin, sleep before retryingAzul
2014-01-03retry couch requests onceAzul
Couch sometimes responds with 500 or so. Often this is temporary. Let's retry once and log the error instead of dying.
2013-12-22Version 0.3.1 with new flags --run-once, --rerun and --overwrite-security0.3.1Azul
--run-once will exit once all current changes have been processed --rerun will process all users again even those that were processed before --overwrite-security will overwrite security for user databases even if it has been set before.
2013-12-20Version 0.3.0: include design docs on created databases0.3.0Azul
2013-12-20proceed if design docs are already thereAzul
We'll add a flag to overwrite designs and / or security later. For now just make sure this does not crash tapicero.
2013-12-20add design docs to be included in each user databaseAzul
Also strip the .json extention because soledad does not expect it
2013-12-19add design docs on db creation, use PathnameAzul
Pathname makes dealing with files easier than String. Tapicero will look for design documents in design directory in the tapicero path for now.
2013-12-19Version 0.2.0: use CouchRest::ChangesAzul
This also changes the format of the config file. Please make sure to adjust it.
2013-11-28rescue from 404 when destroying dbAzul
Also logging per user db creation and destruction if they happen.
2013-11-28make sequence accept all kinds of jsonAzul
bigcouch uses arrays for sequence: http://mail-archives.apache.org/mod_mbox/couchdb-user/201301.mbox/%3CCABvT1DEGDCJyvEuFsNJZbXi_NJwJna8NHDnQvpr2h532s0V18g@mail.gmail.com%3E So we should not expect them to be integers. Still have to catch the empty file situation in a meaningful way though.
2013-11-27ignore design document changes - do not trigger callbacks thenAzul
tapicero should create per user databases when a user is created and destroy them when that user is destroyed. However it should not attempt the same if design docs are created or destroyed.
2013-11-18use our logger - not just putsAzul
2013-11-18delete user db's on user deletion.Azul
2013-11-18fix issues with storing and retrieving the sequenceAzul
.to_i makes retrieving the sequence more robust - in particular if the file content was not meaningful. store_seq should also be called if it was a destroy action.
2013-11-18add a hook for reacting on user deletion.Azul
2013-09-25log to file or syslog instead of STDOUTAzul
2013-09-16refactor - separate reading the last sequence from initializeAzul
2013-09-12use CouchRest::Database#changes, store and retrieve seqAzul
This commit bundles a few different changes: * we now use the CouchRest::Database#changes stream instead of our own * we store and read the last sequence number so on a restart we can start where we left * we now have a UserDatabase class rather than the CouchDatabaseCreator. It also knows about it's name and we create an instance of it per database we want to create. It's also more flexible when the databases already exist.
2013-09-11use password and username from the config fileAzul
2013-09-11write _security to fresh couchAzul
2013-09-11create couch dbs as users are createdAzul
2013-09-10use our own JsonStream and a created callback in CouchChangesAzul
2013-09-10bringing over couch_changes from leap_ca including testsAzul
2013-09-10copying over skeleton from leap_ca which worked similarlyAzul