mirror of
https://github.com/ckaczor/sqltoolsservice.git
synced 2026-01-16 01:25:41 -05:00
Enable Always Encrypted enclave connection parameters (#919)
* Enable the enclave connection parameters. * Update the switch statement to use the enum constants for EnclaveAttestationProtocol * Update verbiage for Always Encrypted connection options * Update the argument exception to chose one specific to this connection option * Add resource logic to resource files. * Add error checking for when enclave parameters are added and Always Encrypted is set to disabled. * Add/Update unit tests
This commit is contained in:
@@ -119,16 +119,36 @@ namespace Microsoft.SqlTools.ServiceLayer.Connection
|
||||
new ConnectionOption
|
||||
{
|
||||
Name = "columnEncryptionSetting",
|
||||
DisplayName = "Column encryption setting",
|
||||
Description = "Default column encryption setting for all the commands on the connection",
|
||||
DisplayName = "Always Encrypted",
|
||||
Description = "Enables or disables Always Encrypted for the connection",
|
||||
ValueType = ConnectionOption.ValueTypeCategory,
|
||||
GroupName = "Security",
|
||||
CategoryValues = new CategoryValue[] {
|
||||
new CategoryValue { Name = "Disabled" },
|
||||
new CategoryValue {Name = "Enabled" }
|
||||
new CategoryValue { Name = "Enabled" }
|
||||
}
|
||||
},
|
||||
new ConnectionOption
|
||||
{
|
||||
Name = "attestationProtocol",
|
||||
DisplayName = "Attestation Protocol",
|
||||
Description = "Specifies a protocol for attesting a server-side enclave used with Always Encrypted with secure enclaves",
|
||||
ValueType = ConnectionOption.ValueTypeCategory,
|
||||
GroupName = "Security",
|
||||
CategoryValues = new CategoryValue[] {
|
||||
new CategoryValue { DisplayName = "Host Guardian Service", Name = "HGS" },
|
||||
new CategoryValue { DisplayName = "Azure Attestation", Name = "AAS" }
|
||||
}
|
||||
},
|
||||
new ConnectionOption
|
||||
{
|
||||
Name = "enclaveAttestationUrl",
|
||||
DisplayName = "Enclave Attestation URL",
|
||||
Description = "Specifies an endpoint for attesting a server-side enclave used with Always Encrypted with secure enclaves",
|
||||
ValueType = ConnectionOption.ValueTypeString,
|
||||
GroupName = "Security"
|
||||
},
|
||||
new ConnectionOption
|
||||
{
|
||||
Name = "encrypt",
|
||||
DisplayName = "Encrypt",
|
||||
|
||||
Reference in New Issue
Block a user