Skip to content

Commit 16a7000

Browse files
Merge branch 'main' into rishav/constinExtern
2 parents 3e17992 + 0cb009d commit 16a7000

Some content is hidden

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

44 files changed

+1328
-201
lines changed

.github/workflows/check-files.yml

+1-1
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@ on:
77

88
jobs:
99
require-approvals:
10-
runs-on: ubuntu-latest
10+
runs-on: ubuntu-22.04
1111
permissions:
1212
issues: write
1313
pull-requests: write

.github/workflows/check_only_key_word.yml

+1-1
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@ on:
88

99
jobs:
1010
grep-only-verification-keyword:
11-
runs-on: ubuntu-latest
11+
runs-on: ubuntu-22.04
1212
permissions:
1313
issues: write
1414
pull-requests: write

.github/workflows/ci_codegen.yml

+1-1
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,7 @@ jobs:
1717
# Note dotnet is only used for formatting generated code
1818
# in this workflow
1919
dotnet-version: ["6.0.x"]
20-
os: [ubuntu-latest]
20+
os: [ubuntu-22.04]
2121
runs-on: ${{ matrix.os }}
2222
defaults:
2323
run:

.github/workflows/ci_duvet.yml

+1-1
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@ on:
1111

1212
jobs:
1313
duvet:
14-
runs-on: ubuntu-latest
14+
runs-on: ubuntu-22.04
1515
steps:
1616
- uses: actions/checkout@v3
1717

.github/workflows/ci_static_analysis.yml

+1-1
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@ on:
99

1010
jobs:
1111
not-grep:
12-
runs-on: ubuntu-latest
12+
runs-on: ubuntu-22.04
1313
steps:
1414
- uses: actions/checkout@v2
1515
- name: not-grep

.github/workflows/ci_test_net.yml

+1-1
Original file line numberDiff line numberDiff line change
@@ -25,7 +25,7 @@ jobs:
2525
matrix:
2626
library: [DynamoDbEncryption]
2727
dotnet-version: ["6.0.x"]
28-
os: [macos-13, ubuntu-latest, windows-latest]
28+
os: [macos-13, ubuntu-22.04, windows-latest]
2929
runs-on: ${{ matrix.os }}
3030
permissions:
3131
id-token: write

.github/workflows/ci_test_vector_net.yml

+1-1
Original file line numberDiff line numberDiff line change
@@ -27,7 +27,7 @@ jobs:
2727
dotnet-version: ["6.0.x"]
2828
os: [
2929
# Run on ubuntu image that comes pre-configured with docker
30-
ubuntu-latest,
30+
ubuntu-22.04,
3131
]
3232
runs-on: ${{ matrix.os }}
3333
permissions:

.github/workflows/dafny_interop_examples_java.yml

-1
Original file line numberDiff line numberDiff line change
@@ -56,7 +56,6 @@ jobs:
5656
run: |
5757
git fetch
5858
git checkout ${{inputs.mpl-commit}}
59-
git pull
6059
git submodule update --init --recursive
6160
git rev-parse HEAD
6261

.github/workflows/dafny_interop_examples_net.yml

-1
Original file line numberDiff line numberDiff line change
@@ -56,7 +56,6 @@ jobs:
5656
run: |
5757
git fetch
5858
git checkout ${{inputs.mpl-commit}}
59-
git pull
6059
git submodule update --init --recursive
6160
git rev-parse HEAD
6261

.github/workflows/dafny_interop_java.yml

-1
Original file line numberDiff line numberDiff line change
@@ -56,7 +56,6 @@ jobs:
5656
run: |
5757
git fetch
5858
git checkout ${{inputs.mpl-commit}}
59-
git pull
6059
git submodule update --init --recursive
6160
git rev-parse HEAD
6261

.github/workflows/dafny_interop_test_net.yml

+1-2
Original file line numberDiff line numberDiff line change
@@ -24,7 +24,7 @@ jobs:
2424
matrix:
2525
library: [DynamoDbEncryption]
2626
dotnet-version: ["6.0.x"]
27-
os: [macos-13, ubuntu-latest, windows-latest]
27+
os: [macos-13, ubuntu-22.04, windows-latest]
2828
runs-on: ${{ matrix.os }}
2929
permissions:
3030
id-token: write
@@ -56,7 +56,6 @@ jobs:
5656
run: |
5757
git fetch
5858
git checkout ${{inputs.mpl-commit}}
59-
git pull
6059
git submodule update --init --recursive
6160
git rev-parse HEAD
6261

