admin管理员组

文章数量:1123599

I had a interview question: How would you handle passwords that you are using in your test when pushing your code to remote repository? because the password should not be read by others. But the code should be running using passwords in remote repository. what are the ways can we use? could any one explain? Thanks.

I had a interview question: How would you handle passwords that you are using in your test when pushing your code to remote repository? because the password should not be read by others. But the code should be running using passwords in remote repository. what are the ways can we use? could any one explain? Thanks.

Share Improve this question asked 21 hours ago shivu2012shivu2012 214 bronze badges 3
  • very valid question, but the downvoters probably don't like that it's not about code. you should probably ask a search engine for immediate results. – user2023577 Commented 20 hours ago
  • @user2023577 It IS about coding. You have to store the passwords somewhere and use code to retrieve them and/or decrypt the passwords. "Ask search engine for immediate results"... the same could be said for just about every question asked on SO. – JeffC Commented 15 hours ago
  • nowadays yes. But there is no code in the question. There are other stack exchange sites among the 180+ to talk about computers and security. – user2023577 Commented 14 hours ago
Add a comment  | 

1 Answer 1

Reset to default -1

It depends on what you're trying to do. I've done it a few ways:

  1. Use Windows Environment Variables. See the docs for more info.

  2. Use Windows Credential Manager.

  3. Store them in SQL.

本文标签: javaHow do we handle the passwords when pushing an automation scripts to remote repositoryStack Overflow