Re: Best practices for integration of credentials in a plugin

2015-12-18 Thread Jesse Glick
I think you can look for `UsernamePasswordCredentials` or `StringCredentials`. -- You received this message because you are subscribed to the Google Groups "Jenkins Developers" group. To unsubscribe from this group and stop receiving emails from it, send an email to

Re: Best practices for integration of credentials in a plugin

2015-12-15 Thread jcsirot
Hi Adrien, Well, there is no real issue with the Plain Credential Plugin but I find that the label "secret text" used by this plugin when creating a new credential entry is a little bit vague. Using a simple password field would also work but I prefer using a credential item in order to avoid

Re: Best practices for integration of credentials in a plugin

2015-12-15 Thread Stephen Connolly
IMHO you should be looking by *interface* i.e. you want any credential that implements both PasswordCredentials and StandardCredentials. You should not be looking for a specific implementation type. If you look for a concrete implementation class then you prevent somebody implementing an

Re: Best practices for integration of credentials in a plugin

2015-12-15 Thread Adrien Lecharpentier
Jean-Christophe, so I would say use the Plain Credential plugin. A plain text password is *never* the answer. I agree that the field name can be vague, but we can discuss about it with Jesse or create a quick PR. -- Adrien Le mar. 15 déc. 2015 à 14:58, jcsirot a écrit : >

Re: Best practices for integration of credentials in a plugin

2015-12-14 Thread Adrien Lecharpentier
Jean-Christophe, I would say using the Plain Credential Plugin if you only need a "secured" field for the vault. What is the issue with it? Maybe it is possible to improvement it? Best regards. Le lun. 14 déc. 2015 à 15:13, jcsirot a écrit : > Hello, > > I am working on the

Best practices for integration of credentials in a plugin

2015-12-14 Thread jcsirot
Hello, I am working on the integration of the ansible vault feature (i.e. password protected configuration files) in the ansible plugin. I want to give the possibility to select the password from the credential plugin dropdown box. So I see 3 possibilities to do that : 1. Use the