# Copyright 2022 Google LLC
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
#     https://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to in writing, software
# distributed under the License is distributed on an "AS IS" BASIS,
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
# See the License for the specific language governing permissions and
# limitations under the License.

allowedPorts:
  - ports: 22 # SSH
    approved: false
  - ports: 80 # HTTP
    approved: true
  - ports: 443 # HTTPS
    approved: true
  - ports: 3306 # MySQL
    approved: false
  - ports: 8000-8999
    approved: true

allowedSourceRanges:
  - cidr: 10.0.0.0/8 # Example on-premise range
    approved: true
  - cidr: 35.191.0.0/16 # Load balancing & health checks
    approved: true
  - cidr: 130.211.0.0/22 # Load balancing & health checks
    approved: false
  - cidr: 35.235.240.0/20 # IAP source range
    approved: true

allowedDestinationRanges:
  - cidr: 10.0.0.0/8
    approved: true
  - cidr: 0.0.0.0/0
    approved: false

allowedNetworkTags:
  - tag: "*"
    approved: true

allowedServiceAccounts:
  - serviceAccount: "*"
    approved: true
