Skip to content

Commit 0871578

Browse files
author
Github aggregate action
committed
Update from neicnordic/sensitive-data-archive at 07:16 on 2025-06-02
1 parent 25c1005 commit 0871578

File tree

2 files changed

+20
-0
lines changed

2 files changed

+20
-0
lines changed

docs/dictionary/wordlist.txt

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -47,6 +47,7 @@ accessionid
4747
accessionids
4848
accesskey
4949
accesstoken
50+
acecc
5051
ack'ed
5152
acked
5253
adminPassword
@@ -79,6 +80,7 @@ bmi
7980
bugfix
8081
buildvcs
8182
cacert
83+
cbb
8284
ccacd
8385
cega
8486
cegamq

docs/services/api.md

Lines changed: 18 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -220,6 +220,24 @@ Admin endpoints are only available to a set of whitelisted users specified in th
220220
- `401` Token user is not in the list of admins.
221221
- `500` Internal error due to DB failure.
222222

223+
- `/users/:username/file/:fileid`
224+
- accepts `GET` requests.
225+
- downloads a file from the inbox, re-encrypted with the client’s public key provided in the request header.
226+
- the public key provided in the header should be `base64` encoded.
227+
228+
- Error codes
229+
- `200` Query execute ok.
230+
- `400` Client public key not provided or not valid.
231+
- `401` Token user is not in the list of admins.
232+
- `404` File not found
233+
- `500` Internal error due to Inbox, Reencrypt, DB, MQ or streaming failures.
234+
235+
Example:
236+
237+
```bash
238+
curl -H "Authorization: Bearer $token" -H "C4GH-Public-Key: $base64_encoded_public_key" -X GET https://HOSTNAME/users/submitter@example.org/file/c2acecc6-f208-441c-877a-2670e4cbb040
239+
```
240+
223241
- `/c4gh-keys/add`
224242
- accepts `POST` requests with the hex hash of the key and its description
225243
- registers the key hash in the database.

0 commit comments

Comments
 (0)