|1.0.0||Oct 3, 2022|
#1945 in Database interfaces
Fortress Server is the sync server for the Fortress password manager.
Authorization header required for all requests. It must contain the hex encoded 32 byte LoginId followed by the hex encoded 32 byte LoginKey (total 128 characters).
Returns a list of all objects in the database belonging to the user. The response is a JSON array where each element is an array of the form
[id, siv], and both are hex encoded.
Returns the object's data. ID is hex encoded.
Creates or updates an object. The request body is the object's data (including the SIV).
:old_siv are hex encoded. If the object already exists,
:old_siv must match the object's current SIV. If the object does not exist,
:old_siv is ignored. Conflict (409) is returned if the object already exists and
:old_siv does not match the object's current SIV. This is to prevent overwriting an object that has been updated since the last time the client fetched it.
./run-test-db.sh cargo run
./run-test-db.sh cargo test
Build docker image
docker build -t fortress-server . docker tag fortress-server DEST docker push DEST