diff --git a/CHANGELOG.md b/CHANGELOG.md index 0c5075f..fd54330 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -2,6 +2,13 @@ All notable changes to this project will be documented in this file. See [standard-version](https://github.com/conventional-changelog/standard-version) for commit guidelines. +### [0.0.1-alpha.10](https://github.com/DIG-Network/dig-propagation-server/compare/v0.0.1-alpha.9...v0.0.1-alpha.10) (2024-09-17) + + +### Bug Fixes + +* ownership in propagation ([d00f374](https://github.com/DIG-Network/dig-propagation-server/commit/d00f374774a891f8264cbffcbe02149c6c7424ea)) + ### [0.0.1-alpha.9](https://github.com/DIG-Network/dig-propagation-server/compare/v0.0.1-alpha.8...v0.0.1-alpha.9) (2024-09-17) diff --git a/package-lock.json b/package-lock.json index fb9ec39..e3edcbe 100644 --- a/package-lock.json +++ b/package-lock.json @@ -1,12 +1,12 @@ { "name": "dig-propagation-server", - "version": "0.0.1-alpha.9", + "version": "0.0.1-alpha.10", "lockfileVersion": 3, "requires": true, "packages": { "": { "name": "dig-propagation-server", - "version": "0.0.1-alpha.9", + "version": "0.0.1-alpha.10", "license": "ISC", "dependencies": { "@dignetwork/dig-sdk": "^0.0.1-alpha.18", diff --git a/package.json b/package.json index 90cc64c..e229275 100644 --- a/package.json +++ b/package.json @@ -1,6 +1,6 @@ { "name": "dig-propagation-server", - "version": "0.0.1-alpha.9", + "version": "0.0.1-alpha.10", "description": "", "type": "commonjs", "main": "./dist/index.js", diff --git a/src/app.ts b/src/app.ts index 2a8c8b8..da670d0 100644 --- a/src/app.ts +++ b/src/app.ts @@ -44,7 +44,7 @@ const serverOptions = { cert: serverCert, ca: caCert, requestCert: true, // Require client certificate - rejectUnauthorized: true, // Reject unauthorized clients + rejectUnauthorized: false, // Reject unauthorized clients }; // Create the HTTPS server diff --git a/src/controllers/merkleTreeController.ts b/src/controllers/merkleTreeController.ts index 0b18cf7..a19c1e8 100644 --- a/src/controllers/merkleTreeController.ts +++ b/src/controllers/merkleTreeController.ts @@ -247,14 +247,14 @@ export const putStore = async (req: Request, res: Response): Promise => { console.log("Checking store ownership..."); const dataStore = DataStore.from(storeId); - const isOwner = await dataStore.hasMetaWritePermissions( - Buffer.from(publicKey, "hex") - ); - - if (!isOwner) { - console.log("User does not have write access to this store."); - throw new HttpError(403, "You do not have write access to this store."); - } + //const isOwner = await dataStore.hasMetaWritePermissions( + // Buffer.from(publicKey, "hex") + //); + + // if (!isOwner) { + // console.log("User does not have write access to this store."); + // throw new HttpError(403, "You do not have write access to this store."); + //} console.log("User has write access to the store.");