Skip to content

Conversation

@malko
Copy link
Contributor

@malko malko commented Apr 21, 2025

  • ✨ Add secret and payload parameters to jwt helper
  • ✨ Add timestamps and timestampms helpers
    • Explicit seconds or milliseconds timestamps
    • Allow parameter for explicit datetime setting
  • 🐛 Fix hmac helpers not correctly replaced without parameters
  • ✅ Add unit tests for template helpers and one for full jwt generation

This is waited addition for supabase template update PR Dokploy/templates#76

malko added 5 commits April 21, 2025 15:53
- jwt without parameter now generate a real jwt
- keep length parameter as is for backward compatibility
- add secret and payload parameters
- payload properties iss, iat, exp are automaticly set if not provided
@malko malko requested a review from Siumauricio as a code owner April 21, 2025 14:18
@malko
Copy link
Contributor Author

malko commented Apr 21, 2025

@Siumauricio, I had some difficulties to get a proper dev environment working (problem related to failed compilation of node-gyp and connection to postgresql wich failed during migration process). I think that the code changed are relatively isolated and should work as intended but can't test more than running unit tests on my side.

Any help getting a proper environment setup will be appreciated if I need to make more PR in the future.

malko added a commit to malko/dokploy-templates that referenced this pull request Apr 21, 2025
@Siumauricio
Copy link
Contributor

Looks good, the tests are working, to run the dev enviroment just follow these steps https://github.com/Dokploy/dokploy/blob/canary/CONTRIBUTING.md, I will merge the changes in the next version and you can implement the changes in the supabase template.

@Siumauricio Siumauricio merged commit ade4b8d into Dokploy:canary Apr 26, 2025
malko added a commit to malko/dokploy-templates that referenced this pull request Apr 27, 2025
malko added a commit to malko/dokploy-templates that referenced this pull request May 8, 2025
malko added a commit to malko/dokploy-templates that referenced this pull request May 25, 2025
Siumauricio added a commit to Dokploy/templates that referenced this pull request May 28, 2025
* ⬆️ Update Supabase template to version 1.25.03

* 🐛 Fix url in mail pointing to kong

* ✨ Use new jwt helpers to generate unique jwts

* 📝 Update README to reflect new changes in helpers

 - related PR on dokploy Dokploy/dokploy#1749

* ✨ Add pre0.21.8 version of supabase template + use jwt generation in newer template

* 🔧 Add field dokploy_version for supabase templates

* ⬆️ Update supabase version to 1.25.04 for dokploy >=0.1.28

* 🐛 Fix logs in supabase by adding dynamic container names and modifying vector.yml

* ⬆️ Backport supabase 1.25.04 for dokploy < 0.21.8

* 📝 Add link to supabase self-hosting documentation in env file

* 🚚 Change container_name_prefix to include appName

* Update blueprints/pre0.21.8-supabase/template.toml

* Update blueprints/supabase/template.toml

* 🐛 Fix template using appname in older version of template

---------

Co-authored-by: Mauricio Siu <[email protected]>
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