Skip to content

Deck Authentication fails with find any PEM data in certificate input #1633

Open
@ChiragR7

Description

@ChiragR7

I was trying to use documentation specified in link

https://docs.konghq.com/deck/gateway/configuration/

Found multiple issues

  1. As specified in documentation --tls-client-cert-key is not a valid argument. On checking the source code it should be --tls-client-key-file

  2. On changing the command to

deck gateway ping --kong-addr https://kong-cp-kong-admin.infra.svc.cluster.local:8444 --ca-cert-file /secrets/kong-admin-api-tls/ca.crt --tls-client-key-file /secrets/kong-admin-api-tls/tls.key --tls-client-cert-file /secrets/kong-admin-api-tls/tls.crt

It started throwing fails with find any PEM data in certificate input on executing this command.

On further debugging it

setting --tls-client-key-file evaluates clientKeyContent := viper.GetString("tls-client-key") in source code to /secrets/kong-admin-api-tls/tls.key

As shown in code snippet

Image

I suspect issue is related to viper bind flags. Did not spent time on debugging it further.

For now I am setting up env DECK_TLS_CLIENT_KEY_FILE and DECK_TLS_CLIENT_CERT_FILE, until viper issue is addressed.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions