---
title: The registry certificate files should have read-only or stricter permissions
description: Datadog, the leading service for cloud-scale monitoring.
breadcrumbs: >-
  Docs > Datadog Security > OOTB Rules > The registry certificate files should
  have read-only or stricter permissions
---

> For the complete documentation index, see [llms.txt](https://docs.datadoghq.com/llms.txt).

# The registry certificate files should have read-only or stricter permissions
Classification:complianceFramework:cis-dockerControl:3.8 
## Description{% #description %}

The registry certificates should have mode 444 or stricter.

## Rationale{% #rationale %}

The certificates under `/etc/docker/certs.d` decide which registries Docker trusts and how it authenticates to them. Mode 444 or stricter keeps everyone from writing it.

## Audit{% #audit %}

Show the mode of every file in the registry directories:

```bash
find /etc/docker/certs.d -type f -exec stat -c '%n %a' {} +
```

Datadog checks the entries of the registry directories of `/etc/docker/certs.d`, and a linked certificate by its target. It passes the rule when every entry has mode 444 or stricter, fails it when one has a less strict mode, and reports it not applicable when there is none.

## Remediation{% #remediation %}

Set the mode of every certificate file:

```bash
find /etc/docker/certs.d -type f -exec chmod 444 {} +
```

## Impact{% #impact %}

None.

## Default value{% #default-value %}

The administrator creates the registry certificates, with the owner and mode of the copy.

## References{% #references %}

1. [https://docs.docker.com/registry/insecure/](https://docs.docker.com/registry/insecure/)
