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

Fetch the signing salt for the web socket connections from the config #1721

Merged
merged 1 commit into from
Dec 31, 2024

Conversation

joshk
Copy link
Collaborator

@joshk joshk commented Dec 28, 2024

This approach is taken from https://hexdocs.pm/phoenix/Phoenix.Endpoint.html#socket/3-connect-info

Additionally, session_config may be a MFA, such as {MyAppWeb.Auth, :get_session_config, []}, 
to allow loading config in runtime.

This allows for the signing salt to not be published and shared between all running NervesHub installs.

This approach is taken from https://hexdocs.pm/phoenix/Phoenix.Endpoint.html#socket/3-connect-info

```
Additionally, session_config may be a MFA, such as {MyAppWeb.Auth, :get_session_config, []}, to allow loading config in runtime.
```

This allows for the signing salt to not be published and shared between all running NervesHub installs.
Copy link
Contributor

@nshoes nshoes left a comment

Choose a reason for hiding this comment

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

🚀

@joshk joshk merged commit 1378bb2 into main Dec 31, 2024
2 checks passed
@joshk joshk deleted the fetch-signing-salt-from-config branch December 31, 2024 00:35
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.

2 participants