ods-provisioning-app icon indicating copy to clipboard operation
ods-provisioning-app copied to clipboard

Add project specific cd user after for generating new components

Open sino92 opened this issue 5 years ago • 5 comments

Creation of new project with a project-specific-cd-user is a bit clumsy as prov-app doesn't communicate with Crowd or AD to create one in real time. For AD, I assume there can't be instant feedback and response to create a new technical user anyway. As a result of this lag, there can be a use case where project specific cd user is created after the project is already generated.

It would save developers time if this new user can then be added when generating new components. This would link the generated repo to that cd user as opposed to global cd user. @gerardcl @stitakis

sino92 avatar Jul 14 '20 11:07 sino92

Right now there can only be one "cd_user" per project (foo-cd namespace). Do you suggest to change that when generating a new component, or is your suggestion to have multiple "cd_user"s per project?

michaelsauter avatar Jul 14 '20 14:07 michaelsauter

Sorry, a correction for above... I meant to say switching from global cd user to a project specific one, not adding a new one. So saving the developer time to change related resources:

  • changing OC username/secret
  • changing the user in project repo
  • adding a new user to opendevstack quickstarters and jenkins shared lib repos

sino92 avatar Jul 15 '20 07:07 sino92

FYI

changing OC username/secret

that was - at the time - a conscious design decision. We intentionally kept the password out of ODS altogether, and we also avoided integrating ODS with the "user management process" (as that can differ a lot between companies). So unless we give that up, changing the secret manually is painful, but the most secure option right now.

michaelsauter avatar Jul 15 '20 10:07 michaelsauter

Hm makes sense as a design decision. Then maybe we can add some documentation around which places need change in case someone need to change their cd user in the middle of the project. What do you think?

sino92 avatar Jul 16 '20 11:07 sino92

Yes that would be great!

michaelsauter avatar Jul 16 '20 12:07 michaelsauter