Skip to content

chore(go): add complex example in searchable encryptions #1955

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Open
wants to merge 7 commits into
base: main
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 6 additions & 0 deletions Examples/runtimes/go/main.go
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,7 @@ import (
"github.com/aws/aws-database-encryption-sdk-dynamodb/examples/keyring"
"github.com/aws/aws-database-encryption-sdk-dynamodb/examples/misc"
"github.com/aws/aws-database-encryption-sdk-dynamodb/examples/searchableencryption"
"github.com/aws/aws-database-encryption-sdk-dynamodb/examples/searchableencryption/complexexample"
"github.com/aws/aws-database-encryption-sdk-dynamodb/examples/utils"
)

Expand Down Expand Up @@ -94,4 +95,9 @@ func main() {
branchKey2,
utils.TestKeystoreKmsKeyId(),
utils.TestKeystoreName())
complexexample.ComplexSearchableEncryptionExample(
utils.TestComplexDdbTableName(),
branchKey1,
utils.TestKeystoreKmsKeyId(),
utils.TestKeystoreName())
}
Original file line number Diff line number Diff line change
@@ -0,0 +1,23 @@
# ComplexSearchableEncryptionExample

This example demonstrates complex queries
you can perform using beacons.
The example data used is for demonstrative purposes only,
and might not meet the distribution and correlation uniqueness
recommendations for beacons.
See our documentation for whether beacons are
right for your particular data set:
https://docs.aws.amazon.com/database-encryption-sdk/latest/devguide/searchable-encryption.html#are-beacons-right-for-me

This example uses a more complex searchable encryption configuration than other examples.
This is intended to demonstrate how to set up a more complicated searchable encryption configuration.
This also walks through some example query expressions one can use to search their encrypted data.

```
.
├── complexsearchableencryptionexample.go // Main entry point for example
├── beaconconfig.go // Sets up beacons and searchable encryption configuration
├── putrequests.go // PUT requests added to the DDB table
├── queryrequests.go // QUERY requests executed on the DDB table
└── README.md
```
Loading
Loading