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

config.properties file exposes API key and TRS user credentials in the open #12

Open
2 tasks
jamsden opened this issue Jul 13, 2021 · 0 comments
Open
2 tasks

Comments

@jamsden
Copy link

jamsden commented Jul 13, 2021

This file should be stored in a secure place on a sample server.

apiKey and user credentials - should be encrypted.

  • Need to create a utility program to encrypt the password:
import com.ibm.team.repository.common.util.ObfuscationHelper;
// use this to encrypt the apiKey and TRS user's password to put in config.properties
encryptedPassword = ObfuscationHelper.encryptString(password) 
System.out.println(encryptedPassword)
  • Then use this to decrypt the password stored in the config.properties file
password = ObfuscationHelper.decryptString((String)clientProperties.getProperty("password"));
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
Status: No status
Development

No branches or pull requests

1 participant