diff --git a/.woodpecker.yml b/.woodpecker.yml index fb57928..e61dbc4 100644 --- a/.woodpecker.yml +++ b/.woodpecker.yml @@ -1,4 +1,4 @@ -pipeline: +steps: test: image: node commands: diff --git a/CHANGELOG.md b/CHANGELOG.md index a35ae06..70aa8c4 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -6,6 +6,22 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0 ## [Unreleased] +## [4.0.1] - 2023-08-28 +### Fixed +- CI docker builds + +## [4.0.0] - 2023-08-28 +### Added +- ASPE support +- Rome linting and formatting +- API v3 +### Changed +- Updated doipjs to 1.0.0 +### Fixed +- Missing primaryUserIndex +### Removed +- API v0, v1, v2 + ## [3.6.4] - 2023-03-27 ### Fixed - Missing /graphql proxy API endpoint diff --git a/Dockerfile b/Dockerfile index 8fcf2aa..96db0df 100644 --- a/Dockerfile +++ b/Dockerfile @@ -4,7 +4,8 @@ WORKDIR /app COPY . . RUN yarn --pure-lockfile -RUN yarn run build +RUN yarn run build:server +RUN yarn run build:static ### diff --git a/package.json b/package.json index 0acc5e5..9f27402 100644 --- a/package.json +++ b/package.json @@ -1,6 +1,6 @@ { "name": "keyoxide-web", - "version": "3.6.4", + "version": "4.0.1", "description": "Verifying online identity with cryptography", "main": "./src/index.js", "type": "module", diff --git a/src/server/openpgpProfiles.js b/src/server/openpgpProfiles.js index 2192bbe..ef11ace 100644 --- a/src/server/openpgpProfiles.js +++ b/src/server/openpgpProfiles.js @@ -102,7 +102,13 @@ const fetchWKD = (id) => { reject(new Error('No public keys could be read from the data fetched using WKD')) } - profile = await doipjs.openpgp.parsePublicKey(publicKey) + try { + profile = await doipjs.openpgp.parsePublicKey(publicKey) + } catch (error) { + reject(new Error('No public keys could be fetched using WKD')) + return + } + profile.publicKey.fetch.method = 'wkd' profile.publicKey.fetch.query = id profile.publicKey.fetch.resolvedUrl = fetchURL