.github/workflows/dafny_interop_test_vector_java.yml

+1-2
Original file line numberDiff line numberDiff line change
@@ -30,7 +30,7 @@ jobs:
3030
java-version: [8, 11, 16, 17]
3131
os: [
3232
# Run on ubuntu image that comes pre-configured with docker
33-
ubuntu-latest,
33+
ubuntu-22.04,
3434
]
3535
runs-on: ${{ matrix.os }}
3636
permissions:
@@ -65,7 +65,6 @@ jobs:
6565
run: |
6666
git fetch
6767
git checkout ${{inputs.mpl-commit}}
68-
git pull
6968
git submodule update --init --recursive
7069
git rev-parse HEAD
7170

.github/workflows/dafny_interop_test_vector_net.yml

+1-2
Original file line numberDiff line numberDiff line change
@@ -24,7 +24,7 @@ jobs:
2424
matrix:
2525
library: [TestVectors]
2626
dotnet-version: ["6.0.x"]
27-
os: [ubuntu-latest]
27+
os: [ubuntu-22.04]
2828
runs-on: ${{ matrix.os }}
2929
permissions:
3030
id-token: write
@@ -61,7 +61,6 @@ jobs:
6161
run: |
6262
git fetch
6363
git checkout ${{inputs.mpl-commit}}
64-
git pull
6564
git submodule update --init --recursive
6665
git rev-parse HEAD
6766

.github/workflows/dafny_verify_version.yml

+1-1
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@ on:
1212

1313
jobs:
1414
getDafnyVerifyVersion:
15-
runs-on: ubuntu-latest
15+
runs-on: ubuntu-22.04
1616
outputs:
1717
version: ${{ steps.read_property.outputs.dafnyVerifyVersion }}
1818
steps:

.github/workflows/dafny_version.yml

+1-1
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@ on:
1212

1313
jobs:
1414
getDafnyVersion:
15-
runs-on: ubuntu-latest
15+
runs-on: ubuntu-22.04
1616
outputs:
1717
version: ${{ steps.read_property.outputs.dafnyVersion }}
1818
steps:

.github/workflows/library_rust_tests.yml

+1-1
Original file line numberDiff line numberDiff line change
@@ -26,7 +26,7 @@ jobs:
2626
matrix:
2727
library: [DynamoDbEncryption, TestVectors]
2828
# removed windows-latest because somehow it can't build aws-lc in CI
29-
os: [ubuntu-latest, macos-13]
29+
os: [ubuntu-22.04, macos-13]
3030
runs-on: ${{ matrix.os }}
3131
permissions:
3232
id-token: write

.github/workflows/mpl_head_version.yml

+1-2
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,7 @@ on:
1818

1919
jobs:
2020
getMplHeadVersion:
21-
runs-on: ubuntu-latest
21+
runs-on: ubuntu-22.04
2222
outputs:
2323
version: ${{ steps.read_property.outputs.mplVersion }}
2424
steps:
@@ -31,7 +31,6 @@ jobs:
3131
shell: bash
3232
run: |
3333
git checkout ${{inputs.mpl-head}}
34-
git pull
3534
git submodule update --init --recursive
3635
git rev-parse HEAD
3736

.github/workflows/nightly.yml

+1-1
Original file line numberDiff line numberDiff line change
@@ -66,7 +66,7 @@ jobs:
6666
regenerate-code: true
6767

6868
cut-issue-on-failure:
69-
runs-on: ubuntu-latest
69+
runs-on: ubuntu-22.04
7070
permissions:
7171
id-token: write
7272
contents: read

.github/workflows/smithy-diff.yml

+1-1
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@ on:
88

99
jobs:
1010
require-approvals:
11-
runs-on: ubuntu-latest
11+
runs-on: ubuntu-22.04
1212
permissions:
1313
issues: write
1414
pull-requests: write

