Skip to content
This repository has been archived by the owner on Jan 31, 2023. It is now read-only.

Connecting to a gateway using an environment locally sets ssl overrides incorrectly #1525

Closed
liam-grace opened this issue Oct 11, 2019 · 0 comments · Fixed by #1526
Closed
Assignees
Labels
bug Something isn't working sev2
Milestone

Comments

@liam-grace
Copy link

liam-grace commented Oct 11, 2019

An environment file supports setting the parameter ssl_target_name_override in each node
e.g.

 {
        "name": "peer0.org1.com",
        "api_url": "grpcs://0.0.0.0:9051",
        "type": "fabric-peer",
        "msp_id": "Org1MSP",
        "pem": "LS0tLS1CRUdJTiBDR",
        "wallet": "Org1",
        "identity": "admin",
        "ssl_target_name_override": "peer0.org1.com"
    },

And a CCP supports the same parameter, in a different format e.g.

...
"grpcOptions": {
    "ssl-target-name-override": "peer0.org1.com"
}
...

The extension, when using a gateway created using an environment config, instead creates a CCP that looks like

...
"grpcOptions": {
    "ssl_target_name_override": "peer0.org1.com"
}
...

Possible Fix

Change the case format of the 'ssl_target_name_override' in the generated CCP to 'ssl-target-name-override

@cazfletch cazfletch added bug Something isn't working sev2 labels Oct 11, 2019
@cazfletch cazfletch self-assigned this Oct 11, 2019
@cazfletch cazfletch added this to the Sprint 18 milestone Oct 11, 2019
cazfletch added a commit that referenced this issue Oct 11, 2019
Updated connection profile generation to include the correct name for ssl override property

closes #1525

Signed-off-by: Caroline Fletcher <caroline.fletcher@uk.ibm.com>
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
bug Something isn't working sev2
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants