Wayback Machinekoobas.hobune.stream
May JUN Jul
Previous capture 12 Next capture
2021 2022 2023
1 capture
12 Jun 22 - 12 Jun 22
sparklines
Close Help
  • Products
  • Solutions
  • Made with Unity
  • Learning
  • Support & Services
  • Community
  • Asset Store
  • Get Unity

UNITY ACCOUNT

You need a Unity Account to shop in the Online and Asset Stores, participate in the Unity Community and manage your license portfolio. Login Create account
  • Blog
  • Forums
  • Answers
  • Evangelists
  • User Groups
  • Beta Program
  • Advisory Panel

Navigation

  • Home
  • Products
  • Solutions
  • Made with Unity
  • Learning
  • Support & Services
  • Community
    • Blog
    • Forums
    • Answers
    • Evangelists
    • User Groups
    • Beta Program
    • Advisory Panel

Unity account

You need a Unity Account to shop in the Online and Asset Stores, participate in the Unity Community and manage your license portfolio. Login Create account

Language

  • Chinese
  • Spanish
  • Japanese
  • Korean
  • Portuguese
  • Ask a question
  • Spaces
    • Default
    • Help Room
    • META
    • Moderators
    • Topics
    • Questions
    • Users
    • Badges
  • Home /
avatar image
0
Question by kevin_irisvr · May 25, 2016 at 03:08 PM · batchmodepasswordserialcontinuous-integration

Should the username/password for unity account be hidden in batchmode build logs?

When I build from command line, I noticed that my log output has the username and password in plain text but the Serial Number is hidden. I would expect the password should also be hidden.

For context I'm setting up CI with TeamCity and I found you can used Agent Parameters to specify passwords which will remove them from the logs. I previously just had these as local environment variables but noticed they were in the logs that were uploaded which had to be resolved so I have worked around the issue for now.

This is what it looked like before switching TeamCity over to using AgentParameters:

 [01:59:24][Step 1/2] "C:\Program Files\Unity\Editor\Unity.exe" -logFile output/log.txt -quit -serial ABCD-EF-G -username  me@not_unity.com -password NOT_SO_SECRET_PASSWORD -projectPath C:\TeamCity\buildAgent\work\5386fe9d62e26522 -batchmode -buildWindows64Player output\SuperAwesomeGameThatShowsPasswordWhenBuilding.exe
 ...
 [02:01:41][Step 2/2] -logFile
 [02:01:41][Step 2/2] output/log.txt
 [02:01:41][Step 2/2] -quit
 [02:01:41][Step 2/2] -serial
 [02:01:41][Step 2/2] (hidden)
 [02:01:41][Step 2/2] -username
 [02:01:41][Step 2/2] me@not_unity.com
 [02:01:41][Step 2/2] -password
 [02:01:41][Step 2/2] NOT_SO_SECRET_PASSWORD
 [02:01:41][Step 2/2] -projectPath
Comment
Add comment · Show 3
10 |3000 characters needed characters left characters exceeded
▼
  • Viewable by all users
  • Viewable by moderators
  • Viewable by moderators and the original poster
  • Advanced visibility
Viewable by all users
avatar image kevin_irisvr · May 25, 2016 at 02:20 AM 0
Share

Forgot to indicate that this is build 5.3.4p5

 [02:01:41][Step 2/2] Built from '5.3/patch-release' branch; Version is '5.3.4p5 (83b1f50dd5b8) revision 8630773'; Using compiler version '160040219'
avatar image Jessespike · May 25, 2016 at 06:36 PM 0
Share

Don't think it's an issue, since build logs are only placed locally on your machine and not distributed. I guess encryption would be nice if the computer is public or shared. In general, you're right, all passwords should be hidden, if this is an issue for you and found a way to hide the parameters then that's great, thanks for sharing.

avatar image kevin_irisvr · May 25, 2016 at 07:00 PM 0
Share

Thanks Jesse, I wanted to bring it up even though we have worked around it in two ways.

  1. Putting our TeamCity server behind an https proxy to encrypt all communication.

  2. Using TeamCity Agent Parameters which masks them.

0 Replies

· Add your reply
  • Sort: 

Your answer

Hint: You can notify a user about this post by typing @username

Up to 2 attachments (including images) can be used with a maximum of 524.3 kB each and 1.0 MB total.

Follow this Question

Answers Answers and Comments

3 People are following this question.

avatar image avatar image avatar image

Related Questions

Unity -executeMethod Problem (executeMethod method 'Build' in class 'TestScript' could not be found.) 2 Answers

No serial number - Unity Personal - needed for CLI integration 0 Answers

No graphics in build with -batchmode -nographics 2 Answers

Command line building gettings stuck on "Unloading 0 Serialized Asset files" loop. 0 Answers

batchmode command not generating symbols.zip file 1 Answer


Enterprise
Social Q&A

Social
Subscribe on YouTube social-youtube Follow on LinkedIn social-linkedin Follow on Twitter social-twitter Follow on Facebook social-facebook Follow on Instagram social-instagram

Footer

  • Purchase
    • Products
    • Subscription
    • Asset Store
    • Unity Gear
    • Resellers
  • Education
    • Students
    • Educators
    • Certification
    • Learn
    • Center of Excellence
  • Download
    • Unity
    • Beta Program
  • Unity Labs
    • Labs
    • Publications
  • Resources
    • Learn platform
    • Community
    • Documentation
    • Unity QA
    • FAQ
    • Services Status
    • Connect
  • About Unity
    • About Us
    • Blog
    • Events
    • Careers
    • Contact
    • Press
    • Partners
    • Affiliates
    • Security
Copyright © 2020 Unity Technologies
  • Legal
  • Privacy Policy
  • Cookies
  • Do Not Sell My Personal Information
  • Cookies Settings
"Unity", Unity logos, and other Unity trademarks are trademarks or registered trademarks of Unity Technologies or its affiliates in the U.S. and elsewhere (more info here). Other names or brands are trademarks of their respective owners.
  • Anonymous
  • Sign in
  • Create
  • Ask a question
  • Spaces
  • Default
  • Help Room
  • META
  • Moderators
  • Explore
  • Topics
  • Questions
  • Users
  • Badges