DXR is a code search and navigation tool aimed at making sense of large projects. It supports full-text and regex searches as well as structural queries.

Git (397f3d396f)

VCS Links

Line Code
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 118 119 120 121 122 123 124 125 126 127 128 129 130 131 132 133 134 135 136 137 138 139 140 141 142 143 144 145 146 147 148 149 150 151 152 153 154 155 156 157 158 159 160 161 162 163 164 165 166 167 168 169 170 171 172 173 174 175 176 177 178 179 180 181 182 183 184 185 186 187 188 189 190 191 192 193 194 195 196 197 198 199 200 201 202 203 204 205 206 207 208 209 210 211 212 213 214 215 216 217 218 219 220 221 222 223 224 225 226 227 228 229 230 231 232 233 234 235 236 237 238 239 240 241 242 243 244 245 246 247 248 249 250 251 252 253 254 255 256 257 258 259 260 261 262 263 264 265 266 267 268 269 270 271 272 273 274 275 276 277 278 279 280 281 282 283 284 285 286 287 288 289 290 291 292 293 294 295 296 297 298 299 300 301 302 303 304 305 306 307 308 309 310 311 312 313 314 315 316 317 318 319 320 321 322 323 324 325 326 327 328 329 330 331 332 333 334 335 336 337 338 339 340 341 342 343 344 345 346 347 348 349 350 351 352 353 354 355 356 357 358 359 360 361 362 363 364 365 366 367 368 369 370 371 372 373 374 375 376 377 378 379 380 381 382 383 384 385 386 387 388
# Macros that can be included below; see yaml_includes.py.  Be careful in applying these:
# the include processor doesn't automatically flatten lists or anything like that.
includes:

    # ping is allowed from anywhere in just about every SG
    global-ping:
        proto: icmp
        ports: [-1]
        hosts:
          - 0.0.0.0/0

    # most outgoing flows are completely open
    global-any:
        proto: -1
        hosts:
          - 0.0.0.0/0

    jumphost-admin-access:
        proto: tcp
        ports: [22, 3389, 5900]
        hosts:
          - rejh1.srv.releng.mdc1.mozilla.com  # 10.49.48.100
          - rejh2.srv.releng.mdc1.mozilla.com  # 10.49.48.101
          - rejh1.srv.releng.mdc2.mozilla.com  # 10.51.48.100
          - rejh2.srv.releng.mdc2.mozilla.com  # 10.51.48.101

    nagios-nrpe:
        proto: tcp
        ports: [5666]
        hosts:
          - nagios1.private.releng.mdc1.mozilla.com
          - nagios1.private.releng.mdc2.mozilla.com

    outbound-http-https:
        proto: tcp
        ports: [80,443]
        hosts:
            - 0.0.0.0/0

    outbound-git:
        proto: tcp
        ports: [9418,22]  # N.B. allows SSH too
        hosts:
            - 192.30.252.0/22 # github (https://api.github.com/meta)
            - 198.145.11.235/32  # codeaurora

    outbound-amqp-amqps:
        proto: tcp
        ports: [5671, 5672]
        hosts:
            - orange-antelope.rmq.cloudamqp.com
            - orange-antelope-01.rmq.cloudamqp.com
            - orange-antelope-02.rmq.cloudamqp.com
            - orange-antelope-03.rmq.cloudamqp.com

    outbound-stun-tcp:
        proto: tcp
        ports: [42]
        hosts:
            - 23.21.150.121/32
            - expo.mit.edu
            - 216.93.246.14/32

    outbound-stun-udp:
        proto: udp
        ports: [42]
        hosts:
            - 23.21.150.121/32
            - expo.mit.edu
            - 216.93.246.14/32

    outbound-carbon:
        proto: tcp
        ports: [2003]
        hosts:
            - 0.0.0.0/0

    outbound-irc:
        proto: tcp
        ports: [6697]
        hosts:
            - 54.72.42.192/32
            - 54.219.165.167/32
            - 54.85.60.193/32
            - 63.245.216.214/32

    outbound-ntp:
        proto: udp
        ports: [123]
        hosts:
            - 0.0.0.0/0

    outbound-papertrail:
        proto: tcp
        ports: [45266]
        hosts:
            - 67.214.208.0/20
            - 173.247.96.0/19

    outbound-mozilla:
        # all outbound traffic to mozilla nets is filtered at the destination
        proto: -1
        hosts:
            # Private IP space
            - 10.0.0.0/8
            # Mozilla's public IP space
            - 63.245.208.0/20

    # network aliases:
    build-usw2: 10.132.52.0/22
    test-usw2: 10.132.56.0/22
    test2-usw2: 10.132.156.0/22
    test3-usw2: 10.132.40.0/21
    test4-usw2: 10.132.60.0/22
    try-usw2: 10.132.64.0/22
    build-use1: 10.134.52.0/22
    build2-use1: 10.134.164.0/24
    test-use1: 10.134.56.0/22
    test2-use1: 10.134.156.0/22
    test3-use1: 10.134.40.0/21
    test4-use1: 10.134.60.0/22
    test5-use1: 10.134.160.0/22
    try-use1: 10.134.64.0/22
    try2-use1: 10.134.165.0/24
    slave-vlans:
      - {include: build-usw2}
      - {include: test-usw2}
      - {include: test2-usw2}
      - {include: test3-usw2}
      - {include: test4-usw2}
      - {include: try-usw2}
      - {include: build-use1}
      - {include: build2-use1}
      - {include: test-use1}
      - {include: test2-use1}
      - {include: test3-use1}
      - {include: test4-use1}
      - {include: test5-use1}
      - {include: try-use1}
      - {include: try2-use1}

    # and port aliases
    buildbot-http-portrange: 8000-8999
    buildbot-rpc-portrange: 9000-9999

buildbot-master:
    description: security group for buildbot masters
    regions:
        us-west-1: vpc-7a7dd613
        us-west-2: vpc-cd63f2a4
        us-east-1: vpc-b42100df
    inbound:
        # generic stuff
        - include: jumphost-admin-access
        - include: nagios-nrpe
        - include: global-ping
    outbound:
        # TODO: bug 1210137
        - include: global-any

puppet-master:
    description: security group for puppet masters
    regions:
        us-west-1: vpc-7a7dd613
        us-west-2: vpc-cd63f2a4
        us-east-1: vpc-b42100df
    inbound:
        - proto: tcp
          ports: [443, 80, 8140]
          hosts:
            - 10.49.0.0/16
            - 10.51.0.0/16
            - 10.130.0.0/16
            - 10.132.0.0/16
            - 10.134.0.0/16
            - nagios1.private.releng.mdc1.mozilla.com
            - nagios1.private.releng.mdc2.mozilla.com

        # generic stuff
        - include: jumphost-admin-access
        - include: nagios-nrpe
        - include: global-ping
    outbound:
        # TODO: bug 1210137
        - include: global-any

# proxxy is configured per-region; these two stanzas should be kept parallel
proxxy-vpc-use1:
    description: security group for proxxy servers in use1
    regions:
        us-east-1: vpc-b42100df
    inbound:
        - proto: tcp
          ports: [80]
          hosts:
            - {include: build-use1}
            - {include: build2-use1}
            - {include: test-use1}
            - {include: test2-use1}
            - {include: test3-use1}
            - {include: test4-use1}
            - {include: test5-use1}
            - {include: try-use1}
            - {include: try2-use1}
            - nagios1.private.releng.mdc1.mozilla.com
            - nagios1.private.releng.mdc2.mozilla.com
        - include: jumphost-admin-access
        - include: nagios-nrpe
        - include: global-ping
    outbound:
        # TODO: bug 1210137
        - include: global-any

proxxy-vpc-usw2:
    description: security group for proxxy servers in usw2
    regions:
        us-west-2: vpc-cd63f2a4
    inbound:
        - proto: tcp
          ports: [80]
          hosts:
            - {include: build-usw2}
            - {include: test-usw2}
            - {include: test2-usw2}
            - {include: test3-usw2}
            - {include: test4-usw2}
            - {include: try-usw2}
            - nagios1.private.releng.mdc1.mozilla.com
            - nagios1.private.releng.mdc2.mozilla.com
        - include: jumphost-admin-access
        - include: nagios-nrpe
        - include: global-ping
    outbound:
        # TODO: bug 1210137
        - include: global-any

