Skip to content

Commit 738eacd

Browse files
authored
Merge branch 'master' into fixed_lerna_versioning
2 parents 5af7a18 + 76ea5c6 commit 738eacd

File tree

156 files changed

+13389
-11701
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

156 files changed

+13389
-11701
lines changed

.eslintrc.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -36,7 +36,7 @@ module.exports = {
3636
'@typescript-eslint/no-misused-promises': 'error',
3737
// I disagree with these rules.
3838
// Humans read from less specific to more specific.
39-
// No on puts the outline at the end of the book.
39+
// No one puts the outline at the end of the book.
4040
// Since the exported functions should be composed
4141
// of lower level functions,
4242
// it is good for understanding
Lines changed: 26 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,26 @@
1+
---
2+
name: AWS Encryption SDK Issue
3+
about: AWS Encryption SDK Issue
4+
title: ''
5+
labels: ''
6+
assignees: ''
7+
8+
---
9+
10+
### Security issue notifications
11+
12+
If you discover a potential security issue in the AWS Encryption SDK we ask that you notify AWS Security via our [vulnerability reporting page](https://aws.amazon.com/security/vulnerability-reporting/). Please do **not** create a public GitHub issue.
13+
14+
### Problem:
15+
16+
A short description of what the problem is and why we need to fix it. Add reproduction steps if necessary.
17+
18+
### Solution:
19+
20+
A description of the possible solution in terms of Encryption SDK architecture.
21+
22+
### Out of scope:
23+
24+
Is there anything the solution will intentionally NOT address?
25+
26+
[//]: # (NOTE: If you believe this might be a security issue, please email aws-security@amazon.com instead of creating a GitHub issue. For more details, see the AWS Vulnerability Reporting Guide: https://aws.amazon.com/security/vulnerability-reporting/ )

.github/workflows/repo-sync.yml

Lines changed: 25 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,25 @@
1+
name: Repo Sync
2+
3+
on:
4+
workflow_dispatch: # allows triggering this manually through the Actions UI
5+
6+
jobs:
7+
repo-sync:
8+
name: Repo Sync
9+
environment: repo-sync
10+
runs-on: ubuntu-latest
11+
steps:
12+
- uses: actions/checkout@v2
13+
- uses: repo-sync/github-sync@v2
14+
name: Sync repo to branch
15+
with:
16+
source_repo: ${{ secrets.SOURCE_REPO }}
17+
source_branch: master
18+
destination_branch: ${{ secrets.INTERMEDIATE_BRANCH }}
19+
github_token: ${{ secrets.GITHUB_TOKEN }}
20+
- uses: repo-sync/pull-request@v2
21+
name: Create pull request
22+
with:
23+
source_branch: ${{ secrets.INTERMEDIATE_BRANCH }}
24+
destination_branch: master
25+
github_token: ${{ secrets.GITHUB_TOKEN }}

.gitignore

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -15,6 +15,9 @@ package.json.decrypt
1515
.vscode
1616
.history
1717

18+
# JetBrains
19+
.idea
20+
1821
# nyc/code coverage
1922
.nyc_output
2023
.karma_output

.gitmodules

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,4 @@
11
[submodule "aws-encryption-sdk-test-vectors"]
22
path = aws-encryption-sdk-test-vectors
3-
url = https://github.com/awslabs/aws-encryption-sdk-test-vectors.git
3+
url = https://github.com/awslabs/private-aws-encryption-sdk-test-vectors-staging.git
4+
branch = known-invalid-test-vectors

README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -63,7 +63,7 @@ A multi keyring can be used to compose keyrings together.
6363
### Wrapping Keys
6464

6565
Wrapping keys are used to protect data keys.
66-
An example of a wrapping key is a `KMS customer master key (CMK)`_.
66+
An example of a wrapping key is a `KMS customer master key (CMK)`.
6767

6868
### Data Keys
6969

modules/cache-material/CHANGELOG.md

Lines changed: 16 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,22 @@
33
All notable changes to this project will be documented in this file.
44
See [Conventional Commits](https://conventionalcommits.org) for commit guidelines.
55

6+
# [2.2.0](https://github.com/aws/private-aws-encryption-sdk-javascript-staging/compare/@aws-crypto/cache-material@2.1.0...@aws-crypto/cache-material@2.2.0) (2021-05-27)
7+
8+
**Note:** Version bump only for package @aws-crypto/cache-material
9+
10+
11+
12+
13+
14+
# [2.1.0](https://github.com/aws/aws-encryption-sdk-javascript/compare/@aws-crypto/cache-material@2.0.0...@aws-crypto/cache-material@2.1.0) (2021-02-04)
15+
16+
**Note:** Version bump only for package @aws-crypto/cache-material
17+
18+
19+
20+
21+
622
# [2.0.0](https://github.com/aws/private-aws-encryption-sdk-javascript-staging/compare/@aws-crypto/cache-material@1.7.0...@aws-crypto/cache-material@2.0.0) (2020-09-25)
723

824
**Note:** Version bump only for package @aws-crypto/cache-material

modules/cache-material/package.json

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "@aws-crypto/cache-material",
3-
"version": "2.0.0",
3+
"version": "2.2.0",
44
"scripts": {
55
"prepublishOnly": "npm run build",
66
"build": "tsc -b tsconfig.json && tsc -b tsconfig.module.json",
@@ -22,7 +22,7 @@
2222
"@aws-crypto/serialize": "file:../serialize",
2323
"@types/lru-cache": "^5.1.0",
2424
"lru-cache": "^6.0.0",
25-
"tslib": "^1.11.1"
25+
"tslib": "^2.2.0"
2626
},
2727
"sideEffects": false,
2828
"main": "./build/main/index.js",

modules/caching-materials-manager-browser/CHANGELOG.md

Lines changed: 16 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,22 @@
33
All notable changes to this project will be documented in this file.
44
See [Conventional Commits](https://conventionalcommits.org) for commit guidelines.
55

6+
# [2.2.0](https://github.com/aws/private-aws-encryption-sdk-javascript-staging/compare/@aws-crypto/caching-materials-manager-browser@2.1.0...@aws-crypto/caching-materials-manager-browser@2.2.0) (2021-05-27)
7+
8+
**Note:** Version bump only for package @aws-crypto/caching-materials-manager-browser
9+
10+
11+
12+
13+
14+
# [2.1.0](https://github.com/aws/aws-encryption-sdk-javascript/compare/@aws-crypto/caching-materials-manager-browser@2.0.0...@aws-crypto/caching-materials-manager-browser@2.1.0) (2021-02-04)
15+
16+
**Note:** Version bump only for package @aws-crypto/caching-materials-manager-browser
17+
18+
19+
20+
21+
622
# [2.0.0](https://github.com/aws/private-aws-encryption-sdk-javascript-staging/compare/@aws-crypto/caching-materials-manager-browser@1.7.0...@aws-crypto/caching-materials-manager-browser@2.0.0) (2020-09-25)
723

824
**Note:** Version bump only for package @aws-crypto/caching-materials-manager-browser

modules/caching-materials-manager-browser/package.json

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "@aws-crypto/caching-materials-manager-browser",
3-
"version": "2.0.0",
3+
"version": "2.2.0",
44
"scripts": {
55
"prepublishOnly": "npm run build",
66
"build": "tsc -b tsconfig.json && tsc -b tsconfig.module.json",
@@ -23,8 +23,8 @@
2323
"@aws-crypto/serialize": "file:../serialize",
2424
"@aws-crypto/web-crypto-backend": "file:../web-crypto-backend",
2525
"@aws-sdk/util-base64-browser": "3.1.0",
26-
"@aws-sdk/util-utf8-browser": "3.1.0",
27-
"tslib": "^1.11.1"
26+
"@aws-sdk/util-utf8-browser": "3.13.1",
27+
"tslib": "^2.2.0"
2828
},
2929
"sideEffects": false,
3030
"main": "./build/main/index.js",

modules/caching-materials-manager-node/CHANGELOG.md

Lines changed: 16 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,22 @@
33
All notable changes to this project will be documented in this file.
44
See [Conventional Commits](https://conventionalcommits.org) for commit guidelines.
55

6+
# [2.2.0](https://github.com/aws/private-aws-encryption-sdk-javascript-staging/compare/@aws-crypto/caching-materials-manager-node@2.1.0...@aws-crypto/caching-materials-manager-node@2.2.0) (2021-05-27)
7+
8+
**Note:** Version bump only for package @aws-crypto/caching-materials-manager-node
9+
10+
11+
12+
13+
14+
# [2.1.0](https://github.com/aws/aws-encryption-sdk-javascript/compare/@aws-crypto/caching-materials-manager-node@2.0.0...@aws-crypto/caching-materials-manager-node@2.1.0) (2021-02-04)
15+
16+
**Note:** Version bump only for package @aws-crypto/caching-materials-manager-node
17+
18+
19+
20+
21+
622
# [2.0.0](https://github.com/aws/private-aws-encryption-sdk-javascript-staging/compare/@aws-crypto/caching-materials-manager-node@1.7.0...@aws-crypto/caching-materials-manager-node@2.0.0) (2020-09-25)
723

824
**Note:** Version bump only for package @aws-crypto/caching-materials-manager-node

modules/caching-materials-manager-node/package.json

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "@aws-crypto/caching-materials-manager-node",
3-
"version": "2.0.0",
3+
"version": "2.2.0",
44
"scripts": {
55
"prepublishOnly": "npm run build",
66
"build": "tsc -b tsconfig.json && tsc -b tsconfig.module.json",
@@ -20,7 +20,7 @@
2020
"dependencies": {
2121
"@aws-crypto/cache-material": "file:../cache-material",
2222
"@aws-crypto/material-management-node": "file:../material-management-node",
23-
"tslib": "^1.11.1"
23+
"tslib": "^2.2.0"
2424
},
2525
"sideEffects": false,
2626
"main": "./build/main/index.js",

modules/client-browser/CHANGELOG.md

Lines changed: 16 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,22 @@
33
All notable changes to this project will be documented in this file.
44
See [Conventional Commits](https://conventionalcommits.org) for commit guidelines.
55

6+
# [2.2.0](https://github.com/aws/private-aws-encryption-sdk-javascript-staging/compare/@aws-crypto/client-browser@2.1.0...@aws-crypto/client-browser@2.2.0) (2021-05-27)
7+
8+
**Note:** Version bump only for package @aws-crypto/client-browser
9+
10+
11+
12+
13+
14+
# [2.1.0](https://github.com/aws/aws-encryption-sdk-javascript/compare/@aws-crypto/client-browser@2.0.0...@aws-crypto/client-browser@2.1.0) (2021-02-04)
15+
16+
**Note:** Version bump only for package @aws-crypto/client-browser
17+
18+
19+
20+
21+
622
# [2.0.0](https://github.com/aws/private-aws-encryption-sdk-javascript-staging/compare/@aws-crypto/client-browser@1.7.0...@aws-crypto/client-browser@2.0.0) (2020-09-25)
723

824

modules/client-browser/package.json

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@
99
"CSE",
1010
"aws"
1111
],
12-
"version": "2.0.0",
12+
"version": "2.2.0",
1313
"scripts": {
1414
"build": "tsc -b tsconfig.json",
1515
"lint": "run-s lint-*",
@@ -31,7 +31,7 @@
3131
"@aws-crypto/raw-aes-keyring-browser": "file:../raw-aes-keyring-browser",
3232
"@aws-crypto/raw-rsa-keyring-browser": "file:../raw-rsa-keyring-browser",
3333
"@aws-crypto/web-crypto-backend": "file:../web-crypto-backend",
34-
"tslib": "^1.11.1"
34+
"tslib": "^2.2.0"
3535
},
3636
"sideEffects": false,
3737
"main": "./build/main/index.js",

modules/client-browser/src/index.ts

Lines changed: 7 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -10,16 +10,19 @@ export * from '@aws-crypto/raw-aes-keyring-browser'
1010
export * from '@aws-crypto/raw-rsa-keyring-browser'
1111
export * from '@aws-crypto/web-crypto-backend'
1212

13-
import { CommitmentPolicy } from '@aws-crypto/material-management-browser'
13+
import {
14+
CommitmentPolicy,
15+
ClientOptions,
16+
} from '@aws-crypto/material-management-browser'
1417

1518
import { buildEncrypt } from '@aws-crypto/encrypt-browser'
1619
import { buildDecrypt } from '@aws-crypto/decrypt-browser'
1720

1821
export function buildClient(
19-
commitmentPolicy: CommitmentPolicy = CommitmentPolicy.REQUIRE_ENCRYPT_REQUIRE_DECRYPT
22+
options?: CommitmentPolicy | ClientOptions
2023
): ReturnType<typeof buildEncrypt> & ReturnType<typeof buildDecrypt> {
2124
return {
22-
...buildEncrypt(commitmentPolicy),
23-
...buildDecrypt(commitmentPolicy),
25+
...buildEncrypt(options),
26+
...buildDecrypt(options),
2427
}
2528
}

modules/client-node/CHANGELOG.md

Lines changed: 16 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,22 @@
33
All notable changes to this project will be documented in this file.
44
See [Conventional Commits](https://conventionalcommits.org) for commit guidelines.
55

6+
# [2.2.0](https://github.com/aws/private-aws-encryption-sdk-javascript-staging/compare/@aws-crypto/client-node@2.1.0...@aws-crypto/client-node@2.2.0) (2021-05-27)
7+
8+
**Note:** Version bump only for package @aws-crypto/client-node
9+
10+
11+
12+
13+
14+
# [2.1.0](https://github.com/aws/aws-encryption-sdk-javascript/compare/@aws-crypto/client-node@2.0.0...@aws-crypto/client-node@2.1.0) (2021-02-04)
15+
16+
**Note:** Version bump only for package @aws-crypto/client-node
17+
18+
19+
20+
21+
622
# [2.0.0](https://github.com/aws/private-aws-encryption-sdk-javascript-staging/compare/@aws-crypto/client-node@1.7.0...@aws-crypto/client-node@2.0.0) (2020-09-25)
723

824

modules/client-node/package.json

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@
99
"CSE",
1010
"aws"
1111
],
12-
"version": "2.0.0",
12+
"version": "2.2.0",
1313
"scripts": {
1414
"build": "tsc -b tsconfig.json",
1515
"lint": "run-s lint-*",
@@ -30,7 +30,7 @@
3030
"@aws-crypto/material-management-node": "file:../material-management-node",
3131
"@aws-crypto/raw-aes-keyring-node": "file:../raw-aes-keyring-node",
3232
"@aws-crypto/raw-rsa-keyring-node": "file:../raw-rsa-keyring-node",
33-
"tslib": "^1.11.1"
33+
"tslib": "^2.2.0"
3434
},
3535
"sideEffects": false,
3636
"main": "./build/main/index.js",

modules/client-node/src/index.ts

Lines changed: 7 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -9,16 +9,19 @@ export * from '@aws-crypto/kms-keyring-node'
99
export * from '@aws-crypto/raw-aes-keyring-node'
1010
export * from '@aws-crypto/raw-rsa-keyring-node'
1111

12-
import { CommitmentPolicy } from '@aws-crypto/material-management-node'
12+
import {
13+
CommitmentPolicy,
14+
ClientOptions,
15+
} from '@aws-crypto/material-management-node'
1316

1417
import { buildEncrypt } from '@aws-crypto/encrypt-node'
1518
import { buildDecrypt } from '@aws-crypto/decrypt-node'
1619

1720
export function buildClient(
18-
commitmentPolicy: CommitmentPolicy = CommitmentPolicy.REQUIRE_ENCRYPT_REQUIRE_DECRYPT
21+
options?: CommitmentPolicy | ClientOptions
1922
): ReturnType<typeof buildEncrypt> & ReturnType<typeof buildDecrypt> {
2023
return {
21-
...buildEncrypt(commitmentPolicy),
22-
...buildDecrypt(commitmentPolicy),
24+
...buildEncrypt(options),
25+
...buildDecrypt(options),
2326
}
2427
}

modules/decrypt-browser/CHANGELOG.md

Lines changed: 16 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,22 @@
33
All notable changes to this project will be documented in this file.
44
See [Conventional Commits](https://conventionalcommits.org) for commit guidelines.
55

6+
# [2.2.0](https://github.com/aws/private-aws-encryption-sdk-javascript-staging/compare/@aws-crypto/decrypt-browser@2.1.0...@aws-crypto/decrypt-browser@2.2.0) (2021-05-27)
7+
8+
**Note:** Version bump only for package @aws-crypto/decrypt-browser
9+
10+
11+
12+
13+
14+
# [2.1.0](https://github.com/aws/aws-encryption-sdk-javascript/compare/@aws-crypto/decrypt-browser@2.0.0...@aws-crypto/decrypt-browser@2.1.0) (2021-02-04)
15+
16+
**Note:** Version bump only for package @aws-crypto/decrypt-browser
17+
18+
19+
20+
21+
622
# [2.0.0](https://github.com/aws/private-aws-encryption-sdk-javascript-staging/compare/@aws-crypto/decrypt-browser@1.7.0...@aws-crypto/decrypt-browser@2.0.0) (2020-09-25)
723

824

modules/decrypt-browser/package.json

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "@aws-crypto/decrypt-browser",
3-
"version": "2.0.0",
3+
"version": "2.2.0",
44
"scripts": {
55
"prepublishOnly": "tsc -p tsconfig.json && tsc -p tsconfig.module.json",
66
"lint": "run-s lint-*",
@@ -19,8 +19,8 @@
1919
"dependencies": {
2020
"@aws-crypto/material-management-browser": "file:../material-management-browser",
2121
"@aws-crypto/serialize": "file:../serialize",
22-
"@aws-sdk/util-utf8-browser": "3.1.0",
23-
"tslib": "^1.11.1"
22+
"@aws-sdk/util-utf8-browser": "3.13.1",
23+
"tslib": "^2.2.0"
2424
},
2525
"sideEffects": false,
2626
"main": "./build/main/index.js",

0 commit comments

Comments
 (0)