-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
4910001
commit cf66af8
Showing
3 changed files
with
93 additions
and
0 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,63 @@ | ||
--- | ||
title: HTTP | ||
--- | ||
|
||
HTTP Connections are used to query data via any http/https compatible resource | ||
|
||
## Schema | ||
|
||
| Field | Description | Scheme | Required | | ||
|--------------|-----------------|------------------------------------------------|----------| | ||
| `url` | URL | string | `true` | | ||
| `username` | Username | <CommonLink to="secrets">_EnvVar_</CommonLink> | | | ||
| `password` | Password | <CommonLink to="secrets">_EnvVar_</CommonLink> | | | ||
| `oauth` | OAuth | [OAuth](#oauth) | | | ||
| `bearer` | Bearer | <CommonLink to="secrets">_EnvVar_</CommonLink> | | | ||
| `tls` | TLS Config | [TLS](#tls) | | | ||
| `connection` | Connection Name | string | | | ||
|
||
:::info | ||
If connection is already created `connection` (Connection Name) can be used as a reference instead of redefining all fields. Read more on [connection referencing](/reference/connections/#referencing-connections) | ||
::: | ||
|
||
### OAuth | ||
|
||
| Field | Description | Scheme | Required | | ||
|----------------|---------------|------------------------------------------------|----------| | ||
| `tokenURL` | Token URL | string | `true` | | ||
| `clientID` | Client ID | <CommonLink to="secrets">_EnvVar_</CommonLink> | `true` | | ||
| `clientSecret` | Client Secret | <CommonLink to="secrets">_EnvVar_</CommonLink> | `true` | | ||
| `scopes` | Scopes | []string | | | ||
| `params` | Params | map[string]string | | | ||
|
||
### TLS | ||
|
||
| Field | Description | Scheme | Required | | ||
|----------------------|---------------------------------------------------------------------------------|------------------------------------------------|----------| | ||
| `key` | PEM encoded client private key | <CommonLink to="secrets">_EnvVar_</CommonLink> | `true` | | ||
| `ca` | PEM encoded certificate of the CA to verify the server certificate | <CommonLink to="secrets">_EnvVar_</CommonLink> | `true` | | ||
| `cert` | PEM encoded client certificate | <CommonLink to="secrets">_EnvVar_</CommonLink> | `true` | | ||
| `insecureSkipVerify` | controls whether a client verifies the server's certificate chain and host name | bool | | | ||
| `handshakeTimeout` | Handshake timeout (Default: 10 seconds) | time.Duration | | | ||
|
||
|
||
## Example | ||
|
||
This example demonstrates how to configure an HTTP connection in Mission Control: | ||
|
||
```yaml title="http-connection.yaml" | ||
apiVersion: v1 | ||
kind: Connection | ||
metadata: | ||
name: http-connection | ||
spec: | ||
http: | ||
url: https://example.com | ||
username: | ||
value: user | ||
password: | ||
valueFrom: | ||
secretKeyRef: | ||
name: credentials | ||
key: password | ||
``` |
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,29 @@ | ||
--- | ||
title: Push | ||
--- | ||
|
||
We can push the topologies we create to any mission control host. We just have to define a [HTTPConnection](/reference/connections/http) | ||
Check failure on line 5 in mission-control/docs/topology/concepts/push.mdx GitHub Actions / vale[vale] mission-control/docs/topology/concepts/push.mdx#L5
Raw output
Check failure on line 5 in mission-control/docs/topology/concepts/push.mdx GitHub Actions / vale[vale] mission-control/docs/topology/concepts/push.mdx#L5
Raw output
|
||
|
||
:::info | ||
This is different from using an agent as using this can push topologies anywhere even if those instances do not have an agent setup | ||
::: | ||
|
||
```yaml title="topology.yaml" | ||
apiVersion: canaries.flanksource.com/v1 | ||
kind: Topology | ||
metadata: | ||
name: Website | ||
spec: | ||
push: | ||
url: https://my-mission-control.company.com | ||
username: | ||
value: admin | ||
password: | ||
valueFrom: | ||
secretKeyRef: | ||
name: credentials | ||
key: password | ||
|
||
components: | ||
- name: UI Server | ||
``` |