Skip to content
This repository has been archived by the owner on Aug 21, 2021. It is now read-only.

add support for proxy authorization header to pmapi service #181

Open
martin2176 opened this issue Feb 26, 2018 · 12 comments
Open

add support for proxy authorization header to pmapi service #181

martin2176 opened this issue Feb 26, 2018 · 12 comments

Comments

@martin2176
Copy link

Is there a way to enhance security for vector connecting to pmwebd?

going by "man pmwebd : section Security"--> restrict access to pmwebd by an Apache http proxy with authentication.
Could vector handle the authentication requested by a proxy in such cases

regards

@spiermar
Copy link
Contributor

@martin2176 Simple HTTP authentication?

@fche
Copy link
Contributor

fche commented Feb 26, 2018

@spiermar
Copy link
Contributor

HTTP header based, should be simple. I see that as an extra input in the expanded hostname area. Probably a flag to enable and disable it.

@martin2176
Copy link
Author

auth

@martin2176
Copy link
Author

The above pic is what I have in mind.
The authentication is to enable vector be able to communicate with pmwebd using proxy in between.

@spiermar
Copy link
Contributor

That's a bit different from what I had in mind. I was thinking about having a single pmwebd running, with the proxy in front of it, and use the hostspec to connect to the "secured" instances running PMCD.

Thoughts @fche @natoscott ?

@martin2176
Copy link
Author

Something like this?
auth2

@spiermar
Copy link
Contributor

Something like that I think.

"How to secure this?" Depends on the level of security you're talking about, but the iptables blocking could be applied in this scenario too.

@martin2176
Copy link
Author

  1. other than iptables, I cant think of anything which would safely expose pmcd's PMAPI to pmwebd.
    any other suggestions pls do let me know
  2. For client browser to pmwebd communication through a proxy, can vector do the "Proxy-Authorization"header to authenticate against the proxy.

@spiermar
Copy link
Contributor

Not right now, but technically should be possible to change the header and include this.

@martin2176
Copy link
Author

in which case, would you be able to file this as an RFE.

@spiermar
Copy link
Contributor

Yes

@spiermar spiermar removed the review label Feb 27, 2018
@spiermar spiermar changed the title request for enhancement - security add support for proxy authorization header to pmapi service Feb 27, 2018
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Projects
None yet
Development

No branches or pull requests

3 participants