Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
Z
ZKAPAuthorizer
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Package Registry
Model registry
Operate
Environments
Terraform modules
Monitor
Incidents
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
This is an archived project. Repository and other project resources are read-only.
Show more breadcrumbs
Administrator
ZKAPAuthorizer
Commits
05c45f6a
Commit
05c45f6a
authored
3 years ago
by
Jean-Paul Calderone
Browse files
Options
Downloads
Patches
Plain Diff
remove some redundancy in the specification
parent
a855156f
No related branches found
Branches containing commit
No related tags found
1 merge request
!293
Design document for replication and recovery system
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
docs/source/designs/backup-recovery.rst
+38
-0
38 additions, 0 deletions
docs/source/designs/backup-recovery.rst
src/_zkapauthorizer/backup-recovery.yaml
+2
-7
2 additions, 7 deletions
src/_zkapauthorizer/backup-recovery.yaml
with
40 additions
and
7 deletions
docs/source/designs/backup-recovery.rst
+
38
−
0
View file @
05c45f6a
...
...
@@ -296,8 +296,46 @@ The recovery process is as follows:
External Interfaces
-------------------
Specification
~~~~~~~~~~~~~
See the `OpenAPI specification <backup-recovery-openapi.html>`_.
Sample Sessions
~~~~~~~~~~~~~~~
The expected interaction pattern involves two API calls.
#. Early in the Tahoe-LAFS client node setup/configuration process,
configure replication:
.. code-block:: html
POST /storage-plugins/privatestorageio-zkapauthz-v1/replicate
201 Created
Content-Type: application/json
{"recovery-capability": "URI:DIR-RO:xxxx"}
#. After losing the Tahoe-LAFS node,
create a new Tahoe-LAFS client node and recover from the replica:
.. code-block:: html
POST /storage-plugins/privatestorageio-zkapauthz-v1/recover
Content-Type: application/json
Content-Length: ...
{"recovery-capability": "URI:DIR-RO:xxxx"}
200 OK
Data Integrity
--------------
...
...
This diff is collapsed.
Click to expand it.
src/_zkapauthorizer/backup-recovery.yaml
+
2
−
7
View file @
05c45f6a
...
...
@@ -19,13 +19,8 @@ paths:
content
:
application/json
:
schema
:
properties
:
recovery-capability
:
type
:
"
string"
description
:
>-
The Tahoe-LAFS read-only capability for the recovery data.
This is the capability which can be submitted in order to
initiate a recovery from the replica.
"
$ref"
:
"
/components/schemas/ReplicaConfiguration"
responses
:
"
500"
:
# INTERNAL SERVER ERROR
description
:
>-
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment