cwielenb/CNCF-Dataset huggingface dataset:
Project: ClickHouse (App Definition and Development / Database)
File: ssl-zookeeper.md

slug: /en/operations/ssl-zookeeper sidebar_position: 45 sidebar_label: Secured Communication with Zookeeper import SelfManaged from '@site/docs/en/snippets/selfmanagedonly_automated.md'; <SelfManaged /> You should specify `ssl.keyStore.location`, `ssl.keyStore.password` and `ssl.trustStore.location`, `ssl.trustStore.password` for communication with ClickHouse client over SSL. These options are available from Zookeeper version 3.5.2. You can add `zookeeper.crt` to trusted certificates. ``` bash sudo cp zookeeper.crt /usr/local/share/ca-certificates/zookeeper.crt sudo update-ca-certificates ``` Client section in `config.xml` will look like: ``` xml <client> <certificateFile>/etc/clickhouse-server/client.crt</certificateFile> <privateKeyFile>/etc/clickhouse-server/client.key</privateKeyFile> <loadDefaultCAFile>true</loadDefaultCAFile> <cacheSessions>true</cacheSessions> <disableProtocols>sslv2,sslv3</disableProtocols> <preferServerCiphers>true</preferServerCiphers> <invalidCertificateHandler> <name>RejectCertificateHandler</name> </invalidCertificateHandler> </client> ``` Add Zookeeper to ClickHouse config with some cluster and macros: ``` xml <clickhouse> <zookeeper> <node> <host>localhost</host> <port>2281</port> <secure>1</secure> </node> </zookeeper> </clickhouse> ``` Start `clickhouse-server`. In logs you should see: ```text <Trace> ZooKeeper: initialized, hosts: secure://localhost:2281 ``` Prefix `secure://` indicates that connection is secured by SSL. To ensure traffic is encrypted run `tcpdump` on secured port: ```bash tcpdump -i any dst port 2281 -nnXS ``` And query in `clickhouse-client`: ```sql SELECT * FROM system.zookeeper WHERE path = '/'; ``` On unencrypted connection you will see in `tcpdump` output something like this: ```text ..../zookeeper/quota. ``` On encrypted connection you should not see this.
Project: CloudARK KubePlus (App Definition and Development / Application Definition & Image Build)
File: fuzzy_mode_convert_table.md

| json type \ dest type | bool | int | uint | float |string| | | | | |--|--| | number | positive => true <br/> negative => true <br/> zero => false| 23.2 => 23 <br/> -32.1 => -32| 12.1 => 12 <br/> -12.1 => 0|as normal|same as origin| | string | empty string => false <br/> string "0" => false <br/> other strings => true | "123.32" => 123 <br/> "-123.4" => -123 <br/> "123.23xxxw" => 123 <br/> "abcde12" => 0 <br/> "-32.1" => -32| 13.2 => 13 <br/> -1.1 => 0 |12.1 => 12.1 <br/> -12.3 => -12.3<br/> 12.4xxa => 12.4 <br/> +1.1e2 =>110 |same as origin| | bool | true => true <br/> false => false| true => 1 <br/> false => 0 | true => 1 <br/> false => 0 |true => 1 <br/>false => 0|true => "true" <br/> false => "false"| | object | true | 0 | 0 |0|originnal json| | array | empty array => false <br/> nonempty array => true| [] => 0 <br/> [1,2] => 1 | [] => 0 <br/> [1,2] => 1 |[] => 0<br/>[1,2] => 1|original json|
Project: StarRocks (App Definition and Development / Database)
File: split.md

displayed_sidebar: "English" This function splits a given string according to the separators, and returns the split parts in ARRAY. ```SQL ARRAY<VARCHAR> split(VARCHAR content, VARCHAR delimiter) ``` ```SQL mysql> select split("a,b,c",","); ++ | split('a,b,c', ',') | ++ | ["a","b","c"] | ++ mysql> select split("a,b,c",",b,"); +--+ | split('a,b,c', ',b,') | +--+ | ["a","c"] | +--+ mysql> select split("abc",""); ++ | split('abc', '') | ++ | ["a","b","c"] | ++ ``` SPLIT
Project: Artifact Hub (App Definition and Development / Application Definition & Image Build)
File: kubewarden_annotations.md

You can provide some extra information about your Kubewarden policies by using the `annotations` field in the . kubewarden/mutation (string) Use this annotation to indicate if the policy can mutate incoming requests. kubewarden/resources (string) Comma separated list of Kubernetes resources evaluated by the policy. ```yaml ... annotations: kubewarden/mutation: "true" kubewarden/resources: "Pod" ```
Project: StarRocks (App Definition and Development / Database)
File: parse_url.md

