Re: [DISCUSS] Environment variables should be usable when looking up passwords

2019-02-26 Thread Phil Zampino
I know the discovery mechanism employs aliases for usernames also. On Tue, Feb 26, 2019 at 9:03 AM Robert Levas wrote: > > > > It is unclear to me whether you are proposing this for all uses of the > > AliasService or just for the keystore and truststore passwords that are > > configured at the

Re: [DISCUSS] Environment variables should be usable when looking up passwords

2019-02-26 Thread Robert Levas
> > It is unclear to me whether you are proposing this for all uses of the > AliasService or just for the keystore and truststore passwords that are > configured at the gateway-site.xml level. Actually, I didn't make a distinction. I thought that the job of the AliasService was to provide a

Re: [DISCUSS] Environment variables should be usable when looking up passwords

2019-02-25 Thread larry mccay
It is unclear to me whether you are proposing this for all uses of the AliasService or just for the keystore and truststore passwords that are configured at the gateway-site.xml level. If you intend for this to work across the board: 1. I would have to understand why 2. there would need to be

Re: [DISCUSS] Environment variables should be usable when looking up passwords

2019-02-25 Thread Kevin Risden
Another thought: A way to potentially look at this is to use the existing env.VARIABLE support and have the AliasService check if it is actually an alias. This pattern is used in the Pac4j stuff where the topology has a value like ${alias=...}. Without it being a ${alias=...}, the value is just

Re: [DISCUSS] Environment variables should be usable when looking up passwords

2019-02-25 Thread Robert Levas
> > I guess one of the questions that comes to mind is do we need to support > the environment variable being updated while Knox is running? I am not sure that this is possible. I wrote a little test program and was not able to alter the environment variable according to the running process's

Re: [DISCUSS] Environment variables should be usable when looking up passwords

2019-02-25 Thread Kevin Risden
I guess one of the questions that comes to mind is do we need to support the environment variable being updated while Knox is running? I don't know if the environment can be changed from underneath a running process. One area that this is also interesting is with Kubernetes/Docker and how secrets

[DISCUSS] Environment variables should be usable when looking up passwords

2019-02-25 Thread Robert Levas
Team... I would like to open a discussion on adding a feature to Knox to allow the Gateway get a password from the environment as well as the remote and local credential stores. This is potentially needed by management consoles, like Cloudera Manager, that can create keystores but pass the