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

Initial plugin design #1

Closed
simonw opened this issue Jan 11, 2023 · 1 comment
Closed

Initial plugin design #1

simonw opened this issue Jan 11, 2023 · 1 comment
Labels
enhancement New feature or request

Comments

@simonw
Copy link
Owner

simonw commented Jan 11, 2023

Goal is to allow this kind of canned query:

databases:
  mydatabase:
    queries:
      api_query:
        sql: select 'Your API key is' || :_cookie_openai_api_token;

To offer a UI that allows users to set a cookie for that value.

This is to support transmitting things like API keys (for use with https://github.com/simonw/datasette-openai) without risk of logging them in GET query strings.

@simonw simonw added the enhancement New feature or request label Jan 11, 2023
simonw added a commit that referenced this issue Jan 11, 2023
@simonw
Copy link
Owner Author

simonw commented Jan 11, 2023

Demo GIF:

demo

@simonw simonw closed this as completed Jan 11, 2023
simonw added a commit to simonw/simonwillisonblog-backup that referenced this issue Jan 11, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

1 participant