Skip to content

Commit

Permalink
Several doc fixes (#3537)
Browse files Browse the repository at this point in the history
  • Loading branch information
gerardsn authored Nov 4, 2024
1 parent e49fd93 commit 09c4b3f
Show file tree
Hide file tree
Showing 7 changed files with 20 additions and 5 deletions.
1 change: 1 addition & 0 deletions docs/pages/deployment/discovery.rst
Original file line number Diff line number Diff line change
Expand Up @@ -176,6 +176,7 @@ Service definitions
A service definition consists of:

- ``id``: the unique identifier of the service
- ``did_methods``: the DID methods that are allowed (optional)
- ``endpoint``: the URL of the service
Expand Down
2 changes: 1 addition & 1 deletion docs/pages/deployment/migration.rst
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@ Nuts node v6 runs several migrations on startup for DID documents that are manag
Requires ``didmethods`` to contain ``nuts``.

Previously, DID documents could either by under self-control or under control of another DID as was recommended for vendor and care organisation, respectively.
In the new situation a user manages ``subject``s, and the node manages all DIDs under the ``subject``.
In the new situation a user manages ``subjects``, and the node manages all DIDs under the ``subject``.
To reduce complexity and allow future adoption of other did methods, all documents will be under self-control from v6.

**Migration: convert did:nuts to subject**
Expand Down
14 changes: 12 additions & 2 deletions docs/pages/deployment/oauth.rst
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,7 @@ The Nuts node implements (parts of) the following RFCs:
- `RFC 9449 <https://tools.ietf.org/html/rfc9449>`_ - OAuth 2.0 Demonstrating Proof of Possession (DPoP)
- `Nuts RFC021 <https://nuts-foundation.gitbook.io/drafts/rfc/rfc021-vp_token-grant-type>`_ - RFC021 VP Token Grant Type
- `OpenID4VP <https://openid.net/specs/openid-4-verifiable-presentations-1_0.html>`_ - OpenID for Verifiable Presentations - draft 20
- `StatusList2021 <https://www.w3.org/community/reports/credentials/CG-FINAL-vc-status-list-2021-20230102/>`_ - Status List 2021
- `Presentation Exchange <https://identity.foundation/presentation-exchange/>`_ - Presentation Exchange


Expand Down Expand Up @@ -58,5 +59,14 @@ A resources server must check the type of access token used to request data. If
The Nuts node provides a convenience API to do this for you.
Some of the calls to the Nuts node are required because it handles key material for the DPoP Proof. The keys used for the DPoP headers are taken from the DID Document of a tenant.
More information can be found on the `API documentation <nuts-node-api>`_ page. The relevant API's are:
- ``POST /internal/auth/v2/{did}/dpop``
- ``POST /internal/auth/v2/dpop_validate``

- ``POST /internal/auth/v2/dpop/{kid}``
- ``POST /internal/auth/v2/dpop/validate``

StatusList2021
**************

The revocation status of presented Verifiable Credentials that contain a ``credentialStatus`` with type ``StatusList2021Entry`` will automatically be validated.
To issue a Verifiable Credential that can be revoked, see ``POST /internal/vcr/v2/issuer/vc`` in the `API documentation <nuts-node-api>`_.
Be aware that the Nuts-node hosts a ``StatusList2021Credential`` with the revocation status of all issued credentials.
This endpoint MUST be available for some time after the last VC on the list has been revoked, or until all VCs on the list have expired.
2 changes: 1 addition & 1 deletion docs/pages/deployment/recommended-deployment.rst
Original file line number Diff line number Diff line change
Expand Up @@ -180,7 +180,7 @@ Below is a list of items that should be addressed when running a node in product

- Reverse proxy
- Use a proxy in front of the node which terminates TLS
- Make sure the reverse proxy sends the ``X-Forwarded-For`` header to log correct IP addresses
- Make sure the reverse proxy sets the header configured in ``http.clientipheader`` (default ``X-Forwarded-For``) to log correct IP addresses
- Backup Management
- Make sure data is backed up (data stored in SQL and private keys)
- Have a tested backup/restore procedure
Expand Down
1 change: 1 addition & 0 deletions docs/pages/development/2-releasing.rst
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,7 @@ Releasing Nuts Node
Nuts Node and auxiliary tools/applications follow a semantic versioning scheme (``<major>.<minor>.<patch>(-rc.<rc>)``):

Given a version number MAJOR.MINOR.PATCH, increment the:

1. MAJOR version when you make incompatible API changes,
2. MINOR version when you add functionality in a backwards compatible manner, and
3. PATCH version when you make backwards compatible bug fixes.
Expand Down
2 changes: 1 addition & 1 deletion docs/pages/integrating/api-authentication.rst
Original file line number Diff line number Diff line change
Expand Up @@ -131,7 +131,7 @@ To generate the SSH fingerprint of a key (for specifying as ``kid`` field) using
nuts-jwt-generator -i /path/to/keyfile -export-ssh-fingerprint
The ``ssh-keygen``` command unfortunately fails for Ed25519 PEM keys at the time of this writing due to a `bug <https://bugzilla.mindrot.org/show_bug.cgi?id=3195>`_ and poor recent support for Ed25519 in libcrypto packages.
The ``ssh-keygen`` command unfortunately fails for Ed25519 PEM keys at the time of this writing due to a `bug <https://bugzilla.mindrot.org/show_bug.cgi?id=3195>`_ and poor recent support for Ed25519 in libcrypto packages.
You can use the nuts-jwt-generator until this bug is fixed for keys of this type.

Generating keys
Expand Down
3 changes: 3 additions & 0 deletions docs/pages/integrating/vc.rst
Original file line number Diff line number Diff line change
Expand Up @@ -71,6 +71,7 @@ Will be expanded by the node to:
}
There are three parameters that can be passed:

- `format` (optional): The format of the VC. Can be ``ldp_vc`` or ``jwt_vc``. Default is ``ldp_vc``.
- `publishToNetwork` (did:nuts only, optional): Whether the VC should be published on the network. Default is ``true``.
- `visibility` (did:nuts only, optional): The visibility of the VC. Can be ``public`` or ``private``. Default is ``private``.
Expand Down Expand Up @@ -126,8 +127,10 @@ The following query does not return all `NutsOrganizationCredential` but **all**
To find certain credentials, you'll need to add fields that are required to exist in the desired credential.
By default, matching is exact: it only returns the result when the given value exactly matches.
There are 2 other matchers for strings:

- ``"*"`` to match credential fields that contain the field (non-empty)
- ``*`` as postfix to match credential fields that start with the given string, e.g. ``Hospital Amst*``

When ``*`` is used anywhere else in the string it won't be interpreted as wildcard and matched as-is.
Wildcards are not supported for other types than strings.

Expand Down

0 comments on commit 09c4b3f

Please sign in to comment.