displayed_sidebar: "English" Parses a URL and extracts a component from this URL. ```Haskell parse_url(expr1,expr2); ``` `expr1`: the URL. The supported data type is VARCHAR. `expr2`: the component to extract from this URL. The supported data type is VARCHAR. Valid values: PROTOCOL HOST PATH REF AUTHORITY FILE USERINFO QUERY. Parameters in QUERY cannot be returned. If you want to return specific parameters, use parse_url with to achieve this implementation. For details, see . `expr2` is case-sensitive. Returns a value of the VARCHAR type. If the URL is invalid, an error is returned. If the requested information cannot be find, NULL is returned. ```Plain Text select parse_url('http://facebook.com/path/p1.php?query=1', 'HOST'); +--+ | parse_url('http://facebook.com/path/p1.php?query=1', 'HOST') | +--+ | facebook.com | +--+ select parse_url('http://facebook.com/path/p1.php?query=1', 'AUTHORITY'); +-+ | parse_url('http://facebook.com/path/p1.php?query=1', 'AUTHORITY') | +-+ | facebook.com | +-+ select parse_url('http://facebook.com/path/p1.php?query=1', 'QUERY'); ++ | parse_url('http://facebook.com/path/p1.php?query=1', 'QUERY') | ++ | query=1 | ++ select trim(parse_url('http://facebook.com/path/p1.php?query=1', 'QUERY'),'query='); +-+ | trim(parse_url('http://facebook.com/path/p1.php?query=1', 'QUERY'), 'query=') | +-+ | 1 | +-+ ```
Project: Sonobuoy (Provisioning / Security & Compliance)
File: sonobuoy_plugin_install.md

Install a plugin so that it can be run via just its filename rather than a full path or URL. ``` sonobuoy plugin install <save-as-filename> <source filename or URL> [flags] ``` ``` -h, --help help for install ``` ``` --level level Log level. One of {panic, fatal, error, warn, info, debug, trace} (default info) ``` - Manage your installed plugins
Project: Harbor (Provisioning / Container Registry)
File: 1-04-DB-user-update-account-settings.md

Test 1-04 - User update account settings (DB Mode) ======= To verify that a non-admin user can update his/her account settings when users are managed locally by Harbor (DB mode). User guide This test requires that a Harbor instance is running and available. Harbor is set to authenticate against a local database. ( auth_mode is set to db_auth* .) The user data is stored in a local database. A linux host with Docker CLI installed (Docker client). NOTE: Use a non-admin user for this test case. Admin user has other test cases. A non-admin user logs in to UI. The user changes his/her account settings, including email, full name and comments. The user logs out. The same user logs in again using new email, and verify the user's account settings had been changed. The user goes to the page to change his/her settings again. Provide invalid values of input to see if validation works: email formatting very long email address string required fields are empty Account settings can be changed in Step 2. User can log in using new email in Step 4 and the settings are the same as input in Step 2. In Step 5, the user cannot change account settings due to various errors. Proper error message should be displayed. None
Project: KICS (Provisioning / Security & Compliance)
File: 49e30ac8-f58e-4222-b488-3dcb90158ec1.md

title: Redis Cache Allows Non SSL Connections hide: toc: true navigation: true <style> .highlight .hll { background-color: #ff171742; } .md-content { max-width: 1100px; margin: 0 auto; } </style> Query id: 49e30ac8-f58e-4222-b488-3dcb90158ec1 Query name: Redis Cache Allows Non SSL Connections Platform: Pulumi Severity: <span style="color:#ff7213">Medium</span> Category: Insecure Configurations URL: Redis Cache resource should not allow non-SSL connections.<br> ```yaml title="Positive test num. 1 - yaml file" hl_lines="8" name: azure-aks runtime: yaml description: An Aks cluster resources: redis: type: azure-native:cache:Redis properties: enableNonSslPort: true location: West US minimumTlsVersion: 1.2 name: cache1 redisConfiguration: maxmemoryPolicy: allkeys-lru replicasPerMaster: 2 resourceGroupName: rg1 shardCount: 2 sku: capacity: 1 family: P name: Premium staticIP: 192.168.0.5 subnetId: /subscriptions/subid/resourceGroups/rg2/providers/Microsoft.Network/virtualNetworks/network1/subnets/subnet1 zones: 1 ``` ```yaml title="Negative test num. 1 - yaml file" name: azure-aks runtime: yaml description: An Aks cluster resources: redis: type: azure-native:cache:Redis properties: enableNonSslPort: false location: West US minimumTlsVersion: 1.2 name: cache1 redisConfiguration: maxmemoryPolicy: allkeys-lru replicasPerMaster: 2 resourceGroupName: rg1 shardCount: 2 sku: capacity: 1 family: P name: Premium staticIP: 192.168.0.5 subnetId: /subscriptions/subid/resourceGroups/rg2/providers/Microsoft.Network/virtualNetworks/network1/subnets/subnet1 zones: 1 ```
Project: ShardingSphere (App Definition and Development / Database)
File: rollback-migration.en.md

+++ title = "ROLLBACK MIGRATION" weight = 17 +++ The `ROLLBACK MIGRATION` syntax is used to rollback migration process. {{< tabs >}} {{% tab name="Grammar" %}} ```sql RollbackMigration ::= 'ROLLBACK' 'MIGRATION' migrationJobId migrationJobId ::= string ``` {{% /tab %}} {{% tab name="Railroad diagram" %}} <iframe frameborder="0" name="diagram" id="diagram" width="100%" height="100%"></iframe> {{% /tab %}} {{< /tabs >}} `migrationJobId` needs to be obtained through syntax query After the statement is executed, the target will be cleaned up Rollback migration process ```sql ROLLBACK MIGRATION 'j010180026753ef0e25d3932d94d1673ba551'; ``` `ROLLBACK`, `MIGRATION`
Project: ShardingSphere (App Definition and Development / Database)
File: show-compute-node-info.en.md

+++ title = "SHOW COMPUTE NODE INFO" weight = 5 +++ The `SHOW COMPUTE NODE INFO` syntax is used to query current proxy instance information. {{< tabs >}} {{% tab name="Grammar" %}} ```sql ShowComputeNodeInfo ::= 'SHOW' 'COMPUTE' 'NODE' 'INFO' ``` {{% /tab %}} {{% tab name="Railroad diagram" %}} <iframe frameborder="0" name="diagram" id="diagram" width="100%" height="100%"></iframe> {{% /tab %}} {{< /tabs >}} | Columns | Description | |-|--| | instance_id | proxy instance id | | host | host address | | port | port number | | status | proxy instance status | | mode_type | proxy instance mode | | worker_id | worker id | | labels | labels | Query current proxy instance information ```sql SHOW COMPUTE NODE INFO; ``` ```sql mysql> SHOW COMPUTE NODE INFO; +--+++--+--+--+--+ | instanceid | host | port | status | modetype | worker_id | labels | +--+++--+--+--+--+ | 734bb036-b15d-4af0-be87-2372d8b6a0cd | 192.168.5.163 | 3307 | OK | Cluster | -1 | | +--+++--+--+--+--+ 1 row in set (0.01 sec) ``` `SHOW`, `COMPUTE`, `NODE`, `INFO`
Project: ArangoDB (App Definition and Development / Database)
File: equality_failure_type.md

+++ title = "`bool operator==(const failure_type<A, void> &) const`" description = "Returns true if this result compares equal to the failure type sugar. Constexpr and noexcept propagating." categories = ["comparisons"] weight = 820 +++ Returns true if this result is unsuccessful and its error compares equal to the error in the failure type sugar. Comparison is done using `operator==` on `errortype` and `A`. If `A` is `void`, this call aliases {{% api "bool haserror() const noexcept" %}}. Requires: `operator==` must be a valid expression between `errortype` and `A`, or `A` is `void`. If `errortype` is `void`, then so must be `A`. Complexity: Whatever the underlying `operator==` has. Constexpr and noexcept of underlying operations is propagated. Guarantees: None.
Project: TDengine (App Definition and Development / Database)
File: 07-import.md

title: Data Import description: This document describes how to import data into TDengine. There are multiple ways of importing data provided by TDengine: import with script, import from data file, import using `taosdump`. TDengine CLI `taos` supports `source <filename>` command for executing the SQL statements in the file in batch. The SQL statements for creating databases, creating tables, and inserting rows can be written in a single file with one statement on each line, then the file can be executed using the `source` command in TDengine CLI `taos` to execute the SQL statements in order and in batch. In the script file, any line beginning with "#" is treated as comments and ignored silently. In TDengine CLI, data can be imported from a CSV file into an existing table. The data in a single CSV must belong to the same table and must be consistent with the schema of that table. The SQL statement is as below: ```sql insert into tb1 file 'path/data.csv'; ``` :::note If there is a description in the first line of the CSV file, please remove it before importing. If there is no value for a column, please use `NULL` without quotes. ::: For example, there is a subtable d1001 whose schema is as below: ```sql taos> DESCRIBE d1001 Field | Type | Length | Note | ================================================================================= ts | TIMESTAMP | 8 | | current | FLOAT | 4 | | voltage | INT | 4 | | phase | FLOAT | 4 | | location | BINARY | 64 | TAG | groupid | INT | 4 | TAG | ``` The format of the CSV file to be imported, data.csv, is as below: ```csv '2018-10-04 06:38:05.000',10.30000,219,0.31000 '2018-10-05 06:38:15.000',12.60000,218,0.33000 '2018-10-06 06:38:16.800',13.30000,221,0.32000 '2018-10-07 06:38:05.000',13.30000,219,0.33000 '2018-10-08 06:38:05.000',14.30000,219,0.34000 '2018-10-09 06:38:05.000',15.30000,219,0.35000 '2018-10-10 06:38:05.000',16.30000,219,0.31000 '2018-10-11 06:38:05.000',17.30000,219,0.32000 '2018-10-12 06:38:05.000',18.30000,219,0.31000 ``` Then, the below SQL statement can be used to import data from file "data.csv", assuming the file is located under the home directory of the current Linux user. ```sql taos> insert into d1001 file '~/data.csv'; Query OK, 9 row(s) affected (0.004763s) ``` A convenient tool for importing and exporting data is provided by TDengine, `taosdump`, which can be used to export data from one TDengine cluster and import into another one. For the details of using `taosdump` please refer to the taosdump documentation.
Project: Druid (App Definition and Development / Database)
File: experimental.md

id: experimental title: "Experimental features" <!-- ~ Licensed to the Apache Software Foundation (ASF) under one ~ or more contributor license agreements. See the NOTICE file ~ distributed with this work for additional information ~ regarding copyright ownership. The ASF licenses this file ~ to you under the Apache License, Version 2.0 (the ~ "License"); you may not use this file except in compliance ~ with the License. You may obtain a copy of the License at ~ ~ http://www.apache.org/licenses/LICENSE-2.0 ~ ~ Unless required by applicable law or agreed to in writing, ~ software distributed under the License is distributed on an ~ "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY ~ KIND, either express or implied. See the License for the ~ specific language governing permissions and limitations ~ under the License. --> Features often start out in "experimental" status that indicates they are still evolving. This can mean any of the following things: The feature's API may change even in minor releases or patch releases. The feature may have known "missing" pieces that will be added later. The feature may or may not have received full battle-testing in production environments. All experimental features are optional. Note that not all of these points apply to every experimental feature. Some have been battle-tested in terms of implementation, but are still marked experimental due to an evolving API. Please check the documentation for each feature for full details.
Project: Numaflow (App Definition and Development / Streaming & Messaging)
File: ui-access-path.md

By default, Numaflow UI server will host the service at the root `/` ie. `localhost:8443`. If a user needs to access the UI server under a different path, this can be achieved with following configuration. This is useful when the UI is hosted behind a reverse proxy or ingress controller that requires a specific path. Configure `server.base.href` in the ConfigMap `numaflow-cmd-params-config`. ```yaml apiVersion: v1 kind: ConfigMap metadata: name: numaflow-cmd-params-config data: server.base.href: "/app" ``` The configuration above will host the service at `localhost:8443/app`. Note that this new access path will work with or without a trailing slash.
Project: StarRocks (App Definition and Development / Database)
File: substring.md

displayed_sidebar: "English" Extracts characters staring from the specified position and returns a substring of specified length. ```Haskell VARCHAR substr(VARCHAR str, pos[, len]) ``` `str`: required, the string to extract characters. It must be a VARCHAR value. `pos`: required, an integer that specifies the starting position. Note that the first character in a string is 1, not 0. If `pos` is 0, an empty string is returned. `pos` can be a negative integer. In this case, this function extracts characters starting from the end of the string. See Example 2. If the position specified by `pos` exceeds the range of the string, an empty string is returned. See Example 3. `len`: optional, a positive integer that specifies the number of characters to extract. If `len` is specified, this function extracts `len` characters starting from the position specified by `pos`. If `len` is not specified, this function extracts all the characters starting at `pos`. See Example 1. If `len` exceeds the actual length of the matching characters, all the matching characters are returned. See Example 4. Returns a value of the VARCHAR type. ```Plain Text -- Extract all characters starting from the first character "s". MySQL > select substring("starrockscluster", 1); +-+ | substring('starrockscluster', 1) | +-+ | starrocks | +-+ -- The position is negative and the counting is from the end of the string. MySQL > select substring("starrocks", -5, 5); +-+ | substring('starrocks', -5, 5) | +-+ | rocks | +-+ -- The position exceeds the length of the string and an empty string is returned. MySQL > select substring("apple", 8, 2); +--+ | substring('apple', 8, 2) | +--+ | | +--+ -- There are 5 matching characters. The length 9 exceeds the length of the matching characters and all the matching characters are returned. MySQL > select substring("apple", 1, 9); +--+ | substring('apple', 1, 9) | +--+ | apple | +--+ ``` substring,string,sub
Project: YugabyteDB (App Definition and Development / Database)
File: expr_subscript.md

title: Subscripted expressions [YCQL] headerTitle: Subscripted expressions linkTitle: Subscripted expressions description: Use subscripted expressions to access elements in a multi-element value, such as a map collection by using the [] operator. menu: v2.18: parent: api-cassandra weight: 1340 type: docs Use subscripted expressions to access elements in a multi-element value, such as a map collection by using operator `. For example, if `ids` refers to a column of type `LIST`, `ids statement. Subscripted expression can only be applied to columns of type `LIST`, `MAP`, or user-defined data types. Subscripting a `LIST` value with a non-positive index will yield NULL. Subscripting a `MAP` value with a non-existing key will yield NULL. Otherwise, it returns the element value that is associated with the given key. Apache Cassandra does not allow subscripted expression in the select list of the SELECT statement. ```sql ycqlsh:yugaspace> CREATE TABLE t(id INT PRIMARY KEY,yugamap MAP<TEXT, TEXT>); ``` ```sql ycqlsh:yugaspace> UPDATE yugatab SET mapvalue['keyvalue'] = 'yuga_string' WHERE id = 7; ```
Project: Tetragon (Provisioning / Security & Compliance)
File: RELEASE.md

The `yaml` Project is released on an as-needed basis. The process is as follows: An issue is proposing a new release with a changelog since the last release All must LGTM this release An OWNER runs `git tag -s $VERSION` and inserts the changelog and pushes the tag with `git push $VERSION` The release issue is closed An announcement email is sent to `kubernetes-dev@googlegroups.com` with the subject `[ANNOUNCE] kubernetes-template-project $VERSION is released`
Project: KubeDB by AppsCode (App Definition and Development / Database)
File: kubectl-dba_data_verify_redis.md

title: Kubectl-Dba Data Verify Redis menu: docs_{{ .version }}: identifier: kubectl-dba-data-verify-redis name: Kubectl-Dba Data Verify Redis parent: reference-cli menuname: docs{{ .version }} sectionmenuid: reference Verify rows in a redis database Use this cmd to verify data in a redis object ``` kubectl-dba data verify redis [flags] ``` ``` kubectl dba data verify redis -n demo sample-redis --rows 500 ``` ``` -h, --help help for redis -r, --rows int number of rows to verify (default 100) ``` ``` --as string Username to impersonate for the operation. User could be a regular user or a service account in a namespace. --as-group stringArray Group to impersonate for the operation, this flag can be repeated to specify multiple groups. --as-uid string UID to impersonate for the operation. --cache-dir string Default cache directory (default "/home/runner/.kube/cache") --certificate-authority string Path to a cert file for the certificate authority --client-certificate string Path to a client certificate file for TLS --client-key string Path to a client key file for TLS --cluster string The name of the kubeconfig cluster to use --context string The name of the kubeconfig context to use --default-seccomp-profile-type string Default seccomp profile --disable-compression If true, opt-out of response compression for all requests to the server --insecure-skip-tls-verify If true, the server's certificate will not be checked for validity. This will make your HTTPS connections insecure --kubeconfig string Path to the kubeconfig file to use for CLI requests. --match-server-version Require server version to match client version -n, --namespace string If present, the namespace scope for this CLI request --password string Password for basic authentication to the API server --request-timeout string The length of time to wait before giving up on a single server request. Non-zero values should contain a corresponding time unit (e.g. 1s, 2m, 3h). A value of zero means don't timeout requests. (default "0") -s, --server string The address and port of the Kubernetes API server --tls-server-name string Server name to use for server certificate validation. If it is not provided, the hostname used to contact the server is used --token string Bearer token for authentication to the API server --user string The name of the kubeconfig user to use --username string Username for basic authentication to the API server ``` - Verify data in a database