Skip to content

Commit

Permalink
Merge pull request #147 from stackql/feature/doc-updates
Browse files Browse the repository at this point in the history
doc updates
  • Loading branch information
jeffreyaven authored May 3, 2024
2 parents ec6b754 + 1688ad9 commit c52a829
Show file tree
Hide file tree
Showing 10 changed files with 51 additions and 51 deletions.
4 changes: 2 additions & 2 deletions docs/datadog-docs/index.md
Original file line number Diff line number Diff line change
Expand Up @@ -51,8 +51,8 @@ REGISTRY PULL datadog;

The following system environment variables are used for authentication by default:

- <CopyableCode code="DD_API_KEY" /> - Datadog API key (see [Datadog API Key Documentation](https://docs.datadoghq.com/account_management/api-app-keys/#api-keys))
- <CopyableCode code="DD_APP_KEY" /> - Datadog Application Key (see [Datadog Application Key Documentation](https://docs.datadoghq.com/account_management/api-app-keys/#application-keys))
- <CopyableCode code="DD_API_KEY" /> - Datadog API key (see <a href="https://docs.datadoghq.com/account_management/api-app-keys/#api-keys">Datadog API Key Documentation</a>)
- <CopyableCode code="DD_APP_KEY" /> - Datadog Application Key (see <a href="https://docs.datadoghq.com/account_management/api-app-keys/#application-keys">Datadog Application Key Documentation</a>)

These variables are sourced at runtime (from the local machine or as CI variables/secrets).

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -47,4 +47,4 @@ import CopyableCode from '@site/src/components/CopyableCode/CopyableCode';
| <CopyableCode code="title" /> ||
| <CopyableCode code="verified" /> ||
## Methods
No methods available for the resource
No additional methods available for this resource
2 changes: 1 addition & 1 deletion docs/github-docs/index.md
Original file line number Diff line number Diff line change
Expand Up @@ -52,7 +52,7 @@ REGISTRY PULL github;
The following system environment variables are used for authentication by default:

- <CopyableCode code="STACKQL_GITHUB_USERNAME" /> - GitHub username (login)
- <CopyableCode code="STACKQL_GITHUB_PASSWORD" /> - GitHub Personal Access Token (see [Creating a personal access token](https://docs.github.com/en/[email protected]/authentication/keeping-your-account-and-data-secure/creating-a-personal-access-token))
- <CopyableCode code="STACKQL_GITHUB_PASSWORD" /> - GitHub Personal Access Token (see <a href="https://docs.github.com/en/[email protected]/authentication/keeping-your-account-and-data-secure/creating-a-personal-access-token">Creating a personal access token</a>)

These variables are sourced at runtime (from the local machine or as CI variables/secrets).

Expand Down
2 changes: 1 addition & 1 deletion docs/godaddy-docs/index.md
Original file line number Diff line number Diff line change
Expand Up @@ -51,7 +51,7 @@ REGISTRY PULL godaddy;

The following system environment variables are used for authentication by default:

- <CopyableCode code="GODADDY_API_KEY" /> - Godaddy API key (see [Creating a Godaddy API Key](https://developer.godaddy.com/keys))
- <CopyableCode code="GODADDY_API_KEY" /> - Godaddy API key (see <a href="https://developer.godaddy.com/keys">Creating a Godaddy API Key</a>)

These variables are sourced at runtime (from the local machine or as CI variables/secrets).

Expand Down
2 changes: 1 addition & 1 deletion docs/netlify-docs/index.md
Original file line number Diff line number Diff line change
Expand Up @@ -51,7 +51,7 @@ REGISTRY PULL netlify;

The following system environment variables are used for authentication by default:

- <CopyableCode code="NETLIFY_AUTH_TOKEN" /> - Netlify API token (see [How to Create a Netlify API Token](https://docs.netlify.com/api/get-started/#authentication))
- <CopyableCode code="NETLIFY_AUTH_TOKEN" /> - Netlify API token (see <a href="https://docs.netlify.com/api/get-started/#authentication">How to Create a Netlify API Token</a>)

These variables are sourced at runtime (from the local machine or as CI variables/secrets).

Expand Down
4 changes: 2 additions & 2 deletions docs/okta-docs/index.md
Original file line number Diff line number Diff line change
Expand Up @@ -51,7 +51,7 @@ REGISTRY PULL okta;

The following system environment variables are used for authentication by default:

- <CopyableCode code="OKTA_API_TOKEN" /> - Okta API Token (see [Creating an Okta API Token](https://developer.okta.com/docs/guides/create-an-api-token/))
- <CopyableCode code="OKTA_API_TOKEN" /> - Okta API Token (see <a href="https://developer.okta.com/docs/guides/create-an-api-token/">Creating an Okta API Token</a>)

These variables are sourced at runtime (from the local machine or as CI variables/secrets).

Expand Down Expand Up @@ -83,7 +83,7 @@ stackql.exe shell --auth=$Auth

The following parameter is required for the `okta` provider:

- `subdomain` - The Okta tenant domain, for example `my-company` would be supplied if your Okta domain is `my-company.okta.com`
- <CopyableCode code="subdomain" /> - The Okta tenant domain, for example `my-company` would be supplied if your Okta domain is `my-company.okta.com`

This parameter must be supplied to the `WHERE` clause of each `SELECT` statement.

Expand Down
2 changes: 1 addition & 1 deletion docs/pagerduty-docs/index.md
Original file line number Diff line number Diff line change
Expand Up @@ -51,7 +51,7 @@ REGISTRY PULL pagerduty;

The following system environment variables are used for authentication by default:

- <CopyableCode code="PAGERDUTY_API_TOKEN" /> - PagerDuty API token (see [Creating a PagerDuty API Token](https://support.pagerduty.com/docs/api-access-keys#section-generating-a-general-access-rest-api-key))
- <CopyableCode code="PAGERDUTY_API_TOKEN" /> - PagerDuty API token (see <a href="https://support.pagerduty.com/docs/api-access-keys#section-generating-a-general-access-rest-api-key">Creating a PagerDuty API Token</a>)

These variables are sourced at runtime (from the local machine or as CI variables/secrets).

Expand Down
2 changes: 1 addition & 1 deletion docs/sumologic-docs/index.md
Original file line number Diff line number Diff line change
Expand Up @@ -84,7 +84,7 @@ stackql.exe shell --auth=$Auth

The following parameter is required for the `sumologic` provider if you are not using the `us2` region:

- `region` - The SumoLogic regional endpoint (e.g. `au`, `ca`, `de`, `eu`, `fed`, `in`, `jp`)
- <CopyableCode code="region" /> - The SumoLogic regional endpoint (e.g. `au`, `ca`, `de`, `eu`, `fed`, `in`, `jp`)

This parameter would be supplied to the `WHERE` clause of each `SELECT` statement if you are not usign the `us2` region.

Expand Down
2 changes: 1 addition & 1 deletion docs/vercel-docs/index.md
Original file line number Diff line number Diff line change
Expand Up @@ -51,7 +51,7 @@ REGISTRY PULL vercel;

The following system environment variables are used for authentication by default:

- <CopyableCode code="VERCEL_API_TOKEN" /> - Vercel API Token (see [Creating a Vercel API Token](https://vercel.com/account/tokens))
- <CopyableCode code="VERCEL_API_TOKEN" /> - Vercel API Token (see <a href="https://vercel.com/account/tokens">Creating a Vercel API Token</a>)

These variables are sourced at runtime (from the local machine or as CI variables/secrets).

Expand Down
80 changes: 40 additions & 40 deletions scripts/docgen/provider_data.py
Original file line number Diff line number Diff line change
Expand Up @@ -293,7 +293,7 @@
'custom': False,
'variables': """
- <CopyableCode code="STACKQL_GITHUB_USERNAME" /> - GitHub username (login)
- <CopyableCode code="STACKQL_GITHUB_PASSWORD" /> - GitHub Personal Access Token (see [Creating a personal access token](https://docs.github.com/en/[email protected]/authentication/keeping-your-account-and-data-secure/creating-a-personal-access-token))
- <CopyableCode code="STACKQL_GITHUB_PASSWORD" /> - GitHub Personal Access Token (see <a href="https://docs.github.com/en/[email protected]/authentication/keeping-your-account-and-data-secure/creating-a-personal-access-token">Creating a personal access token</a>)
""",
'linux': """
AUTH='{ "github": { "type": "basic", "username_var": "YOUR_GITHUB_USERNAME_VAR", "password_var": "YOUR_GITHUB_PASSWORD_VAR" }}'
Expand All @@ -310,7 +310,7 @@
'netlify': {
'custom': False,
'variables': """
- <CopyableCode code="NETLIFY_AUTH_TOKEN" /> - Netlify API token (see [How to Create a Netlify API Token](https://docs.netlify.com/api/get-started/#authentication))
- <CopyableCode code="NETLIFY_AUTH_TOKEN" /> - Netlify API token (see <a href="https://docs.netlify.com/api/get-started/#authentication">How to Create a Netlify API Token</a>)
""",
'linux': """
AUTH='{ "netlify": { "type": "bearer", "credentialsenvvar": "YOUR_NETLIFY_AUTH_TOKEN_VAR" }}'
Expand All @@ -324,29 +324,29 @@
#
# AWS
#
'aws': {
'custom': False,
'variables': """
- `AWS_ACCESS_KEY_ID` - AWS Access Key ID (see [How to Create AWS Credentials](https://docs.aws.amazon.com/IAM/latest/UserGuide/id_credentials_access-keys.html))
- `AWS_SECRET_ACCESS_KEY` - AWS Secret Access Key (see [How to Create AWS Credentials](https://docs.aws.amazon.com/IAM/latest/UserGuide/id_credentials_access-keys.html))
- `AWS_SESSION_TOKEN` - [__OPTIONAL:__ only required if using `aws sts assume-role`] AWS Session Token (see [Temporary security credentials in IAM](https://docs.aws.amazon.com/IAM/latest/UserGuide/id_credentials_temp.html))
""",
'linux': """
AUTH='{ "aws": { "type": "aws_signing_v4", "keyIDenvvar": "YOUR_ACCESS_KEY_ID_VAR", "credentialsenvvar": "YOUR_SECRET_KEY_VAR" }}'
stackql shell --auth="${AUTH}"
""",
'windows': """
$Auth = "{ 'aws': { 'type': 'aws_signing_v4', 'keyIDenvvar': 'YOUR_ACCESS_KEY_ID_VAR', 'credentialsenvvar': 'YOUR_SECRET_KEY_VAR' }}"
stackql.exe shell --auth=$Auth
""",
},
# 'aws': {
# 'custom': False,
# 'variables': """
# - `AWS_ACCESS_KEY_ID` - AWS Access Key ID (see [How to Create AWS Credentials](https://docs.aws.amazon.com/IAM/latest/UserGuide/id_credentials_access-keys.html))
# - `AWS_SECRET_ACCESS_KEY` - AWS Secret Access Key (see [How to Create AWS Credentials](https://docs.aws.amazon.com/IAM/latest/UserGuide/id_credentials_access-keys.html))
# - `AWS_SESSION_TOKEN` - [__OPTIONAL:__ only required if using `aws sts assume-role`] AWS Session Token (see [Temporary security credentials in IAM](https://docs.aws.amazon.com/IAM/latest/UserGuide/id_credentials_temp.html))
# """,
# 'linux': """
# AUTH='{ "aws": { "type": "aws_signing_v4", "keyIDenvvar": "YOUR_ACCESS_KEY_ID_VAR", "credentialsenvvar": "YOUR_SECRET_KEY_VAR" }}'
# stackql shell --auth="${AUTH}"
# """,
# 'windows': """
# $Auth = "{ 'aws': { 'type': 'aws_signing_v4', 'keyIDenvvar': 'YOUR_ACCESS_KEY_ID_VAR', 'credentialsenvvar': 'YOUR_SECRET_KEY_VAR' }}"
# stackql.exe shell --auth=$Auth
# """,
# },
#
# Okta
#
'okta': {
'custom': False,
'variables': """
- <CopyableCode code="OKTA_API_TOKEN" /> - Okta API Token (see [Creating an Okta API Token](https://developer.okta.com/docs/guides/create-an-api-token/))
- <CopyableCode code="OKTA_API_TOKEN" /> - Okta API Token (see <a href="https://developer.okta.com/docs/guides/create-an-api-token/">Creating an Okta API Token</a>)
""",
'linux': """
AUTH='{ "okta": { "type": "api_key", "valuePrefix": "SSWS ", "credentialsenvvar": "YOUR_OKTA_API_TOKEN_VAR" }}'
Expand All @@ -363,7 +363,7 @@
'vercel': {
'custom': False,
'variables': """
- <CopyableCode code="VERCEL_API_TOKEN" /> - Vercel API Token (see [Creating a Vercel API Token](https://vercel.com/account/tokens))
- <CopyableCode code="VERCEL_API_TOKEN" /> - Vercel API Token (see <a href="https://vercel.com/account/tokens">Creating a Vercel API Token</a>)
""",
'linux': """
AUTH='{ "okta": { "type": "bearer", "credentialsenvvar": "YOUR_VERCEL_API_TOKEN_VAR" }}'
Expand All @@ -380,7 +380,7 @@
'godaddy': {
'custom': False,
'variables': """
- <CopyableCode code="GODADDY_API_KEY" /> - Godaddy API key (see [Creating a Godaddy API Key](https://developer.godaddy.com/keys))
- <CopyableCode code="GODADDY_API_KEY" /> - Godaddy API key (see <a href="https://developer.godaddy.com/keys">Creating a Godaddy API Key</a>)
""",
'linux': """
AUTH='{ "okta": { "type": "bearer", "credentialsenvvar": "YOUR_GODADDY_API_KEY_VAR" }}'
Expand All @@ -397,7 +397,7 @@
'pagerduty': {
'custom': False,
'variables': """
- <CopyableCode code="PAGERDUTY_API_TOKEN" /> - PagerDuty API token (see [Creating a PagerDuty API Token](https://support.pagerduty.com/docs/api-access-keys#section-generating-a-general-access-rest-api-key))
- <CopyableCode code="PAGERDUTY_API_TOKEN" /> - PagerDuty API token (see <a href="https://support.pagerduty.com/docs/api-access-keys#section-generating-a-general-access-rest-api-key">Creating a PagerDuty API Token</a>)
""",
'linux': """
AUTH='{ "pagerduty": { "type": "bearer", "credentialsenvvar": "YOUR_PAGERDUTY_API_TOKEN_VAR" }}'
Expand All @@ -414,8 +414,8 @@
'datadog': {
'custom': False,
'variables': """
- <CopyableCode code="DD_API_KEY" /> - Datadog API key (see [Datadog API Key Documentation](https://docs.datadoghq.com/account_management/api-app-keys/#api-keys))
- <CopyableCode code="DD_APP_KEY" /> - Datadog Application Key (see [Datadog Application Key Documentation](https://docs.datadoghq.com/account_management/api-app-keys/#application-keys))
- <CopyableCode code="DD_API_KEY" /> - Datadog API key (see <a href="https://docs.datadoghq.com/account_management/api-app-keys/#api-keys">Datadog API Key Documentation</a>)
- <CopyableCode code="DD_APP_KEY" /> - Datadog Application Key (see <a href="https://docs.datadoghq.com/account_management/api-app-keys/#application-keys">Datadog Application Key Documentation</a>)
""",
'linux': """
AUTH='{ "datadog": { "type": "custom", "location": "header", "name": "DD-API-KEY", "credentialsenvvar": "YOUR_DD_API_KEY_VAR", "successor": { "type": "custom", "location": "header", "name": "DD-APPLICATION-KEY", "credentialsenvvar": "YOUR_DD_APP_KEY_VAR" }}}'
Expand Down Expand Up @@ -462,7 +462,7 @@
'azure': {
'custom': True,
'custom_markdown': """
StackQL uses Azure application credentials obtained using the `az login` command from the Azure SDK. For more information, see [here](https://learn.microsoft.com/en-us/cli/azure/authenticate-azure-cli).
StackQL uses Azure application credentials obtained using the <CopyableCode code="az login" /> command from the Azure SDK. For more information, see <a href="https://learn.microsoft.com/en-us/cli/azure/authenticate-azure-cli">here</a>.
""",
},
#
Expand All @@ -471,7 +471,7 @@
'azure_extras': {
'custom': True,
'custom_markdown': """
StackQL uses Azure application credentials obtained using the `az login` command from the Azure SDK. For more information, see [here](https://learn.microsoft.com/en-us/cli/azure/authenticate-azure-cli).
StackQL uses Azure application credentials obtained using the <CopyableCode code="az login" /> command from the Azure SDK. For more information, see <a href="https://learn.microsoft.com/en-us/cli/azure/authenticate-azure-cli">here</a>.
""",
},
#
Expand All @@ -480,7 +480,7 @@
'azure_isv': {
'custom': True,
'custom_markdown': """
StackQL uses Azure application credentials obtained using the `az login` command from the Azure SDK. For more information, see [here](https://learn.microsoft.com/en-us/cli/azure/authenticate-azure-cli).
StackQL uses Azure application credentials obtained using the <CopyableCode code="az login" /> command from the Azure SDK. For more information, see <a href="https://learn.microsoft.com/en-us/cli/azure/authenticate-azure-cli">here</a>.
""",
},
#
Expand All @@ -489,7 +489,7 @@
'azure_stack': {
'custom': True,
'custom_markdown': """
StackQL uses Azure application credentials obtained using the `az login` command from the Azure SDK. For more information, see [here](https://learn.microsoft.com/en-us/cli/azure/authenticate-azure-cli).
StackQL uses Azure application credentials obtained using the <CopyableCode code="az login" /> command from the Azure SDK. For more information, see <a href="https://learn.microsoft.com/en-us/cli/azure/authenticate-azure-cli">here</a>.
""",
},
#
Expand All @@ -500,7 +500,7 @@
'custom_markdown': """
:::note
__`cluster_addr`__ is a required paramter for all operations using the `k8s` provider, for example:
<b><CopyableCode code="cluster_addr" /></b> is a required parameter for all operations using the `k8s` provider, for example:
```sql
SELECT name, namespace, uid, creationTimestamp
Expand All @@ -515,7 +515,7 @@
:::note
The __`protocol`__ parameter is required when accessing a Kubernetes cluster via `kubectl proxy`, see the example below:
The <b><CopyableCode code="protocol" /></b> parameter is required when accessing a Kubernetes cluster via `kubectl proxy`, see the example below:
```sql
select name, namespace, uid, creationTimestamp
Expand All @@ -542,40 +542,40 @@
kubectl get secret -o jsonpath="{.items[?(@.type==\"kubernetes.io/service-account-token\")].data['ca\.crt']}" | base64 -i --decode > k8s_cert_bundle.pem
```
Alternatively, you could add the `--tls.allowInsecure=true` argument to the `stackql` command, it is not recommended however.
Alternatively, you could add the <CopyableCode code="--tls.allowInsecure=true" /> argument to the `stackql` command, it is not recommended however.
:::
"""
}
}

server_variables_blocks = {
'aws': """
The following parameter is required for the `aws` provider:
# 'aws': """
# The following parameter is required for the `aws` provider:

- `region` - AWS region (e.g. `us-east-1`)
# - `region` - AWS region (e.g. `us-east-1`)

This parameter must be supplied to the `WHERE` clause of each `SELECT` statement.
""",
# This parameter must be supplied to the `WHERE` clause of each `SELECT` statement.
# """,
'okta': """
The following parameter is required for the `okta` provider:
- `subdomain` - The Okta tenant domain, for example `my-company` would be supplied if your Okta domain is `my-company.okta.com`
- <CopyableCode code="subdomain" /> - The Okta tenant domain, for example `my-company` would be supplied if your Okta domain is `my-company.okta.com`
This parameter must be supplied to the `WHERE` clause of each `SELECT` statement.
""",
'sumologic': """
The following parameter is required for the `sumologic` provider if you are not using the `us2` region:
- `region` - The SumoLogic regional endpoint (e.g. `au`, `ca`, `de`, `eu`, `fed`, `in`, `jp`)
- <CopyableCode code="region" /> - The SumoLogic regional endpoint (e.g. `au`, `ca`, `de`, `eu`, `fed`, `in`, `jp`)
This parameter would be supplied to the `WHERE` clause of each `SELECT` statement if you are not usign the `us2` region.
""",
'k8s': """
The following parameters may be required for the `k8s` provider:
- `protocol` - `https` or `http` (default: `https`)
- `cluster_addr` - The hostname of the Kubernetes cluster (default: `localhost`)
- <CopyableCode code="protocol" /> - `https` or `http` (default: `https`)
- <CopyableCode code="cluster_addr" /> - The hostname of the Kubernetes cluster (default: `localhost`)
This parameter would be supplied to the `WHERE` clause of each `SELECT` statement.
""",
Expand Down

0 comments on commit c52a829

Please sign in to comment.