Skip to content

Commit

Permalink
Update error messages for Enclave exceptions with forward link to tro…
Browse files Browse the repository at this point in the history
…ubleshooting guide (#1585)
  • Loading branch information
lilgreenbird committed May 25, 2021
1 parent 17569c6 commit b97172c
Showing 1 changed file with 17 additions and 13 deletions.
30 changes: 17 additions & 13 deletions src/main/java/com/microsoft/sqlserver/jdbc/SQLServerResource.java
Expand Up @@ -361,7 +361,7 @@ protected Object[][] getContents() {
{"R_CustomCipherAlgorithmNotSupportedAE", "Custom cipher algorithm not supported."},
{"R_PlainTextNullAE", "Internal error. Plaintext value cannot be null."},
{"R_StreamingDataTypeAE", "Data of length greater than {0} is not supported in encrypted {1} column."},
{"R_AE_NotSupportedByServer", "SQL Server instance in use does not support column encryption."},
{"R_AE_NotSupportedByServer", "SQL Server in use does not support column encryption."},
{"R_InvalidAEVersionNumber", "Received invalid version number \"{0}\" for Always Encrypted."}, // From
// Server
{"R_NullEncryptedColumnEncryptionKey", "Internal error. Encrypted column encryption key cannot be null."},
Expand Down Expand Up @@ -631,28 +631,32 @@ protected Object[][] getContents() {
{"R_invalidInsertValuesQuery",
"An error occurred when matching VALUES list to table columns. Please verify SQL syntax."},
{"R_invalidValuesList", "An error occurred when reading VALUES list. Please verify SQL syntax."},
{"R_enclaveNotSupported", "The SQL Server instance does not support enclave based computations."},
{"R_enclaveNotSupported",
"The SQL Server does not support enclave based computations - see https://go.microsoft.com/fwlink/?linkid=2157649 for more details."},
{"R_enclavePropertiesError",
"The \"columnEncryptionSetting\" connection property must be enabled, along with valid \"enclaveAttestationUrl\" and \"enclaveAttestationProtocol\" connection properties when enabling Always Encrypted with secure enclaves."},
{"R_enclaveInvalidAttestationProtocol", "The \"enclaveAttestationProtocol\" is invalid."},
{"R_enclaveTypeInvalid", "The enclave type {0} is invalid or not supported by the driver."},
{"R_attestationUrlInvalid", "Unable to attest enclave specified by {0}."},
"The \"columnEncryptionSetting\" connection property must be enabled, along with valid \"enclaveAttestationUrl\" and \"enclaveAttestationProtocol\" connection properties when enabling Always Encrypted with secure enclaves - see https://go.microsoft.com/fwlink/?linkid=2157649 for more details."},
{"R_enclaveInvalidAttestationProtocol",
"The \"enclaveAttestationProtocol\" is invalid - see https://go.microsoft.com/fwlink/?linkid=2157649 for more details."},
{"R_enclaveTypeInvalid",
"The enclave type {0} is invalid or not supported by the driver - see https://go.microsoft.com/fwlink/?linkid=2157649 for more details."},
{"R_attestationUrlInvalid",
"Unable to attest enclave specified by {0} - see https://go.microsoft.com/fwlink/?linkid=2157649 for more details."},
{"R_EnclaveResponseLengthError",
"More bytes from the server were received than expected when parsing the enclave attestation response."},
"More bytes from the server were received than expected when parsing the enclave attestation response - see https://go.microsoft.com/fwlink/?linkid=2157649 for more details."},
{"R_EnclavePackageLengthError",
"More bytes from the server were received than expected when parsing the enclave package."},
"More bytes from the server were received than expected when parsing the enclave package - see https://go.microsoft.com/fwlink/?linkid=2157649 for more details."},
{"R_EnclavePKLengthError",
"More bytes from the server were received than expected when parsing the enclave public key."},
"More bytes from the server were received than expected when parsing the enclave public key - see https://go.microsoft.com/fwlink/?linkid=2157649 for more details."},
{"R_MalformedECDHPublicKey", "The ECDH public key from the server must be 104 bits in length."},
{"R_MalformedECDHHeader", "Unexpected values for ECDH public key header from the server."},
{"R_HealthCertError",
"Enclave attestation failed, could not retrieve health report certificates provided in the enclave: {0}."},
"Enclave attestation failed, could not retrieve health report certificates provided in the enclave: {0} - see https://go.microsoft.com/fwlink/?linkid=2160553 for more details."},
{"R_InvalidHealthCert",
"Enclave attestation failed, the health report certificate provided in the enclave was not signed by the HGS."},
"Enclave attestation failed, the health report certificate provided in the enclave was not signed by the HGS - see https://go.microsoft.com/fwlink/?linkid=2160553 for more details."},
{"R_InvalidSignedStatement",
"Enclave attestation failed, the statement bytes were not signed by the health certificate."},
"Enclave attestation failed, the statement bytes were not signed by the health certificate - see https://go.microsoft.com/fwlink/?linkid=2160553 for more details."},
{"R_InvalidDHKeySignature",
"Enclave attestation failed, the DH public key signature can't be verified with the enclave public key."},
"Enclave attestation failed, the DH public key signature can't be verified with the enclave public key - see https://go.microsoft.com/fwlink/?linkid=2157649 for more details."},
{"R_AasJWTError", "An error occured when retrieving and validating the JSON web token."},
{"R_AasEhdError", "aas-ehd claim from JWT did not match enclave public key."},
{"R_VbsRpDataError", "rp_data claim from JWT did not match client nonce."},
Expand Down

0 comments on commit b97172c

Please sign in to comment.