Skip to content

GET /deploy does not require token when tokens.txt is set #21

@lazzarello

Description

@lazzarello

Running emmie service as NodePort, with SSH tunnel to localhost

curl -k https://localhost:30610/deploy returns JSON of all deployments in all namespaces when I have a token in tokens.txt

curl -k -X POST https://localhost:30610/deploy/leedev/0.0.10 returns the following log from the server in the pod

Token is NOT valid! =(

And returns the following headers to the client

*   Trying ::1...
* Connected to localhost (::1) port 30610 (#0)
* TLS 1.2 connection using TLS_ECDHE_RSA_WITH_AES_128_GCM_SHA256
* Server certificate: something
> POST /deploy/leedev/0.0.10 HTTP/1.1
> Host: localhost:30610
> User-Agent: curl/7.49.1
> Accept: */*
> 
< HTTP/1.1 401 Unauthorized
< Date: Tue, 13 Dec 2016 03:34:04 GMT
< Content-Length: 0
< Content-Type: text/plain; charset=utf-8
< 
* Connection #0 to host localhost left intact

I'll get to a PR sometime tomorrow, I expect.

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