Skip to content
This repository has been archived by the owner on Mar 28, 2020. It is now read-only.

GetTLSDataFromSecret should check cert content before returning #1220

Open
jamiehannaford opened this issue Jun 27, 2017 · 3 comments
Open

Comments

@jamiehannaford
Copy link
Contributor

GetTLSDataFromSecret retrieves the TLS secret from the API, extracts its data and returns a struct. If the user named the secret keys incorrectly, empty data is passed back and eventually they're confronted with:

tls: failed to find any PEM data in certificate input

which is slightly confusing. It would probably be better to check the content of the data before returning and raise an error there instead.

@xiang90
Copy link
Collaborator

xiang90 commented Jul 8, 2017

@jamiehannaford agreed. can you help to improve this by sending a pr?

@raoofm
Copy link

raoofm commented Sep 8, 2017

@jamiehannaford @xiang90 I'm facing a similar issue. Can you please elaborate on

If the user named the secret keys incorrectly, empty data is passed back

I named them
image

@raoofm
Copy link

raoofm commented Sep 8, 2017

here #1384

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants