Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Enable usage of previously backed up settings when starting new ACA container #871

Open
wants to merge 2 commits into
base: main
Choose a base branch
from

Conversation

iadgovuser29
Copy link
Collaborator

An environment variable can be given to the container that will cause the startup scripts to use backup settings rather than generate new ones on container launch.

Mount the settings to a location within the container and give the environment variable HIRS_USE_IMPORTED_ETC_HIRS the path to the mountpoint within the container to look for those settings.

If the container doesn't already have settings defined, it will ingest the files under that mountpoint- copy them to the default settings folder and reset permissions necessary for container services to read them.

The files on the host will not be affected.

Example usage from a linux ACA:

docker cp <existingaca>:/etc/hirs /backupOnHost
docker run -p 8443:8443 -v /backupOnHost:/backupInNewContainer -e HIRS_USE_IMPORTED_ETC_HIRS=/backupInNewContainer -dit ghcr.io/nsacyber/hirs/aca

@iadgovuser29 iadgovuser29 self-assigned this Nov 7, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants