Security
Set a strong password
Make sure your password has 8 to 16 characters, is difficult to guess, and contains a mixture of uppercase, lowercase, and non-alphabetic characters.
Restrict P4 Server access to your client workspace root directory
P4 Server only needs access to the file revisions in your workspace. Access can be confined to the workspace by setting the P4CLIENTPATH environment variable to the root directory of your workspace. The P4CONFIG environment variable can be used to make that automatically apply whenever P4 client applications, such as P4 and P4V, use the workspace. Follow the steps for your operating system.
| Windows | Linux and macOS |
|---|---|
|
|
By default, p4 client prevents syncing or submitting files that could modify P4ENVIRO or P4CONFIG targets. This helps protect against a malicious server writing a client-side configuration that could execute arbitrary commands through settings such as P4LOGINSSO, P4MERGE, or P4DIFF.
To learn more, see P4_port_SYSTEMIGNORE.
For additional protection, use P4CLIENTPATH to limit where the client can write files.
Contact your administrator about authentication features
-
Ticket based authentication: the server configurable must be set to 4 or higher to protect multi-server and replicated environments.
-
SSL/TLS connections to connect to an SSL/TLS-enabled server. If SSL/TLS is in use, you should only accept the fingerprint shown when
p4 trustis run after the administrators has validated that it is correct. -
Integration with an identity provider through P4 AS and multi-factor authentication through your identity provider (IdP). To learn more, see P4 Authentication Service Documentation.
-
The Helix MFA app, which should only be used when your password store and your MFA service are separated, such as using LDAP as your password store with Okta as your MFA service. To learn more, see Multi-factor authentication in the P4 Server Administration Documentation.