{"id":23872086,"url":"https://github.com/eddiewebb/circleci-dmz-orb","last_synced_at":"2025-09-08T21:32:27.956Z","repository":{"id":52668717,"uuid":"156712149","full_name":"eddiewebb/circleci-dmz-orb","owner":"eddiewebb","description":" Allows CircleCI builds to access private network services over a intermediate jump host using SSH port forwarding.","archived":false,"fork":false,"pushed_at":"2021-04-21T17:30:50.000Z","size":43,"stargazers_count":17,"open_issues_count":2,"forks_count":7,"subscribers_count":1,"default_branch":"master","last_synced_at":"2025-04-09T08:13:27.484Z","etag":null,"topics":["circleci","circleci-orbs"],"latest_commit_sha":null,"homepage":"https://circleci.com","language":"Shell","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":null,"status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/eddiewebb.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":null,"code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null}},"created_at":"2018-11-08T13:36:48.000Z","updated_at":"2023-05-15T15:30:56.000Z","dependencies_parsed_at":"2022-08-22T03:21:20.136Z","dependency_job_id":null,"html_url":"https://github.com/eddiewebb/circleci-dmz-orb","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/eddiewebb/circleci-dmz-orb","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/eddiewebb%2Fcircleci-dmz-orb","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/eddiewebb%2Fcircleci-dmz-orb/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/eddiewebb%2Fcircleci-dmz-orb/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/eddiewebb%2Fcircleci-dmz-orb/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/eddiewebb","download_url":"https://codeload.github.com/eddiewebb/circleci-dmz-orb/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/eddiewebb%2Fcircleci-dmz-orb/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":274231461,"owners_count":25245625,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","status":"online","status_checked_at":"2025-09-08T02:00:09.813Z","response_time":121,"last_error":null,"robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":true,"can_crawl_api":true,"host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["circleci","circleci-orbs"],"created_at":"2025-01-03T15:19:34.432Z","updated_at":"2025-09-08T21:32:27.637Z","avatar_url":"https://github.com/eddiewebb.png","language":"Shell","funding_links":[],"categories":[],"sub_categories":[],"readme":"# circleci-dmz-orb\n\nAllows CircleCI builds to access private network services over a intermediate jump host using SSH port forwarding.\n\n\n![Image showing traffic flow from CircleCI, through Jump Host to target server on private network](/assets/bastion.png)\n\n**Note**: port 3306 represents the local port, in this example for a DB connection, but can be any available port.\n\n## Examples\n\nFull usage examples can be found under the `examples` key in the [orb's source](/src/orb.yml#L67)\n\n```\nversion: 2.1\n\norbs:\n  dmz: eddiewebb/dmz@volatile\n\nworkflows:\n  test_all:\n    jobs:\n      - build\n      - build_key_path\n      - build_key_value\n      - build_key_variable\n\njobs:\n  build: # this job uses ssh-keyscan to dynamically trust public key of bastion host\n    docker:\n      - image: circleci/node:10\n    steps:\n      - checkout\n      - dmz/open_tunnel:\n          local_port: \"9001\"\n          target_host: \"104.154.89.105\"\n          target_port: \"80\"\n          bastion_user: ubuntu\n          bastion_host: ec2-18-191-19-150.us-east-2.compute.amazonaws.com \n      # and simply confirm that accessing local port resolves the target (in this case an HTTP server)\n      - run: curl localhost:9001\n  \n  build_key_path: #this job uses a *public* key file within the repo to be explicitly trusted\n    docker:\n      - image: circleci/node:10\n    steps:\n      - checkout\n      - dmz/open_tunnel:\n          local_port: \"9001\"\n          target_host: \"104.154.89.105\"\n          target_port: \"80\"\n          bastion_user: ubuntu\n          bastion_host: ec2-18-191-19-150.us-east-2.compute.amazonaws.com\n          bastion_public_key: bastion.pub\n      # and simply confirm that accessing local port resolves the target (in this case an HTTP server)\n      - run: curl localhost:9001\n  \n  build_key_value: # this job uses a public key string value to trust bastion explicitly\n    docker:\n      - image: circleci/node:10\n    steps:\n      - checkout\n      - dmz/open_tunnel:\n          local_port: \"9001\"\n          target_host: \"104.154.89.105\"\n          target_port: \"80\"\n          bastion_user: ubuntu\n          bastion_host: ec2-18-191-19-150.us-east-2.compute.amazonaws.com\n          bastion_public_key: 'ecdsa-sha2-nistp256 AAAAE2VjZHNhLXNoYTItbmlzdHAyNTYAAAAIbmlzdHAyNTYAAABBBEQonlo27Q6jHMBHm7FczYsVbSDMMejUCZmSTcloE2DrDNfL/fzbzNlP5Xk8MxqRfjrPEsrlvRlyNYSxDLVA+0g='\n      # and simply confirm that accessing local port resolves the target (in this case an HTTP server)\n      - run: curl localhost:9001\n  \n  build_key_variable: # this job uses a public key string value to trust bastion explicitly\n    docker:\n      - image: circleci/node:10\n    steps:\n      - checkout\n      - dmz/open_tunnel:\n          local_port: \"9001\"\n          target_host: \"104.154.89.105\"\n          target_port: \"80\"\n          bastion_user: ubuntu\n          bastion_host: ec2-18-191-19-150.us-east-2.compute.amazonaws.com\n          bastion_public_key: ${BASTION_PUBLIC_KEY}\n      # and simply confirm that accessing local port resolves the target (in this case an HTTP server)\n      - run: curl localhost:9001\n```\n\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Feddiewebb%2Fcircleci-dmz-orb","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Feddiewebb%2Fcircleci-dmz-orb","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Feddiewebb%2Fcircleci-dmz-orb/lists"}