DynamoDbEncryption/dafny/DynamoDbEncryption/Model/AwsCryptographyDbEncryptionSdkDynamoDbTypes.dfy

+5-2
Original file line numberDiff line numberDiff line change
@@ -354,7 +354,8 @@ module {:extern "software.amazon.cryptography.dbencryptionsdk.dynamodb.internald
354354
datatype MultiKeyStore = | MultiKeyStore (
355355
nameonly keyFieldName: string ,
356356
nameonly cacheTTL: int32 ,
357-
nameonly cache: Option<AwsCryptographyMaterialProvidersTypes.CacheType> := Option.None
357+
nameonly cache: Option<AwsCryptographyMaterialProvidersTypes.CacheType> := Option.None ,
358+
nameonly partitionId: Option<string> := Option.None
358359
)
359360
datatype PartOnly = | PartOnly (
360361

@@ -388,7 +389,9 @@ module {:extern "software.amazon.cryptography.dbencryptionsdk.dynamodb.internald
388389
}
389390
datatype SingleKeyStore = | SingleKeyStore (
390391
nameonly keyId: string ,
391-
nameonly cacheTTL: int32
392+
nameonly cacheTTL: int32 ,
393+
nameonly cache: Option<AwsCryptographyMaterialProvidersTypes.CacheType> := Option.None ,
394+
nameonly partitionId: Option<string> := Option.None
392395
)
393396
datatype StandardBeacon = | StandardBeacon (
394397
nameonly name: string ,

DynamoDbEncryption/dafny/DynamoDbEncryption/Model/DynamoDbEncryption.smithy

+11-2
Original file line numberDiff line numberDiff line change
@@ -708,6 +708,8 @@ structure KeyStoreReference {}
708708
//# On initialization of a Single Key Store, the caller MUST provide:
709709
//# - [Beacon Key Id](#beacon-key-id)
710710
//# - [cacheTTL](#cachettl)
711+
//# - [cache](#key-store-cache)
712+
//# - [partition-id](#partition-id)
711713

712714
@javadoc("The configuration for using a single Beacon Key.")
713715
structure SingleKeyStore {
@@ -717,14 +719,19 @@ structure SingleKeyStore {
717719
@required
718720
@javadoc("How long (in seconds) the beacon key material is cached locally before it is re-retrieved from DynamoDB and re-authed with AWS KMS.")
719721
cacheTTL: Integer,
722+
@documentation("Which type of local cache to use. Please see the [spec](https://github.com/aws/aws-database-encryption-sdk-dynamodb/blob/main/specification/searchable-encryption/search-config.md#key-store-cache) on how to provide a cache for a SingleKeyStore.")
723+
cache : CacheType,
724+
@documentation("Partition ID to distinguish Beacon Key Sources writing to a Shared cache. If the Partition ID is the same for two Beacon Key Sources, they can share the same cache entries in the Shared cache.")
725+
partitionId: String
720726
}
721727

722728
//= specification/searchable-encryption/search-config.md#multi-key-store-initialization
723729
//= type=implication
724730
//# On initialization of a Multi Key Store, the caller MUST provide:
725731
//# - [Beacon Key Field Name](#beacon-key-field-name)
726732
//# - [cacheTTL](#cachettl)
727-
//# - [max cache size](#max-cache-size)
733+
//# - [cache](#key-store-cache)
734+
//# - [partition-id](#partition-id)
728735

729736
@javadoc("The configuration for using multiple Beacon Keys.")
730737
structure MultiKeyStore {
@@ -735,7 +742,9 @@ structure MultiKeyStore {
735742
@javadoc("How long (in seconds) the beacon key material is cached locally before it is re-retrieved from DynamoDB and re-authed with AWS KMS.")
736743
cacheTTL: Integer,
737744
@javadoc("Which type of local cache to use.")
738-
cache : CacheType
745+
cache : CacheType,
746+
@documentation("Partition ID to distinguish Beacon Key Sources writing to a Shared cache. If the Partition ID is the same for two Beacon Key Sources, they can share the same cache entries in the Shared cache.")
747+
partitionId: String
739748
}
740749

741750
//= specification/searchable-encryption/search-config.md#beacon-key-source

0 commit comments

Comments
 (0)