@wavo-cloud/aws-secrets-manager-helper 0.1.0 → 0.1.1

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/README.md CHANGED
@@ -1,7 +1,26 @@
1
- # wavo-cloud.auth-ui-helper
1
+ # wavo-cloud.aws-secrets-manager-helper
2
2
 
3
3
  > Wavo Cloud Infallible AWS Secrets Manager Helper
4
4
 
5
+ ## How To Use
6
+
7
+ To import it use
8
+
9
+ const {
10
+ getClientSecretIds,
11
+ getClientSecret,
12
+ getAllClientSecrets,
13
+ getSecretValue,
14
+ } = require('../app/utils/awsSecretsManager')
15
+
16
+ To get a specific secret value call `getSecretValue(SECRET_ID)`
17
+
18
+ To get a list of clients and their respective CLIENT_IDs and SECRET_IDs call `getClientSecretIds()`
19
+
20
+ To get a specific client secret using their CLIENT_ID call `getClientSecret(CLIENT_ID)`
21
+
22
+ To get all client secrets call `getAllClientSecrets()`
23
+
5
24
  ## Important Commands
6
25
 
7
26
  ### Building the Dockerfile image
package/package.json CHANGED
@@ -1,11 +1,11 @@
1
1
  {
2
2
  "name": "@wavo-cloud/aws-secrets-manager-helper",
3
- "version": "0.1.0",
3
+ "version": "0.1.1",
4
4
  "description": "Wavo Cloud Infallible AWS Secrets Manager Helper",
5
5
  "license": "UNLICENSED",
6
6
  "repository": {
7
7
  "type": "git",
8
- "url": "https://github.com/Wavo/wavo-cloud.aws-secrets-manager-helper.git"
8
+ "url": "git+https://github.com/Wavo/wavo-cloud.aws-secrets-manager-helper.git"
9
9
  },
10
10
  "wavoCloud": {
11
11
  "enableK8sDeployment": false,
@@ -40,5 +40,18 @@
40
40
  "js-cookie": "^2.2.0",
41
41
  "jsonwebtoken": "^8.5.1",
42
42
  "jwt-decode": "^2.2.0"
43
- }
43
+ },
44
+ "bugs": {
45
+ "url": "https://github.com/Wavo/wavo-cloud.aws-secrets-manager-helper/issues"
46
+ },
47
+ "homepage": "https://github.com/Wavo/wavo-cloud.aws-secrets-manager-helper#readme",
48
+ "directories": {
49
+ "test": "test"
50
+ },
51
+ "keywords": [
52
+ "aws",
53
+ "secrets",
54
+ "manager"
55
+ ],
56
+ "author": "Zain Virani"
44
57
  }
package/test/aws.test.js CHANGED
@@ -3,8 +3,6 @@ const {
3
3
  } = require('../app/utils/awsSecretsManager')
4
4
  const expect = require('chai').expect
5
5
 
6
- const clientIdsSecretId = 'wavo/self_serve/client_list'
7
-
8
6
  describe('Test Secrets Manager Helper', async () => {
9
7
  /**
10
8
  * This function call tests all of the helper functions