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

Create a new Bearer Token #338

Open
jahnavisana2812 opened this issue May 8, 2024 · 3 comments
Open

Create a new Bearer Token #338

jahnavisana2812 opened this issue May 8, 2024 · 3 comments
Labels
documentation Improvements or additions to documentation

Comments

@jahnavisana2812
Copy link

Is there any method to create our own bearer token instead of using the default bearer token?

@jahnavisana2812 jahnavisana2812 added the documentation Improvements or additions to documentation label May 8, 2024
@J0
Copy link
Contributor

J0 commented May 8, 2024

Hey @jahnavisana2812

Thanks for the query - quick check - are you self hosting? I haven't tried this but I think the token should be a regular JWT so if I'm not mistaken you should be able to create a new token and sign it with the JWT secret set

A tool like jwt.io might help.

Let me know if that works

@jahnavisana2812
Copy link
Author

jahnavisana2812 commented May 8, 2024

Yeah self-hosting on kubernetes with self-hosted postgres.So these are the default variables I found for the yaml.What all values can be changed?

          env:
            - name: SECRET_KEY_BASE
              value: '12345678901234567890121234567890123456789012345678903212345678901234567890123456789032123456789012345678901234567890323456789032'
            - name: VAULT_ENC_KEY
              value: '12345678901234567890123456789032'          
            - name: API_JWT_SECRET
              value: dev
            - name: METRICS_JWT_SECRET
              value: dev
            - name: REGION
              value: local
            - name: ERL_AFLAGS
              value: -proto_dist inet_tcp
             ```

@J0
Copy link
Contributor

J0 commented May 8, 2024

I don't quite have the time to try atm (earliest would be weekend) but I think you can change ENC_KEY, API_JWT_SECRET, and METRICS_JWT_SECRET so long as you use bearer tokens which are appropriately signed.

If it helps, you could possibly paste the errors here and I'm happy ot take a look when a slot frees up or perhaps team might jump in when free

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
documentation Improvements or additions to documentation
Projects
None yet
Development

No branches or pull requests

2 participants