Skip to content

Commit

Permalink
added page on VDR API usage
Browse files Browse the repository at this point in the history
  • Loading branch information
woutslakhorst committed Sep 23, 2024
1 parent c613fa7 commit 44e8445
Show file tree
Hide file tree
Showing 3 changed files with 30 additions and 0 deletions.
1 change: 1 addition & 0 deletions docs/index.rst
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,7 @@ Nuts documentation
pages/integrating/api-authentication.rst
pages/integrating/vc.rst
pages/integrating/supported-protocols-formats.rst
pages/integrating/version-incompatibilities.rst
pages/release_notes.rst

.. toctree::
Expand Down
10 changes: 10 additions & 0 deletions docs/pages/deployment/security-considerations.rst
Original file line number Diff line number Diff line change
Expand Up @@ -46,3 +46,13 @@ Key rotation

It's important to have a key rotation policy in place. The Nuts node uses keys for various signing operations.
These operations are numerous and therefore keys should be rotated regularly.

Using did:web
*************

The ``did:web`` method allows for easier integration with existing web infrastructure. However, it's also less secure and vulnerable to domain takeover.
When using ``did:web``, you should consider the following:

- Protect your domain from takeover. Make sure it's locked for a year after cancelling the domain.
- Monitor calls to ``**/did.json`` on the domain and make sure they are handled by the Nuts Node.
- Use Hashicorp Vault or Microsoft Azure Key Vault to store the private keys.
19 changes: 19 additions & 0 deletions docs/pages/integrating/version-incompatibilities.rst
Original file line number Diff line number Diff line change
@@ -0,0 +1,19 @@
.. _version-incompatibilities:

Version Incompatibilities
#########################

V5/V6, DID methods and API versions
***********************************

V6 introduced the support for multiple DID methods. To enable this, a new version of the VDR API has been added.
There's also a config parameter that allows you to limit the DID methods in use.
Not all combinations of API usage and DID methods are supported.
There are basically two options.

1. Keep using the VDR V1 API (for now) and set ``vdr.did_methods`` to ``["nuts"]``.
2. Use the VDR V2 API and set ``vdr.did_methods`` to include other methods or leave blank for default setting.

Do not use the VDR V1 and VDR V2 API at the same time. This will lead to unexpected behavior.
Once you use the VDR V2 API, you cannot go back to the VDR V1 API. The VDR V1 API has also been marked as deprecated.

0 comments on commit 44e8445

Please sign in to comment.