Question 11

You are tasked with securing a Kubernetes cluster where sensitive data is stored in ConfigMaps- The ConfigMaps are accessed by various applications running in pods, some of which are located in the 'default' namespace. You need to prevent unauthorized access to these ConfigMaps
How would you leverage Role-Based Access Control (R8AC) to restrict access to ConfigMaps, ensuring only authorized pods in the 'default namespace can access specific ConfigMaps?

Question 12

Your Kubernetes cluster iS running a web application that requires access to a database hosted on an external Cloud provider. Describe how you can secure the connection between the application and the database using TLS/SSL encryption and identity-based authentication.

Question 13

SIMULATION
Using the runtime detection tool Falco, Analyse the container behavior for at least 30 seconds, using filters that detect newly spawning and executing processes store the incident file art /opt/falco-incident.txt, containing the detected incidents. one per line, in the format
[timestamp],[uid],[user-name],[processName]
  • Question 14

    You are tasked with securing a Kubernetes cluster that runs sensitive workloads. You need to implement a mechanism to enforce least privilege access for all pods in the cluster.

    Question 15

    SIMULATION
    Analyze and edit the given Dockerfile
    FROM ubuntu:latest
    RUN apt-get update -y
    RUN apt-install nginx -y
    COPY entrypoint.sh /
    ENTRYPOINT ["/entrypoint.sh"]
    USER ROOT
    Fixing two instructions present in the file being prominent security best practice issues Analyze and edit the deployment manifest file apiVersion: v1 kind: Pod metadata:
    name: security-context-demo-2
    spec:
    securityContext:
    runAsUser: 1000
    containers:
    - name: sec-ctx-demo-2
    image: gcr.io/google-samples/node-hello:1.0
    securityContext:
    runAsUser: 0
    privileged: True
    allowPrivilegeEscalation: false
    Fixing two fields present in the file being prominent security best practice issues Don't add or remove configuration settings; only modify the existing configuration settings Whenever you need an unprivileged user for any of the tasks, use user test-user with the user id 5487