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

AUTH_METHOD=rancherlocal when Rancher uses Github auth #17

Open
emcniece opened this issue Oct 14, 2017 · 7 comments
Open

AUTH_METHOD=rancherlocal when Rancher uses Github auth #17

emcniece opened this issue Oct 14, 2017 · 7 comments

Comments

@emcniece
Copy link

I'm trying to set up the rancherlocal auth method. Setup works as expected and when trying to connect the VPN client prompts for a username and password (also expected).

The problem is that I can't seem to auth successfully against Rancher's API. My Rancher environment is using Github auth and restricting access to a single organization - so to access Rancher you have to "log in" with your Github account. It seems like the VPN may not be able to forward auth requests through Rancher to Github.

Has anyone successfully configured an OpenVPN server to auth against Rancher with Github auth enabled?

@dwene
Copy link

dwene commented Feb 23, 2018

I'm in the same boat with you, seems you cant make this work when rancher auth is configured with github. And sadly Rancher wont allow you to change auth mechanisms once you've set them up.

@emcniece
Copy link
Author

Haven't found a solution thus far. Thanks for piping up!

@tvollstaedt
Copy link

This propably won't help you, but I can confirm that Rancher auth works with Azure AD backend authentification configured.

@janajri
Copy link

janajri commented Mar 1, 2018

@emcniece did you every find a solution to this issue?

@emcniece
Copy link
Author

emcniece commented Mar 1, 2018

Negative @janajri

@bjerkins
Copy link

haven't tested it yet but perhaps you could generate Account API Key (API > Keys > Add Account API Key) and use the generated Access Key (Username) and Secret Key (Password) for the VPN prompt ?

@laukaichung
Copy link

laukaichung commented Jun 16, 2018

@bjerkins
I've tried your suggestion. I've tried local auth instead of Github auth, but the access and secret key credentials do not work with openvpn.

Here are the environments:

    environment:
      AUTH_METHOD: rancherlocal
      AUTH_RANCHERLOCAL_URL: http://rancher-ip:8080/v1/token
      CERT_CITY: Birmingham
      CERT_COUNTRY: US
      CERT_EMAIL: some@gmail.com
      CERT_ORG: ACME
      CERT_OU: IT
      CERT_PROVINCE: AL
      OPENVPN_EXTRACONF: ''
      REMOTE_IP: hostip
      REMOTE_PORT: '1194'
      VPNPOOL_CIDR: '16'
      VPNPOOL_NETWORK: 10.43.0.0

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

6 participants