Skip to content

Add isIndexEncrypted flag and encryption listener.#128

Open
bruno-roustant wants to merge 1 commit intoapache:mainfrom
bruno-roustant:index_encrypted
Open

Add isIndexEncrypted flag and encryption listener.#128
bruno-roustant wants to merge 1 commit intoapache:mainfrom
bruno-roustant:index_encrypted

Conversation

@bruno-roustant
Copy link
Contributor

A new flag EncryptionDirectoryFactory.isIndexEnabled() is set when the EncryptionDirectory opens an output/input stream that requires encryption. For example, this may allow some custom code to log whether the index is encrypted.

Copy link
Contributor

@dsmiley dsmiley left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Just a general comment: It's pretty confusing/difficult (impacting ease of code review and observability -- that you are trying to add here) to have a Directory, named EncryptionDirectory no less, that can flip flop between being encrypted and not encrypted. IMO it'd be much easier for an EncryptionDirectory to be, well, encrypted -- period. Going from cleartext to encrypted could be done via backup/restore or via maybe even through the process of adding replicas (and removing the old), provided these go via the Directory. The DirectoryFactory would have to pick what it's a factory of when initializing a new directory. But that's not how things are...

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants