cwielenb/CNCF-Dataset huggingface dataset:
Project: Trivy (Provisioning / Security & Compliance)
File: google-distroless.md

Trivy supports the following scanners for OS packages. | Scanner | Supported | | :--: | :-: | | SBOM | | | Vulnerability | | | License | | Please see for supported versions. The table below outlines the features offered by Trivy. | Feature | Supported | | :-: | :-: | | Unfixed vulnerabilities | - | | | | Trivy detects packages pre-installed in distroless images. Google Distroless is based on [Debian]; see there for details. Google Distroless is based on [Debian]; see there for details.
Project: Meshery (Provisioning / Automation & Configuration)
File: v0.5.20.md

layout: release date: 2021-06-09 tag: v0.5.20 Tooltip UI for Load generators @DantrazTrev (#3129) Handle API key change in Grafana Marics Settings @Ayush-Khandelwal-007 (#3157) [Docs] update instructions for upgrading meshery docker deployment @DelusionalOptimist (#3155) Fixed handleOperatorClick chip @dhruv0000 (#3146) fixes for operator flow @kumarabd (#3147) fix[UI]: Make Meshery logo stick to the top in Navigator @sudo-NithishKarthik (#3133) Fix the user Profile shifting issue in Meshery UI @sudo-NithishKarthik (#3144) Allow users to set channel as stable-vX.X.X @metonymic-smokey (#3148) Fixed channel set panic @metonymic-smokey (#3145) Bump billboard.js from 2.2.3 to 3.0.3 in /ui @dependabot (#3103) [Docs] Meshery Adapters page @leecalcote (#3152) [Docs] - Update command reference pages @Blakelist7 (#3002)
Project: StarRocks (App Definition and Development / Database)
File: parse_json.md

displayed_sidebar: "English" Converts a string to a JSON value. ```Haskell parsejson(stringexpr) ``` `string_expr`: the expression that represents the string. Only the STRING, VARCHAR, and CHAR data types are supported. Returns a JSON value. Note: If the string cannot be parsed into a standard JSON value, the PARSE_JSON function returns `NULL` (see Example 5). For information about the JSON specifications, see . Example 1: Convert a STRING value of `1` to a JSON value of `1`. ```plaintext mysql> SELECT parse_json('1'); +--+ | parse_json('1') | +--+ | "1" | +--+ ``` Example 2: Convert an array of the STRING data type to a JSON array. ```plaintext mysql> SELECT parse_json('[1,2,3]'); +--+ | parse_json('[1,2,3]') | +--+ | [1, 2, 3] | +--+ ``` Example 3: Convert an object of the STRING data type to a JSON object. ```plaintext mysql> SELECT parse_json('{"star": "rocks"}'); ++ | parse_json('{"star": "rocks"}') | ++ | {"star": "rocks"} | ++ ``` Example 4: Construct a JSON value of `NULL`. ```plaintext mysql> SELECT parse_json('null'); +--+ | parse_json('null') | +--+ | "null" | +--+ ``` Example 5: If the string cannot be parsed into a standard JSON value, the PARSEJSON function returns `NULL`. In this example, `star` is not enclosed in double quotation marks ("). Therefore, the PARSEJSON function returns `NULL`. ```plaintext mysql> SELECT parse_json('{star: "rocks"}'); +-+ | parse_json('{star: "rocks"}') | +-+ | NULL | +-+ ``` parse_json, parse json
Project: StarRocks (App Definition and Development / Database)
File: multiply.md

displayed_sidebar: "English" Computes the product of the arguments. ```Haskell multiply(arg1, arg2) ``` `arg1`: numeric source column or literal. `arg2`: numeric source column or literal. Returns the product of two arguments. The return type depends on the arguments. If you specify a non-numeric value, this function will fail. ```Plain MySQL [test]> select multiply(10,2); +--+ | multiply(10, 2) | +--+ | 20 | +--+ 1 row in set (0.01 sec) MySQL [test]> select multiply(1,2.1); ++ | multiply(1, 2.1) | ++ | 2.1 | ++ 1 row in set (0.01 sec) MySQL [test]> select * from t; +++++ | id | name | job1 | job2 | +++++ | 2 | 2 | 2 | 2 | +++++ 1 row in set (0.08 sec) MySQL [test]> select multiply(1.0,id) from t; +-+ | multiply(1.0, id) | +-+ | 2 | +-+ 1 row in set (0.01 sec) ``` multiply
Project: Beam (App Definition and Development / Streaming & Messaging)
File: connectors-python-sdk.md

title: "Connectors - Python SDK" <!-- Licensed 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. --> Roadmap for connectors developed using Python SDK. An Apache Kafka connectors for Python SDK that is fully developed using Splittable DoFn API is planned. This is partially blocked till Splittable DoFn work related to portability framework is finalized. See for more details. A Python connector for Parquet file format is currently in development. See for more details.
Project: DevSpace (App Definition and Development / Application Definition & Image Build)
File: devspace_update_plugin.md

title: "Command - devspace update plugin" sidebar_label: devspace update plugin Updates a devspace plugin ``` devspace update plugin [flags] ``` ``` Updates a plugin devspace update plugin my-plugin ``` ``` -h, --help help for plugin --version string The git tag to use ``` ``` --config string The devspace config file to use --debug Prints the stack trace if an error occurs --disable-profile-activation If true will ignore all profile activations --inactivity-timeout int Minutes the current user is inactive (no mouse or keyboard interaction) until DevSpace will exit automatically. 0 to disable. Only supported on windows and mac operating systems (default 180) --kube-context string The kubernetes context to use -n, --namespace string The kubernetes namespace to use --no-warn If true does not show any warning when deploying into a different namespace or kube-context than before -p, --profile strings The DevSpace profiles to apply. Multiple profiles are applied in the order they are specified --profile-parent strings One or more profiles that should be applied before the specified profile (e.g. devspace dev --profile-parent=base1 --profile-parent=base2 --profile=my-profile) --profile-refresh If true will pull and re-download profile parent sources --restore-vars If true will restore the variables from kubernetes before loading the config --save-vars If true will save the variables to kubernetes after loading the config --silent Run in silent mode and prevents any devspace log output except panics & fatals -s, --switch-context DEPRECATED: Switches and uses the last kube context and namespace that was used to deploy the DevSpace project --var strings Variables to override during execution (e.g. --var=MYVAR=MYVALUE) --vars-secret string The secret to restore/save the variables from/to, if --restore-vars or --save-vars is enabled (default "devspace-vars") ```
Project: Meshery (Provisioning / Automation & Configuration)
File: v0.6.111.md

layout: release date: 2023-07-24 tag: v0.6.111 [scripts] fix svgs paths for remote provider components generation @theBeginner86 (#8266) [Filters] A quick dirty fix for uploading filters config @Abhishek-kumar09 (#7993) [UI] Memoized Charts And Graph Components @aabidsofi19 (#8217) Adding [Docs] Meshery Cloud Team Management and Notifications @yash37158 (#8212) Thank you to our contributors for making this release possible: @Abhishek-kumar09, @Aisuko, @aabidsofi19, @leecalcote, @theBeginner86 and @yash37158
Project: KICS (Provisioning / Security & Compliance)
File: f9b7086b-deb8-4034-9330-d7fd38f1b8de.md

title: High Google KMS Crypto Key Rotation Period hide: toc: true navigation: true <style> .highlight .hll { background-color: #ff171742; } .md-content { max-width: 1100px; margin: 0 auto; } </style> Query id: f9b7086b-deb8-4034-9330-d7fd38f1b8de Query name: High Google KMS Crypto Key Rotation Period Platform: Ansible Severity: <span style="color:#ff7213">Medium</span> Category: Secret Management URL: KMS encryption keys should be rotated every 90 days or less. A short lifetime of encryption keys reduces the potential blast radius in case of compromise.<br> ```yaml title="Positive test num. 1 - yaml file" hl_lines="18 23" name: create a key ring google.cloud.gcpkmskey_ring: name: key-key-ring location: us-central1 project: "{{ gcp_project }}" authkind: "{{ gcpcred_kind }}" serviceaccountfile: "{{ gcpcredfile }}" state: present register: keyring name: create a crypto key google.cloud.gcpkmscrypto_key: name: test_object keyring: projects/{{ gcpproject }}/locations/us-central1/keyRings/key-key-ring project: test_project auth_kind: serviceaccount rotation_period: "315356000s" serviceaccountfile: "/tmp/auth.pem" state: present name: create a crypto key2 google.cloud.gcpkmscrypto_key: name: test_object keyring: projects/{{ gcpproject }}/locations/us-central1/keyRings/key-key-ring project: test_project auth_kind: serviceaccount serviceaccountfile: "/tmp/auth.pem" state: present ``` ```yaml title="Negative test num. 1 - yaml file" name: create a key ring google.cloud.gcpkmskey_ring: name: key-key-ring location: us-central1 project: '{{ gcp_project }}' authkind: '{{ gcpcred_kind }}' serviceaccountfile: '{{ gcpcredfile }}' state: present register: keyring name: create a crypto key google.cloud.gcpkmscrypto_key: name: test_object keyring: projects/{{ gcpproject }}/locations/us-central1/keyRings/key-key-ring project: test_project auth_kind: serviceaccount rotation_period: 7776000s serviceaccountfile: /tmp/auth.pem state: present ```
Project: KubeClarity (Provisioning / Security & Compliance)
File: feature_request.md

name: Feature request about: Suggest an idea for this project title: '' labels: '' assignees: '' Is your feature request related to a problem? Please describe. A clear and concise description of what the problem is. Ex. I'm always frustrated when [...] Describe the solution you'd like A clear and concise description of what you want to happen. Describe alternatives you've considered A clear and concise description of any alternative solutions or features you've considered. Additional context Add any other context or screenshots about the feature request here.
Project: StarRocks (App Definition and Development / Database)
File: time_to_sec.md

displayed_sidebar: "English" Converts a time value into the number of seconds. The formula used for the conversion is as follows: Hour x 3600 + Minute x 60 + Second ```Haskell BIGINT timetosec(TIME time) ``` `time`: It must be of the TIME type. Returns a value of the BIGINT type. If the input is invalid, NULL is returned. ```plain text select timetosec('12:13:14'); +--+ | timetosec('12:13:14') | +--+ | 43994| +--+ ```
Project: YugabyteDB (App Definition and Development / Database)
File: hdel.md

title: HDEL linkTitle: HDEL description: HDEL menu: preview: parent: api-yedis weight: 2100 aliases: /preview/api/redis/hdel /preview/api/yedis/hdel type: docs `HDEL key field [field ...]` This command removes the given `fields` from the hash that is associated with the given `key`. If the given `key` does not exist, it is characterized as an empty hash, and 0 is returned for no elements are removed. If the given `key` is associated with non-hash data, an error is raised. Depends on the configuration parameter `emulateredisresponses`. If `emulateredisresponses` is `true`, returns the number of existing fields in the hash that were removed by this command. If `emulateredisresponses` is `false`, returns OK. `emulateredisresponses` is `true`. ```sh $ HSET yugahash moon "Moon" ``` ``` 1 ``` ```sh $ HDEL yugahash moon ``` ``` 1 ``` ```sh $ HDEL yugahash moon ``` ``` 0 ``` `emulateredisresponses` is `false`. ```sh $ HSET yugahash moon "Moon" ``` ``` "OK" ``` ```sh $ HDEL yugahash moon ``` ``` "OK" ``` ```sh $ HDEL yugahash moon ``` ``` "OK" ``` , , , , , , , , , ,
Project: YugabyteDB (App Definition and Development / Database)
File: grow-cluster.md

title: Grow cluster headerTitle: Grow cluster linkTitle: Grow cluster description: Grow a cluster by adding new nodes. menu: v2.14: identifier: grow-cluster parent: manage weight: 709 type: docs To grow a YugabyteDB cluster, add new yb-tserver nodes, just like you would when creating the cluster. For more information, see .
Project: Chef InSpec (Provisioning / Security & Compliance)
File: google_kms_key_ring_iam_binding.md

+++ title = "googlekmskeyringiam_binding resource" draft = false gh_repo = "inspec" platform = "gcp" [menu] [menu.inspec] title = "googlekmskeyringiam_binding" identifier = "inspec/resources/gcp/googlekmskeyringiambinding.md googlekmskeyringiambinding resource" parent = "inspec/resources/gcp" +++ A `googlekmskeyringiam_binding` is used to test a Google KeyRing Iam Bindings ```ruby describe googlekmskeyringiambinding(project: "project", location: "location", keyringname: "keyring_name", role: "roles/editor") do it { should exist } its('members') { should include 'user:testuser@example.com' } end ``` Properties that can be accessed from the `googlekmskeyringiam_binding` resource: `role` : Role that is assigned to members. For example, roles/viewer, roles/editor, or roles/owner. `members` : Specifies the identities requesting access for a Cloud Platform resource. Ensure the is enabled for the current project.
Project: SeaTunnel (App Definition and Development / Streaming & Messaging)
File: GoogleSheets.md

GoogleSheets source connector Used to read data from GoogleSheets. [ ] file format [ ] text [ ] csv [ ] json | name | type | required | default value | ||--|-|| | serviceaccountkey | string | yes | - | | sheet_id | string | yes | - | | sheet_name | string | yes | - | | range | string | yes | - | | schema | config | no | - | google cloud service account, base64 required sheet id in a Google Sheets URL the name of the sheet you want to import the range of the sheet you want to import the schema fields of upstream data simple: ```hocon GoogleSheets { serviceaccountkey = "seatunnel-test" sheetid = "1VI0DvyZK-NIdssSdsDSsSSSC--rYMi7ppJiI_jhE" sheet_name = "sheets01" range = "A1:C3" schema = { fields { a = int b = string c = string } } } ``` Add GoogleSheets Source Connector
Project: YugabyteDB (App Definition and Development / Database)
File: clion-setup.md

title: Configure a CLion project headerTitle: Configure a CLion project linkTitle: Configure a CLion project description: Configure a CLion project for building YugabyteDB using cmake or ninja. headcontent: CLion project setup. menu: preview: identifier: configure-clion parent: core-database weight: 2912 type: docs There are two options for build systems that you can use with YugabyteDB, and ). Note that the meta build system is used in both cases, and it generates build files consumed by the underlying Ninja and Make build systems. `ninja` is faster than `make`, especially for rebuilding mostly-built projects, but CLion has limited support for `ninja` (for example, it doesn't allow you to ). `make` is well-supported by CLion, but slower, particularly for rebuilding mostly-built projects, compared to `ninja`. Click File > Open to open the project root directory. If you want to build with Ninja, use `build/debug-clang-dynamic-ninja` as a "Generation path" and add `-G Ninja` into "CMake options": Select `build/debug-clang-dynamic` as the Generation path in Preferences > Build, Execution, Deployment/CMake, and do not specify anything for CMake options. Use "File / Reload CMake Project". CLion will start updating symbols, which also can take a while. Run from the command line inside project root outside CLion (omit `YBUSENINJA=0` if you want to use Ninja): ```sh YBUSENINJA=0 ./yb_build.sh ``` Subsequent builds can be launched also from CLion.
Project: SchemaHero (App Definition and Development / Database)
File: kubectl-plugin.md

This proposal is to change the default behavior of the SchemaHero operator so that it doesn't deploy migrations when received. Instead, there should be a kubectl plugin that can be used to interact with the operator and approve or reject changes. This plugin should provide the ability to review the generated SQL statements. The Database kind should be extended to support disabling this functionality and automatically deploying, if desired. Automatically deploying schema changes is risky because there's little or no opportunity to review the generated statements or to group / order schema changes. Reviewing SQL statements is important and the lack of ability is a barrier to adoption of a tool like SchemaHero. Some grouping and ordering can be achieved if manually deploying changes using kubectl apply, but if using an automated workflow, multiple and out of order changes could be deployed at the same time. This is the current plan of action; it's based on product feedback received so far since launching SchemaHero. Bump the Table and Database CRD versions to v1alpha4 Add a top level boolean attribute to the Database kind named `automaticallyDeployMigrations` When a table migration is deployed, if `automaticallyDeployMigrations` is not enabled, the controller should only generate the desired YAML The desired YAML should be stored in the Status field of the Table object Create a kubectl plugin named schemahero that interacts with the running operator using the kubecontext The kubectl plugin should be able to list pending migrations and view the SQL The plugin should be able to request that the generated SQL be regenerated from the current schema The plugin should be able to approve or reject the migrations, as desired As an example to help make this easier to understand, a use of the schemahero plugin could look like this: Some basic interactions: List databases ```shell $ kubectl schemahero get databases NAME PENDING mydb 0 reporting 1 ``` List tables in one database (or --all-databases should be supported) ```shell $ kubectl schemahero get tables --database reporting NAME PENDING users 0 projects 1 ``` List all pending migrations for all database (--status=pending) should be default? ```shell $ kubectl schemahero get migrations --status=pending --all-databases ID DATABASE TABLE abc123 reporting projects ``` View a migration, including the generated SQL ```shell $ kubectl schemahero describe migration abc123 Name: abc123 Database: Name: reporting Type: postgres AutomaticallyDeployMigrations: false Table: Columns: Name: id Type: text Status: Migration Created At: 2019-12-18T12:34:56Z Migration: UPDATE reporting ADD COLUMN something (text) ``` Regenerate a migration (recalculate the sql) ```shell $ kubectl schemahero update migration abc123 --regenerate Migration abc123 will be regenerate. ```
Project: KICS (Provisioning / Security & Compliance)
File: 5c822443-e1ea-46b8-84eb-758ec602e844.md

title: Security Group is Not Configured hide: toc: true navigation: true <style> .highlight .hll { background-color: #ff171742; } .md-content { max-width: 1100px; margin: 0 auto; } </style> Query id: 5c822443-e1ea-46b8-84eb-758ec602e844 Query name: Security Group is Not Configured Platform: Terraform Severity: <span style="color:#bb2124">High</span> Category: Insecure Configurations URL: Azure Virtual Network subnet must be configured with a Network Security Group, which means the attribute 'security_group' must be defined and not empty<br> ```tf title="Positive test num. 1 - tf file" hl_lines="21 7" resource "azurevirtualnetwork" "positive1" { name = "test-network" address_space = ["10.1.2.0/24"] location = "West US" subnet { name = "subnet1" address_prefix = "10.1.2.0/25" } } resource "azurevirtualnetwork" "positive2" { name = "test-network" address_space = ["10.1.2.0/24"] location = "West US" subnet { name = "subnet1" address_prefix = "10.1.2.0/25" security_group = "" } } ``` ```tf title="Negative test num. 1 - tf file" resource "azurevirtualnetwork" "negative1" { name = "test-network" address_space = ["10.1.2.0/24"] location = "West US" subnet { name = "subnet1" address_prefix = "10.1.2.0/25" security_group = "a" } } ```
Project: ArangoDB (App Definition and Development / Database)
File: implicit_failure_make_exception_ptr_move_constructor.md

+++ title = "`basicresult(failuretype<T> &&)`" description = "Implicit error-from-failure-type-sugar move constructor. Available if `predicate::enablemakeexceptionptrcompatible_conversion<void, T, void>` is true, or `T` is `void`. Constexpr, triviality and noexcept propagating." categories = ["constructors", "implicit-constructors", "tagged-constructors"] weight = 534 +++ Implicit error-from-failure-type-sugar move constructor used to disambiguate the construction of the error type. Note that if `T = void`, `errortype` will be default constructed. Calls {{% api "void onresultmoveconstruction(T *, U &&) noexcept" %}} with `this` and `failure_type<T> &&`. Requires: `predicate::enablemakeexceptionptrcompatible_conversion<void, T, void>` is true, or `T` is `void`. Complexity: Same as for the `errortype` constructor which accepts `T`, or the `errortype` default constructor if `T` is `void`. Constexpr, triviality and noexcept of underlying operations is propagated.
Project: Beam (App Definition and Development / Streaming & Messaging)
File: mapelements.md

title: "MapElements" <!-- Licensed 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. --> <table align="left"> <a target="_blank" class="button" href="https://beam.apache.org/releases/javadoc/current/index.html?org/apache/beam/sdk/transforms/MapElements.html"> <img src="/images/logos/sdks/java.png" width="20px" height="20px" alt="Javadoc" /> Javadoc </a> </table> <br><br> Applies a simple 1-to-1 mapping function over each element in the collection. Example 1: providing the mapping function using a `SimpleFunction` {{< playground height="700px" >}} {{< playgroundsnippet language="java" path="SDKJAVAMapElements" show="mainsection" >}} {{< /playground >}} Example 2: providing the mapping function using a `SerializableFunction`, which allows the use of Java 8 lambdas. Due to type erasure, you need to provide a hint indicating the desired return type. {{< highlight java >}} PCollection<String> lines = Create.of("Hello World", "Beam is fun"); PCollection<Integer> lineLengths = lines.apply(MapElements .into(TypeDescriptors.integers()) .via((String line) -> line.length())); {{< /highlight >}} behaves the same as `Map`, but for each input it may produce zero or more outputs. is useful if the function is just deciding whether to output an element or not. is the most general element-wise mapping operation, and includes other abilities such as multiple output collections and side-inputs.
Project: KICS (Provisioning / Security & Compliance)
File: 0b4869fc-a842-4597-aa00-1294df425440.md

title: API Gateway Without SSL Certificate hide: toc: true navigation: true <style> .highlight .hll { background-color: #ff171742; } .md-content { max-width: 1100px; margin: 0 auto; } </style> Query id: 0b4869fc-a842-4597-aa00-1294df425440 Query name: API Gateway Without SSL Certificate Platform: Terraform Severity: <span style="color:#ff7213">Medium</span> Category: Insecure Configurations URL: SSL Client Certificate should be enabled<br> ```tf title="Positive test num. 1 - tf file" hl_lines="1" resource "awsapigateway_stage" "positive1" { stage_name = "prod" restapiid = awsapigatewayrestapi.test.id deploymentid = awsapigatewaydeployment.test.id } ``` ```tf title="Negative test num. 1 - tf file" resource "awsapigateway_stage" "negative1" { stage_name = "prod" restapiid = awsapigatewayrestapi.test.id deploymentid = awsapigatewaydeployment.test.id clientcertificateid = "12131323" } ```