istio.io/istio@v0.0.0-20240520182934-d79c90f27776/tests/integration/security/fuzz/backends/apache/apache.yaml (about)

     1  # Copyright Istio Authors
     2  #
     3  # Licensed under the Apache License, Version 2.0 (the "License");
     4  # you may not use this file except in compliance with the License.
     5  # You may obtain a copy of the License at
     6  #
     7  #    http://www.apache.org/licenses/LICENSE-2.0
     8  #
     9  # Unless required by applicable law or agreed to in writing, software
    10  # distributed under the License is distributed on an "AS IS" BASIS,
    11  # WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
    12  # See the License for the specific language governing permissions and
    13  # limitations under the License.
    14  
    15  apiVersion: v1
    16  kind: ConfigMap
    17  metadata:
    18    name: public-html
    19  data:
    20    secret.html: |
    21      <!DOCTYPE html>
    22      <html lang="en">
    23      <body>
    24      secret_data_leaked
    25      </body>
    26      </html>
    27  ---
    28  apiVersion: v1
    29  kind: ServiceAccount
    30  metadata:
    31    name: apache
    32  ---
    33  apiVersion: v1
    34  kind: Service
    35  metadata:
    36    name: apache
    37    labels:
    38      app: apache
    39  spec:
    40    ports:
    41    - name: http
    42      port: 8080
    43      targetPort: 80
    44    selector:
    45      app: apache
    46  ---
    47  apiVersion: apps/v1
    48  kind: Deployment
    49  metadata:
    50    name: apache
    51  spec:
    52    replicas: 1
    53    selector:
    54      matchLabels:
    55        app: apache
    56    template:
    57      metadata:
    58        labels:
    59          app: apache
    60      spec:
    61        serviceAccountName: apache
    62        containers:
    63        - image: httpd:2.4.46
    64          imagePullPolicy: IfNotPresent
    65          name: apache
    66          ports:
    67          - containerPort: 80
    68          volumeMounts:
    69            - name: public-html
    70              mountPath: /usr/local/apache2/htdocs/private/
    71        volumes:
    72          - name: public-html
    73            configMap:
    74              name: public-html