Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

chore: migrate from spectrocloud-labs to validator-labs #251

Merged
merged 1 commit into from
May 16, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion .github/CODEOWNERS
Validating CODEOWNERS rules …
Original file line number Diff line number Diff line change
Expand Up @@ -5,4 +5,4 @@
# the repo. Unless a later match takes precedence,
# @global-owner1 and @global-owner2 will be requested for
# review when someone opens a pull request.
* @spectrocloud-labs/validator
* @validator-labs/validator
2 changes: 1 addition & 1 deletion .github/workflows/bulwark-gitleaks.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@ jobs:
shell: sh
env:
BRANCH: ${{ github.head_ref || github.ref_name }}
run: /workspace/bulwark -name CodeSASTGitLeaks -organization spectrocloud-labs -target $REPO -tags "branch:$BRANCH,options:--log-opts origin..HEAD"
run: /workspace/bulwark -name CodeSASTGitLeaks -organization validator-labs -target $REPO -tags "branch:$BRANCH,options:--log-opts origin..HEAD"

- name: check-result
shell: sh
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/bulwark-gosec.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,7 @@ jobs:
env:
BRANCH: ${{ github.head_ref || github.ref_name }}
GO111MODULE: on
run: /workspace/bulwark -name CodeSASTGoSec -verbose -organization spectrocloud-labs -target $REPO -tags "branch:$BRANCH"
run: /workspace/bulwark -name CodeSASTGoSec -verbose -organization validator-labs -target $REPO -tags "branch:$BRANCH"

- name: check-result
shell: sh
Expand Down
8 changes: 4 additions & 4 deletions .github/workflows/release.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -49,10 +49,10 @@ jobs:
with:
token: ${{ secrets.PAT }}
charts_dir: chart
owner: spectrocloud-labs
owner: validator-labs
branch: ${{ env.GITHUB_PAGES_BRANCH }}
commit_username: spectrocloud-labs-bot
commit_email: bot@noreply.spectrocloud-labs.io
commit_username: validator-labs-bot
commit_email: bot@noreply.validator-labs.io

build-container:
if: needs.release-please.outputs.releases_created == 'true'
Expand All @@ -64,7 +64,7 @@ jobs:
packages: write
id-token: write
env:
IMAGE_TAG: quay.io/spectrocloud-labs/validator:${{ needs.release-please.outputs.tag_name }}
IMAGE_TAG: quay.io/validator-labs/validator:${{ needs.release-please.outputs.tag_name }}
IMAGE_NAME: validator
steps:
- name: Checkout
Expand Down
936 changes: 468 additions & 468 deletions CHANGELOG.md

Large diffs are not rendered by default.

6 changes: 3 additions & 3 deletions Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -4,8 +4,8 @@ ifneq (,$(wildcard ./.env))
endif

# Image URL to use all building/pushing image targets
IMG ?= quay.io/spectrocloud-labs/validator:latest
CERTS_INIT_IMG ?= quay.io/spectrocloud-labs/validator-certs-init:latest
IMG ?= quay.io/validator-labs/validator:latest
CERTS_INIT_IMG ?= quay.io/validator-labs/validator-certs-init:latest

GOARCH ?= $(shell go env GOARCH)

Expand Down Expand Up @@ -200,7 +200,7 @@ helm-build: helm helmify manifests kustomize
helm-package: generate manifests
$(HELM) package --version $(CHART_VERSION) chart/validator/
mkdir -p charts && mv validator-*.tgz charts
$(HELM) repo index --url https://spectrocloud-labs.github.io/validator ./chart
$(HELM) repo index --url https://validator-labs.github.io/validator ./chart
mv charts/validator/index.yaml index.yaml

