Skip to content

sessions: JWT#19

Merged
rampage644 merged 5 commits into
mainfrom
DanCodedThis/jwt-sessions
Nov 19, 2025
Merged

sessions: JWT#19
rampage644 merged 5 commits into
mainfrom
DanCodedThis/jwt-sessions

Conversation

@DanCodedThis
Copy link
Copy Markdown
Contributor

@DanCodedThis DanCodedThis commented Nov 17, 2025

  • Added jwt token sessions.
  • There is no way to prolong the jwt token, once it's reached the snowflake client, without logining again. No matter if it's active or inactive, it will become expired.
  • So I just set it for 24 hours to solve it temporarily. Dbt should also login with every query.
  • We can't just send a set_auth header, because snowflake connector is not a browser (though it's worth checking).
  • There may be a session's endpoint like keep alive. Still, we don't support it now.
  • Needs some testing:
    • On lambda
    • Locally with on and off of the service

Comment thread crates/embucket-lambda/src/main.rs
Comment thread crates/api-snowflake-rest/src/server/error.rs Outdated
Comment thread crates/api-snowflake-rest/src/server/error.rs Outdated
Comment thread crates/embucket-lambda/src/main.rs
@DanCodedThis
Copy link
Copy Markdown
Contributor Author

@rampage644 Can't merge, the format check is stuck/broken

@rampage644
Copy link
Copy Markdown
Contributor

@DanCodedThis It is also needs rebase, I've fixed the Format Check

# Conflicts:
#	crates/embucket-lambda/src/main.rs
@DanCodedThis DanCodedThis force-pushed the DanCodedThis/jwt-sessions branch from 9fd1844 to 6b9d712 Compare November 18, 2025 23:39
@rampage644 rampage644 merged commit 6f452dd into main Nov 19, 2025
3 checks passed
@rampage644 rampage644 deleted the DanCodedThis/jwt-sessions branch November 19, 2025 11:10
osipovartem added a commit that referenced this pull request Nov 21, 2025
Remove invalidate_cache

Init

Read tables from config

Read tables from config

Fix avro

Add lambda configuration and more logging/tracing (#23)

sessions: JWT (#19)

* jwt token sessions

* Requested changes

* clippy

* fmt

* clippy

Remove iceberg call from create table statement (#21)

* Remove iceberg call from create table

* Remove invalidate_cache

Snowdlake table wrapper

snowflake rest retries support (#24)

* replace oneshot by JoinHandle

* switch to different execution model with results waiting until task joined

* fix abort

* simplify executor interface

Register tables from config (#22)

* Remove iceberg call from create table

* Remove invalidate_cache

* Init

* Read tables from config

* Read tables from config

* Fix avro
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.

3 participants