Repository navigation
Offline Pure JWT Guest Token: Best practices for Secret generation, storage, and BFF vs Superset responsibility #45444
Replies: 2 comments
|
Yes—direct signing in your BFF is an explicitly documented alternative in the Embedded SDK README. For the default HS256 configuration:
Also match The current configuration and security manager show the signing/verification settings. Check them against your deployed release, especially if you enable additional guest-token validation or revocation settings. AI-generated; checked against the linked official documentation and source, not tested against your deployment. |
|
Here is the breakdown of best practices for the offline pure JWT guest token architecture: 1. Role Division (BFF vs Superset)Your proposed architecture is the recommended enterprise pattern.
2. Payload Schema Distinction (
|
Uh oh!
There was an error while loading. Please reload this page.
Hi Superset Community,
We are embedding Superset dashboards into an Angular portal using @superset-ui/embedded-sdk and the offline Pure JWT Guest Token approach (GUEST_TOKEN_JWT_SECRET).
Our application backend (BFF in Node.js) generates the guest tokens to enforce user-specific Row Level Security (RLS) without slow REST API calls.
We would appreciate clarification on standard best practices:
Role Division: Is it standard practice for the application backend (BFF) to mint and cryptographically sign the guest token, while Superset only acts as the verifier?
Secret Configuration: Does GUEST_TOKEN_JWT_SECRET strictly need to be configured in both the Superset instance (superset_config.py) and the application backend (BFF)?
Secret Generation: Is a 256-bit CSPRNG hex string (openssl rand -hex 32) the recommended format for this secret, and should each environment (QA, UAT, Prod) have a unique secret?
Vault Storage: In cloud deployments, is storing this secret in a vault (e.g., Azure Key Vault / AWS Secrets Manager) and injecting it into both Superset and the BFF the recommended pattern?
Thanks for your guidance!
All reactions