Create
cancel
Showing results for 
Search instead for 
Did you mean: 
Sign up Log in
Celebration

Earn badges and make progress

You're on your way to the next level! Join the Kudos program to earn points and save your progress.

Deleted user Avatar
Deleted user

Level 1: Seed

25 / 150 points

Next: Root

Avatar

1 badge earned

Collect

Participate in fun challenges

Challenges come and go, but your rewards stay with you. Do more to earn more!

Challenges
Coins

Gift kudos to your peers

What goes around comes around! Share the love by gifting kudos to your peers.

Recognition
Ribbon

Rise up in the ranks

Keep earning points to reach the top of the leaderboard. It resets every quarter so you always have a chance!

Leaderboard

Come for the products,
stay for the community

The Atlassian Community can help you and your team get more value out of Atlassian products and practices.

Atlassian Community about banner
4,556,421
Community Members
 
Community Events
184
Community Groups

Access a private pipe in ECR with OIDC?

I would like to host pipes in a private ECR repository.

 

I understand that I can access the images like so:

pipe: docker://my-ecr-repo/image:versionaws:
  access-key: $AWS_ACCESS_KEY_ID
  secret-key: $AWS_SECRET_ACCESS_KEY

I am wondering if there is an undocumented way to use OIDC instead.

1 answer

1 accepted

1 vote
Answer accepted
Igor Stoyanov
Atlassian Team
Atlassian Team members are employees working across the company in a wide variety of roles.
Sep 16, 2022

@Georg Duemlein  hi.

Pipes supports only public docker images.

For OIDC support check this pipe for implementation: aws-ecr-push-image

Regards, Igor

Is it correct that the `aws-ecr-push-image` example refers to using OIDC inside the pipe?

 

I figured I can use OIDC to pull a private ECR as a pipe like so:

- step:
name: 'PipeThing'
oidc: true
script:
- export AWS_ROLE_ARN=arn:aws:iam::123345:role/bitbucket-pipeline-role
- export AWS_WEB_IDENTITY_TOKEN_FILE=$(pwd)/web-identity-token
- echo $BITBUCKET_STEP_OIDC_TOKEN > $(pwd)/web-identity-token
- apt-get update && apt-get install -y awscli
- aws --version
- aws ecr get-login-password --region us-east-1 | docker login --username AWS --password-stdin 1234.dkr.ecr.us-somehwere-5.amazonaws.com
- pipe: docker:/my/image:lastest

 Would it be possible to get a feature request for pipes to support OIDC for private pipes?

Though I am not yet convinced I understand fully the difference between a pipe and an image for a step.

Suggest an answer

Log in or Sign up to answer
DEPLOYMENT TYPE
CLOUD
PERMISSIONS LEVEL
Site Admin
TAGS
AUG Leaders

Atlassian Community Events