Skip to content
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

Feature | Added caching for Always Encrypted with secure enclaves #1189

Merged
merged 26 commits into from
Dec 7, 2019

Conversation

rene-ye
Copy link
Member

@rene-ye rene-ye commented Nov 22, 2019

Adds the following

  • AAS Enclave Provider
  • AAS/VSM Certificate cache
  • Enclave Session cache

…Regression

# Conflicts:
#	src/main/java/com/microsoft/sqlserver/jdbc/SQLServerConnection.java
#	src/main/java/com/microsoft/sqlserver/jdbc/SQLServerVSMEnclaveProvider.java
}

@Override
public void invalidateEnclaveSession() {
Copy link
Member

Choose a reason for hiding this comment

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

this still isn't used, when do we need to call this?

if (null == rs) {
// No results. Meaning no parameter.
// Should never happen.
return enclaveRequestedCEKs;
Copy link
Member

Choose a reason for hiding this comment

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

should we log something?

}


class JWTCertificateEntry {
Copy link
Member

Choose a reason for hiding this comment

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

general comment (applies elsewhere too)
Can we add comments to these classes? I know they're not public so no need for javadocs, but would be nice to have some descriptions on what these are

@ulvii ulvii requested review from peterbae and ulvii November 29, 2019 21:21
@ulvii ulvii added this to the 8.1.1 milestone Nov 29, 2019
@ulvii ulvii changed the title Caching for AEv2 Feature | Added caching for Always Encrypted with secure enclaves Dec 4, 2019
@ulvii ulvii added this to Under Peer Review in MSSQL JDBC Dec 6, 2019
@ulvii ulvii merged commit 77f9f10 into microsoft:dev Dec 7, 2019
MSSQL JDBC automation moved this from Under Peer Review to Closed/Merged PRs Dec 7, 2019
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
MSSQL JDBC
  
Closed/Merged PRs
Development

Successfully merging this pull request may close these issues.

None yet

4 participants