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

Does password field work on http input? #63

Closed
paul42 opened this issue Mar 25, 2017 · 3 comments
Closed

Does password field work on http input? #63

paul42 opened this issue Mar 25, 2017 · 3 comments

Comments

@paul42
Copy link

paul42 commented Mar 25, 2017

Latest version of logstash,
created logstash config:

input {
  http {
    host => "127.0.0.1"
    port => 5400
    id => "http_input"
    response_headers => {"Content-Type"=>"application/json"}
    codec => json
    password => "example"
  }
}

output {
    stdout{
     codec => rubydebug
    }
}

when I use Postman and set the basic auth header, it works, I see stdout output, but it still passes through when I remove the header and set it to noauth - it works when I change the password on auth as well. is there a test suite I can run to verify?

@charleshepner
Copy link

I assume you need to specify username in addition to password for basic auth to work.

@ebuildy
Copy link
Contributor

ebuildy commented May 9, 2018

@paul42 is it ok?

@jsvd
Copy link
Member

jsvd commented May 11, 2018

I'm moving this to #88, since we should error out when only password is set without a username.

@jsvd jsvd closed this as completed May 11, 2018
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

4 participants