> [!CAUTION]
> You are currently viewing version 1.16 of the Apigee hybrid documentation. For more information, see [Supported versions](https://docs.cloud.google.com/apigee/docs/hybrid/supported-platforms.md.txt#supported-versions).

<button class="button button-with-icon cloud-select-dropdown__button button-primary" aria-haspopup="true">Version 1.16 </button>

- Supported versions:
- [v1.17 (latest)](https://docs.cloud.google.com/apigee/docs/hybrid/v1.17/configure-seccomp-profiles.md.txt)
- [v1.16](https://docs.cloud.google.com/apigee/docs/hybrid/v1.16/configure-seccomp-profiles.md.txt)
- [v1.15](https://docs.cloud.google.com/apigee/docs/hybrid/v1.15/configure-seccomp-profiles.html)
- [v1.14](https://docs.cloud.google.com/apigee/docs/hybrid/v1.14/configure-seccomp-profiles.html)
- [List of supported versions](https://docs.cloud.google.com/apigee/docs/hybrid/supported-platforms.md.txt#supported-versions)
- Unsupported versions:
- [v1.13](https://docs.cloud.google.com/apigee/docs/hybrid/v1.13/configure-seccomp-profiles.html)
- [v1.12](https://docs.cloud.google.com/apigee/docs/hybrid/v1.12/configure-seccomp-profiles.html)
- [v1.11](https://docs.cloud.google.com/apigee/docs/hybrid/v1.11/configure-seccomp-profiles.html)
- [v1.10](https://docs.cloud.google.com/apigee/docs/hybrid/v1.10/configure-seccomp-profiles.html)
- [v1.9](https://docs.cloud.google.com/apigee/docs/hybrid/v1.9/configure-seccomp-profiles.html)
- [v1.8](https://docs.cloud.google.com/apigee/docs/hybrid/v1.8/configure-seccomp-profiles.html)
- [v1.7](https://docs.cloud.google.com/apigee/docs/hybrid/v1.7/configure-seccomp-profiles.html)
- [v1.6](https://docs.cloud.google.com/apigee/docs/hybrid/v1.6/configure-seccomp-profiles.html)
- [v1.5](https://docs.cloud.google.com/apigee/docs/hybrid/v1.5/configure-seccomp-profiles.html)
- [v1.4](https://docs.cloud.google.com/apigee/docs/hybrid/v1.4/configure-seccomp-profiles.html)
- [v1.3](https://docs.cloud.google.com/apigee/docs/hybrid/v1.3/configure-seccomp-profiles.html)
- [v1.2](https://docs.cloud.google.com/apigee/docs/hybrid/v1.2/configure-seccomp-profiles.html)
- [v1.1](https://docs.cloud.google.com/apigee/docs/hybrid/v1.1/configure-seccomp-profiles.html)

This document describes how to configure Kubernetes Seccomp (Secure Computing Mode) profiles for Apigee hybrid pods to enhance security by restricting the system calls (syscalls) that containers are allowed to make.

## About Seccomp profiles in Kubernetes

Seccomp is a Linux kernel security feature that limits the system calls a process can make. When used with Kubernetes, you can apply Seccomp profiles to a pod's `securityContext` to restrict the syscalls available to its containers. This helps reduce the attack surface of the container and mitigates the risk of container breakouts or privilege escalation by enforcing the principle of least privilege.

For more information on Seccomp in Kubernetes, see [Secure Computing (Seccomp)](https://kubernetes.io/docs/tutorials/security/seccomp/) in the Kubernetes documentation.

In hybrid, Seccomp profiles are **not enabled by default** . You can choose to apply a Seccomp profile to hybrid components by adding the `seccompProfile` object to your `overrides.yaml` file.

## Configuring Seccomp profiles

You can apply Seccomp profiles globally, per environment, or per component in your `overrides.yaml` file by adding the `securityContext.seccompProfile` configuration block. hybrid supports the following Seccomp profile types:

- **`RuntimeDefault`:** The default profile specified by the container runtime. This is the recommended option, as it provides a reasonable level of security while maintaining compatibility for most workloads.
- **`Unconfined`:** Applies no Seccomp restrictions to the pod. This is the least secure option and should be used with caution.

> [!NOTE]
> **Note:** The `Localhost` profile type is not supported in this release of hybrid.

### Configuration precedence

You can set the `seccompProfile` at the following levels in `overrides.yaml`. Component-level settings take precedence over environment-level settings, and environment-level settings take precedence over global settings:

1. **Component level:** Applies to a specific component (for example, `runtime` or `cassandra`).
2. **Environment level:** Applies to all components within a specific environment defined in the `envs[]` array, unless overridden at the component level.
3. **Global level:** Applies to all components in the cluster, unless overridden at the environment or component level.

### Examples

#### Global configuration

To apply the `RuntimeDefault` Seccomp profile to all components that do not have an environment- or component-level override, add the following to the top level of your `overrides.yaml`:

```yaml
securityContext:
  seccompProfile:
    type: RuntimeDefault
```

#### Environment configuration

To apply the `RuntimeDefault` Seccomp profile to all components in a specific environment, add the configuration under the `envs[]` element:

```yaml
envs:
  - name: "my-environment"
    securityContext:
      seccompProfile:
        type: RuntimeDefault
    ...
```

#### Component configuration

To apply the `RuntimeDefault` Seccomp profile to a specific component (for example, the runtime component), add the configuration under that component:

```yaml
runtime:
  securityContext:
    seccompProfile:
      type: RuntimeDefault
...
```