Commit message (Collapse) | Author | Age | Files | Lines | |
---|---|---|---|---|---|
* | Make example key manager use pbkdf2 to derive root keyaegis_example_key_manager | Eric Avdey | 2020-04-21 | 1 | -2/+10 |
| | |||||
* | Convert aegis_key_manager into gen server | Eric Avdey | 2020-04-21 | 4 | -14/+186 |
| | | | | | | | | Convert aegis_key_manager into gen_server and make it keep private state for key manager callback module. Rename aegis_file_key_manager into aegis_example_key_manager to clarify intent and adapt it to new aegis_key_manager behaviour | ||||
* | Store unwrappers Ref as a control for DbKey legitimacy | Eric Avdey | 2020-04-20 | 1 | -11/+13 |
| | |||||
* | Support disabling encryption per database on key manager level | Eric Avdey | 2020-04-20 | 4 | -2/+64 |
| | | | | | | | Allow key manager to return `{ok false}` on generate key request. Treat this as a flag to perf db disabled encryption and passthrough encrypt and decrypt without calling server in this case. | ||||
* | Pass db options to generate_key and rename WrappedKey to AegisConfig | Eric Avdey | 2020-04-20 | 5 | -70/+87 |
| | |||||
* | Change rebar deps build order to allow aegis find fabric2.hrl header file | Eric Avdey | 2020-04-20 | 1 | -1/+1 |
| | |||||
* | Address review comments | Eric Avdey | 2020-04-20 | 8 | -182/+196 |
| | | | | | | | | | | - Rename aegis_key_cache to aegis_server - Move crypto into workers - Add aegis_server public API - Define aegis_key_manager behaviour - Fix error messages - Remove part with incomplete functionality - Remove defensive programming | ||||
* | Refactoring: extract maybe_spawn_unwrapper into own function | Eric Avdey | 2020-04-17 | 1 | -11/+17 |
| | |||||
* | Rename clients to openers | Eric Avdey | 2020-04-17 | 1 | -16/+16 |
| | |||||
* | Rename unwrap_key to maybe_rewrap_key to clarify fun propose | Eric Avdey | 2020-04-17 | 2 | -2/+2 |
| | |||||
* | Make encrypt/decrypt workers to reply client directly | Eric Avdey | 2020-04-17 | 1 | -22/+14 |
| | |||||
* | Formatting: move private functions into own section | Eric Avdey | 2020-04-17 | 1 | -55/+54 |
| | |||||
* | Extract aegis_keywrap parts in shim of key manager | Eric Avdey | 2020-04-17 | 3 | -19/+74 |
| | |||||
* | Return error if can't unwrap a key | Eric Avdey | 2020-04-17 | 2 | -5/+54 |
| | |||||
* | Fail tests on gen_server timeout | Eric Avdey | 2020-04-17 | 1 | -5/+6 |
| | |||||
* | Make fabric depend on aegis | Eric Avdey | 2020-04-17 | 1 | -1/+2 |
| | |||||
* | Make aegis into app and add key cache server | Eric Avdey | 2020-04-17 | 7 | -22/+482 |
| | |||||
* | Move rebar.config.script from couch to aegis | Eric Avdey | 2020-04-16 | 2 | -10/+36 |
| | |||||
* | Fix typo in configure | Eric Avdey | 2020-04-16 | 1 | -1/+1 |
| | |||||
* | Add encryption for database valuesaegis | Robert Newson | 2020-04-14 | 12 | -38/+305 |
| | |||||
* | remove defer and load_ddocs from mango_utils | Garren Smith | 2020-04-06 | 2 | -63/+0 |
| | | | | Clean up unused mango_utils functions. | ||||
* | update mango tests to work with Mango on FDB | Garren Smith | 2020-04-06 | 14 | -136/+129 |
| | |||||
* | Update mango test creds to same as elixir tests | Garren Smith | 2020-04-06 | 3 | -5/+5 |
| | |||||
* | Update Mango query to work with couch_views | Garren Smith | 2020-04-06 | 9 | -147/+139 |
| | |||||
* | Add mango indexing | Garren Smith | 2020-04-06 | 7 | -19/+187 |
| | | | | | | This uses couch_views_updater to create mango indexes in the doc update along with the couch_views_indexer to update the indexes in the background up to the creation versionstamp. | ||||
* | Remove quorum stats | Garren Smith | 2020-04-06 | 3 | -13/+1 |
| | | | | Removing quorum stats since they are not relevant with FDB. | ||||
* | Remove view_cb predicate push down | Garren Smith | 2020-04-06 | 1 | -94/+1 |
| | | | | | Removes the view callback that was performed on the nodes before sending the results back to the co-ordinator. | ||||
* | remove unneeded r/w parameter | Garren Smith | 2020-04-06 | 6 | -67/+6 |
| | |||||
* | remove partition opts from mango | Garren Smith | 2020-04-06 | 10 | -200/+10 |
| | |||||
* | remove mango native proc | Garren Smith | 2020-04-06 | 3 | -375/+0 |
| | |||||
* | Add couch_views_encoding max value | Garren Smith | 2020-04-06 | 1 | -0/+12 |
| | | | | | Adds a max value to use for encoding. This is useful when getting the max range when encoding startkey/endkeys. | ||||
* | Add couch_views_updater interactive indexer | Garren Smith | 2020-04-06 | 9 | -5/+470 |
| | | | | | | This adds the ability for couch_views to index an index in the docs update transaction. This only happens if a design doc has the field <<"interactive">> = true. | ||||
* | All couch_view queries to run across transactions | Garren Smith | 2020-04-06 | 1 | -1/+2 |
| | |||||
* | Add couch_views_indexer build to creation versionstamp | Garren Smith | 2020-04-06 | 7 | -33/+206 |
| | | | | | | This creates a versionstamp for when an indexed was created and build status for indexes. if the index has a creation_vs, then couch_views_indexer will built the index to this creation versionstamp. | ||||
* | add fabric2 after_doc_write plugin | Garren Smith | 2020-04-06 | 2 | -0/+8 |
| | |||||
* | add include_docs option to fold_docs | Garren Smith | 2020-04-06 | 1 | -2/+25 |
| | |||||
* | move all_doc view options to fabric2_util | Garren Smith | 2020-04-06 | 2 | -29/+39 |
| | |||||
* | fix all_docs call to return row | Garren Smith | 2020-04-06 | 1 | -1/+2 |
| | |||||
* | Merge pull request #2662 from cloudant/couch_view-rate_limit | iilyak | 2020-04-02 | 26 | -28/+1839 |
|\ | | | | | Use `couch_rate` application for `couch_view` | ||||
| * | Use `couch_rate` application for `couch_view` | ILYA Khlopotov | 2020-04-02 | 26 | -28/+1839 |
|/ | |||||
* | Merge pull request #2743 from apache/switch-erlfdb-couch | Robert Newson | 2020-04-01 | 1 | -6/+2 |
|\ | | | | | Switch erlfdb to the couchdb repo at tag v1.0.0 | ||||
| * | Switch erlfdb to the couchdb repo at tag v1.0.0 | Robert Newson | 2020-04-01 | 1 | -6/+2 |
|/ | |||||
* | change _all_docs to raw collation | Garren Smith | 2020-03-30 | 2 | -7/+4 |
| | |||||
* | Don't advertise unimplemented features | Jay Doane | 2020-03-28 | 3 | -12/+2 |
| | | | | | | | | | | | Removes the following features from the welcome message: - reshard - partitioned - pluggable-storage-engines - scheduler Although `scheduler` at least will presumably be returned once that feature is complete. | ||||
* | Return a 400 error code for an invalid update sequence | Nick Vatamaniuc | 2020-03-27 | 1 | -0/+2 |
| | | | | | | | | | | | | | | | | | Currently we return a 500 but a 400 return code makes more sense ``` $ http $DB1/db1/_changes?since=0-1345 HTTP/1.1 400 Bad Request { "error": "invalid_since_seq", "reason": "0-1345", "ref": 442671026 } ``` | ||||
* | Merge pull request #2722 from apache/couch-keywrap | Robert Newson | 2020-03-26 | 1 | -0/+103 |
|\ | | | | | Implement AES KW algorithm | ||||
| * | Implement AES KW algorithm*couch-keywrap | Robert Newson | 2020-03-26 | 1 | -0/+103 |
|/ | | | | | | For use by the native couchdb at-rest encryption feature. * From NIST Special Publication 800-38F. | ||||
* | Make sure to clear db metadata flag before each transaction | Nick Vatamaniuc | 2020-03-25 | 1 | -0/+1 |
| | | | | | Previously we didn't reset the metadata flag in case of a transaction retry so we could have used a stale `?PDICT_CHECKED_MD_IS_CURRENT = true` value. | ||||
* | Fix db prefix checks in fabric2_fdb | Nick Vatamaniuc | 2020-03-25 | 1 | -9/+11 |
| | | | | | | | | | After the recent upgrade to using HCA we forgot to check all the places where the db prefix was constructed so a few places still used the old pattern of {?DBS, DbName}. In the case of `check_metadata_version` we also have to account for the fact that during db creation, there might not be a db_prefix in the `Db` handle yet. | ||||
* | Handle db re-creation in view indexing | Nick Vatamaniuc | 2020-03-25 | 3 | -26/+152 |
| | | | | | | | | | | | Add the db instance id to indexing job data. During indexing ensure the database is opened with the `{uuid, DbUUID}` option. After that any stale db reads in `update/3` will throw the `database_does_not_exist` error. In addition, when the indexing job is re-submitted in `build_view_async/2`, check if it contains a reference to an old db instance id and replace the job. That has to happen since couch_jobs doesn't overwrite job data for running jobs. |