Skip to content

Docs on how to create and align secrets #126

Description

@xosofox

Hi there,

I'm struggeling to understand how we should set the values of

MERCURE_JWT_SECRET
MERCURE_PUBLISHER_JWT_KEY
MERCURE_SUBSCRIBER_JWT_KEY

In the docs for the bundle, MERCURE_JWT_SECRET is used in the examples.
In the docs and templates for frankenphp and mercure.rocks, the template uses MERCURE_PUBLISHER_JWT_KEY/..SUBSCRIBER..

Am I understanding correctly that these are two different ways (sync/async) to handle secrets? What is recommended?
What are the requirements for the keys/secrets to use? Am I correct that they do not go together?

It seems I cannot find the docs required. Either, they are well hidden or do not exist - which is a pitty because it seems to set the entry barrier higher for this to use.

If you can provide an explanation how "it should be used", I'm more than happy to feed that back into the corresponding docs via MR for future users.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions