cwielenb/CNCF-Dataset huggingface dataset:
Project: external-secrets (Provisioning / Security & Compliance)
File: gitlab-variables.md

External Secrets Operator integrates with GitLab to sync and/or to secrets held on the Kubernetes cluster. The GitLab API requires an access token, project ID and/or groupIDs. To create a new access token, go to your user settings and select 'access tokens'. Give your token a name, expiration date, and select the permissions required (Note 'api' is required). Click 'Create personal access token', and your token will be generated and displayed on screen. Copy or save this token since you can't access it again. Create a secret containing your access token: ```yaml {% include 'gitlab-credentials-secret.yaml' %} ``` Be sure the `gitlab` provider is listed in the `Kind=SecretStore` and the ProjectID is set. If you are not using `https://gitlab.com`, you must set the `url` field as well. In order to sync group variables `inheritFromGroups` must be true or `groupIDs` have to be defined. In case you have defined multiple environments in Gitlab, the secret store should be constrained to a specific `environment_scope`. ```yaml {% include 'gitlab-secret-store.yaml' %} ``` NOTE: In case of a `ClusterSecretStore`, Be sure to provide `namespace` in `accessToken` with the namespace where the secret resides. Your project ID can be found on your project's page. To sync a GitLab variable to a secret on the Kubernetes cluster, a `Kind=ExternalSecret` is needed. ```yaml {% include 'gitlab-external-secret.yaml' %} ``` DataFrom can be used to get a variable as a JSON string and attempt to parse it. ```yaml {% include 'gitlab-external-secret-json.yaml' %} ``` The operator will fetch the project variable and inject it as a `Kind=Secret`. ``` kubectl get secret gitlab-secret-to-create -o jsonpath='{.data.secretKey}' | base64 -d ```
Project: Podman (App Definition and Development / Application Definition & Image Build)
File: ISSUE_TEMPLATE.md

<!-- BUG REPORT INFORMATION Use the commands below to provide key information from your environment: NOTE A large number of issues reported against Podman are often found to already be fixed in more current versions of the project. Before reporting an issue, please verify the version you are running with `podman version` and compare it to the latest release documented on the top of Podman's . If they differ, please update your version of Podman to the latest possible and retry your command before creating an issue. Also, there is a running list of known issues in the , please reference that page before opening a new issue. If you are filing a bug against `podman build`, please instead file a bug against Buildah (https://github.com/containers/buildah/issues). Podman build executes Buildah to perform container builds, and as such the Buildah maintainers are best equipped to handle these bugs. -->
Project: Apache StreamPipes (App Definition and Development / Streaming & Messaging)
File: README.md

<!-- ~ 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. ~ --> This library was generated with version 12.2.0. Run `ng generate component component-name --project platform-services` to generate a new component. You can also use `ng generate directive|pipe|service|class|guard|interface|enum|module --project platform-services`. Note: Don't forget to add `--project platform-services` or else it will be added to the default project in your `angular.json` file. Run `ng build platform-services` to build the project. The build artifacts will be stored in the `dist/` directory. After building your library with `ng build platform-services`, go to the dist folder `cd dist/platform-services` and run `npm publish`. Run `ng test platform-services` to execute the unit tests via . To get more help on the Angular CLI use `ng help` or go check out the page.
Project: KICS (Provisioning / Security & Compliance)
File: b47b98ab-e481-4a82-8bb1-1ab39fd36e33.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: b47b98ab-e481-4a82-8bb1-1ab39fd36e33 Query name: API Gateway Without SSL Certificate Platform: Ansible Severity: <span style="color:#ff7213">Medium</span> Category: Insecure Configurations URL: SSL Client Certificate should be enabled<br> ```yaml title="Positive test num. 1 - yaml file" hl_lines="8 21 6 23" name: update API awsapigateway: api_id: 'abc123321cba' state: present swaggerfile: myapi.yml validate_certs: no name: update API v1 awsapigateway: api_id: 'abc123321cba' state: present swaggerfile: myapi.yml name: Setup AWS API Gateway setup on AWS and deploy API definition community.aws.awsapigateway: swaggerfile: myapi.yml stage: production cache_enabled: true cache_size: '1.6' tracing_enabled: true endpoint_type: EDGE state: present validate_certs: no name: Setup AWS API Gateway setup on AWS and deploy API definition v1 community.aws.awsapigateway: swaggerfile: myapi.yml stage: production cache_enabled: true cache_size: '1.6' tracing_enabled: true endpoint_type: EDGE state: present ``` ```yaml title="Negative test num. 1 - yaml file" name: update API v2 awsapigateway: api_id: abc123321cba state: present swaggerfile: myapi.yml validate_certs: yes name: Setup AWS API Gateway setup on AWS and deploy API definition v2 community.aws.awsapigateway: swaggerfile: myapi.yml stage: production cache_enabled: true cache_size: '1.6' tracing_enabled: true endpoint_type: EDGE state: present validate_certs: yes ```
Project: Presto (App Definition and Development / Database)
File: orc-file-format.md

ORC File ======== Structure stripe_0 stripe_1 stripe_2 ... stripe_N metadata footer postScript postScriptSize Decoding -- The file is decoded bottom up: Read `postScriptSize` from last byte of the file Read post script section Decode `PostScript` using Protocol Buffers Read metadata and footer sections using information from postScript Decode `Metadata` and `Footer` using Protocol Buffers Filter stripes using `Metadata` (stop if everything filtered) Read stripes using `StripeInformation` from Footer Decode stripes (see below) Stripe ====== Structure index indexstream0 indexstream1 indexstream2 ... indexstream3 data datastream0 datastream1 datastream2 ... datastream3 stripeFooter Decoding -- A stripe is decoded as follows: Read stripeFooter Decode StripeFooter using Protocol Buffers Read index streams for included columns Decode a `List<RowGroupIndex>` from each index_stream using Protocol Buffers Filter row groups using `RowGroupIndex.columnStatistics` (stop if everything filtered) Read data streams for included columns Decode data streams (see below) Stream ====== Streams contain a sequence of all values for the stripe. Since a stripe typically contains hundreds of thousands of values in a compressed stream, the offset of every Nth value is recorded in the index_stream along with the minimum and maximum value of the stream. These N rows logically form a RowGroup, and using the statistics RowGroups can be skipped.
Project: Shifu (Provisioning / Automation & Configuration)
File: CHANGELOG-v0.21.0.md

Huge thanks to everyone who's stargazed us on this epic journey to 1,000 stars! Your contributions light our way and make this project shine even brighter. Here's to an even more collaborative and exciting future. Bump github.com/onsi/gomega from 1.27.7 to 1.27.8 by @dependabot in https://github.com/Edgenesis/shifu/pull/628 Bump golang.org/x/crypto from 0.9.0 to 0.10.0 by @dependabot in https://github.com/Edgenesis/shifu/pull/632 Bump github.com/onsi/ginkgo/v2 from 2.9.5 to 2.11.0 by @dependabot in https://github.com/Edgenesis/shifu/pull/634 Bump github.com/imdario/mergo from 0.3.15 to 0.3.16 by @dependabot in https://github.com/Edgenesis/shifu/pull/629 Full Changelog: https://github.com/Edgenesis/shifu/compare/v0.20.0...v0.21.0
Project: CloudTTY (App Definition and Development / Application Definition & Image Build)
File: CODE_OF_CONDUCT.md

In the interest of fostering an open and welcoming environment, we as contributors and maintainers pledge to making participation in our project and our community a harassment-free experience for everyone, regardless of age, body size, disability, ethnicity, gender identity and expression, level of experience, nationality, personal appearance, race, religion, or sexual identity and orientation. Examples of behavior that contributes to creating a positive environment include: Using welcoming and inclusive language Being respectful of differing viewpoints and experiences Gracefully accepting constructive criticism Focusing on what is best for the community Showing empathy towards other community members Examples of unacceptable behavior by participants include: The use of sexualized language or imagery and unwelcome sexual attention or advances Trolling, insulting/derogatory comments, and personal or political attacks Public or private harassment Publishing others' private information, such as a physical or electronic address, without explicit permission Other conduct which could reasonably be considered inappropriate in a professional setting Project maintainers are responsible for clarifying the standards of acceptable behavior and are expected to take appropriate and fair corrective action in response to any instances of unacceptable behavior. Project maintainers have the right and responsibility to remove, edit, or reject comments, commits, code, wiki edits, issues, and other contributions that are not aligned to this Code of Conduct, or to ban temporarily or permanently any contributor for other behaviors that they deem inappropriate, threatening, offensive, or harmful. This Code of Conduct applies both within project spaces and in public spaces when an individual is representing the project or its community. Examples of representing a project or community include using an official project e-mail address, posting via an official social media account, or acting as an appointed representative at an online or offline event. Representation of a project may be further defined and clarified by project maintainers. Instances of abusive, harassing, or otherwise unacceptable behavior may be reported by contacting the project team at oss-conduct@uber.com. The project team will review and investigate all complaints, and will respond in a way that it deems appropriate to the circumstances. The project team is obligated to maintain confidentiality with regard to the reporter of an incident. Further details of specific enforcement policies may be posted separately. Project maintainers who do not follow or enforce the Code of Conduct in good faith may face temporary or permanent repercussions as determined by other members of the project's leadership. This Code of Conduct is adapted from the , version 1.4, available at .
Project: Scylla (App Definition and Development / Database)
File: api_v2.md

The Scylla has a RESTful API from its first version. The first API version was confusing, it will gradually be replaced by its successor V2. The API definition is in the . You can get the swagger definition file by pointing your browser to: http://localhost:10000/v2 As an alternative, you can use the swagger ui, which is a javascript GUI based on swagger. You can use the swagger-ui with Scylla by pointing your browser to http://localhost:10000/ui make sure the URL in the URL box is: http://localhost:10000/v2 The API is split into sections. By expanding the config section you can see all of the available configuration. The values returned by the API are the current values in the system (regardless if it is the default value, taken from a config file or from a command line parameter)
Project: Apache Spark (App Definition and Development / Streaming & Messaging)
File: sql-ref-syntax-aux-resource-mgmt-list-archive.md

layout: global title: LIST ARCHIVE displayTitle: LIST ARCHIVE license: | 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. `LIST ARCHIVE` lists the archives added by . ```sql LIST { ARCHIVE | ARCHIVES } file_name [ ... ] ``` ```sql ADD ARCHIVE /tmp/test.zip; ADD ARCHIVE /tmp/test_2.tar.gz; LIST ARCHIVE; -- output for LIST ARCHIVE file:/tmp/test.zip file:/tmp/test_2.tar.gz LIST ARCHIVE /tmp/test.zip /some/random.tgz /another/random.tar; -- output file:/tmp/test.zip ```
Project: StarRocks (App Definition and Development / Database)
File: seconds_diff.md

displayed_sidebar: "English" Returns the second difference between two date expressions (`expr1` `expr2`), accurate to the second. ```Haskell BIGINT seconds_diff(DATETIME expr1,DATETIME expr2); ``` `expr1`: the end time. It must be of the DATETIME type. `expr2`: the start time. It must be of the DATETIME type. Returns a BIGINT value. NULL is returned if the date does not exist, for example, 2022-02-29. ```Plain select seconds_diff('2010-11-30 23:59:59', '2010-11-30 20:59:59'); ++ | seconds_diff('2010-11-30 23:59:59', '2010-11-30 20:59:59') | ++ | 10800 | ++ ```
Project: Backstage (App Definition and Development / Application Definition & Image Build)
File: feature-flags.md

id: feature-flags title: Feature Flags description: Details the process of defining setting and reading a feature flag. Backstage offers the ability to define feature flags inside a plugin or during application creation. This allows you to restrict parts of your plugin to those individual users who have toggled the feature flag to on. This page describes the process of defining, setting and reading a feature flag. If you are looking for using feature flags specifically with software templates please see . Defining a feature flag in a plugin is done by passing the name of the feature flag into the `featureFlags` array: ```ts title="src/plugin.ts" import { createPlugin } from '@backstage/core-plugin-api'; export const examplePlugin = createPlugin({ // ... featureFlags: [{ name: 'show-example-feature' }], // ... }); ``` Defining a feature flag in the application is done by adding feature flags in `featureFlags` array in the `createApp()` function call: ```ts title="packages/app/src/App.tsx" import { createApp } from '@backstage/app-defaults'; const app = createApp({ // ... featureFlags: [ { // pluginId is required for feature flags used in plugins. // pluginId can be left blank for a feature flag used in the application and not in plugins. pluginId: '', name: 'tech-radar', description: 'Enables the tech radar plugin', }, ], // ... }); ``` Feature flags are defaulted to off and can be updated by individual users in the backstage interface. These are set by navigating to the page under `Settings` > `Feature Flags`. The user's selection is saved in the user's browser local storage. Once a feature flag is toggled it may be required for a user to refresh the page to see the change. The easiest way to control content based on the state of a feature flag is to use the component. ```ts import { FeatureFlagged } from '@backstage/core-app-api'; ... <FeatureFlagged with="show-example-feature"> <NewFeatureComponent /> </FeatureFlagged> <FeatureFlagged without="show-example-feature"> <PreviousFeatureComponent /> </FeatureFlagged> ``` It is also possible to query a feature flag using the . ```ts import { useApi, featureFlagsApiRef } from '@backstage/core-plugin-api'; const featureFlagsApi = useApi(featureFlagsApiRef); const isOn = featureFlagsApi.isActive('show-example-feature'); ```
Project: YugabyteDB (App Definition and Development / Database)
File: drop_foreign_data_wrapper.diagram.md

<svg class="rrdiagram" version="1.1" xmlns:xlink="http://www.w3.org/1999/xlink" xmlns="http://www.w3.org/2000/svg" width="696" height="70" viewbox="0 0 696 70"><path class="connector" d="M0 22h15m53 0h10m75 0h10m52 0h10m78 0h30m32 0h10m64 0h20m-141 0q5 0 5 5v8q0 5 5 5h116q5 0 5-5v-8q0-5 5-5m5 0h10m83 0h30m77 0h22m-109 25q0 5 5 5h5m79 0h5q5 0 5-5m-104-25q5 0 5 5v33q0 5 5 5h89q5 0 5-5v-33q0-5 5-5m5 0h15"/><polygon points="0,29 5,22 0,15" style="fill:black;stroke-width:0"/><rect class="literal" x="15" y="5" width="53" height="25" rx="7"/><text class="text" x="25" y="22">DROP</text><rect class="literal" x="78" y="5" width="75" height="25" rx="7"/><text class="text" x="88" y="22">FOREIGN</text><rect class="literal" x="163" y="5" width="52" height="25" rx="7"/><text class="text" x="173" y="22">DATA</text><rect class="literal" x="225" y="5" width="78" height="25" rx="7"/><text class="text" x="235" y="22">WRAPPER</text><rect class="literal" x="333" y="5" width="32" height="25" rx="7"/><text class="text" x="343" y="22">IF</text><rect class="literal" x="375" y="5" width="64" height="25" rx="7"/><text class="text" x="385" y="22">EXISTS</text><a xlink:href="../../../syntaxresources/grammardiagrams#fdw-name"><rect class="rule" x="469" y="5" width="83" height="25"/><text class="text" x="479" y="22">fdw_name</text></a><rect class="literal" x="582" y="5" width="77" height="25" rx="7"/><text class="text" x="592" y="22">CASCADE</text><rect class="literal" x="582" y="35" width="79" height="25" rx="7"/><text class="text" x="592" y="52">RESTRICT</text><polygon points="692,29 696,29 696,15 692,15" style="fill:black;stroke-width:0"/></svg>
Project: StarRocks (App Definition and Development / Database)
File: square.md

displayed_sidebar: "English" Calculates the square of a value. ```Haskell square(arg) ``` `arg`: the value whose square you want to calculate. You can specify only a numeric value. This function converts the numeric value into a DOUBLE value before it calculates the square of the value. Returns a value of the DOUBLE data type. If you specify a non-numeric value, this function returns `NULL`. Example 1: Calculate the square of a numeric value. ```Plain mysql> select square(11); ++ | square(11) | ++ | 121 | ++ ``` Example 2: Calculate the square of a non-numeric value. The return value is `NULL`. ```Plain mysql> select square('2021-01-01'); +-+ | square('2021-01-01') | +-+ | NULL | +-+ ```
Project: KICS (Provisioning / Security & Compliance)
File: dafe30ec-325d-4516-85d1-e8e6776f012c.md

