-
-
Notifications
You must be signed in to change notification settings - Fork 11
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
[updatecli] Track GitHub SSH in bound IPs allowed from our controllers and agents #4398
Comments
Update: jenkins-infra/shared-tools#160 updates the attribute Next steps include tracking the list of ips in |
Update: jenkins-infra/shared-tools#160 stores the GitHub The solution has been tested locally with success
Since all points related to this issue have been addressed, we can close this issue. |
Good job! Both jenkins-infra/shared-tools#160 and jenkins-infra/shared-tools#161 have been merged! Alas, jenkins-infra/shared-tools#160 did fail to deploy (despite the extensive testing) with errors like the following:
=> Proposal: we have to filter out the IPv6 and only keep the IPv4. We already have this kind of filtering in "pure" Terraform (see here: https://github.com/jenkins-infra/terraform-aws-sponsorship/blob/a43bb51d344122074c5a705ad6fa4ea08486242c/locals.tf#L40-L48) which mean no need to change the updatecli manifest or the
|
jenkins-infra/shared-tools#162 applied with success 👏 |
Service(s)
cert.ci.jenkins.io, ci.jenkins.io, infra.ci.jenkins.io, release.ci.jenkins.io, trusted.ci.jenkins.io
Summary
In https://github.com/jenkins-infra/shared-tools/blob/3612af5941ad4f991dd5f731e91c27c1394f0477/terraform/modules/azure-jenkinsinfra-azurevm-agents/main.tf#L81, we define a network firewall rule which allow outbound SSH from our VM agents to any SSH server.
We want to restrict this list to only the GitHub
git
endpoints to avoid cloning repositories from other sources.This will also be needed soon in the new ci.jenkins.io AWS instance.
destination_address_prefix
todestination_address_prefixes
(include the values). See its doc at https://registry.terraform.io/providers/hashicorp/azurerm/latest/docs/resources/network_security_rule#destination_address_prefixes-1.git
)Reproduction steps
No response
The text was updated successfully, but these errors were encountered: