Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Keystore path should be hardcoded when secure ingress annotation used #341

Open
Rajith90 opened this issue Jun 25, 2019 · 0 comments
Open
Labels
Points/1 Equivalent to 1 days effort Priority/Blocker Type/Bug

Comments

@Rajith90
Copy link

Rajith90 commented Jun 25, 2019

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:

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Points/1 Equivalent to 1 days effort Priority/Blocker Type/Bug
Projects
None yet
Development

No branches or pull requests

3 participants