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

20.09: Use $RUNTIME_DIRECTORY in TLS service scripts #74

Merged
merged 1 commit into from
Feb 19, 2021
Merged

20.09: Use $RUNTIME_DIRECTORY in TLS service scripts #74

merged 1 commit into from
Feb 19, 2021

Conversation

fgaz
Copy link
Collaborator

@fgaz fgaz commented Dec 27, 2020

$TMP may not persist across different service scripts (preStart,
start, postStart...), so successive phases may not see the results
of previous phases. Specifically,
nixcloud.TLS-acmeSuppliedPreliminary--post-start was not seeing the
files created by nixcloud.TLS-acmeSuppliedPreliminary-
-start due to
the combination of PrivateTmp and PermissionsStartOnly.

$RUNTIME_DIRECTORY persists across the execution of a service, so it
better fits the purpose of passing files between service phases.

Fixes #72

$TMP may not persist across different service scripts (preStart,
start, postStart...), so successive phases may not see the results
of previous phases. Specifically,
nixcloud.TLS-acmeSuppliedPreliminary-*-post-start was not seeing the
files created by nixcloud.TLS-acmeSuppliedPreliminary-*-start due to
the combination of PrivateTmp and PermissionsStartOnly.

$RUNTIME_DIRECTORY persists across the execution of a service, so it
better fits the purpose of passing files between service phases.

Fixes #72
@fgaz fgaz changed the title Use $RUNTIME_DIRECTORY in TLS service scripts 20.09: Use $RUNTIME_DIRECTORY in TLS service scripts Dec 27, 2020
@qknight qknight merged commit 2ed24bc into nixcloud:master Feb 19, 2021
@fgaz fgaz deleted the runtime-directory branch February 19, 2021 15:39
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

20.09: preliminary self-signed certificates fail to generate
2 participants