Why enabling pipelines in a repository requires SSH setup?

Bitwise DEVS
Contributor
January 22, 2022

As far as I remember, you are not allowed to enable Bitbucket Pipelines in Cloud unless you enable SSH in Personal Settings. Why is such configuration is required or recommended?

1 answer

1 accepted

1 vote
Answer accepted
Pramodh M
Community Leader
Community Leader
Community Leaders are connectors, ambassadors, and mentors. On the online community, they serve as thought leaders, product experts, and moderators.
January 22, 2022

Hi @Bitwise DEVS

There's no setting like that!

Maybe your workspace is enforced to have 2FA in place which is causing this result

Here's a public repo I just tested it out without SSH Key --> Link here

BB1.png

May I know the Bitbucket pipelines you have enabled has some tasks related to SSH Authentication?

Thanks,
Pramodh

Bitwise DEVS
Contributor
January 22, 2022

Ohh yes, I do enable 2FA. Is that the whole reason? I do not have SSH authentication in my pipelines and its steps.

Bitwise DEVS
Contributor
January 22, 2022

@Pramodh M But to enable pipelines we still need to enable 2FA, so its related.

Pramodh M
Community Leader
Community Leader
Community Leaders are connectors, ambassadors, and mentors. On the online community, they serve as thought leaders, product experts, and moderators.
January 22, 2022

Yes, then 2FA is the reason!!

Like Bitwise DEVS likes this
Bitwise DEVS
Contributor
January 22, 2022

But why enabling pipelines need 2FA enable thus SSH setup became a requirements.

Pramodh M
Community Leader
Community Leader
Community Leaders are connectors, ambassadors, and mentors. On the online community, they serve as thought leaders, product experts, and moderators.
January 22, 2022

No @Bitwise DEVS 

We don't need a 2FA or SSH key to run pipelines!!

We need an SSH key in order to enable 2FA.

Can you please confirm whether you have added the SSH key?

Or try with adding an SSH Key and updating the 2FA setting, then work with repos you have in your workspace and all is working well and confirm once

Pramodh M
Community Leader
Community Leader
Community Leaders are connectors, ambassadors, and mentors. On the online community, they serve as thought leaders, product experts, and moderators.
January 22, 2022

Maybe your workspace admin has made it required for the repos in your workspace

Try enabling 2FA and then running the pipelines?

Bitwise DEVS
Contributor
January 22, 2022

My account is the owner and admin, I don't remember making it required in my repo, maybe because they were set to private.

Pramodh M
Community Leader
Community Leader
Community Leaders are connectors, ambassadors, and mentors. On the online community, they serve as thought leaders, product experts, and moderators.
January 22, 2022

Thanks @Bitwise DEVS 

Yep, @Theodora Boudale has given the reason in the thread!! This is it.

To prevent abuse from misusing the Pipelines feature, these are some pre-checks that they have implemented.

So go ahead and enable SSH Key, 2FA on your account which makes it secure!!

Let me know if you have need any clarification.

Thanks,
Pramodh

Pramodh M
Community Leader
Community Leader
Community Leaders are connectors, ambassadors, and mentors. On the online community, they serve as thought leaders, product experts, and moderators.
January 22, 2022

FYI 

I just created a Pipeline in my account with private access, I was able to run it.

May be if you are using the Bitbucket pipelines feature extensively, that is causing it to enable the SSH Keys

Bitwise DEVS
Contributor
January 22, 2022

Great, many thanks! This is a helpful clarification.

Like Pramodh M likes this

Suggest an answer

Log in or Sign up to answer
TAGS
AUG Leaders

Atlassian Community Events