User settings

As a user in Codefresh, you can manage your account by authorizing access to your Git provider accounts, and optionally, enabling access for Codefresh support.

  • Enable access for Codefresh support
    Optional. Enable access to your account for troubleshooting purposes.

  • Authorize Git providers
    The Git personal token is a user-specific access token, required to authenticate Git-based actions from Codefresh clients, per provisioned runtime.

    The authorization method depends on the Git provider and on what authorization has been set up by your account admin.

    If your admin has set up authentication with OAuth2, you can authorize access using OAuth2.
    Or, you can always generate a personal access token from your Git provider and then add the same to Codefresh to authorize access.

    If you have access to more than one runtime, you can use the same token for multiple runtimes.
    You must however authorize access individually for each runtime.


Enable access for Codefresh support

Enable Codefresh support personnel to access your user account. Access to your account is useful for visibility during troubleshooting.

You can disable this security setting at any time.

Codefresh personnel takes action only after confirmation from you, and all actions are audited.

  1. In the CSDP UI, go to User Settings.
  2. Enable Allow Codefresh support team to log in….

Enable access for Codefresh support

Enable access for Codefresh support

Authorize Git access in Codefresh

Authorize Git access with OAuth2 if your account admin has set up Codefresh as an OAuth application, or alternatively through personal access tokens from your Git provider.

Notes:
For OAuth2: The adminstrator pre-configures the permissions and expiry date. Once you supply your credentials for authorization, you are automatically directed to the Git Personal Tokens page.

Before you begin

Make sure you have:

  • For Bitbucket only, your Bitbucket account username
  • If needed, a personal access token from your Git provider with the required scopes:

How to

  1. In the Codefresh UI, go to User Settings.
  2. Select the runtime, and then do one of the following:
    • To add a token, select Add Token.
    • To update an existing token by replacing it with a new token, select Update Token.
  3. For OAuth2:

    If the application is not registered, the button is disabled. Contact your admin for help.

    • Click Authorize Access to GitHub.
    • Enter your credentials, and select Sign In.
    • Complete the verification if required, as when two-factor authentication is configured, for example.

For Git personal access tokens:

  • Expand Advanced authorization options.
  • For Bitbucket, enter your Bitbucket username.
  • In the Personal Access Token field, paste the token you generated.
  1. Click Add Token.
    In the Git Personal Access Tokens list, you can see that the new token is assigned to the runtime.

Generate GitHub personal access tokens

  1. Log in to your GitHub or GitHub Enterprise account.
  2. Select Settings > Developer Settings > Personal Access Tokens > Tokens (classic).
  3. Define the following:
    • Token name
    • Expiration date
    • Select scope: repo

GitHub personal access token scopes

GitHub personal access token scopes
  1. Copy the personal access token generated as you will need it to authorize access.

Generate GitLab personal access tokens

  1. Log in to your GitLab Cloud or Server account.
  2. Select User settings > Access tokens.
  3. Define the following:
    • Token name
    • Expiration date
    • Select these scopes: read_api, read_repository, write_repository

GitLab personal access token scopes

GitLab personal access token scopes
  1. Copy the personal access token generated as you will need it to authorize access.

Generate Bitbucket personal access tokens

  1. Log in to your Bitbucket Cloud or Server account.
  2. Select Personal Settings > App passwords.
  3. Define the Label. Select these scopes:
    • Permissions: Read
    • Workspace membership: Read
    • Repositories: Write

Bitbucket personal access token scopes

Bitbucket personal access token scopes
  1. Copy the personal access token generated as you will need it to authorize access.

Git tokens in Codefresh