circleci-orb icon indicating copy to clipboard operation
circleci-orb copied to clipboard

Allow to set circleci_ip_ranges to use known IP ranges

Open rickythefox opened this issue 2 years ago • 8 comments

CircleCI now provides a flag for using known IP ranges. This can be helpful when testing firewalled environments, e.g. staging environments. See https://circleci.com/docs/2.0/ip-ranges/. This is achieved by setting circleci_ip_ranges: true on the job.

My feature request is to enable this in the orb as an optional setting.

I can submit a PR if this is of interest.

rickythefox avatar Jul 30 '21 14:07 rickythefox

This feature would be very useful! It's currently blocking us from using the orb.

arvid-m avatar Sep 06 '21 15:09 arvid-m

would be very useful indeed, I'm about to stop using the orb because of this

vcmuner avatar Nov 11 '21 18:11 vcmuner

Is this still in progress? My team is looking to get this implemented for our runs, but we'd like to keep using the orb if possible.

Zach-Costa avatar Aug 26 '22 19:08 Zach-Costa

I would like to use this, but there seem to be no updates.

chiraggshah avatar Dec 09 '22 11:12 chiraggshah

I believe passing CircleCI params to the orb should work. Please try upgrading to v3.0.0 of the orb. Please comment if this is still occuring.

jennifer-shehane avatar Mar 01 '23 15:03 jennifer-shehane

Just realised I solved this problem in a different way and forgot my offer to submit a PR. It still stands if v3.0.0 does not solve the issue.

rickythefox avatar Mar 01 '23 16:03 rickythefox

I'm having this issue currently and am not sure how to pass this param to the orb. I am using an anchor to define the job and not able to pass it correctly. I'm not sure if this is just unsupported or if there is a syntax error. I'm receiving Unexpected argument(s): circleci_ip_ranges

james-luther avatar May 30 '23 21:05 james-luther

You can't pass circleci_ip_ranges to the cypress/run job (it'll throw the Unexpected argument... error) but instead would need to explicitly define your own jobs that call the same commands as cypress/run:

version: 2.1
orbs:
  cypress: cypress-io/[email protected]
jobs:
  run:
    executor: cypress/default
    circleci_ip_ranges: true
    steps:
      - cypress/install:
          working-directory: ./
      - cypress/run-tests:
          working-directory: ./
workflows:
  run-tests:
    jobs:
      - run

tmannherz avatar Mar 22 '24 15:03 tmannherz