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

Allow datastore key to be populated from a variable. #280

Open
wants to merge 3 commits into
base: master
Choose a base branch
from

Conversation

nmaludy
Copy link
Member

@nmaludy nmaludy commented Dec 22, 2020

Previously, if installing StackStorm in a multi-node environment, it would generate a new datastore key on every node.

This change allows the datastore key to be specified as a variable st2_datastore_key then propagated to each host.

By default, this variable is null and will result in a random key being generated (retaining same behavior).

@nmaludy nmaludy self-assigned this Dec 22, 2020
@pull-request-size pull-request-size bot added the size/S PR that changes 10-29 lines. Very easy to review. label Dec 22, 2020
Copy link
Contributor

@amanda11 amanda11 left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM - just a minor comment on the wording in the documentation.

README.md Outdated Show resolved Hide resolved
@nmaludy nmaludy force-pushed the feature/datastore-keys branch from b72aaee to 850e7ba Compare December 22, 2020 14:52
@nmaludy nmaludy requested a review from amanda11 December 22, 2020 14:55
Copy link
Contributor

@amanda11 amanda11 left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Looks great - thanks

become: yes
copy:
content: "{{ st2_datastore_key }}"
dest: "{{ st2_datastore_key_file }}"
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

When the content of the file changes we'll need to notify st2 to restart the services.
According to code below it's st2api, but I guess that's incomplete as more StackStorm services might be using the crypto key.

Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@armab added a restart to all of the st2 services

Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Restarting all the st2 services is impractical here. We need only specific services that are using st2 datastore key.
Can you please figure out which may use it?

@CLAassistant
Copy link

CLAassistant commented May 11, 2022

CLA assistant check
All committers have signed the CLA.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
feature size/S PR that changes 10-29 lines. Very easy to review.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

5 participants