// Module included in the following assemblies:
//
// microshift_running_applications/embed-microshift-offline-deploy.adoc

:_mod-docs-content-type: PROCEDURE
[id="microshift-embed-registry-auth-image-building_{context}"]
= Adding registry authentication to prepare for image building

[role="_abstract"]
After you have updated the blueprint, you must add authentication for the container registries to build the image with embedded {microshift-short} containers. To do this, update one of the systemd service files that are part of the image builder configuration.

.Prerequisites

* You have root-user access to your build host.
* Your build host meets the image builder system requirements.
* You have installed and set up image builder and the `composer-cli` tool.

.Procedure

. Create an `/etc/osbuild-worker/osbuild-worker.toml` directory and configuration file if they do not exist.

. Add a pull secret for authenticating to the registry by setting the `auth_file_path` in the `[containers]` section of the `/etc/osbuild-worker/osbuild-worker.toml` configuration file:
+
[source,terminal]
----
[containers]
auth_file_path = "/etc/osbuild-worker/pull-secret.json"
----

. Restart the host to apply configuration changes.
