LangStream / documentation

LangStream handbook of how to create AI applications. Batteries included.

Home Page:https://docs.langstream.ai

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Helpful tip when using a sink type of cassandra-sink

ddieruf opened this issue · comments

The value of the secure connect bundle comes from the command:
base64 ./secure-connect-asdf.zip > ./b64-secure-connect.txt

It's going to be 100's of lines of text so to add it in the secrets manifest:

secrets:
  - name: cassandra
    id: cassandra
   data:
      username: <something>
      password: <something>
      secure-connect-bundle: |
        UEsDBBQACAAIAIumC1cAAAAAAAAAAAAAAAAGAAkAY2EuY3J0VVQFAAGHn9ZkZJTNkro4FMX3PMXs
        rSkBP5DFf3EDIYAGDfIVd4IaxAYVa.......

That tip of base64 could also be on the data storage > datasource page.

Here are revised commands that dump the base64 result to the screen. Instead of writing them to disk. That was a bad security idea.

Powershell

PS > [Convert]::ToBase64String([IO.File]::ReadAllBytes("<absolute-path-to-folder>\secure-connect-asdf.zip"))

Linux

$ > base64 ./secure-connect-asdf.zip