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

Using active-directory requires user 'jenkins-operator' #407

Closed
shadamik opened this issue May 29, 2020 · 2 comments
Closed

Using active-directory requires user 'jenkins-operator' #407

shadamik opened this issue May 29, 2020 · 2 comments

Comments

@shadamik
Copy link

Expected Behavior

I can configure the username used for operator jenkins api calls.

Actual Behavior

The user used for accessing the jenkins api is hard coded.

Steps to Reproduce the Problem

  1. install active-directory plugin
  2. activate activeDirectory security realm
  3. operator can not access jenkins api anymore

Additional Info

WARNING j.s.BasicHeaderApiTokenAuthenticator#authenticate: API token matched for user jenkins-operator but the impersonation failed
org.acegisecurity.userdetails.UsernameNotFoundException: Authentication was successful but cannot locate the user information for jenkins-operator 
@apogrebnyak
Copy link

No, you can use any user defined in your AD.

Just make sure you create a kuberentes secret jenkins-operator-credentials-<CR-NAME>.
In it specify user as your AD user and password as its password.

Beware, that jenkins-operator uses this secret to store other important information. There is a ticket to split that extra info #313

@shadamik
Copy link
Author

shadamik commented Jun 2, 2020

Thanks, found it in the code. Sorry I overlooked that.

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

2 participants