module-ballerina-kubernetes
module-ballerina-kubernetes copied to clipboard
Keystore path should be hardcoded when secure ingress annotation used
Description: When kubernetees ingress annotation used with a listener we need to hard code keystore path and password. It does not read from the environment variables.
Suggested Labels:
Suggested Assignees:
Affected Product Version: ballerina 0.990.5 OS, DB, other environment details and versions:
Steps to reproduce: Use the following listener code
@kubernetes:Ingress {
name:"pets_ingress",
hostname:"petstore.com",
path:"/",
enableTLS:true
}
@kubernetes:Service {
name:"petstore_service",
serviceType:"LoadBalancer"
}
listener http:Listener tokenListenerEndpoint = new (
9096, config = {
secureSocket: {
keyStore: {
path: "$env{listenerConfig_keyStore_path}",
password: "$env{listenerConfig_keyStore_password}"
}
}
}
);
Then it gives the compilation error
error: src:0.0.0::listeners.bal:114:1: Unable to read contents of the file $env{listenerConfig_keyStore_path}
Related Issues: