Skip to content

Commit 6bd3a4e

Browse files
committed
Use IPManager for Azure Aagent Registry Access
Public Access to the internal docker registry is being removed. Access will soo have to be via EC2 internal IP or a public IP approved by IPManager. This commit ensures the Azure agent used by the conjur pipeline is registered with IPManager so can access the internal registry. Related: conjurinc/ops#857
1 parent ccd6771 commit 6bd3a4e

File tree

1 file changed

+8
-0
lines changed

1 file changed

+8
-0
lines changed

Jenkinsfile

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -375,6 +375,10 @@ pipeline {
375375

376376
steps {
377377
unstash 'version_info'
378+
// Grant access to this Jenkins agent's IP to AWS security groups
379+
// This is required for access to the internal docker registry
380+
// from outside EC2.
381+
grantIPAccess()
378382
sh(
379383
'summon -f ci/test_suites/authenticators_azure/secrets.yml ' +
380384
'ci/test authenticators_azure'
@@ -392,6 +396,10 @@ pipeline {
392396
cucumber_results*.json
393397
'''
394398
)
399+
// Remove this Agent's IP from IPManager's prefix list
400+
// There are a limited number of entries, so it remove it
401+
// rather than waiting for it to expire.
402+
removeIPAccess()
395403
}
396404
}
397405
}

0 commit comments

Comments
 (0)