pneff93 / csfle Goto Github PK
View Code? Open in Web Editor NEWRepository for CC client-side field level encryption
Repository for CC client-side field level encryption
Nice Repository. Could we add an example for DEK rotation? Or extend the existing Kotlin example with Hashicorp to support key rotation?
We tried to add key rotation via the following configuration (notice the property encrypt.dek.expiry.days
):
curl --request POST --url "${SR_REST_ENDPOINT}/subjects/${TOPIC}-value/versions" \
--user "${SR_API_KEY}:${SR_API_SECRET}" \
--header 'Content-Type: application/vnd.schemaregistry.v1+json' \
--data '{
"ruleSet": {
"domainRules": [
{
"name": "encryptPII",
"kind": "TRANSFORM",
"type": "ENCRYPT",
"mode": "WRITEREAD",
"tags": ["PII"],
"params": {
"encrypt.kek.name": "csfle",
"encrypt.kms.key.id": "http://127.0.0.1:8200/transit/keys/csfle",
"encrypt.kms.type": "hcvault",
"encrypt.dek.expiry.days": 1
},
"onFailure": "ERROR,NONE"
}
]
}
}'
Also we upgraded to version 7.5.0 of the library. This rsults in the following exceptions:
10:37:03.572 [Thread-0] ERROR KafkaProducer - org.apache.kafka.common.errors.SerializationException: Rule failed: encryptPII for {"id": "0", "name": "Anna", "birthday": "1993-08-01", "timestamp": "2024-03-19T10:37:00.457Z"}
10:37:05.715 [Thread-0] ERROR KafkaProducer - org.apache.kafka.common.errors.SerializationException: Rule failed: encryptPII for {"id": "1", "name": "Joe", "birthday": "1996-09-11", "timestamp": "2024-03-19T10:37:05.577Z"}
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.