title: Azure Instance Using Basic Authentication hide: toc: true navigation: true <style> .highlight .hll { background-color: #ff171742; } .md-content { max-width: 1100px; margin: 0 auto; } </style> Query id: dafe30ec-325d-4516-85d1-e8e6776f012c Query name: Azure Instance Using Basic Authentication Platform: Terraform Severity: <span style="color:#ff7213">Medium</span> Category: Best Practices URL: Azure Instances should use SSH Key instead of basic authentication<br> ```tf title="Positive test num. 1 - tf file" hl_lines="1" resource "azurermvirtualmachine" "positive1" { name = "${var.prefix}-vm" location = azurermresourcegroup.main.location resourcegroupname = azurermresourcegroup.main.name networkinterfaceids = [] vmsize = "StandardDS1_v2" osprofilelinux_config { disablepasswordauthentication = false } } ``` ```tf title="Positive test num. 2 - tf file" hl_lines="1" resource "azurermlinuxvirtual_machine" "positive1" { name = "${var.prefix}-vm" location = azurermresourcegroup.main.location resourcegroupname = azurermresourcegroup.main.name networkinterfaceids = [] vmsize = "StandardDS1_v2" disablepasswordauthentication = false } ``` ```tf title="Negative test num. 1 - tf file" resource "azurermlinuxvirtual_machine" "negative1" { name = "${var.prefix}-vm" location = azurermresourcegroup.main.location resourcegroupname = azurermresourcegroup.main.name networkinterfaceids = [azurermnetworkinterface.main.id] vmsize = "StandardDS1_v2" adminsshkey { username = "adminuser" publickey = file("~/.ssh/idrsa.pub") } } ``` ```tf title="Negative test num. 2 - tf file" resource "azurermvirtualmachine" "negative1" { name = "${var.prefix}-vm" location = azurermresourcegroup.main.location resourcegroupname = azurermresourcegroup.main.name networkinterfaceids = [azurermnetworkinterface.main.id] vmsize = "StandardDS1_v2" osprofilelinux_config { disablepasswordauthentication = true } adminsshkey { username = "adminuser" publickey = file("~/.ssh/idrsa.pub") } } ```
Project: KICS (Provisioning / Security & Compliance)
File: 7f0a8696-7159-4337-ad0d-8a3ab4a78195.md

title: MariaDB Server Public Network Access Enabled hide: toc: true navigation: true <style> .highlight .hll { background-color: #ff171742; } .md-content { max-width: 1100px; margin: 0 auto; } </style> Query id: 7f0a8696-7159-4337-ad0d-8a3ab4a78195 Query name: MariaDB Server Public Network Access Enabled Platform: Terraform Severity: <span style="color:#bb2124">High</span> Category: Networking and Firewall URL: MariaDB Server Public Network Access should be disabled<br> ```tf title="Positive test num. 1 - tf file" hl_lines="16" resource "azurermmariadbserver" "positive" { name = "example-mariadb-server" location = azurermresourcegroup.example.location resourcegroupname = azurermresourcegroup.example.name administrator_login = "mariadbadmin" administratorloginpassword = "H@Sh1CoR3!" skuname = "BGen5_2" storage_mb = 5120 version = "10.2" autogrowenabled = true backupretentiondays = 7 georedundantbackup_enabled = false publicnetworkaccess_enabled = true sslenforcementenabled = true } ``` ```tf title="Positive test num. 2 - tf file" hl_lines="1" resource "azurermmariadbserver" "positive2" { name = "example-mariadb-server" location = azurermresourcegroup.example.location resourcegroupname = azurermresourcegroup.example.name administrator_login = "mariadbadmin" administratorloginpassword = "H@Sh1CoR3!" skuname = "BGen5_2" storage_mb = 5120 version = "10.2" autogrowenabled = true backupretentiondays = 7 georedundantbackup_enabled = false sslenforcementenabled = true } ``` ```tf title="Negative test num. 1 - tf file" resource "azurermmariadbserver" "negative" { name = "example-mariadb-server" location = azurermresourcegroup.example.location resourcegroupname = azurermresourcegroup.example.name administrator_login = "mariadbadmin" administratorloginpassword = "H@Sh1CoR3!" skuname = "BGen5_2" storage_mb = 5120 version = "10.2" autogrowenabled = true backupretentiondays = 7 georedundantbackup_enabled = false publicnetworkaccess_enabled = false sslenforcementenabled = true } ```