cwielenb/CNCF-Dataset huggingface dataset:
Project: KICS (Provisioning / Security & Compliance)
File: 6a2c219f-da5e-4745-941e-5ea8cde23356.md

title: Example JSON Reference Does Not Exists hide: toc: true navigation: true <style> .highlight .hll { background-color: #ff171742; } .md-content { max-width: 1100px; margin: 0 auto; } </style> Query id: 6a2c219f-da5e-4745-941e-5ea8cde23356 Query name: Example JSON Reference Does Not Exists Platform: OpenAPI Severity: <span style="color:#5bc0de">Info</span> Category: Structure and Semantics URL: Example reference should exists on components field<br> ```json title="Positive test num. 1 - json file" hl_lines="22" { "openapi": "3.0.0", "info": { "title": "Simple API Overview", "version": "1.0.0" }, "paths": { "/": { "get": { "operationId": "listVersionsv2", "summary": "List API versions", "responses": { "200": { "description": "Success", "content": { "application/json": { "schema": { "$ref": "#/components/schemas/MyObject" }, "examples": { "objectExample": { "$ref": "#/components/examples/wrongExample" } } } } } } } } }, "components": { "schemas": { "MyObject": { "type": "object", "properties": { "id": { "type": "string" }, "name": { "type": "string" } } } }, "examples": { "objectExample": { "value": { "id": "1", "name": "new object" }, "summary": "A sample object" } } } } ``` ```yaml title="Positive test num. 2 - yaml file" hl_lines="19" openapi: 3.0.0 info: title: Simple API Overview version: 1.0.0 paths: "/": get: operationId: listVersionsv2 summary: List API versions responses: '200': description: Success content: application/json: schema: "$ref": "#/components/schemas/MyObject" examples: objectExample: "$ref": "#/components/examples/wrongExample" components: schemas: MyObject: type: object properties: id: type: string name: type: string examples: objectExample: value: id: '1' name: new object summary: A sample object ``` ```json title="Negative test num. 1 - json file" { "openapi": "3.0.0", "info": { "title": "Simple API Overview", "version": "1.0.0" }, "paths": { "/": { "get": { "operationId": "listVersionsv2", "summary": "List API versions", "responses": { "200": { "description": "Success", "content": { "application/json": { "schema": { "$ref": "#/components/schemas/MyObject" }, "examples": { "objectExample": { "$ref": "#/components/examples/objectExample" } } } } } } } } }, "components": { "schemas": { "MyObject": { "type": "object", "properties": { "id": { "type": "string" }, "name": { "type": "string" } } } }, "examples": { "objectExample": { "value": { "id": "1", "name": "new object" }, "summary": "A sample object" } } } } ``` ```yaml title="Negative test num. 2 - yaml file" openapi: 3.0.0 info: title: Simple API Overview version: 1.0.0 paths: "/": get: operationId: listVersionsv2 summary: List API versions responses: '200': description: Success content: application/json: schema: "$ref": "#/components/schemas/MyObject" examples: objectExample: "$ref": "#/components/examples/objectExample" components: schemas: MyObject: type: object properties: id: type: string name: type: string examples: objectExample: value: id: '1' name: new object summary: A sample object ```
Project: Backstage (App Definition and Development / Application Definition & Image Build)
File: installation.md

id: installation title: Datadog RUM Installation sidebar_label: Installation description: Adding Datadog Real User Monitoring (RUM) to Your App Datadog Real User Monitoring (RUM) allows you to visualize and analyze the real-time performance and user journeys of your application's individual users. This is an option to profile and monitor the user experience of your Backstage installation. There is a basic integration built into Backstage. You can enable it by adding the following to your `app-config.yaml`: ```yaml app: datadogRum: clientToken: '123456789' applicationId: qwerty ``` If your file does not have this configuration, you may have to adjust your to include the Datadog RUM `init()` section manually. The `clientToken` and `applicationId` are generated from the Datadog RUM page following . There are two optional arguments: `site`: The Datadog site of your organization; defaults to `datadoghq.com` `env`: The application environment for Datadog events (no default)
Project: RabbitMQ (App Definition and Development / Streaming & Messaging)
File: 3.7.1.md

RabbitMQ `3.7.1` is a bug fix release. This release has no known incompatibilities with 3.7.0. See upgrade and compatibility notes if upgrading from an earlier release. See the for general documentation on upgrades. See for release notes of other releases. Standalone Mac build now bundles a version of Erlang/OTP that is compatible with High Sierra (20.1, to be specific). GitHub issue: RabbitMQ distribution now again can be built in an offline environment (one without access to the Internet). GitHub issue: `totalmemoryavailableoverridevalue` was not available via the . GitHub issue: `rabbitmqctl set_parameter` ignored the virtual host argument and default to the default (`/`) vhost. GitHub issue: HTTP client proxy settings were applied to late and thus didn't have any effect. GitHub issue: HTTP client proxy settings were applied to late and thus didn't have any effect. GitHub issue: HTTP client proxy settings were applied to late and thus didn't have any effect. GitHub issue: HTTP client proxy settings were applied to late and thus didn't have any effect. GitHub issue: Certain node metrics in multi-cluster environment were not merged correctly when aggregated. GitHub issue: It was not possible to configure request HTTP method using the . GitHub issue: Move Messages form on individual queue page didn't provide all the Shovel parameters required as of 3.7.0 and thus did not transfer any messages. GitHub issue: Continuation frames without `delivery_id` were not handled correctly. GitHub issue: Warning: The source code archive provided by GitHub only contains the source of the broker, not the plugins or the client libraries. Please download the archive named `rabbitmq-3.7.1.tar.gz`.
Project: ShardingSphere (App Definition and Development / Database)
File: show-key-generate-algorithm-plugins.en.md

+++ title = "SHOW KEY GENERATE ALGORITHM PLUGINS" weight = 7 +++ The `"SHOW KEY GENERATE ALGORITHM PLUGINS"` syntax is used to query all the implementations of the interface `org.apache.shardingsphere.keygen.core.algorithm.KeyGenerateAlgorithm`. {{< tabs >}} {{% tab name="Grammar" %}} ```sql showKeyGenerateAlgorithmPlugins ::= 'SHOW' 'KEY' 'GENERATE' 'ALGORITHM' 'PLUGINS' ``` {{% /tab %}} {{% tab name="Railroad diagram" %}} <iframe frameborder="0" name="diagram" id="diagram" width="100%" height="100%"></iframe> {{% /tab %}} {{< /tabs >}} | Columns | Description | |--|--| | type | type | | type_aliases | type aliases | | description | description | Query all the implementations for `org.apache.shardingsphere.keygen.core.algorithm.KeyGenerateAlgorithm` interface ```sql SHOW KEY GENERATE ALGORITHM PLUGINS ``` ```sql SHOW KEY GENERATE ALGORITHM PLUGINS; +--+--+-+ | type | type_aliases | description | +--+--+-+ | UUID | | | | SNOWFLAKE | | | +--+--+-+ 2 rows in set (0.05 sec) ``` `SHOW`, `KEY`, `GENERATE`, `ALGORITHM`, `PLUGINS`
Project: KICS (Provisioning / Security & Compliance)
File: 9a4ef195-74b9-4c58-b8ed-2b2fe4353a75.md

title: VPC Default Security Group Accepts All Traffic hide: toc: true navigation: true <style> .highlight .hll { background-color: #ff171742; } .md-content { max-width: 1100px; margin: 0 auto; } </style> Query id: 9a4ef195-74b9-4c58-b8ed-2b2fe4353a75 Query name: VPC Default Security Group Accepts All Traffic Platform: Terraform Severity: <span style="color:#bb2124">High</span> Category: Networking and Firewall URL: Default Security Group attached to every VPC should restrict all traffic<br> ```tf title="Positive test num. 1 - tf file" hl_lines="8 17" resource "aws_vpc" "mainvpc" { cidr_block = "10.1.0.0/16" } resource "awsdefaultsecurity_group" "default" { vpcid = awsvpc.mainvpc.id ingress = [ { protocol = -1 self = true from_port = 0 to_port = 0 } ] egress = [ { from_port = 0 to_port = 0 protocol = "-1" } ] } ``` ```tf title="Positive test num. 2 - tf file" hl_lines="8 18 14 23" resource "aws_vpc" "mainvpc3" { cidr_block = "10.1.0.0/16" } resource "awsdefaultsecurity_group" "default3" { vpcid = awsvpc.mainvpc3.id ingress = [ { protocol = -1 self = true from_port = 0 to_port = 0 ipv6cidrblocks = ["::/0"] } ] egress = [ { from_port = 0 to_port = 0 protocol = "-1" cidr_blocks = ["0.0.0.0/0"] } ] } ``` ```tf title="Negative test num. 1 - tf file" resource "aws_vpc" "mainvpc2" { cidr_block = "10.1.0.0/16" } resource "awsdefaultsecurity_group" "default2" { vpcid = awsvpc.mainvpc2.id } ```
Project: Rudder (Provisioning / Security & Compliance)
File: README.md

Runtime dependencies are: libpq To install build dependencies on Debian/Ubuntu: ```bash sudo make apt-dependencies ``` To install build dependencies on RHEL/Fedora: ```bash sudo make yum-dependencies ``` To install: ```bash make DESTDIR=/target/directory install ``` Schema for the database is in: `webapp/sources/rudder/rudder-core/src/main/resources/reportsSchema.sql`
Project: StarRocks (App Definition and Development / Database)
File: to_base64.md

displayed_sidebar: "English" Converts a string into a Base64-encoded string. This function is an inverse of . ```Haskell to_base64(str); ``` `str`: the string to encode. It must be of the VARCHAR type. Returns a value of the VARCHAR type. If the input is NULL, NULL is returned. If the input is empty, an error is returned. This function accepts only one string. More than one input string causes an error. ```Plain Text mysql> select to_base64("starrocks"); ++ | to_base64('starrocks') | ++ | c3RhcnJvY2tz | ++ 1 row in set (0.00 sec) mysql> select to_base64(123); +-+ | to_base64(123) | +-+ | MTIz | +-+ ```
Project: KubeArmor (Provisioning / Security & Compliance)
File: feature-request-enhancement.md

name: Feature request/Enhancement about: Suggest an idea for this project title: '' labels: enhancement assignees: '' Short Description E.g., KubeArmor could support protecting the earth from malicious aliens. Is your feature request related to a problem? Please describe the use case. A description of what the problem/use case is. E.g. Protect the earth from being decimated by nefarious aliens. Describe the solution you'd like A description of what you want to happen. E.g., Build a KubeArmor shield around the earth that can detect and block an alien invasion. Describe alternatives you've considered A description of any alternative solutions or features you've considered. E.g, Alternatively, KubeArmor could shower flower petals on alien invaders and win their hearts with humanity.
Project: Meshery (Provisioning / Automation & Configuration)
File: prometheus-operator-crds.md

layout: integration title: Prometheus Operator subtitle: Meshery provides performance reports, including performance test results, node resource metrics etc. so that operators may easily understand the overhead of their service meshs control plane and data plane in context of the overhead incurred on nodes running within the cluster. In order to generate performance test reports of service meshes and their workloads, Meshery uses Grafana and/or Prometheus as visualization and metrics systems, respectively. This guide outlines the requirements necessary for Meshery to connect to these systems. The steps may vary depending upon the service mesh and its configuration. image: /assets/img/integrations/prometheus-operator-crds/icons/color/prometheus-operator-crds-color.svg permalink: extensibility/integrations/prometheus-operator-crds docURL: https://docs.meshery.io/extensibility/integrations/prometheus-operator-crds description: integrations-category: Observability and Analysis integrations-subcategory: Monitoring registrant: Artifact Hub components: featureList: [ "Native support for PromQL", "Create custom charts with your own Prometheus queries", "Keep charts in-sync with Mesherys panel viewer" ] howItWorks: "Meshery provides performance reports, including performance test results, node resource metrics etc. so that operators may easily understand the overhead of their service meshs control plane and data plane in context of the overhead incurred on nodes running within the cluster. In order to generate performance test reports of service meshes and their workloads, Meshery uses Grafana and/or Prometheus as visualization and metrics systems, respectively. This guide outlines the requirements necessary for Meshery to connect to these systems. The steps may vary depending upon the service mesh and its configuration." howItWorksDetails: "Collaboratively manage infrastructure with your coworkers synchronously sharing the same designs." language: en list: include type: extensibility category: integrations
Project: Apache Hadoop (App Definition and Development / Database)
File: CHANGELOG.0.20.203.1.md

<! --> | JIRA | Summary | Priority | Component | Reporter | Contributor | |:- |:- | : |:- |:- |:- | | | The metrics source mbean implementation should return the attribute value instead of the object | Major | metrics | Luke Lu | Luke Lu | | | Error in the documentation regarding Checkpoint/Backup Node | Trivial | documentation | arnaud p | Harsh J |
Project: KICS (Provisioning / Security & Compliance)
File: e542bd46-58c4-4e0f-a52a-1fb4f9548e02.md

title: RDS Cluster With Backup Disabled hide: toc: true navigation: true <style> .highlight .hll { background-color: #ff171742; } .md-content { max-width: 1100px; margin: 0 auto; } </style> Query id: e542bd46-58c4-4e0f-a52a-1fb4f9548e02 Query name: RDS Cluster With Backup Disabled Platform: Terraform Severity: <span style="color:#ff7213">Medium</span> Category: Backup URL: RDS Cluster backup retention period should be specifically defined<br> ```tf title="Positive test num. 1 - tf file" hl_lines="1" resource "awsrdscluster" "postgresql" { cluster_identifier = "aurora-cluster-demo" engine = "aurora-postgresql" availability_zones = ["us-west-2a", "us-west-2b", "us-west-2c"] database_name = "mydb" master_username = "foo" master_password = "bar" preferredbackupwindow = "07:00-09:00" } ``` ```tf title="Negative test num. 1 - tf file" resource "awsrdscluster" "postgresql" { cluster_identifier = "aurora-cluster-demo" engine = "aurora-postgresql" availability_zones = ["us-west-2a", "us-west-2b", "us-west-2c"] database_name = "mydb" master_username = "foo" master_password = "bar" backupretentionperiod = 5 preferredbackupwindow = "07:00-09:00" } ```
Project: PostgreSQL (App Definition and Development / Database)
File: README.md

PostgreSQL Database Management System ===================================== This directory contains the source code distribution of the PostgreSQL database management system. PostgreSQL is an advanced object-relational database management system that supports an extended subset of the SQL standard, including transactions, foreign keys, subqueries, triggers, user-defined types and functions. This distribution also contains C language bindings. Copyright and license information can be found in the file COPYRIGHT. General documentation about this version of PostgreSQL can be found at <https://www.postgresql.org/docs/devel/>. In particular, information about building PostgreSQL from the source code can be found at <https://www.postgresql.org/docs/devel/installation.html>. The latest version of this software, and related software, may be obtained at <https://www.postgresql.org/download/>. For more information look at our web site located at <https://www.postgresql.org/>.
Project: Dapr (App Definition and Development / Application Definition & Image Build)
File: API-003-messaging-api-names.md

Accepted Our existing messaging interface names lack of clarity. This review was to make sure messaging interfaces were named appropriately to avoid possible confusions. All messaging APIs are grouped under a messaging* namespace/package. We define three distinct messaging interfaces: direct One-to-one messaging between two parties: a sender sending message to a recipient. broadcast One-to-many messaging: a sender sending message to a list of recipients. pub-sub Messaging through pub-sub: a publisher publishing to a topic, to which subscribers subscribe. We distinguish message and direct invocation. For messaging, we guarantee at-least-once delivery. For direct invocation, we provide best-attempt delivery. We should achieve better clarity on messaging behaviors.
Project: YugabyteDB (App Definition and Development / Database)
File: ddl_drop_index.md

title: DROP INDEX statement [YSQL] headerTitle: DROP INDEX linkTitle: DROP INDEX description: Use the DROP INDEX statement to remove one or more indexes from the database. menu: v2.18: identifier: ddldropindex parent: statements type: docs Use the `DROP INDEX` statement to remove an index from the database. {{%ebnf%}} drop_index {{%/ebnf%}} Under normal operation, an error is raised if the index does not exist. Adding `IF EXISTS` will quietly ignore any non-existent indexes specified. Specify the name of the index to be dropped. Objects associated with the index will be invalidated after the `DROP INDEX` statement is completed. `RESTRICT` (the default) will not drop the index if any objects depend on it. `CASCADE` will drop any objects that transitively depend on the index. Create a table with an index: ```plpgsql CREATE TABLE t1(id BIGSERIAL PRIMARY KEY, v TEXT); CREATE INDEX i1 ON t1(v); ``` Verify the index was created: ```sql \d t1 ``` ```output Table "public.t1" Column | Type | Collation | Nullable | Default --+--+--+-+-- id | bigint | | not null | nextval('t1idseq'::regclass) v | text | | | Indexes: "t1_pkey" PRIMARY KEY, lsm (id HASH) "i1" lsm (v HASH) ``` Drop the index: ```sql DROP INDEX i1; ``` Use the `\d t1` meta-command to verify that the index no longer exists. ```sql \d t1 ``` ```output Table "public.t1" Column | Type | Collation | Nullable | Default --+--+--+-+-- id | bigint | | not null | nextval('t1idseq'::regclass) v | text | | | Indexes: "t1_pkey" PRIMARY KEY, lsm (id HASH) ```
Project: LinuxKit (Provisioning / Automation & Configuration)
File: LICENSE.md

The MIT License (MIT) Copyright (c) 2014 Mitchell Hashimoto Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions: The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software. THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
Project: StarRocks (App Definition and Development / Database)
File: substring_index.md

displayed_sidebar: "English" Extracts a substring that precedes or follows the `count` occurrences of the delimiter. If `count` is positive, counting starts from the beginning of the string and this function returns the substring that precedes the `count`th delimiter. For example, `select substring_index('https://www.starrocks.io', '.', 2);` returns the substring before the second `.` delimiter, which is `https://www.starrocks`. If `count` is negative, counting starts from the end of the string and this function returns the substring that follows the `count`th delimiter. For example, `select substring_index('https://www.starrocks.io', '.', -2);` returns the substring after the second `.` delimiter, which is `starrocks.io`. If any input parameter is null, NULL is returned. This function is supported from v3.2. ```Haskell VARCHAR substring_index(VARCHAR str, VARCHAR delimiter, INT count) ``` `str`: required, the string you want to split. `delimiter`: required, the delimiter used to split the string. `count`: required, the position of the delimiter. The value cannot be 0. Otherwise, NULL is returned. If the value is greater than the actual number of delimiters in the string, the entire string is returned. Returns a VARCHAR value. ```Plain Text -- Return the substring that precedes the second "." delimiter. mysql> select substring_index('https://www.starrocks.io', '.', 2); +--+ | substring_index('https://www.starrocks.io', '.', 2) | +--+ | https://www.starrocks | +--+ -- The count is negative. mysql> select substring_index('https://www.starrocks.io', '.', -2); ++ | substring_index('https://www.starrocks.io', '.', -2) | ++ | starrocks.io | ++ mysql> select substring_index("hello world", " ", 1); +-+ | substring_index("hello world", " ", 1) | +-+ | hello | +-+ mysql> select substring_index("hello world", " ", -1); +--+ | substring_index('hello world', ' ', -1) | +--+ | world | +--+ -- Count is 0 and NULL is returned. mysql> select substring_index("hello world", " ", 0); +-+ | substring_index('hello world', ' ', 0) | +-+ | NULL | +-+ -- Count is greater than the number of spaces in the string and the entire string is returned. mysql> select substring_index("hello world", " ", 2); +-+ | substring_index("hello world", " ", 2) | +-+ | hello world | +-+ -- Count is greater than the number of spaces in the string and the entire string is returned. mysql> select substring_index("hello world", " ", -2); +--+ | substring_index("hello world", " ", -2) | +--+ | hello world | +--+ ``` substring_index
Project: KICS (Provisioning / Security & Compliance)
File: 73fb21a1-b19a-45b1-b648-b47b1678681e.md

title: Legacy Client Certificate Auth Enabled hide: toc: true navigation: true <style> .highlight .hll { background-color: #ff171742; } .md-content { max-width: 1100px; margin: 0 auto; } </style> Query id: 73fb21a1-b19a-45b1-b648-b47b1678681e Query name: Legacy Client Certificate Auth Enabled Platform: Terraform Severity: <span style="color:#edd57e">Low</span> Category: Insecure Configurations URL: Kubernetes Clusters must use the default OAuth authentication, which means 'masterauth' must either be undefined or have 'clientcertificateconfig' with the attribute 'issueclient_certificate' equal to false<br> ```tf title="Positive test num. 1 - tf file" hl_lines="24 7" resource "googlecontainercluster" "positive1" { name = "marcellus-wallace" location = "us-central1-a" initialnodecount = 3 master_auth { } timeouts { create = "30m" update = "40m" } } resource "googlecontainercluster" "positive2" { name = "marcellus-wallace" location = "us-central1-a" initialnodecount = 3 master_auth { clientcertificateconfig { issueclientcertificate = true } } timeouts { create = "30m" update = "40m" } } ``` ```tf title="Negative test num. 1 - tf file" resource "googlecontainercluster" "negative1" { name = "marcellus-wallace" location = "us-central1-a" initialnodecount = 3 master_auth { clientcertificateconfig { issueclientcertificate = false } } timeouts { create = "30m" update = "40m" } } resource "googlecontainercluster" "negative2" { name = "marcellus-wallace" location = "us-central1-a" initialnodecount = 3 timeouts { create = "30m" update = "40m" } } ```