ac-awssecrets 2.5.7 → 3.0.2

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.
@@ -0,0 +1,9 @@
1
+ # Code Owners
2
+ #
3
+ # This file defines who is responsible for code in this repository.
4
+ # Reviews from code owners are automatically requested for pull requests.
5
+ #
6
+ # More info: https://docs.github.com/en/repositories/managing-your-repositorys-settings-and-features/customizing-your-repository/about-code-owners
7
+
8
+ # Default owner for everything in the repo
9
+ * @AdmiralCloud/ac-maintainer-backend
@@ -8,16 +8,19 @@ on:
8
8
  push:
9
9
  branches: [ develop, master ]
10
10
  pull_request:
11
- branches: [ develop ]
11
+ branches: [ develop, master ]
12
12
 
13
13
  jobs:
14
14
  build:
15
15
 
16
+ permissions:
17
+ contents: read
18
+
16
19
  runs-on: ubuntu-latest
17
20
 
18
21
  strategy:
19
22
  matrix:
20
- node-version: [18.x, 20.x]
23
+ node-version: [20.x, 22.x]
21
24
  # See supported Node.js release schedule at https://nodejs.org/en/about/releases/
22
25
 
23
26
  steps:
package/CHANGELOG.md CHANGED
@@ -1,4 +1,60 @@
1
1
 
2
+ ## [3.0.2](https://github.com/admiralcloud/ac-awssecrets/compare/v3.0.1..v3.0.2) (2026-03-04 14:22:40)
3
+
4
+
5
+ ### Bug Fix
6
+
7
+ * **App:** Package updates | MP | [c3e7ab4e089fe1331433bb5e6b145aa86fb1150d](https://github.com/admiralcloud/ac-awssecrets/commit/c3e7ab4e089fe1331433bb5e6b145aa86fb1150d)
8
+ Package updates
9
+ Related issues:
10
+
11
+ ## [3.0.1](https://github.com/admiralcloud/ac-awssecrets/compare/v3.0.0..v3.0.1) (2026-02-26 13:23:41)
12
+
13
+
14
+ ### Bug Fix
15
+
16
+ * **App:** Move test conditions away from main code | MP | [f040449b34d716cb68ba6101fad0a3f53b736755](https://github.com/admiralcloud/ac-awssecrets/commit/f040449b34d716cb68ba6101fad0a3f53b736755)
17
+ Use mock endpoints for AWS in test and move special conditions for tests from main code.
18
+ Related issues:
19
+ * **Misc:** Init valueArray as array | MP | [5c1c027b77ff90df5a5f9d1982d64a39de6e2d28](https://github.com/admiralcloud/ac-awssecrets/commit/5c1c027b77ff90df5a5f9d1982d64a39de6e2d28)
20
+ Init valueArray as array
21
+ Related issues:
22
+ * **App:** Iterate over parameter path | MP | [dfa9cca66ca45d7e886fe9feb9f398e16a7347ad](https://github.com/admiralcloud/ac-awssecrets/commit/dfa9cca66ca45d7e886fe9feb9f398e16a7347ad)
23
+ Allow processing of paths with more than 10 secret parameters
24
+ Related issues:
25
+ * **App:** Code fixes to prevent prototype pollution | MP | [5512b447d729bbc6bc93967df8c9ca365d2ce41b](https://github.com/admiralcloud/ac-awssecrets/commit/5512b447d729bbc6bc93967df8c9ca365d2ce41b)
26
+ Code fixes to prevent prototype pollution
27
+ Related issues:
28
+ ### Tests
29
+
30
+ * **App:** Fixed test | MP | [b97eb9d467cd94bcb4a4e57b204d2659040eec96](https://github.com/admiralcloud/ac-awssecrets/commit/b97eb9d467cd94bcb4a4e57b204d2659040eec96)
31
+ Remove deepMerge test - it is covered by other tests
32
+ Related issues:
33
+ ### Style
34
+
35
+ * **Misc:** Updated eslint config | MP | [c2d3e45b5fa6c87ae6cef098b8145b3b62ce3e98](https://github.com/admiralcloud/ac-awssecrets/commit/c2d3e45b5fa6c87ae6cef098b8145b3b62ce3e98)
36
+ Updated eslint config
37
+ Related issues:
38
+ ### Chores
39
+
40
+ * **App:** Updated packages | MP | [7c091f3a7ff8f3d8f131d6d911cb56ab89fbeb95](https://github.com/admiralcloud/ac-awssecrets/commit/7c091f3a7ff8f3d8f131d6d911cb56ab89fbeb95)
41
+ Updated packages
42
+ Related issues:
43
+ * **App:** Updated packages | MP | [18973ef5d916142af9e0f81a40a52087368172a1](https://github.com/admiralcloud/ac-awssecrets/commit/18973ef5d916142af9e0f81a40a52087368172a1)
44
+ Package updates incl ESLint 9 -> 10 and lint fixes
45
+ Related issues:
46
+
47
+ # [3.0.0](https://github.com/admiralcloud/ac-awssecrets/compare/v2.5.7..v3.0.0) (2026-02-03 10:00:56)
48
+
49
+
50
+ ### Chores
51
+
52
+ * **Misc:** Minimum version: Node 20 | MP | [f41f9718a6f0f38eec9d637dcb20e40a8d6ea072](https://github.com/admiralcloud/ac-awssecrets/commit/f41f9718a6f0f38eec9d637dcb20e40a8d6ea072)
53
+ Minimum version: Node 20
54
+ Related issues:
55
+ ## BREAKING CHANGES
56
+ * **Misc:** Minimum version: Node 20
57
+
2
58
  ## [2.5.7](https://github.com/admiralcloud/ac-awssecrets/compare/v2.5.6..v2.5.7) (2026-02-03 06:48:06)
3
59
 
4
60
 
@@ -143,7 +199,7 @@ Related issues: [undefined/undefined#master](undefined/browse/master)
143
199
 
144
200
  ### Feature
145
201
 
146
- * **App:** Allow retrieving paramters by path | MP | [3a2b7be3a3a7cff5132fcb3a19cab6cbb382beed](https://github.com/admiralcloud/ac-awssecrets/commit/3a2b7be3a3a7cff5132fcb3a19cab6cbb382beed)
202
+ * **App:** Allow retrieving parameters by path | MP | [3a2b7be3a3a7cff5132fcb3a19cab6cbb382beed](https://github.com/admiralcloud/ac-awssecrets/commit/3a2b7be3a3a7cff5132fcb3a19cab6cbb382beed)
147
203
  You can fetch and add multiple parameter from they same path with one entry. See README for example
148
204
  Related issues: [undefined/undefined#master](undefined/browse/master)
149
205
  ### Chores
package/Makefile CHANGED
@@ -2,10 +2,10 @@ MOCHA_OPTS= --slow 0 -A
2
2
  REPORTER = spec
3
3
 
4
4
  lint-fix:
5
- ./node_modules/.bin/eslint --fix index.js test/test.js
5
+ ./node_modules/.bin/eslint --fix
6
6
 
7
7
  lint-check:
8
- ./node_modules/.bin/eslint index.js test/test.js
8
+ ./node_modules/.bin/eslint
9
9
 
10
10
  commit:
11
11
  @node ./node_modules/ac-semantic-release/lib/commit.js
package/SECURITY.md ADDED
@@ -0,0 +1,22 @@
1
+ # Security Policy
2
+
3
+ ## Supported Versions
4
+
5
+ We only provide security updates for the latest version of this project.
6
+
7
+ If you are using an older version, please upgrade to the latest release to receive security fixes.
8
+
9
+ ## Reporting a Vulnerability
10
+
11
+ If you discover a security vulnerability, please report it by creating a GitHub issue in this repository.
12
+
13
+ Please include the following information:
14
+
15
+ - Description of the vulnerability
16
+ - Steps to reproduce the issue
17
+ - Potential impact
18
+ - Any suggested fixes (if you have them)
19
+
20
+ We will review your report and respond as soon as possible.
21
+
22
+ Thank you for helping keep AdmiralCloud and our users safe!
package/eslint.config.js CHANGED
@@ -1,30 +1,46 @@
1
- const globals = require('globals');
1
+ const globals = require('globals')
2
+ const js = require('@eslint/js')
2
3
 
3
- module.exports = {
4
- ignores: [
5
- 'config/env/**'
6
- ],
7
- languageOptions: {
8
- ecmaVersion: 2022,
9
- sourceType: 'module',
10
- globals: {
11
- ...globals.commonjs,
12
- ...globals.es6,
13
- ...globals.node,
14
- expect: 'readonly',
15
- describe: 'readonly',
16
- it: 'readonly'
4
+ module.exports = [
5
+ {
6
+ ignores: ['config/env/', 'config/env/**']
7
+ },
8
+ {
9
+ files: ['app/**/*.js', 'config/**/*.js', 'test/**/*.js'],
10
+ languageOptions: {
11
+ ecmaVersion: 2022,
12
+ sourceType: 'commonjs',
13
+ globals: {
14
+ ...globals.es2022,
15
+ ...globals.node
16
+ }
17
+ },
18
+ rules: {
19
+ ...js.configs.recommended.rules,
20
+ // --- code quality ---
21
+ 'no-console': ['warn', { allow: ['warn', 'error'] }],
22
+ 'no-useless-escape': 'off',
23
+ 'no-var': 'error',
24
+ 'prefer-const': ['error', { ignoreReadBeforeAssign: true }],
25
+ 'eqeqeq': 'error',
26
+ 'curly': ['error', 'multi-line'],
27
+ // --- formatting ---
28
+ 'space-before-function-paren': ['error', { anonymous: 'never', named: 'never', asyncArrow: 'never' }],
29
+ 'no-extra-semi': 'off',
30
+ 'object-curly-spacing': ['error', 'always'],
31
+ 'brace-style': ['error', 'stroustrup', { allowSingleLine: true }],
32
+ 'block-spacing': 'error'
17
33
  }
18
34
  },
19
- rules: {
20
- 'no-const-assign': 'error', // Ensure this rule is enabled
21
- 'space-before-function-paren': 'off',
22
- 'no-extra-semi': 'off',
23
- 'object-curly-spacing': ['error', 'always'],
24
- 'brace-style': ['error', 'stroustrup', { allowSingleLine: true }],
25
- 'no-useless-escape': 'off',
26
- 'standard/no-callback-literal': 'off',
27
- 'new-cap': 'off',
28
- 'no-console': ['warn', { allow: ['warn', 'error'] }]
35
+ {
36
+ files: ['test/**/*.js'],
37
+ languageOptions: {
38
+ globals: {
39
+ ...globals.mocha,
40
+ expect: 'readonly',
41
+ assert: 'readonly',
42
+ should: 'readonly'
43
+ }
44
+ }
29
45
  }
30
- };
46
+ ]