...
- Alias: This will be the identifier, provided by the user, that will be used to retrieve the object.
- Properties: A key value map containing the properties of the object being stored.
- Data: The data being stored. Passed in as a byte array.
Following Operations operations will supported by the store
...
Operation | REST API | Body | Response | |||||
---|---|---|---|---|---|---|---|---|
Put | POST /security/store/v1/key | Content-Type: application/json
| 201 : Created 409 : Conflict | |||||
Delete | DELETE /security/store/v1/key/<key-name> | N/A | 200 OK 404 Not Found | |||||
Get | GET /security/store/v1/key/<key-name> | N/A | 200 OK Content-Type: application/json
404 Not Found | |||||
Get Metadata | GET /security/store/v1/key/<key-name>/metadata | N/A | 200 OK Content-Type: application/json
404 Not Found | |||||
List | GET /security/store/v1/keys/names | N/A | 200 OK Content-Type: application/json
|
Access Control
The keystore can be protected with a key in the CDAP master keystore, which CDAP already requires the user to provide in order to have SSL enabled. Since program will be executed in the same JVM as the SDK process, accessing to the sensitive data directly through the proper Guice binding that binds the SecureStore
interface to the actual implementation.
Caching
Hadoop KMS caches keys for a short period of time to avoid excessive hits to the underlying key provider. In the operations we are interested in only 2 use the cache, get data, and get metadata.
Audit logs
All access to the secure store will be logged.
Implementation
Two implementations will be provided
Standalone mode
An implementation using standard Java tools (JKS or JCEKS) will be provided. The key store will be stored in a file on the local filesystem.
The cluster has KMS running
If the cluster has KMS running, we will utilize that for securely storing sensitive information. To do that we will implement the Hadoop KeyProvider API and forward user calls to KMS.
...
Out-of-scope User Stories (4.0 and beyond)
- Support for
References
https://hadoop.apache.org/docs/stable/hadoop-kms/index.html
https://hadoop.apache.org/docs/r2.7.2/hadoop-project-dist/hadoop-hdfs/TransparentEncryption.html
https://hadoop.apache.org/docs/r2.7.2/api/org/apache/hadoop/crypto/key/KeyProvider.html