LogAggregators:
    description: Group for log aggregators and their load balancer
    regions:
        us-west-1: vpc-7a7dd613
        us-west-2: vpc-cd63f2a4
        us-east-1: vpc-b42100df
    inbound:
        - proto: tcp
          ports: [1514]
          hosts:
            - 10.130.0.0/16
            - 10.132.0.0/16
            - 10.134.0.0/16
            - nagios1.private.releng.mdc1.mozilla.com
            - nagios1.private.releng.mdc2.mozilla.com
        - include: jumphost-admin-access
        - include: nagios-nrpe
        - include: global-ping
    outbound:
        # TODO: bug 1210137
        - include: global-any

VCSSync:
    description: Group hg/git vcssync servers
    regions:
        us-west-1: vpc-7a7dd613
        us-west-2: vpc-cd63f2a4
        us-east-1: vpc-b42100df
    inbound:
        - include: jumphost-admin-access
        - include: nagios-nrpe
        - include: global-ping
    outbound:
        # TODO: bug 1210137
        - include: global-any

signing-worker:
    description: security group for signing workers
    regions:
        us-west-1: vpc-7a7dd613
        us-west-2: vpc-cd63f2a4
        us-east-1: vpc-b42100df
    inbound:
        - include: jumphost-admin-access
        - include: nagios-nrpe
        - include: global-ping
    outbound:
        # TODO: bug 1210137
        - include: global-any

addonworker:
    description: security group for addon_scriptworkers
    regions:
        us-east-1: vpc-b42100df
    inbound:
        - include: jumphost-admin-access
        - include: nagios-nrpe
        - include: global-ping
    outbound:
        - include: global-any

balrogworker:
    description: security group for balrogworkers
    regions:
        us-east-1: vpc-b42100df
        us-west-2: vpc-cd63f2a4
    inbound:
        - include: jumphost-admin-access
        - include: nagios-nrpe
        - include: global-ping
    outbound:
        - include: global-any

beetmoverworker:
    description: security group for beetmoverworkers
    regions:
        us-east-1: vpc-b42100df
        us-west-2: vpc-cd63f2a4
    inbound:
        - include: jumphost-admin-access
        - include: nagios-nrpe
        - include: global-ping
    outbound:
        - include: global-any

bouncerworker:
    description: security group for bouncer_scriptworkers
    regions:
        us-east-1: vpc-b42100df
    inbound:
        - include: jumphost-admin-access
        - include: nagios-nrpe
        - include: global-ping
    outbound:
        - include: global-any

pushapkworker:
    description: security group for pushapkworker
    regions:
        us-east-1: vpc-b42100df
    inbound:
        - include: jumphost-admin-access
        - include: nagios-nrpe
        - include: global-ping
    outbound:
        - include: global-any

pushsnapworker:
    description: security group for pushsnap_scriptworkers
    regions:
        us-east-1: vpc-b42100df
    inbound:
        - include: jumphost-admin-access
        - include: nagios-nrpe
        - include: global-ping
    outbound:
        - include: global-any

shipitworker:
    description: security group for shipitworkers
    regions:
        us-east-1: vpc-b42100df
    inbound:
        - include: jumphost-admin-access
        - include: nagios-nrpe
        - include: global-ping
    outbound:
        - include: global-any

binarytransparencyworker:
    description: security group for binary transparency worker
    regions:
        us-east-1: vpc-b42100df
        us-west-2: vpc-cd63f2a4
    inbound:
        - include: jumphost-admin-access
        - include: nagios-nrpe
        - include: global-ping
    outbound:
        - include: global-any

treescriptworker:
    description: security group for treescriptworker
    regions:
        us-east-1: vpc-b42100df
        us-west-2: vpc-cd63f2a4
    inbound:
        - include: jumphost-admin-access
        - include: nagios-nrpe
        - include: global-ping
    outbound:
        - include: global-any