ac-awssecrets 2.5.7 → 3.0.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.
@@ -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,51 @@
1
1
 
2
+ ## [3.0.1](https://github.com/admiralcloud/ac-awssecrets/compare/v3.0.0..v3.0.1) (2026-02-26 13:23:41)
3
+
4
+
5
+ ### Bug Fix
6
+
7
+ * **App:** Move test condiitions away from main code | MP | [f040449b34d716cb68ba6101fad0a3f53b736755](https://github.com/admiralcloud/ac-awssecrets/commit/f040449b34d716cb68ba6101fad0a3f53b736755)
8
+ Use mock endpoints for AWS in test and move special conditions for tests from main code.
9
+ Related issues:
10
+ * **Misc:** Init valueArray as array | MP | [5c1c027b77ff90df5a5f9d1982d64a39de6e2d28](https://github.com/admiralcloud/ac-awssecrets/commit/5c1c027b77ff90df5a5f9d1982d64a39de6e2d28)
11
+ Init valueArray as array
12
+ Related issues:
13
+ * **App:** Iterate over parameter path | MP | [dfa9cca66ca45d7e886fe9feb9f398e16a7347ad](https://github.com/admiralcloud/ac-awssecrets/commit/dfa9cca66ca45d7e886fe9feb9f398e16a7347ad)
14
+ Allow processing of paths with more than 10 secret parameters
15
+ Related issues:
16
+ * **App:** Code fixes to prevent prototype pollution | MP | [5512b447d729bbc6bc93967df8c9ca365d2ce41b](https://github.com/admiralcloud/ac-awssecrets/commit/5512b447d729bbc6bc93967df8c9ca365d2ce41b)
17
+ Code fixes to prevent prototype pollution
18
+ Related issues:
19
+ ### Tests
20
+
21
+ * **App:** Fixed test | MP | [b97eb9d467cd94bcb4a4e57b204d2659040eec96](https://github.com/admiralcloud/ac-awssecrets/commit/b97eb9d467cd94bcb4a4e57b204d2659040eec96)
22
+ Remove deepMerge test - it is covered by other tests
23
+ Related issues:
24
+ ### Style
25
+
26
+ * **Misc:** Updated eslint config | MP | [c2d3e45b5fa6c87ae6cef098b8145b3b62ce3e98](https://github.com/admiralcloud/ac-awssecrets/commit/c2d3e45b5fa6c87ae6cef098b8145b3b62ce3e98)
27
+ Updated eslint config
28
+ Related issues:
29
+ ### Chores
30
+
31
+ * **App:** Updated packages | MP | [7c091f3a7ff8f3d8f131d6d911cb56ab89fbeb95](https://github.com/admiralcloud/ac-awssecrets/commit/7c091f3a7ff8f3d8f131d6d911cb56ab89fbeb95)
32
+ Updated packages
33
+ Related issues:
34
+ * **App:** Updated packages | MP | [18973ef5d916142af9e0f81a40a52087368172a1](https://github.com/admiralcloud/ac-awssecrets/commit/18973ef5d916142af9e0f81a40a52087368172a1)
35
+ Package updates incl ESLint 9 -> 10 and lint fixes
36
+ Related issues:
37
+
38
+ # [3.0.0](https://github.com/admiralcloud/ac-awssecrets/compare/v2.5.7..v3.0.0) (2026-02-03 10:00:56)
39
+
40
+
41
+ ### Chores
42
+
43
+ * **Misc:** Minimum version: Node 20 | MP | [f41f9718a6f0f38eec9d637dcb20e40a8d6ea072](https://github.com/admiralcloud/ac-awssecrets/commit/f41f9718a6f0f38eec9d637dcb20e40a8d6ea072)
44
+ Minimum version: Node 20
45
+ Related issues:
46
+ ## BREAKING CHANGES
47
+ * **Misc:** Minimum version: Node 20
48
+
2
49
  ## [2.5.7](https://github.com/admiralcloud/ac-awssecrets/compare/v2.5.6..v2.5.7) (2026-02-03 06:48:06)
3
50
 
4
51
 
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
+ ]