Skip to main content
Question

does cribls collector for rest api support jwt?

  • March 11, 2025
  • 8 replies
  • 68 views

does cribls collector for rest api support jwt?I need to generate an api key, then use this key for authorization (bearer) and then i can collect data but i've to set some dynamic fields like date in the body to collect the datahttps://platform.secutix.com/backend/dataexport/how_to

8 replies

Jon Rust
Forum|alt.badge.img
  • Employee
  • March 11, 2025

No support for JWT yet. Ticket CRIBL-8327 for tracking purposes.


  • Author
  • Participating Frequently
  • March 11, 2025

In my case it could work without it. at least with curl. not sure how to do it in cribl.


I think we can do this today using the Login Auth type


We got it sorted via DMs :slightly_smiling_face:


  • Participating Frequently
  • March 11, 2025

<@U01LSBF5953&gt; What is the current workaround for JWT? We want to connect to the Snowflake SQL API using Key Pair Authentication, which uses JWT as bearer token.https://docs.snowflake.com/en/developer-guide/sql-api/authenticating#label-sql-api-authenticating-key-pair


You might be able to do this with a scripted collector and some python:https://docs.snowflake.com/en/developer-guide/sql-api/authenticating#python-example


  • Participating Frequently
  • March 11, 2025

<@U01LSBF5953&gt; Was able to get the script collector working with a prototype python script. The script maintains a timestamp that is used in an SQL statement and dynamically updated every time the script gets executed. This timestamp is currently being written to a local file on the worker node. Is there an easy way to synchronize this across worker nodes?


Jon Rust
Forum|alt.badge.img
  • Employee
  • March 11, 2025

not within cribl, no. Rsync might be your friend here. Or a shared volume where you write the timestamp file