SYMBOL INDEX (121 symbols across 25 files) FILE: cmd/server/main.go function main (line 58) | func main() { function setupKMSPlugin (line 64) | func setupKMSPlugin() error { function withShutdownSignal (line 191) | func withShutdownSignal(ctx context.Context) context.Context { FILE: pkg/auth/auth.go function GetKeyvaultToken (line 27) | func GetKeyvaultToken(config *config.AzureConfig, env *azure.Environment... function GetServicePrincipalToken (line 37) | func GetServicePrincipalToken(config *config.AzureConfig, aadEndpoint, r... function ParseAzureEnvironment (line 110) | func ParseAzureEnvironment(cloudName string) (*azure.Environment, error) { function decodePkcs12 (line 123) | func decodePkcs12(pkcs []byte, password string) (*x509.Certificate, *rsa... function redactClientCredentials (line 137) | func redactClientCredentials(sensitiveString string) string { function addTargetTypeHeader (line 143) | func addTargetTypeHeader(spt *adal.ServicePrincipalToken) *adal.ServiceP... FILE: pkg/auth/auth_test.go function TestParseAzureEnvironment (line 19) | func TestParseAzureEnvironment(t *testing.T) { function TestRedactClientCredentials (line 40) | func TestRedactClientCredentials(t *testing.T) { function TestGetServicePrincipalTokenFromMSIWithUserAssignedID (line 63) | func TestGetServicePrincipalTokenFromMSIWithUserAssignedID(t *testing.T) { function TestGetServicePrincipalTokenFromMSI (line 113) | func TestGetServicePrincipalTokenFromMSI(t *testing.T) { function TestGetServicePrincipalToken (line 161) | func TestGetServicePrincipalToken(t *testing.T) { FILE: pkg/config/azure_config.go type AzureConfig (line 12) | type AzureConfig struct function GetAzureConfig (line 24) | func GetAzureConfig(configFile string) (config *AzureConfig, err error) { FILE: pkg/consts/consts.go constant RequestHeaderTargetType (line 13) | RequestHeaderTargetType = "x-azure-proxy-target" constant TargetTypeAzureActiveDirectory (line 14) | TargetTypeAzureActiveDirectory = "AzureActiveDirectory" constant TargetTypeKeyVault (line 15) | TargetTypeKeyVault = "KeyVault" FILE: pkg/metrics/exporter.go constant prometheusExporter (line 11) | prometheusExporter = "prometheus" function InitMetricsExporter (line 15) | func InitMetricsExporter(metricsBackend, metricsAddress string) error { FILE: pkg/metrics/exporter_test.go function TestInitMetricsExporter (line 8) | func TestInitMetricsExporter(t *testing.T) { FILE: pkg/metrics/prometheus_exporter.go constant metricsEndpoint (line 17) | metricsEndpoint = "metrics" function initPrometheusExporter (line 20) | func initPrometheusExporter(metricsAddress string) error { FILE: pkg/metrics/stats_reporter.go constant instrumentationName (line 12) | instrumentationName = "keyvaultkms" constant errorMessageKey (line 13) | errorMessageKey = "error_message" constant statusTypeKey (line 14) | statusTypeKey = "status" constant operationTypeKey (line 15) | operationTypeKey = "operation" constant kmsRequestMetricName (line 16) | kmsRequestMetricName = "kms_request" constant ErrorStatusTypeValue (line 18) | ErrorStatusTypeValue = "error" constant SuccessStatusTypeValue (line 20) | SuccessStatusTypeValue = "success" constant EncryptOperationTypeValue (line 22) | EncryptOperationTypeValue = "encrypt" constant DecryptOperationTypeValue (line 24) | DecryptOperationTypeValue = "decrypt" constant GrpcOperationTypeValue (line 26) | GrpcOperationTypeValue = "grpc" type reporter (line 29) | type reporter struct method ReportRequest (line 55) | func (r *reporter) ReportRequest(ctx context.Context, operationType, s... type StatsReporter (line 34) | type StatsReporter interface function NewStatsReporter (line 39) | func NewStatsReporter() (StatsReporter, error) { FILE: pkg/plugin/healthz.go constant healthCheckPlainText (line 26) | healthCheckPlainText = "healthcheck" type HealthZ (line 30) | type HealthZ struct method Serve (line 39) | func (h *HealthZ) Serve() { method ServeHTTP (line 52) | func (h *HealthZ) ServeHTTP(w http.ResponseWriter, _ *http.Request) { method checkRPC (line 141) | func (h *HealthZ) checkRPC( method dialUnixSocket (line 169) | func (h *HealthZ) dialUnixSocket() (*grpc.ClientConn, error) { FILE: pkg/plugin/healthz_test.go function TestServe (line 30) | func TestServe(t *testing.T) { function TestCheckRPC (line 108) | func TestCheckRPC(t *testing.T) { function getTempTestDir (line 139) | func getTempTestDir(t *testing.T) string { function setupFakeKMSServer (line 147) | func setupFakeKMSServer(socketPath string) ( function doHealthCheck (line 189) | func doHealthCheck(t *testing.T, url string) (int, []byte) { FILE: pkg/plugin/keyvault.go constant dateAnnotationKey (line 36) | dateAnnotationKey = "date.azure.akv.io" constant requestIDAnnotationKey (line 37) | requestIDAnnotationKey = "x-ms-request-id.azure.akv.io" constant keyvaultRegionAnnotationKey (line 38) | keyvaultRegionAnnotationKey = "x-ms-keyvault-region.azure.akv.io" constant versionAnnotationKey (line 39) | versionAnnotationKey = "version.azure.akv.io" constant algorithmAnnotationKey (line 40) | algorithmAnnotationKey = "algorithm.azure.akv.io" constant dateAnnotationValue (line 41) | dateAnnotationValue = "Date" constant requestIDAnnotationValue (line 42) | requestIDAnnotationValue = "X-Ms-Request-Id" constant keyvaultRegionAnnotationValue (line 43) | keyvaultRegionAnnotationValue = "X-Ms-Keyvault-Region" type Client (line 47) | type Client interface type KeyVaultClient (line 66) | type KeyVaultClient struct method Encrypt (line 150) | func (kvc *KeyVaultClient) Encrypt( method Decrypt (line 190) | func (kvc *KeyVaultClient) Decrypt( method GetUserAgent (line 223) | func (kvc *KeyVaultClient) GetUserAgent() string { method GetVaultURL (line 227) | func (kvc *KeyVaultClient) GetVaultURL() string { method validateAnnotations (line 235) | func (kvc *KeyVaultClient) validateAnnotations( function NewKeyVaultClient (line 78) | func NewKeyVaultClient( function getVaultURL (line 273) | func getVaultURL(vaultName string, managedHSM bool, env *azure.Environme... function getProxiedVaultURL (line 294) | func getProxiedVaultURL(vaultURL *string, proxyAddress string, proxyPort... function getVaultDNSSuffix (line 299) | func getVaultDNSSuffix(managedHSM bool, env *azure.Environment) string { function getVaultResourceIdentifier (line 306) | func getVaultResourceIdentifier(managedHSM bool, env *azure.Environment)... function getKeyIDHash (line 313) | func getKeyIDHash(vaultURL, keyName, keyVersion string) (string, error) { FILE: pkg/plugin/keyvault_test.go function TestNewKeyVaultClientError (line 22) | func TestNewKeyVaultClientError(t *testing.T) { function TestNewKeyVaultClient (line 78) | func TestNewKeyVaultClient(t *testing.T) { function TestGetVaultURLError (line 151) | func TestGetVaultURLError(t *testing.T) { function TestGetVaultURL (line 186) | func TestGetVaultURL(t *testing.T) { function TestGetKeyIDHash (line 207) | func TestGetKeyIDHash(t *testing.T) { FILE: pkg/plugin/kms_v2_server.go type KeyManagementServiceV2Server (line 22) | type KeyManagementServiceV2Server struct method Status (line 44) | func (s *KeyManagementServiceV2Server) Status(ctx context.Context, _ *... method Encrypt (line 81) | func (s *KeyManagementServiceV2Server) Encrypt(ctx context.Context, re... method Decrypt (line 112) | func (s *KeyManagementServiceV2Server) Decrypt(ctx context.Context, re... function NewKMSv2Server (line 30) | func NewKMSv2Server(kvClient Client) (*KeyManagementServiceV2Server, err... FILE: pkg/plugin/kms_v2_server_test.go function TestV2Encrypt (line 23) | func TestV2Encrypt(t *testing.T) { function TestV2Decrypt (line 81) | func TestV2Decrypt(t *testing.T) { function TestStatus (line 180) | func TestStatus(t *testing.T) { FILE: pkg/plugin/mock_keyvault/keyvault_mock.go type KeyVaultClient (line 17) | type KeyVaultClient struct method Encrypt (line 28) | func (kvc *KeyVaultClient) Encrypt(_ context.Context, _ []byte, _ keyv... method Decrypt (line 42) | func (kvc *KeyVaultClient) Decrypt(_ context.Context, _ []byte, _ keyv... method SetEncryptResponse (line 48) | func (kvc *KeyVaultClient) SetEncryptResponse(encryptOut []byte, err e... method SetDecryptResponse (line 55) | func (kvc *KeyVaultClient) SetDecryptResponse(decryptOut []byte, err e... method ValidateAnnotations (line 62) | func (kvc *KeyVaultClient) ValidateAnnotations(annotations map[string]... method GetUserAgent (line 93) | func (kvc *KeyVaultClient) GetUserAgent() string { method GetVaultURL (line 97) | func (kvc *KeyVaultClient) GetVaultURL() string { FILE: pkg/plugin/server.go type KeyManagementServiceServer (line 22) | type KeyManagementServiceServer struct method Version (line 56) | func (s *KeyManagementServiceServer) Version(_ context.Context, _ *kms... method Encrypt (line 65) | func (s *KeyManagementServiceServer) Encrypt(ctx context.Context, requ... method Decrypt (line 92) | func (s *KeyManagementServiceServer) Decrypt(ctx context.Context, requ... type Config (line 30) | type Config struct function NewKMSv1Server (line 42) | func NewKMSv1Server(kvClient Client) (*KeyManagementServiceServer, error) { FILE: pkg/plugin/server_test.go function TestEncrypt (line 22) | func TestEncrypt(t *testing.T) { function TestDecrypt (line 71) | func TestDecrypt(t *testing.T) { function TestVersion (line 120) | func TestVersion(t *testing.T) { FILE: pkg/utils/grpc.go function ParseEndpoint (line 16) | func ParseEndpoint(ep string) (string, string, error) { function UnaryServerInterceptor (line 27) | func UnaryServerInterceptor(ctx context.Context, req interface{}, info *... function getGRPCMethodName (line 53) | func getGRPCMethodName(fullMethodName string) string { FILE: pkg/utils/grpc_test.go function TestParseEndpoint (line 5) | func TestParseEndpoint(t *testing.T) { function TestGetGRPCMethodName (line 50) | func TestGetGRPCMethodName(t *testing.T) { FILE: pkg/utils/sanitize.go function SanitizeString (line 6) | func SanitizeString(s string) string { FILE: pkg/utils/sanitize_test.go function TestSanitizeString (line 5) | func TestSanitizeString(t *testing.T) { FILE: pkg/version/version.go function PrintVersion (line 25) | func PrintVersion() (err error) { function GetUserAgent (line 46) | func GetUserAgent() string { FILE: pkg/version/version_test.go function TestPrintVersion (line 13) | func TestPrintVersion(t *testing.T) { function TestGetUserAgent (line 46) | func TestGetUserAgent(t *testing.T) { FILE: tests/client/client_test.go constant netProtocol (line 18) | netProtocol = "unix" constant pathToUnixSocket (line 19) | pathToUnixSocket = "/opt/azurekms.sock" constant version (line 20) | version = "v1beta1" function setupTestCase (line 31) | func setupTestCase() { function teardownTestCase (line 44) | func teardownTestCase() { function TestEncryptDecrypt (line 51) | func TestEncryptDecrypt(t *testing.T) { function TestV1Version (line 113) | func TestV1Version(t *testing.T) { function TestV2Version (line 139) | func TestV2Version(t *testing.T) { function TestMain (line 165) | func TestMain(m *testing.M) { function newUnixSocketConnection (line 172) | func newUnixSocketConnection(path string) (*grpc.ClientConn, error) {