module-ballerina-kubernetes icon indicating copy to clipboard operation
module-ballerina-kubernetes copied to clipboard

Keystore path should be hardcoded when secure ingress annotation used

Open Rajith90 opened this issue 5 years ago • 0 comments

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:

Rajith90 avatar Jun 25 '19 08:06 Rajith90