Skip to content

Commit 181bd41

Browse files
EIT-3686 - Add access control information in platforms > products section and ce… (#4)
* add access control information in platforms > products section and certifier access control information * fix lint errors * update CI lint workflow * update CI --------- Co-authored-by: marcbaque <marc@bloock.com>
1 parent ce33ced commit 181bd41

File tree

7 files changed

+132
-16
lines changed

7 files changed

+132
-16
lines changed

.eslintignore

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -4,3 +4,5 @@ node_modules
44

55
sidebars-*.js
66
docusaurus.config.js
7+
docs/sdks/javascript/reference/**/*.js
8+
scripts/*.js

.eslintrc.json

Lines changed: 20 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -3,15 +3,32 @@
33
"browser": true,
44
"es2021": true
55
},
6-
"extends": ["eslint:recommended", "plugin:@typescript-eslint/recommended"],
6+
"extends": [
7+
"eslint:recommended",
8+
"plugin:@typescript-eslint/recommended"
9+
],
710
"overrides": [],
811
"parser": "@typescript-eslint/parser",
912
"parserOptions": {
1013
"ecmaVersion": "latest",
1114
"sourceType": "module"
1215
},
13-
"plugins": ["@typescript-eslint", "prettier"],
16+
"plugins": [
17+
"@typescript-eslint",
18+
"prettier"
19+
],
1420
"globals": {
1521
"process": true
22+
},
23+
"rules": {
24+
"no-unused-vars": "off",
25+
"@typescript-eslint/no-unused-vars": [
26+
"error",
27+
{
28+
"argsIgnorePattern": "^_",
29+
"varsIgnorePattern": "^_",
30+
"caughtErrorsIgnorePattern": "^_"
31+
}
32+
]
1633
}
17-
}
34+
}

.github/workflows/lint.yml

Lines changed: 14 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -6,16 +6,19 @@ on:
66
- '**'
77

88
jobs:
9-
lint:
9+
check:
10+
name: Check
1011
runs-on: ubuntu-latest
1112
steps:
12-
- uses: actions/checkout@v2
13-
- uses: actions/setup-node@v2
14-
with:
15-
node-version: 16
16-
registry-url: https://registry.npmjs.org/
17-
18-
- name: npm install, lint
19-
run: |
20-
npm install
21-
npm run lint
13+
- uses: actions/checkout@v3
14+
- uses: actions/setup-node@v3
15+
with:
16+
node-version: 18
17+
- name: Install dependencies
18+
run: yarn
19+
- name: Spell check
20+
run: yarn run spell-check
21+
- name: Lint
22+
run: yarn run lint
23+
- name: Build
24+
run: yarn run build

docs/guides/platform/certifier.mdx

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -45,6 +45,14 @@ The final step of the process involves users controlling access through Encrypti
4545

4646
Once you've completed the necessary setup steps, you can finalize the process by following these straightforward instructions. The system will then proceed to process the selected documents.
4747

48+
![14 - Certifier](/static/docs/guides/platform/certifier/14-certifier.png)
49+
50+
If the user signs and/or encrypts managed keys or certificates assigned access control, you should add the corresponding code after completing the process.
51+
52+
Depending on the products activated during the process and where a key with access control has been used, one or two fields will appear to complete: one for signing and the other for encryption.
53+
54+
If it's a key with access control via TOTP, the user should enter the temporary code displayed in the authentication app. The user should add the relevant password if access control is done through a Secret.
55+
4856
![8 - Certifier](/static/docs/guides/platform/certifier/8-certifier.png)
4957

5058
Files with a decentralized timestamp undergo a status transition from "pending" to "success" after being registered on the blockchain—an operation typically taking approximately one minute. Details screen and Verify link become available upon reaching the "success" status.

docs/guides/platform/products.mdx

Lines changed: 87 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -103,7 +103,7 @@ The next tab displays files uploaded to BLOOCK's centralized hosting, where user
103103

104104
![Decentralized Storage Hosted](https://cdn.bloock.com/hosting/v1/hosted/2aa5ca35-0c81-43cd-88ad-b0ef27d1e06e)
105105

106-
## Managed Keys
106+
## Managed Keys[](https://docs.bloock.com/guides/platform/products/#managed-keys 'Direct link to Managed Keys')
107107

108108
The Key Management Product ensures the security of private keys and certificates, safeguarding authentication credential safety. It enables precise access control and maintains a comprehensive audit trail for enhanced security. For a deeper understanding of this product, you can explore the Key Management section.
109109

@@ -135,6 +135,92 @@ On the certificate details screen, users can view generic information about the
135135

136136
![enter image description here](https://cdn.bloock.com/hosting/v1/hosted/db5d9229-057a-49e8-aeba-004ad284144f)
137137

138+
**Access Control**
139+
140+
BLOOCK allows adding access controls to manage keys and certificates. To learn more about how access controls work, [please refer to this section](https://docs.bloock.com/guides/products/key/concepts/access-control/#secret-based-authentication).
141+
142+
**_Add Access Control_**
143+
144+
You can add an access control both at the time of key and certificate creation and through the "Key Details" section.
145+
146+
**Key and certificate creation form:**
147+
148+
At the bottom of the creation form, there are different access control options. Currently, options include Time-Based One-Time Password (TOTP) or Secret-based Authentication:
149+
150+
![enter image description here](https://cdn.bloock.com/hosting/v1/hosted/056b9616-beb8-40e0-93dd-68ce5a67f6d2)
151+
152+
- **Using TOTP:**
153+
154+
When selecting the TOTP option and confirming the creation process, a window will appear providing information for adding access control:
155+
156+
![enter image description here](https://cdn.bloock.com/hosting/v1/hosted/161a88c2-08c2-490a-b316-69260e509b03)
157+
158+
To utilize this functionality, you can use apps and browser extensions like 1Password, Google Authenticator, and Microsoft Authenticator, which generate one-time passwords used as a second factor to verify your access to this key.
159+
160+
Scan the generated QR code using any of the mentioned applications or manually enter the code provided at the bottom. Additionally, there are recovery codes in case the user loses access to the key.
161+
162+
![enter image description here](https://cdn.bloock.com/hosting/v1/hosted/c0919a85-55a0-493f-83c7-516739f1a48e)
163+
164+
> Note: It's important to save these recovery codes as BLOOCK does not store this information.
165+
166+
- **Secret-based Authentication:**
167+
168+
When selecting the Secret-based option, a form will appear with a secret field, which should be the code used for any operation with the access key and a field for a recovery email to retrieve the key if the user loses access to it.
169+
170+
![enter image description here](https://cdn.bloock.com/hosting/v1/hosted/b591ad73-4ce2-493d-b4ad-7dd4717d7c91)
171+
172+
**Key and certificate details section:**
173+
174+
In the top right corner of the key and certificate details page, you can find a dropdown menu to perform different actions, to add access control to this key, select the "+ Add access control" button.
175+
176+
![enter image description here](https://cdn.bloock.com/hosting/v1/hosted/75210c58-1d8e-4e9b-b944-246e984f8a89)
177+
178+
Once this functionality is selected, a dropdown will appear on the right side of the screen where you can choose the type of access control, either Secret or TOTP.
179+
180+
- **Secret-based Authentication:**
181+
182+
When selecting the Secret-based option, a form will appear with a secret field. This secret will work as the code used for any operation with the access key and a field for a recovery email to recover the key if you lose access to it.
183+
184+
![enter image description here](https://ipfs.io/ipfs/QmeARm3eqEvuaiD6zXBTP5WxLdAejSzGefWaPEh2v5baFa/Captures%20Docu/Screenshot%202024-04-05%20at%2012.58.33.png)
185+
186+
- **Using TOTP:**
187+
188+
When selecting the TOTP option and confirming by clicking the "Next" button, information for operating with the key via access control will appear:
189+
190+
To utilize this functionality, you can use apps and browser extensions like 1Password, Google Authenticator, and Microsoft Authenticator, which generate one-time passwords that are used as a second factor to verify your access to this key.
191+
192+
Scan the generated QR code using any of the mentioned applications or manually enter the code provided at the bottom. Additionally, there are recovery codes in case the user loses access to the key.
193+
194+
![enter image description here](https://cdn.bloock.com/hosting/v1/hosted/140828c4-a291-4022-bc29-e5b49eb12b58)
195+
196+
**_Edit Access Control_**
197+
198+
If you wish to edit the access control of the key, select the "Edit Access Control" option from the dropdown menu on the key or certificate details screen. To proceed with the process, you will need to enter the "Secret" of the key if it is of the secret-based type.
199+
![enter image description here](https://cdn.bloock.com/hosting/v1/hosted/e9b7c873-09f9-4b51-b0dd-9d365061600e)
200+
201+
In the case of access control via TOTP, add the temporary code provided by the selected application.
202+
![enter image description here](https://cdn.bloock.com/hosting/v1/hosted/aeba50bc-2ee7-4b8c-a06c-053f22b51cc3)
203+
204+
Next, you will select the new access control method, either secret or TOTP.
205+
206+
![enter image description here](https://cdn.bloock.com/hosting/v1/hosted/82df036f-a4fc-432a-a85b-6dfc09aec609)
207+
208+
![enter image description here](https://cdn.bloock.com/hosting/v1/hosted/7941f310-8c80-4ff6-bbe5-3b3e7fd587b4)
209+
210+
**Reset Secret Password**
211+
212+
If you want to change the secret of your key, you can select the "Reset Secret Password" option from the dropdown menu. Once you select this option, a window will appear for the change process, where you'll need to confirm that you want to proceed with this operation.
213+
214+
![enter image description here](https://cdn.bloock.com/hosting/v1/hosted/a224ff98-93c6-407d-837d-611d8a76870f)
215+
216+
You will then receive a 6-digit code in your email to complete this operation.
217+
218+
![enter image description here](https://cdn.bloock.com/hosting/v1/hosted/84967395-65b6-4dd6-b759-e82f0fa35bb7)
219+
220+
In the window's form, you'll find a field to input the new password and the received 6-digit code.
221+
222+
![enter image description here](https://cdn.bloock.com/hosting/v1/hosted/3f32fc6d-20a5-4c20-b77e-4b0827b294ff)
223+
138224
**Operations**
139225

140226
In the last tab of the Managed Keys section, we find the different signature operations carried out by the user in a general manner, along with information regarding them: The type of action (Signature, Verification, Encryption, and Decryption), the transaction ID, the name of the key or certificate used, the date of the operation, and the IP address where this operation took place.

src/theme/Footer/index.jsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
import React from 'react';
22
import HomeFooter from '../../components/homepage/HomeFooter';
33

4-
export default function FooterWrapper(props) {
4+
export default function FooterWrapper() {
55
return (
66
<>
77
<HomeFooter />
128 KB
Loading

0 commit comments

Comments
 (0)