.PHONY: frigate
Expand Down
6 changes: 3 additions & 3 deletions PROJECT
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ domain: spectrocloud.labs
layout:
- go.kubebuilder.io/v4
projectName: validator
repo: github.com/spectrocloud-labs/validator
repo: github.com/validator-labs/validator
resources:
- api:
crdVersion: v1
Expand All @@ -15,7 +15,7 @@ resources:
domain: spectrocloud.labs
group: validation
kind: ValidationResult
path: github.com/spectrocloud-labs/validator/api/v1alpha1
path: github.com/validator-labs/validator/api/v1alpha1
version: v1alpha1
- api:
crdVersion: v1
Expand All @@ -24,6 +24,6 @@ resources:
domain: spectrocloud.labs
group: validation
kind: ValidatorConfig
path: github.com/spectrocloud-labs/validator/api/v1alpha1
path: github.com/validator-labs/validator/api/v1alpha1
version: v1alpha1
version: "3"
42 changes: 21 additions & 21 deletions README.md
Original file line number Diff line number Diff line change
@@ -1,33 +1,33 @@
[![Contributions Welcome](https://img.shields.io/badge/contributions-welcome-brightgreen.svg?style=flat)](https://github.com/spectrocloud-labs/validator/issues)
[![Contributions Welcome](https://img.shields.io/badge/contributions-welcome-brightgreen.svg?style=flat)](https://github.com/validator-labs/validator/issues)
[![License](https://img.shields.io/badge/License-Apache%202.0-blue.svg)](https://opensource.org/licenses/Apache-2.0)
![Test](https://github.com/spectrocloud-labs/validator/actions/workflows/test.yaml/badge.svg)
[![Go Report Card](https://goreportcard.com/badge/github.com/spectrocloud-labs/validator)](https://goreportcard.com/report/github.com/spectrocloud-labs/validator)
[![codecov](https://codecov.io/gh/spectrocloud-labs/validator/graph/badge.svg?token=GVZ4LZ5SOY)](https://codecov.io/gh/spectrocloud-labs/validator)
[![Go Reference](https://pkg.go.dev/badge/github.com/spectrocloud-labs/validator.svg)](https://pkg.go.dev/github.com/spectrocloud-labs/validator)
![Test](https://github.com/validator-labs/validator/actions/workflows/test.yaml/badge.svg)
[![Go Report Card](https://goreportcard.com/badge/github.com/validator-labs/validator)](https://goreportcard.com/report/github.com/validator-labs/validator)
[![codecov](https://codecov.io/gh/validator-labs/validator/graph/badge.svg?token=GVZ4LZ5SOY)](https://codecov.io/gh/validator-labs/validator)
[![Go Reference](https://pkg.go.dev/badge/github.com/validator-labs/validator.svg)](https://pkg.go.dev/github.com/validator-labs/validator)

![twitter_profile_image](https://github.com/spectrocloud-labs/validator/assets/1795270/fffe151d-596f-4951-8b72-19aa0410deb3)
![twitter_profile_image](https://github.com/validator-labs/validator/assets/1795270/fffe151d-596f-4951-8b72-19aa0410deb3)

validator (AKA Validation Controller) monitors ValidationResults created by one or more validator plugins and uploads them to a sink of your choosing, e.g., Slack or Spectro Cloud Palette.

<img width="1364" alt="image" src="https://github.com/spectrocloud-labs/validator/assets/1795270/e68dfdf5-25bf-4336-ad87-f783c4825c7e">
<img width="1364" alt="image" src="https://github.com/validator-labs/validator/assets/1795270/e68dfdf5-25bf-4336-ad87-f783c4825c7e">

## Description
The validator repository is fairly minimal - all the heavy lifting is done by the validator plugins. Installation of validator and one or more plugins is accomplished via Helm.

Plugins:
- [AWS](https://github.com/spectrocloud-labs/validator-plugin-aws)
- [Azure](https://github.com/spectrocloud-labs/validator-plugin-azure)
- [Network](https://github.com/spectrocloud-labs/validator-plugin-network)
- [OCI](https://github.com/spectrocloud-labs/validator-plugin-oci)
- [vSphere](https://github.com/spectrocloud-labs/validator-plugin-vsphere)
- [Kubescape](https://github.com/spectrocloud-labs/validator-plugin-kubescape)
- [AWS](https://github.com/validator-labs/validator-plugin-aws)
- [Azure](https://github.com/validator-labs/validator-plugin-azure)
- [Network](https://github.com/validator-labs/validator-plugin-network)
- [OCI](https://github.com/validator-labs/validator-plugin-oci)
- [vSphere](https://github.com/validator-labs/validator-plugin-vsphere)
- [Kubescape](https://github.com/validator-labs/validator-plugin-kubescape)

## Installation

Install Validator by pulling the latest Helm chart and installing it in your cluster. Use the following commands to install the latest version of the chart.

```bash
helm repo add validator https://spectrocloud-labs.github.io/validator
helm repo add validator https://validator-labs.github.io/validator
helm repo update
helm install validator validator/validator -n validator --create-namespace
```
Expand All @@ -38,10 +38,10 @@ Check out the [Install Guide](./docs/install.md) for a step-by-step guide for in
Validator can be configured to emit updates to various event sinks whenever a `ValidationResult` is created or updated. See configuration details below for each supported sink.

### Alertmanager
Integrate with the Alertmanager API to emit alerts to all [supported Alertmanager receivers](https://prometheus.io/docs/alerting/latest/configuration/#receiver-integration-settings), including generic webhooks. The only required configuration is an Alertmanager endpoint. HTTP basic authentication and TLS are also supported. See [values.yaml](https://github.com/spectrocloud-labs/validator/blob/main/chart/validator/values.yaml) for configuration details.
Integrate with the Alertmanager API to emit alerts to all [supported Alertmanager receivers](https://prometheus.io/docs/alerting/latest/configuration/#receiver-integration-settings), including generic webhooks. The only required configuration is an Alertmanager endpoint. HTTP basic authentication and TLS are also supported. See [values.yaml](https://github.com/validator-labs/validator/blob/main/chart/validator/values.yaml) for configuration details.

#### Sample Output
![Screen Shot 2023-11-15 at 10 42 20 AM](https://github.com/spectrocloud-labs/validator/assets/1795270/ce958b8e-96d7-4f5e-8efc-80e2fc2b0b4d)
![Screen Shot 2023-11-15 at 10 42 20 AM](https://github.com/validator-labs/validator/assets/1795270/ce958b8e-96d7-4f5e-8efc-80e2fc2b0b4d)

#### Setup
1. Install Alertmanager in your cluster (if it isn't installed already)
Expand Down Expand Up @@ -113,21 +113,21 @@ Integrate with the Alertmanager API to emit alerts to all [supported Alertmanage
### Slack

#### Sample Output
<img width="704" alt="Screen Shot 2023-11-10 at 4 30 12 PM" src="https://github.com/spectrocloud-labs/validator/assets/1795270/c011143a-4d4b-4299-b88b-699188f4bda2">
<img width="700" alt="Screen Shot 2023-11-10 at 4 18 22 PM" src="https://github.com/spectrocloud-labs/validator/assets/1795270/9f2c4ab7-34d6-496a-9f60-68655a7ee3d6">
<img width="704" alt="Screen Shot 2023-11-10 at 4 30 12 PM" src="https://github.com/validator-labs/validator/assets/1795270/c011143a-4d4b-4299-b88b-699188f4bda2">
<img width="700" alt="Screen Shot 2023-11-10 at 4 18 22 PM" src="https://github.com/validator-labs/validator/assets/1795270/9f2c4ab7-34d6-496a-9f60-68655a7ee3d6">

#### Setup
1. Go to https://api.slack.com/apps and click **Create New App**, then select **From scratch**. Pick an App Name and Slack Workspace, then click **Create App**.

<img src="https://github.com/spectrocloud-labs/validator/assets/1795270/58cbb5a0-12a4-4a83-a0dd-20ae87a8105d" width="500">
<img src="https://github.com/validator-labs/validator/assets/1795270/58cbb5a0-12a4-4a83-a0dd-20ae87a8105d" width="500">

2. Go to `OAuth & Permissions` and copy the `Bot User OAuth Token` under the `OAuth Tokens for Your Workspace` section. Save it somewhere for later. Scroll down to `Scopes` and click **Add an OAuth Scope**. Enable the `chat:write` scope for your bot.

<img src="https://github.com/spectrocloud-labs/validator/assets/1795270/7b4d80be-5799-497a-9a4b-480793b26d59" width="500">
<img src="https://github.com/validator-labs/validator/assets/1795270/7b4d80be-5799-497a-9a4b-480793b26d59" width="500">

3. Find and/or create a channel in Slack and note its Channel ID (at the very bottom of the modal when you view channel details). Add the bot you just created to the channel via `View channel details > Integrations > Apps > Add apps`.

<img src="https://github.com/spectrocloud-labs/validator/assets/1795270/a78c852c-7aeb-41a4-aa76-6afbe9b2ec81" width="500">
<img src="https://github.com/validator-labs/validator/assets/1795270/a78c852c-7aeb-41a4-aa76-6afbe9b2ec81" width="500">

4. Install validator and/or upgrade your validator Helm release, configuring `values.sink` accordingly.

Expand Down
Loading
Loading