-
Notifications
You must be signed in to change notification settings - Fork 11
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Documentation for HTTP(s) connector. (#302)
* add http docs * link HTTP doc * Update https.md * update HTTP params * PR comments
- Loading branch information
Showing
3 changed files
with
60 additions
and
15 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,43 @@ | ||
--- | ||
title: 'HTTP(s) Data Connector' | ||
sidebar_label: 'HTTP(s) Data Connector' | ||
description: 'HTTP(s) Data Connector Documentation' | ||
pagination_prev: null | ||
--- | ||
|
||
The HTTP(s) Data Connector enables federated SQL query against a variety of tabular formatted (e.g. Parquet/CSV) files stored at a HTTP endpoint. | ||
|
||
The connector supports HTTP authentication via either `param` and/or `secrets`. | ||
|
||
### Parameters | ||
- `http_port`: Optional. Port to create HTTP(s) connection over. Default: 80 and 443 for HTTP and HTTPS respectively. | ||
- `http_username`: Optional. Username to provide connection for HTTP basic authentication. Default: None. | ||
- `http_password`: Optional. Password to provide connection for HTTP basic authentication. Default: None. | ||
- `http_password_key`: Key of the secret that contains the value to use for `http_password`. Default: None. | ||
|
||
### Examples | ||
```yaml | ||
datasets: | ||
- from: https://github.com/LAION-AI/audio-dataset/raw/7fd6ae3cfd7cde619f6bed817da7aa2202a5bc28/metadata/freesound/parquet/freesound_parquet.parquet | ||
name: laion_freesound | ||
|
||
- from: http://static_username@localhost:3001/report.csv | ||
name: local_report | ||
params: | ||
http_password: BadPa$5w0rd | ||
``` | ||
To use a secret for the HTTP password, for example, by env variable | ||
```yaml | ||
datasets: | ||
- from: http://static_username@localhost/report.csv | ||
name: local_report | ||
params: | ||
http_password_key: local_password | ||
http_port: 3001 | ||
``` | ||
With the associated secret set, for example: | ||
```shell | ||
export SPICE_SECRET_HTTP_LOCAL_PASSWORD="BadPa$5w0rd" | ||
``` |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters