Skip to content

Commit

Permalink
Merge remote-tracking branch 'origin/develop' into develop
Browse files Browse the repository at this point in the history
  • Loading branch information
nklomp committed Nov 27, 2024
2 parents 59b1161 + c71a6b0 commit 1cccf3b
Show file tree
Hide file tree
Showing 46 changed files with 4,076 additions and 3,216 deletions.
6 changes: 5 additions & 1 deletion .github/workflows/build-test-publish-on-push.yml
Original file line number Diff line number Diff line change
Expand Up @@ -18,6 +18,11 @@ jobs:
GH_USER: ${{secrets.GH_USER}}
GH_EMAIL: ${{secrets.GH_EMAIL}}
VC_HTTP_API_AUTH_TOKEN: ${{secrets.VC_HTTP_API_AUTH_TOKEN}}
AZURE_KEYVAULT_URL: ${{secrets.AZURE_KEYVAULT_URL}}
AZURE_KEYVAULT_TENANT_ID: ${{secrets.AZURE_KEYVAULT_TENANT_ID}}
AZURE_KEYVAULT_CLIENT_ID: ${{secrets.AZURE_KEYVAULT_CLIENT_ID}}
AZURE_KEYVAULT_CLIENT_SECRET: ${{secrets.AZURE_KEYVAULT_CLIENT_SECRET}}

runs-on: ubuntu-latest
services:
postgres:
Expand Down Expand Up @@ -88,4 +93,3 @@ jobs:
- name: publish @unstable when on unstable branch
if: startsWith(github.ref, 'refs/heads/feat')
run: lerna publish --conventional-prerelease --force-publish --canary --sync-dist-version --no-git-tag-version --include-merged-tags --preid $PRE_ID --pre-dist-tag unstable --yes --throttle-size 75 --registry https://registry.npmjs.org

