Skip to content

Multi-Factor Authentication

CloudRepo supports multi-factor authentication (MFA) with a time-based one-time password (TOTP) from an authenticator app, and ten single-use backup codes. MFA is included on every plan.

The owner and every member who signs in with a password can set up MFA for their own account, at any time, without asking anyone. (Not for members on legacy Okta; see the note at the top.)

  1. Sign in to the admin portal. Click the person icon at the top right, then Your account security.

  2. On the Multi-factor authentication card, click Set up authenticator app. Tick I understand my password will no longer work for my builds. and click Set up authenticator app. In Confirm Your Identity, enter your password and click Confirm.

  3. Scan the QR code with your authenticator app, or type in the key under it. Enter the app’s code under Verification code and click Verify.

    Expected: ten backup codes.

  4. Save the codes where you can reach them without your phone, tick the box that says you saved them, and click the button under it.

    Expected: the card shows Enrolled.

Every later sign-in to the portal asks for a code from your authenticator app after your password.

Once you turn on a second factor, build tools and package managers cannot use your password. Use a repository token instead. A build tool that sends the password of a member who has a second factor gets the same answer as for a wrong password: a 401 Unauthorized that names no cause, because CloudRepo does not say who has a second factor. (Docker’s answer is the registry error UNAUTHORIZED, the same as for every credential it refuses.) This holds for Maven, Gradle, npm, pip, twine and Docker. (An organization that requires MFA refuses every password with its own sentence, as the section below says.) A repository token keeps working, and so do subscriber keys and your organization tokens.

Only the organization owner can do this. First move every pipeline that signs in with a member’s password to an organization token or a repository token.

  1. In the sidebar, click Security, then the Organization MFA policy card.

  2. Tick Require MFA for password logins.

    Expected: a dialog headed Enable MFA enforcement? that names the members whose credentials stop working in build tools once you confirm. Nothing is saved until you confirm. (Not for members on legacy Okta; see the note at the top.)

  3. Click Enable MFA enforcement. In Confirm Your Identity, enter the code from your authenticator app under Authenticator Code and click Confirm. If you have not set up MFA on your own account, the dialog asks for your password instead.

    Expected: the MFA Enforcement card shows Enabled.

In the portal. Every member who signs in with a password is asked to set up MFA at their next sign-in. They are not locked out: they confirm their builds use a repository token, set up an authenticator, enter a code, and carry on. This includes the owner. When you turn the requirement on, every member is signed out and signs in again. The owner is not signed out: the session that made the change, and the owner’s other sessions, keep working, and the requirement applies at the owner’s next sign-in. (Not for members on legacy Okta; see the note at the top.)

In build tools. A password is refused at every package door, with no grace period, and the build receives this (status 401):

Password authentication is disabled because MFA is required for this organization. Use a repository token instead.

Repository tokens, npm tokens, subscriber keys and your organization tokens are not affected. You create a repository token under Repository Tokens. The code is mfa_required.

A build can still succeed for up to a minute after you turn the requirement on. Wait a minute, then run it again.

While your organization requires MFA, nobody can remove their own second factor, the owner included (org_mfa_required). An owner who wants their own second factor off first turns the organization requirement off.

The owner clears Require MFA for password logins the same way they set it, including the identity check. An owner who has lost their authenticator cannot use a backup code at this step: the identity check takes a code from the authenticator. Get the factor back first (see If someone loses their authenticator), then clear the requirement.

Turning the requirement off does not sign anybody out, and nobody’s MFA is removed: every member who set up an authenticator keeps it, is still asked for a code at sign-in, and can turn their own MFA off again. Passwords work in build tools again within a minute, except for members who have a second factor.

Each backup code signs you in once when you do not have your authenticator. You get ten when you set MFA up, and CloudRepo shows them only that once.

If you are the organization owner, on Your account security click Regenerate Codes and enter the code from your authenticator app. Generating a new set invalidates the previous set completely. Save the new codes before you leave the page.

If you are a member, Regenerate Codes is not offered to you. To get a new set, ask your organization’s owner to reset your MFA (see below); you then set up your authenticator again and receive a new set of codes. If your organization does not require MFA and you still have your authenticator, you can instead turn MFA off with Disable my MFA, then set it up again. Admins and members who hold a Manage permission cannot.

Getting a new phone? Here is how to keep signing in.

First, move your accounts in your authenticator app. Your codes come with you, so nothing changes at sign-in.

  • Google Authenticator syncs your codes when you sign in to your Google Account in the app on the new phone.

Many authenticator apps can move your accounts to a new phone; check your app’s help.

If you can’t move your accounts, ask your organization’s owner to reset your MFA. At your next sign-in, you set up your authenticator app again on the new phone. (Not for members on legacy Okta; see the note at the top.)

If you are the organization owner, you reset your own MFA, unless your organization enforces single sign-on; then email support@cloudrepo.io. If someone loses their authenticator shows how.

If your organization does not require MFA and you are neither an Admin nor the holder of a Manage permission, you can also turn MFA off yourself with Disable my MFA on Your account security while you still have your old phone, then set it up again. (Not for members on legacy Okta; see the note at the top.)

If you still have a backup code, sign in with it.

If you are the organization owner, Your account security offers Reset authenticator app. It removes your authenticator and backup codes and ends every portal session you hold, including the one you reset from. At your next sign-in with your password, CloudRepo asks you to confirm your builds use a repository token, then to set up a new authenticator, and gives you new backup codes.

If you are a member, the owner resets your MFA (next section). You cannot do it yourself without your authenticator: turning MFA off takes a code from it, not a backup code.

If you have lost both your authenticator and your backup codes, the way back depends on your role. A member asks the organization’s owner to reset their MFA in the admin portal. An owner contacts support@cloudrepo.io: another administrator who manages users confirms the reset in the admin portal, and every administrator is emailed. The owner then resets their password with Forgot Password, and after 24 hours the reset completes at their first sign-in with the new password. If there is no other administrator who can confirm, support verifies the owner’s identity without relying on email, and the same steps apply: a 24-hour hold, then Forgot Password and a sign-in with the new password. Every administrator is emailed when support confirms the reset. Support never resets MFA on an email alone.

The owner resets a member’s MFA with Reset MFA in the User Enrollment Status table (Security, then Organization MFA policy), or with Reset MFA for this member on the member’s page under Users. Either one asks the owner to confirm their own identity first. The reset removes the member’s authenticator and backup codes and ends their portal sessions. For a member on the legacy Okta integration, a reset ends their sessions and does not ask them to set up MFA. After a reset, the member sets up MFA again at their next sign-in. If your organization does not require MFA, their password alone works again with Maven, npm and Python clients until they set up MFA again. (Members on legacy Okta: see the note at the top.)

If a reset reports it couldn’t finish, it may already have ended their sessions and removed their MFA. Run the reset again to finish it.

Both places read the same list, which holds every member CloudRepo has an authenticator for, however they set it up.

If the portal says your multi-factor authentication must be reset (mfa_reset_required), ask your organization’s owner to reset it.

If it says your second factor can’t be used here and you have no backup codes left (mfa_factor_unavailable_here), ask your organization’s owner to reset your MFA, or contact support.

Deleting a member from Users removes their MFA. If your organization uses Okta’s SCIM provisioning today, Okta removing or deactivating a member removes it too. Whoever is later given the same email address sets MFA up from scratch, and does not inherit the previous holder’s authenticator.

View as Markdown