13 changes: 13 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,19 @@
All notable changes to this project will be documented in this file.
See [Conventional Commits](https://conventionalcommits.org) for commit guidelines.

# [0.26.0](https://github.com/Sphereon-Opensource/SSI-SDK-crypto-extensions/compare/v0.25.0...v0.26.0) (2024-11-26)

### Bug Fixes

- Add support for P-384/521 external JWKs ([7f4a809](https://github.com/Sphereon-Opensource/SSI-SDK-crypto-extensions/commit/7f4a8090121ee2aedae64af06ccc42e7b069bd6b))
- Make sure we can use thumbprints for signing ([679d3e7](https://github.com/Sphereon-Opensource/SSI-SDK-crypto-extensions/commit/679d3e73ca984a57afda9c55222a9fc596a623ec))
- Make sure we can use thumbprints for signing ([e64b326](https://github.com/Sphereon-Opensource/SSI-SDK-crypto-extensions/commit/e64b3263f83eaa88b75a57d2d3bae8f5e0575c6d))

### Features

- Add OYD DID support in enum ([01fe1d0](https://github.com/Sphereon-Opensource/SSI-SDK-crypto-extensions/commit/01fe1d0168b6b8da929a85586eedb7d398a239a3))
- create kms-azure plugin structure ([61e1a61](https://github.com/Sphereon-Opensource/SSI-SDK-crypto-extensions/commit/61e1a61f7442acf376d5cc6e39cdacdc336b8aa3))

# [0.25.0](https://github.com/Sphereon-Opensource/SSI-SDK-crypto-extensions/compare/v0.24.0...v0.25.0) (2024-10-28)

### Bug Fixes
Expand Down
6 changes: 2 additions & 4 deletions lerna.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"packages": ["packages/*"],
"version": "0.25.0",
"version": "0.26.0",
"npmClient": "pnpm",
"command": {
"publish": {
Expand All @@ -14,7 +14,5 @@
"sort": true,
"stream": true,
"$schema": "node_modules/lerna/schemas/lerna-schema.json",
"ignoreChanges": [
"packages/oidf-resolution-tests/**"
]
"ignoreChanges": ["packages/oidf-resolution-tests/**"]
}
4 changes: 4 additions & 0 deletions packages/did-provider-jwk/CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,10 @@
All notable changes to this project will be documented in this file.
See [Conventional Commits](https://conventionalcommits.org) for commit guidelines.

# [0.26.0](https://github.com/Sphereon-OpenSource/SSI-SDK-crypto-extensions/compare/v0.25.0...v0.26.0) (2024-11-26)

**Note:** Version bump only for package @sphereon/ssi-sdk-ext.did-provider-jwk

# [0.25.0](https://github.com/Sphereon-OpenSource/SSI-SDK-crypto-extensions/compare/v0.24.0...v0.25.0) (2024-10-28)

### Features
Expand Down
2 changes: 1 addition & 1 deletion packages/did-provider-jwk/package.json
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
{
"name": "@sphereon/ssi-sdk-ext.did-provider-jwk",
"description": "Sphereon SSI-SDK plugin for management of did:key identifiers.",
"version": "0.25.0",
"version": "0.26.0",
"source": "src/index.ts",
"main": "dist/index.js",
"types": "dist/index.d.ts",
Expand Down
4 changes: 4 additions & 0 deletions packages/did-provider-key/CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,10 @@
All notable changes to this project will be documented in this file.
See [Conventional Commits](https://conventionalcommits.org) for commit guidelines.

# [0.26.0](https://github.com/Sphereon-OpenSource/SSI-SDK-crypto-extensions/compare/v0.25.0...v0.26.0) (2024-11-26)

**Note:** Version bump only for package @sphereon/ssi-sdk-ext.did-provider-key

# [0.25.0](https://github.com/Sphereon-OpenSource/SSI-SDK-crypto-extensions/compare/v0.24.0...v0.25.0) (2024-10-28)

### Bug Fixes
Expand Down
2 changes: 1 addition & 1 deletion packages/did-provider-key/package.json
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
{
"name": "@sphereon/ssi-sdk-ext.did-provider-key",
"description": "Sphereon SSI-SDK plugin for management of did:key identifiers.",
"version": "0.25.0",
"version": "0.26.0",
"source": "src/index.ts",
"main": "dist/index.js",
"types": "dist/index.d.ts",
Expand Down
4 changes: 4 additions & 0 deletions packages/did-provider-oyd/CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,10 @@
All notable changes to this project will be documented in this file.
See [Conventional Commits](https://conventionalcommits.org) for commit guidelines.

# [0.26.0](https://github.com/OwnYourData/veramo/compare/v0.25.0...v0.26.0) (2024-11-26)

**Note:** Version bump only for package @sphereon/did-provider-oyd

# [0.25.0](https://github.com/OwnYourData/veramo/compare/v0.24.0...v0.25.0) (2024-10-28)

**Note:** Version bump only for package @sphereon/did-provider-oyd
Expand Down
2 changes: 1 addition & 1 deletion packages/did-provider-oyd/package.json
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
{
"name": "@sphereon/did-provider-oyd",
"description": "OwnYourData plugin that can enable creation and control of did:oyd identifiers.",
"version": "0.25.0",
"version": "0.26.0",
"source": "src/index.ts",
"main": "dist/index.js",
"types": "dist/index.d.ts",
Expand Down
4 changes: 4 additions & 0 deletions packages/did-provider-web/CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,10 @@
All notable changes to this project will be documented in this file.
See [Conventional Commits](https://conventionalcommits.org) for commit guidelines.

# [0.26.0](https://github.com/Sphereon-Opensource/SSI-SDK-crypto-extensions/compare/v0.25.0...v0.26.0) (2024-11-26)

**Note:** Version bump only for package @sphereon/ssi-sdk-ext.did-provider-web

# [0.25.0](https://github.com/Sphereon-Opensource/SSI-SDK-crypto-extensions/compare/v0.24.0...v0.25.0) (2024-10-28)

### Features
Expand Down
2 changes: 1 addition & 1 deletion packages/did-provider-web/package.json
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
{
"name": "@sphereon/ssi-sdk-ext.did-provider-web",
"description": "plugin that can enable creation and control of did:web identifiers.",
"version": "0.25.0",
"version": "0.26.0",
"main": "dist/index.js",
"exports": "./dist/index.js",
"types": "dist/index.d.ts",
Expand Down
4 changes: 4 additions & 0 deletions packages/did-resolver-ebsi/CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,10 @@
All notable changes to this project will be documented in this file.
See [Conventional Commits](https://conventionalcommits.org) for commit guidelines.

# [0.26.0](https://github.com/Sphereon-Opensource/SSI-SDK-crypto-extensions/compare/v0.25.0...v0.26.0) (2024-11-26)

**Note:** Version bump only for package @sphereon/ssi-sdk-ext.did-resolver-ebsi

# [0.25.0](https://github.com/Sphereon-Opensource/SSI-SDK-crypto-extensions/compare/v0.24.0...v0.25.0) (2024-10-28)

**Note:** Version bump only for package @sphereon/ssi-sdk-ext.did-resolver-ebsi
Expand Down
2 changes: 1 addition & 1 deletion packages/did-resolver-ebsi/package.json
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
{
"name": "@sphereon/ssi-sdk-ext.did-resolver-ebsi",
"description": "Sphereon did:ebsi resolver for Legal Entities.",
"version": "0.25.0",
"version": "0.26.0",
"source": "src/index.ts",
"main": "dist/index.js",
"types": "dist/index.d.ts",
Expand Down
4 changes: 4 additions & 0 deletions packages/did-resolver-jwk/CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,10 @@
All notable changes to this project will be documented in this file.
See [Conventional Commits](https://conventionalcommits.org) for commit guidelines.

# [0.26.0](https://github.com/Sphereon-OpenSource/ssi-sdk-crypto-extensions/compare/v0.25.0...v0.26.0) (2024-11-26)

**Note:** Version bump only for package @sphereon/ssi-sdk-ext.did-resolver-jwk

# [0.25.0](https://github.com/Sphereon-OpenSource/ssi-sdk-crypto-extensions/compare/v0.24.0...v0.25.0) (2024-10-28)

### Features
Expand Down
2 changes: 1 addition & 1 deletion packages/did-resolver-jwk/package.json
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
{
"name": "@sphereon/ssi-sdk-ext.did-resolver-jwk",
"description": "DIF resolver for resolution of did:jwk identifiers.",
"version": "0.25.0",
"version": "0.26.0",
"source": "src/index.ts",
"main": "dist/index.js",
"types": "dist/index.d.ts",
Expand Down
4 changes: 4 additions & 0 deletions packages/did-resolver-key/CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,10 @@
All notable changes to this project will be documented in this file.
See [Conventional Commits](https://conventionalcommits.org) for commit guidelines.

# [0.26.0](https://github.com/Sphereon-Opensource/SSI-SDK-crypto-extensions/compare/v0.25.0...v0.26.0) (2024-11-26)

**Note:** Version bump only for package @sphereon/ssi-sdk-ext.did-resolver-key

# [0.25.0](https://github.com/Sphereon-Opensource/SSI-SDK-crypto-extensions/compare/v0.24.0...v0.25.0) (2024-10-28)

### Bug Fixes
Expand Down
2 changes: 1 addition & 1 deletion packages/did-resolver-key/package.json
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
{
"name": "@sphereon/ssi-sdk-ext.did-resolver-key",
"description": "Sphereon did:key resolver with BBS+/BLS and EBSI support.",
"version": "0.25.0",
"version": "0.26.0",
"source": "src/index.ts",
"main": "dist/index.js",
"types": "dist/index.d.ts",
Expand Down
10 changes: 10 additions & 0 deletions packages/did-utils/CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,16 @@
All notable changes to this project will be documented in this file.
See [Conventional Commits](https://conventionalcommits.org) for commit guidelines.

# [0.26.0](https://github.com/Sphereon-OpenSource/ssi-sdk-crypto-extensions/compare/v0.25.0...v0.26.0) (2024-11-26)

### Bug Fixes

- Add support for P-384/521 external JWKs ([7f4a809](https://github.com/Sphereon-OpenSource/ssi-sdk-crypto-extensions/commit/7f4a8090121ee2aedae64af06ccc42e7b069bd6b))

### Features

- Add OYD DID support in enum ([01fe1d0](https://github.com/Sphereon-OpenSource/ssi-sdk-crypto-extensions/commit/01fe1d0168b6b8da929a85586eedb7d398a239a3))

# [0.25.0](https://github.com/Sphereon-OpenSource/ssi-sdk-crypto-extensions/compare/v0.24.0...v0.25.0) (2024-10-28)

### Features
Expand Down
2 changes: 1 addition & 1 deletion packages/did-utils/package.json
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
{
"name": "@sphereon/ssi-sdk-ext.did-utils",
"description": "DID Utils",
"version": "0.25.0",
"version": "0.26.0",
"source": "src/index.ts",
"main": "dist/index.js",
"types": "dist/index.d.ts",
Expand Down
6 changes: 6 additions & 0 deletions packages/identifier-resolution/CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,12 @@
All notable changes to this project will be documented in this file.
See [Conventional Commits](https://conventionalcommits.org) for commit guidelines.

# [0.26.0](https://github.com/Sphereon-OpenSource/SSI-SDK-crypto-extensions/compare/v0.25.0...v0.26.0) (2024-11-26)

### Bug Fixes

- Add support for P-384/521 external JWKs ([7f4a809](https://github.com/Sphereon-OpenSource/SSI-SDK-crypto-extensions/commit/7f4a8090121ee2aedae64af06ccc42e7b069bd6b))

# [0.25.0](https://github.com/Sphereon-OpenSource/SSI-SDK-crypto-extensions/compare/v0.24.0...v0.25.0) (2024-10-28)

### Features
Expand Down
2 changes: 1 addition & 1 deletion packages/identifier-resolution/package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "@sphereon/ssi-sdk-ext.identifier-resolution",
"version": "0.25.0",
"version": "0.26.0",
"source": "src/index.ts",
"main": "dist/index.js",
"types": "dist/index.d.ts",
Expand Down
4 changes: 4 additions & 0 deletions packages/jwt-service/CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,10 @@
All notable changes to this project will be documented in this file.
See [Conventional Commits](https://conventionalcommits.org) for commit guidelines.

# [0.26.0](https://github.com/Sphereon-OpenSource/SSI-SDK-crypto-extensions/compare/v0.25.0...v0.26.0) (2024-11-26)

**Note:** Version bump only for package @sphereon/ssi-sdk-ext.jwt-service

# [0.25.0](https://github.com/Sphereon-OpenSource/SSI-SDK-crypto-extensions/compare/v0.24.0...v0.25.0) (2024-10-28)

### Bug Fixes
Expand Down
2 changes: 1 addition & 1 deletion packages/jwt-service/package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "@sphereon/ssi-sdk-ext.jwt-service",
"version": "0.25.0",
"version": "0.26.0",
"source": "src/index.ts",
"main": "dist/index.js",
"types": "dist/index.d.ts",
Expand Down
7 changes: 7 additions & 0 deletions packages/key-manager/CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,13 @@
All notable changes to this project will be documented in this file.
See [Conventional Commits](https://conventionalcommits.org) for commit guidelines.

# [0.26.0](https://github.com/Sphereon-OpenSource/SSI-SDK-crypto-extensions/compare/v0.25.0...v0.26.0) (2024-11-26)

### Bug Fixes

- Make sure we can use thumbprints for signing ([679d3e7](https://github.com/Sphereon-OpenSource/SSI-SDK-crypto-extensions/commit/679d3e73ca984a57afda9c55222a9fc596a623ec))
- Make sure we can use thumbprints for signing ([e64b326](https://github.com/Sphereon-OpenSource/SSI-SDK-crypto-extensions/commit/e64b3263f83eaa88b75a57d2d3bae8f5e0575c6d))

# [0.25.0](https://github.com/Sphereon-OpenSource/SSI-SDK-crypto-extensions/compare/v0.24.0...v0.25.0) (2024-10-28)

### Features
Expand Down
2 changes: 1 addition & 1 deletion packages/key-manager/package.json
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
{
"name": "@sphereon/ssi-sdk-ext.key-manager",
"description": "Sphereon Key Manager plugin with BLS support",
"version": "0.25.0",
"version": "0.26.0",
"source": "src/index.ts",
"main": "dist/index.js",
"types": "dist/index.d.ts",
Expand Down
4 changes: 4 additions & 0 deletions packages/key-utils/CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,10 @@
All notable changes to this project will be documented in this file.
See [Conventional Commits](https://conventionalcommits.org) for commit guidelines.

# [0.26.0](https://github.com/Sphereon-OpenSource/SSI-SDK-crypto-extensions/compare/v0.25.0...v0.26.0) (2024-11-26)

**Note:** Version bump only for package @sphereon/ssi-sdk-ext.key-utils

# [0.25.0](https://github.com/Sphereon-OpenSource/SSI-SDK-crypto-extensions/compare/v0.24.0...v0.25.0) (2024-10-28)

### Bug Fixes
Expand Down
2 changes: 1 addition & 1 deletion packages/key-utils/package.json
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
{
"name": "@sphereon/ssi-sdk-ext.key-utils",
"description": "Sphereon SSI-SDK plugin for key creation.",
"version": "0.25.0",
"version": "0.26.0",
"source": "src/index.ts",
"main": "dist/index.js",
"types": "dist/index.d.ts",
Expand Down
10 changes: 10 additions & 0 deletions packages/kms-azure/CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,10 @@
# Change Log

All notable changes to this project will be documented in this file.
See [Conventional Commits](https://conventionalcommits.org) for commit guidelines.

# [0.26.0](https://github.com/Sphereon-OpenSource/SSI-SDK-crypto-extensions/compare/v0.25.0...v0.26.0) (2024-11-26)

### Features

- create kms-azure plugin structure ([61e1a61](https://github.com/Sphereon-OpenSource/SSI-SDK-crypto-extensions/commit/61e1a61f7442acf376d5cc6e39cdacdc336b8aa3))
Empty file added packages/kms-azure/LICENSE
Empty file.
66 changes: 66 additions & 0 deletions packages/kms-azure/README.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,66 @@
<!--suppress HtmlDeprecatedAttribute -->
<h1 align="center">
<br>
<a href="https://www.sphereon.com"><img src="https://sphereon.com/content/themes/sphereon/assets/img/logo.svg" alt="Sphereon" width="400"></a>
<br>Sphereon's Azure KeyVault Key Management System Plugin
<br>
</h1>

## Overview

This module provides a Key Management System (KMS) wrapper that enables the use of Azure Key Vault KMS functionalities within your application. It extends the capabilities of the AbstractKeyManagementSystem by integrating with Azure's robust key management features. This ensures that key generation, management, and signing operations are handled securely and efficiently, aligning with Veramo's key management functions.

## Available functions

- createKey
- sign
- verify

### Installation

To install the module, use the following command:

```bash
yarn add @sphereon/ssi-sdk-ext.kms-azure
```

## Usage

### Creating a Key

To create a key, you eed to specify the key type and provide a keyAlias as part of the metadata. Here is an example of how to create a key:

```typescript
import {AzureKeyVaultCryptoProvider, com} from '@sphereon/kmp-crypto-kms-azure'
import AzureKeyVaultClientConfig = com.sphereon.crypto.kms.azure.AzureKeyVaultClientConfig;

const id = "azure-keyvault-test"
const keyVaultUrl = "https://example.vault.azure.net/"
const tenantId = "70f978d7-0acc-4f0f-9c07-4284863dc678"
const credentialOptions = new com.sphereon.crypto.kms.azure.CredentialOpts(
com.sphereon.crypto.kms.azure.CredentialMode.SERVICE_CLIENT_SECRET,
new com.sphereon.crypto.kms.azure.SecretCredentialOpts(
"19bfd54e-e3e6-4fbe-9f41-b26af93017ca",
"4xpCwvGr0xTd2wrarCM2CrQnt1ceFSsr.JgdYbgq"
)
)

const config = new AzureKeyVaultClientConfig(
id,
keyVaultUrl,
tenantId,
credentialOptions
)

const client = new AzureKeyVaultCryptoProvider(config)

async function createKeyExample() {
client.createKey({ type: 'Secp256r1' }).then((key) => {
console.log('Key created:', key)
}).catch((error) => {
console.error('Error creating key:', error)
})
}

createKeyExample()
```
Loading

0 comments on commit 1cccf3b

Please sign in to comment.