diff --git a/.github/ISSUE_TEMPLATE/bug_report.md b/.github/ISSUE_TEMPLATE/bug_report.md
new file mode 100644
index 0000000..d5b8e40
--- /dev/null
+++ b/.github/ISSUE_TEMPLATE/bug_report.md
@@ -0,0 +1,38 @@
+---
+name: π General Bug Report
+about: Report an issue to help improve the project.
+title: ''
+labels: 'kind/bug'
+assignees: ''
+---
+### Current Behavior
+
+
+### Expected Behavior
+
+
+### Screenshots/Logs
+
+
+### Environment
+
+- **Host OS:** Mac Linux Windows
+- **Platform:** Docker or Kubernetes
+- **Meshery Server Version:** stable-v
+- **Meshery Client Version:** stable-v
+
+
+
+---
+#### Contributor [Guides](https://docs.meshery.io/project/contributing) and Resources
+- π [Meshery Build & Release Strategy](https://docs.meshery.io/project/build-and-release)
+- π [Instructions for contributing to documentation](https://github.com/meshery/meshery/blob/master/CONTRIBUTING.md#documentation-contribution-flow)
+ - Meshery documentation [site](https://docs.meshery.io/) and [source](https://github.com/meshery/meshery/tree/master/docs)
+- π¨ Wireframes and [designs for Layer5 site](https://www.figma.com/file/5ZwEkSJwUPitURD59YHMEN/Layer5-Designs) in Figma [(open invite)](https://www.figma.com/team_invite/redeem/qJy1c95qirjgWQODApilR9)
+- ππΎππΌ Questions: [Layer5 Discussion Forum](https://discuss.layer5.io) and [Layer5 Community Slack](http://slack.layer5.io)
diff --git a/.github/ISSUE_TEMPLATE/ci.md b/.github/ISSUE_TEMPLATE/ci.md
new file mode 100644
index 0000000..efa98e8
--- /dev/null
+++ b/.github/ISSUE_TEMPLATE/ci.md
@@ -0,0 +1,24 @@
+---
+name: π Continuous Integration / DevOps
+about: Improve or update workflows or other automation
+title: '[CI]'
+labels: 'area/ci'
+assignees: ''
+---
+### Current Behavior
+
+
+### Desired Behavior
+
+
+### Implementation
+
+
+### Acceptance Tests
+
+
+---
+#### Contributor [Guides](https://docs.meshery.io/project/contributing) and Resources
+- π [Meshery Build & Release Strategy](https://docs.meshery.io/project/build-and-release)
+- π¨ Wireframes and [designs for Layer5 site](https://www.figma.com/file/5ZwEkSJwUPitURD59YHMEN/Layer5-Designs) in Figma [(open invite)](https://www.figma.com/team_invite/redeem/qJy1c95qirjgWQODApilR9)
+- ππΎππΌ Questions: [Layer5 Discussion Forum](https://discuss.layer5.io) and [Layer5 Community Slack](http://slack.layer5.io)
diff --git a/.github/ISSUE_TEMPLATE/documentation.md b/.github/ISSUE_TEMPLATE/documentation.md
new file mode 100644
index 0000000..8777dcf
--- /dev/null
+++ b/.github/ISSUE_TEMPLATE/documentation.md
@@ -0,0 +1,21 @@
+---
+name: π Documentation issue
+about: Issues related to documentation.
+title: '[Docs]'
+labels: 'area/docs, framework/jekyll, language/markdown'
+assignees: ''
+---
+### Current State
+
+
+### Desired State
+
+
+---
+
+#### [Contributor Guides](https://docs.meshery.io/project/contributing) and Resources
+- π [Instructions for contributing to documentation](https://docs.meshery.io/project/contributing/contributing-docs)
+ - Meshery documentation [site](https://docs.meshery.io/) and [source](https://github.com/meshery/meshery/tree/master/docs)
+- π [Meshery Build & Release Strategy](https://docs.meshery.io/project/build-and-release)
+- π¨ Wireframes and [designs for Layer5 site](https://www.figma.com/file/5ZwEkSJwUPitURD59YHMEN/Layer5-Designs) in Figma [(open invite)](https://www.figma.com/team_invite/redeem/qJy1c95qirjgWQODApilR9)
+- ππΎππΌ Questions: [Layer5 Discussion Forum](https://discuss.layer5.io) and [Layer5 Community Slack](http://slack.layer5.io)
diff --git a/.github/ISSUE_TEMPLATE/feature_request.md b/.github/ISSUE_TEMPLATE/feature_request.md
new file mode 100644
index 0000000..c213e01
--- /dev/null
+++ b/.github/ISSUE_TEMPLATE/feature_request.md
@@ -0,0 +1,25 @@
+---
+name: π‘ Feature Request
+about: Suggest an enhancement to Meshery.
+title: ''
+labels: 'kind/enhancement'
+assignees: ''
+---
+### Current Behavior
+
+
+### Desired Behavior
+
+
+### Implementation
+
+
+### Acceptance Tests
+
+
+### Mockups
+
+
+---
+**[Contributor Guide](https://docs.meshery.io/project/contributing)**
+- π¨ Wireframes and [designs for Layer5 site](https://www.figma.com/file/5ZwEkSJwUPitURD59YHMEN/Layer5-Designs) in Figma [(open invite)](https://www.figma.com/team_invite/redeem/qJy1c95qirjgWQODApilR9)
diff --git a/.github/ISSUE_TEMPLATE/question.md b/.github/ISSUE_TEMPLATE/question.md
new file mode 100644
index 0000000..a882014
--- /dev/null
+++ b/.github/ISSUE_TEMPLATE/question.md
@@ -0,0 +1,6 @@
+blank_issues_enabled: false
+contact_links:
+- name: ππΎππΌβQuestion
+ url: https://github.com/layer5io/meshery/discussions/new
+ about: Submit your question using GitHub Discussions.
+- π¨ Wireframes and [designs for Layer5 site](https://www.figma.com/file/5ZwEkSJwUPitURD59YHMEN/Layer5-Designs) in Figma [(open invite)](https://www.figma.com/team_invite/redeem/qJy1c95qirjgWQODApilR9)
\ No newline at end of file
diff --git a/.github/PULL_REQUEST_TEMPLATE.md b/.github/PULL_REQUEST_TEMPLATE.md
new file mode 100644
index 0000000..46e1f2e
--- /dev/null
+++ b/.github/PULL_REQUEST_TEMPLATE.md
@@ -0,0 +1,23 @@
+**Notes for Reviewers**
+
+This PR fixes #
+
+
+
+
+**[Signed commits](../blob/master/CONTRIBUTING.md#signing-off-on-commits-developer-certificate-of-origin)**
+- [ ] Yes, I signed my commits.
+
+
+
diff --git a/.github/config.yml b/.github/config.yml
new file mode 100644
index 0000000..cab8670
--- /dev/null
+++ b/.github/config.yml
@@ -0,0 +1,47 @@
+#-------------------------------------------------------------------------------
+# Configuration for new-issue-welcome - https://github.com/behaviorbot/new-issue-welcome
+ # Comment to be posted to on first time issues
+newIssueWelcomeComment: >
+ Thanks for opening this issue. A contributor will be by to give feedback soon. In the meantime, please review the [Layer5 Community Welcome Guide](https://docs.google.com/document/d/17OPtDE_rdnPQxmk2Kauhm3GwXF1R5dZ3Cj8qZLKdo5E/edit?usp=sharing) and sure to join the [community Slack](http://slack.layer5.io/).
+ # Configuration for new-pr-welcome - https://github.com/behaviorbot/new-pr-welcome
+ # Comment to be posted to on PRs from first time contributors in your repository
+newPRWelcomeComment: >
+ Yay, your first pull request! :thumbsup: A contributor will be by to give feedback soon. In the meantime, please review the [Layer5 Community Welcome Guide](https://docs.google.com/document/d/17OPtDE_rdnPQxmk2Kauhm3GwXF1R5dZ3Cj8qZLKdo5E/edit?usp=sharing) and sure to join the [community Slack](http://slack.layer5.io/).
+
+ Be sure to double-check that you have signed your commits. Here are instructions for [making signing an implicit activity while peforming a commit](../CONTRIBUTING.md#signing-off-on-commits-developer-certificate-of-origin).
+
+
+#-------------------------------------------------------------------------------
+# Configuration for first-pr-merge - https://github.com/behaviorbot/first-pr-merge
+# Comment to be posted to on pull requests merged by a first time user
+firstPRMergeComment: >
+ Thank you for contributing to the Layer5 community! :tada:
+ \
+ \
+ ![Congrats!](https://github.com/layer5io/layer5/blob/master/.github/welcome/Layer5-celebration.png)
+ \
+ \
+ :star: Please leave a [star on the project](../stargazers). :smile:
+
+
+#-------------------------------------------------------------------------------
+# Configuration for request-info - https://github.com/behaviorbot/request-info
+# Comment to reply with
+requestInfoReplyComment: >
+ Thanks for opening this issue. We welcome all input! If you could provide a little more information, this will greatly aide in its resolution. :thumbsup:
+# *OPTIONAL* Add a list of people whose Issues/PRs will not be commented on
+# keys must be GitHub usernames
+#requestInfoUserstoExclude:
+# - layer5io/maintainers
+
+
+#-------------------------------------------------------------------------------
+# Configuration for sentiment-bot - https://github.com/behaviorbot/sentiment-bot
+# *Required* toxicity threshold between 0 and .99 with the higher numbers being the most toxic
+# Anything higher than this threshold will be marked as toxic and commented on
+sentimentBotToxicityThreshold: .9
+
+# *Required* Comment to reply with
+sentimentBotReplyComment: >
+ Please be sure to review the code of conduct and be respectful of other users. // @layer5io/maintainers
+
diff --git a/.github/readme/images/community.svg b/.github/readme/images/community.svg
new file mode 100644
index 0000000..8ed454f
--- /dev/null
+++ b/.github/readme/images/community.svg
@@ -0,0 +1 @@
+
\ No newline at end of file
diff --git a/.github/readme/images/layer5-community-sign.png b/.github/readme/images/layer5-community-sign.png
new file mode 100644
index 0000000..289ff0a
Binary files /dev/null and b/.github/readme/images/layer5-community-sign.png differ
diff --git a/.github/readme/images/slack-128.png b/.github/readme/images/slack-128.png
new file mode 100644
index 0000000..e6cc745
Binary files /dev/null and b/.github/readme/images/slack-128.png differ
diff --git a/.github/readme/images/slack-dark-128.png b/.github/readme/images/slack-dark-128.png
new file mode 100644
index 0000000..9011686
Binary files /dev/null and b/.github/readme/images/slack-dark-128.png differ
diff --git a/.github/release-drafter.yml b/.github/release-drafter.yml
new file mode 100644
index 0000000..7342fcb
--- /dev/null
+++ b/.github/release-drafter.yml
@@ -0,0 +1,25 @@
+name-template: 'v$NEXT_PATCH_VERSION'
+tag-template: 'v$NEXT_PATCH_VERSION'
+categories:
+ - title: 'π Features'
+ labels:
+ - 'kind/feature'
+ - 'kind/enhancement'
+ - title: 'π Bug Fixes'
+ labels:
+ - 'fix'
+ - 'bugfix'
+ - 'kind/bug'
+ - title: 'π§° Maintenance'
+ labels:
+ - 'kind/chore'
+ - 'chore'
+change-template: '- $TITLE @$AUTHOR (#$NUMBER)'
+template: |
+ ## What's New
+ $CHANGES
+
+ ## Contributors
+
+ Thank you to our contributors for making this release possible:
+ $CONTRIBUTORS
\ No newline at end of file
diff --git a/.github/stale.yml b/.github/stale.yml
new file mode 100644
index 0000000..d47fe5b
--- /dev/null
+++ b/.github/stale.yml
@@ -0,0 +1,18 @@
+# Number of days of inactivity before an issue becomes stale
+daysUntilStale: 45
+# Number of days of inactivity before a stale issue is closed
+daysUntilClose: 10
+# Issues with these labels will never be considered stale
+exemptLabels:
+ - issue/willfix
+# Label to use when marking an issue as stale
+staleLabel: issue/stale
+# Comment to post when marking an issue as stale. Set to `false` to disable
+markComment: >
+ This issue has been automatically marked as stale because it has not had
+ recent activity. It will be closed if no further activity occurs. Thank you
+ for your contributions.
+# Comment to post when closing a stale issue. Set to `false` to disable
+closeComment: >
+ This issue is being automatically closed due to inactivity.
+ However, you may choose to reopen this issue.
diff --git a/.github/welcome/Layer5-celebration.png b/.github/welcome/Layer5-celebration.png
new file mode 100644
index 0000000..b23a5f0
Binary files /dev/null and b/.github/welcome/Layer5-celebration.png differ
diff --git a/.github/workflows/multi-platform.yml b/.github/workflows/multi-platform.yml
new file mode 100644
index 0000000..f9861db
--- /dev/null
+++ b/.github/workflows/multi-platform.yml
@@ -0,0 +1,120 @@
+name: Multi-Platform Build and Release
+on:
+ release:
+ types: [published]
+ push:
+ tags:
+ - 'v*'
+ branches:
+ - 'master'
+ paths-ignore:
+ - 'docs/**'
+ # - '.github/**'
+ workflow_dispatch:
+ inputs:
+ release-ver:
+ description: 'Stable Release Version'
+ required: true
+ default: 'v'
+ stripped-release-ver:
+ description: 'Stripped Stable Release Version'
+ required: true
+ default: ''
+ release-channel:
+ description: 'Release Channel'
+ required: true
+ default: 'edge'
+
+env:
+ GIT_VERSION: ${{github.event.inputs.release-ver}}
+ GIT_STRIPPED_VERSION: ${{github.event.inputs.stripped-release-ver}}
+ RELEASE_CHANNEL: ${{github.event.inputs.release-channel}}
+ GIT_TAG: ${{ github.event.release.tag_name }}
+
+jobs:
+ print-inputs:
+ runs-on: ubuntu-latest
+ steps:
+
+ - run: |
+ echo "Dispatched GIT_VERSION: ${{github.event.inputs.release-ver}}"
+ echo " Dispatched GIT_STRIPPED_VERSION: ${{github.event.inputs.stripped-release-ver}}"
+ echo "Env RELEASE_CHANNEL: ${{env.RELEASE_CHANNEL}}"
+ echo "Env GIT_VERSION: ${{env.GIT_VERSION}}"
+ echo "Env GIT_STRIPPED_VERSION: ${{env.GIT_STRIPPED_VERSION}}"
+ echo "Env GIT_TAG: ${{ github.event.release.tag_name }}"
+
+ docker-build:
+ runs-on: ubuntu-latest
+ steps:
+ -
+ name: Checkout repo
+ uses: actions/checkout@v3
+ -
+ name: Identify Release Values
+ if: "${{ github.event.inputs.release-ver}} != 'v' }}"
+ run: |
+ # GIT_REF=`git symbolic-ref HEAD`
+ if [[ $GIT_TAG = refs/tags* ]]
+ then
+ echo RELEASE_CHANNEL=stable >> $GITHUB_ENV
+ else
+ echo RELEASE_CHANNEL=edge >> $GITHUB_ENV
+ fi
+ echo "Release channel determined to be $RELEASE_CHANNEL"
+ LATEST_VERSION=$(git ls-remote --tags | tail -1 | cut -f2 | sed 's/refs\/tags\///g') >> $GITHUB_ENV
+ GIT_VERSION=$(git ls-remote --tags | tail -1 | cut -f2 | sed 's/refs\/tags\///g') >> $GITHUB_ENV
+ # GIT_VERSION=$(git describe --tags `git rev-list --tags --max-count=1` --always)
+ GIT_STRIPPED_VERSION=$(git ls-remote --tags | tail -1 | cut -f2 | sed 's/refs\/tags\///g' | cut -c2-)
+ echo "GIT_LATEST=$LATEST_VERSION" >> $GITHUB_ENV
+ echo "GIT_VERSION=$GIT_VERSION" >> $GITHUB_ENV
+ echo "GIT_STRIPPED_VERSION=$GIT_STRIPPED_VERSION" >> $GITHUB_ENV
+ shell: bash
+
+ -
+ name: Set up QEMU
+ uses: docker/setup-qemu-action@v1
+ -
+ name: Set up Docker Buildx
+ uses: docker/setup-buildx-action@v1
+ -
+ name: Docker Meta
+ id: meta
+ uses: docker/metadata-action@v3
+ with:
+ images: ${{ secrets.IMAGE_NAME }}
+ flavor: |
+ latest=false
+ tags: |
+ type=raw,value=${{env.RELEASE_CHANNEL}}-{{sha}}
+ type=semver,pattern={{version}},value=${{env.GIT_STRIPPED_VERSION}}
+ type=raw,pattern={{version}},value=${{env.RELEASE_CHANNEL}}-${{env.GIT_VERSION}}
+ type=raw,value=${{env.RELEASE_CHANNEL}}-{{tag}},enable=${{ startsWith(github.ref, 'refs/tags/v') }}
+ type=raw,value=${{env.RELEASE_CHANNEL}}-latest
+ type=semver,pattern={{version}},value=${{env.RELEASE_CHANNEL}}-${{env.GIT_VERSION}},enable=${{ startsWith(github.ref, 'refs/tags/v') }}
+ -
+ name: Login to DockerHub
+ uses: docker/login-action@v1
+ with:
+ username: ${{ secrets.DOCKER_USERNAME }}
+ password: ${{ secrets.DOCKER_PASSWORD }}
+ -
+ name: Build and Push
+ uses: docker/build-push-action@v2
+ with:
+ context: "{{defaultContext}}"
+ push: true
+ build-args: |
+ GIT_STRIPPED_VERSION=${{env.GIT_STRIPPED_VERSION}}
+ GIT_VERSION=${{env.GIT_VERSION}}
+ RELEASE_CHANNEL=${{env.RELEASE_CHANNEL}}
+ tags: ${{ steps.meta.outputs.tags }}
+ platforms: linux/amd64,linux/arm64
+ -
+ name: Docker Hub Description
+ uses: peter-evans/dockerhub-description@v3
+ with:
+ username: ${{ secrets.DOCKER_USERNAME }}
+ password: ${{ secrets.DOCKER_PASSWORD }}
+ repository: meshery/meshery-docker-extension
+ readme-filepath: /install/docker-extension/README.md
diff --git a/.github/workflows/release-drafter.yml b/.github/workflows/release-drafter.yml
new file mode 100644
index 0000000..a88e6d1
--- /dev/null
+++ b/.github/workflows/release-drafter.yml
@@ -0,0 +1,18 @@
+name: Release Drafter
+
+on:
+ push:
+ # our release branch
+ branches:
+ - master
+
+jobs:
+ update_release_draft:
+ runs-on: ubuntu-latest
+ steps:
+ # Drafts your next Release notes as Pull Requests are merged into "master"
+ - uses: release-drafter/release-drafter@v5
+ with:
+ config-name: release-drafter.yml
+ env:
+ GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
\ No newline at end of file
diff --git a/.github/workflows/slack.yml b/.github/workflows/slack.yml
new file mode 100644
index 0000000..30a4b33
--- /dev/null
+++ b/.github/workflows/slack.yml
@@ -0,0 +1,30 @@
+name: Slack Notify
+on:
+ watch:
+ types: [started]
+jobs:
+ star-notify:
+ if: github.event_name == 'watch'
+ name: Notify Slack on star
+ runs-on: ubuntu-latest
+ steps:
+ - name: Get current star count
+ run: |
+ echo "STARS=$(curl --silent 'https://api.github.com/repos/${{github.repository}}' -H 'Accept: application/vnd.github.preview' | jq '.stargazers_count')" >> $GITHUB_ENV
+ - name: Notify slack
+ env:
+ SLACK_BOT_TOKEN: ${{ secrets.SLACK_BOT_TOKEN }}
+ uses: pullreminders/slack-action@master
+ with:
+ args: '{\"channel\":\"CSK7N9TGX\",\"text\":\"${{ github.actor }} just starred ${{github.repository}}! (https://github.com/${{github.repository}}/stargazers) Total βοΈ: ${{env.STARS}}\"}'
+ good-first-issue-notify:
+ if: github.event_name == 'issues' && github.event.label.name == 'good first issue' || github.event.label.name == 'first-timers-only'
+ name: Notify Slack for new good-first-issue
+ runs-on: ubuntu-latest
+ steps:
+ - name: Notify slack
+ env:
+ SLACK_BOT_TOKEN: ${{ secrets.SLACK_BOT_TOKEN }}
+ uses: pullreminders/slack-action@master
+ with:
+ args: '{\"channel\":\"C019426UBNY\",\"text\":\"A good first issue label was just added to ${{github.event.issue.html_url}}.\"}'
diff --git a/.gitignore b/.gitignore
new file mode 100644
index 0000000..ffefa22
--- /dev/null
+++ b/.gitignore
@@ -0,0 +1,18 @@
+# Binaries for programs and plugins
+*.exe
+*.exe~
+*.dll
+*.so
+*.dylib
+
+# Test binary, built with `go test -c`
+*.test
+
+# Output of the go coverage tool, specifically when used with LiteIDE
+*.out
+
+# Dependency directories (remove the comment below to include it)
+# vendor/
+
+# IDEs
+.vscode/*
diff --git a/.golangci.yml b/.golangci.yml
new file mode 100644
index 0000000..5efdc65
--- /dev/null
+++ b/.golangci.yml
@@ -0,0 +1,150 @@
+linters-settings:
+ depguard:
+ list-type: blacklist
+ packages:
+ # logging is allowed only by logutils.Log, logrus
+ # is allowed to use only in logutils package
+ - github.com/sirupsen/logrus
+ packages-with-error-message:
+ - github.com/sirupsen/logrus: "logging is allowed only by logutils.Log"
+ dupl:
+ threshold: 100
+ exhaustive:
+ default-signifies-exhaustive: false
+ funlen:
+ lines: 100
+ statements: 50
+ gci:
+ local-prefixes: github.com/golangci/golangci-lint
+ goconst:
+ min-len: 2
+ min-occurrences: 2
+ gocritic:
+ enabled-tags:
+ - diagnostic
+ - experimental
+ - opinionated
+ - performance
+ - style
+ disabled-checks:
+ - dupImport # https://github.com/go-critic/go-critic/issues/845
+ - ifElseChain
+ - octalLiteral
+ - whyNoLint
+ - wrapperFunc
+ gocyclo:
+ min-complexity: 15
+ goimports:
+ local-prefixes: github.com/golangci/golangci-lint
+ golint:
+ min-confidence: 0
+ gomnd:
+ settings:
+ mnd:
+ # don't include the "operation" and "assign"
+ checks: argument,case,condition,return
+ gosec:
+ settings:
+ exclude: -G204
+ govet:
+ check-shadowing: false
+ settings:
+ printf:
+ funcs:
+ - (github.com/golangci/golangci-lint/pkg/logutils.Log).Infof
+ - (github.com/golangci/golangci-lint/pkg/logutils.Log).Warnf
+ - (github.com/golangci/golangci-lint/pkg/logutils.Log).Errorf
+ - (github.com/golangci/golangci-lint/pkg/logutils.Log).Fatalf
+ lll:
+ line-length: 950
+ maligned:
+ suggest-new: true
+ misspell:
+ locale: US
+ nolintlint:
+ allow-leading-space: true # don't require machine-readable nolint directives (i.e. with no leading space)
+ allow-unused: false # report any unused nolint directives
+ require-explanation: false # don't require an explanation for nolint directives
+ require-specific: false # don't require nolint directives to be specific about which linter is being skipped
+
+linters:
+ # please, do not use `enable-all`: it's deprecated and will be removed soon.
+ # inverted configuration with `enable-all` and `disable` is not scalable during updates of golangci-lint
+ disable-all: true
+ enable:
+ # todo[kushthedude]: commenting most of the checks as our code can't persist all of the changes, however we can plan further on code-quality after v1.0 release.
+ # - bodyclose
+ # - deadcode
+ - dogsled
+ - errcheck
+ # - exhaustive
+ # - funlen
+ # - goconst
+ # - gocritic
+ # - gocyclo
+ - gofmt
+ - goimports
+ - golint
+ # todo[kusthedude]: restore gosec check, once this issue is resolved https://github.com/golangci/golangci-lint/issues/177
+ # - gosec
+ # - gomnd
+ # - goprintffuncname
+ # - gosimple
+ - govet
+ # - ineffassign
+ # - interfacer
+ - lll
+ - misspell
+ # - nakedret
+ # - nolintlint
+ # - rowserrcheck
+ # - scopelint
+ - staticcheck
+ # - structcheck
+ - stylecheck
+ - typecheck
+ # - unconvert
+ # - unparam
+ # - unused
+ # - varcheck
+ - whitespace
+
+ # don't enable:
+ # - asciicheck
+ # - gochecknoglobals
+ # - gocognit
+ # - godot
+ # - godox
+ # - goerr113
+ # - maligned
+ # - nestif
+ # - prealloc
+ # - testpackage
+ # - wsl
+
+issues:
+ # Excluding configuration per-path, per-linter, per-text and per-source
+ exclude-rules:
+ - path: _test\.go
+ linters:
+ - gomnd
+
+ # https://github.com/go-critic/go-critic/issues/926
+ - linters:
+ - gocritic
+ text: "unnecessaryDefer:"
+
+run:
+ skip-dirs:
+ - test/testdata_etc
+ - internal/cache
+ - internal/renameio
+ - internal/robustio
+ timeout: 5m
+
+# golangci.com configuration
+# https://github.com/golangci/golangci/wiki/Configuration
+service:
+ golangci-lint-version: 1.23.x # use the fixed version to not introduce new linters unexpectedly
+ prepare:
+ - echo "here I can run custom commands, but no preparation needed for this repo"
diff --git a/CODE_OF_CONDUCT.md b/CODE_OF_CONDUCT.md
new file mode 100644
index 0000000..123ff62
--- /dev/null
+++ b/CODE_OF_CONDUCT.md
@@ -0,0 +1,5 @@
+# Layer5 Community Code of Conduct
+
+The Layer5 community follows the [CNCF Code of Conduct](https://github.com/cncf/foundation/blob/master/code-of-conduct.md).
+
+Instances of abusive, harassing, or otherwise unacceptable behavior may be reported by contacting community@layer5.io.
diff --git a/CONTRIBUTING-gitflow.md b/CONTRIBUTING-gitflow.md
new file mode 100644
index 0000000..35afde8
--- /dev/null
+++ b/CONTRIBUTING-gitflow.md
@@ -0,0 +1,95 @@
+# Working by Forking
+Just head over to the GitHub page and click the "Fork" button. It's just that simple. Once you've done that, you can use your favorite git client to clone your repo or just head straight to the command line:
+
+## Clone your fork to your local machine
+```
+git clone git@github.com:USERNAME/FORKED-PROJECT.git
+```
+Keeping Your Fork Up to Date
+While this isn't an absolutely necessary step, if you plan on doing anything more than just a tiny quick fix, you'll want to make sure you keep your fork up to date by tracking the original "upstream" repo that you forked. To do this, you'll need to add a remote:
+
+## Add 'upstream' repo to list of remotes
+```
+git remote add upstream https://github.com/layer5io/meshery.git
+```
+("meshery" is used as the example repo. Be sure to reference the _actual_ repo you're contributing to e.g. "meshery-linkerd").
+
+## Verify the new remote named 'upstream'
+```
+git remote -v
+```
+Whenever you want to update your fork with the latest upstream changes, you'll need to first fetch the upstream repo's branches and latest commits to bring them into your repository:
+
+## Fetch from upstream remote
+```
+git fetch upstream
+```
+
+## View all branches, including those from upstream
+```
+git branch -va
+```
+Now, checkout your own master branch and merge the upstream repo's master branch:
+
+## Checkout your master branch and merge upstream
+```
+git checkout master
+git merge upstream/master
+```
+If there are no unique commits on the local master branch, git will simply perform a fast-forward. However, if you have been making changes on master (in the vast majority of cases you probably shouldn't be - see the next section, you may have to deal with conflicts. When doing so, be careful to respect the changes made upstream.
+
+Now, your local master branch is up-to-date with everything modified upstream.
+
+**Create a Branch** (doing your work)
+Whenever you begin work on a new feature or bugfix, it's important that you create a new branch. Not only is it proper git workflow, but it also keeps your changes organized and separated from the master branch so that you can easily submit and manage multiple pull requests for every task you complete.
+
+To create a new branch and start working on it, peform the following flow.
+
+## Checkout the master branch - you want your new branch to come from master
+```
+git checkout master
+```
+
+## Create a new branch (give your branch its own simple informative name)
+For enhancements use `feature/your_username/issue#` or `feature/your_username/name_of_feature`
+
+For bugs use `bug/your_username/issue#` or `bug/your_username/name_of_bug`
+
+```
+git branch feature/jdoe/567
+```
+
+## Switch to your new branch
+```
+git checkout feature/jdoe/567
+```
+Now, go to town hacking away and making whatever changes you want to.
+
+## Submitting your changes (a Pull Request)
+Prior to submitting your pull request, you might want to do a few things to clean up your branch and make it as simple as possible for the original repo's maintainer to test, accept, and merge your work.
+
+In the time that you've been working on your changes, if any commits have been made to the upstream master branch, you will need to rebase your development branch so that merging it will be a simple fast-forward that won't require any conflict resolution work.
+
+## Fetch upstream master and merge with your repo's master branch
+```
+git fetch upstream
+git checkout master
+git merge upstream/master
+```
+
+## If there were any new commits, rebase your development branch
+```
+git checkout feature/jdoe/567
+git rebase master
+```
+Now, it may be desirable to squash some of your smaller commits down into a small number of larger more cohesive commits. You can do this with an interactive rebase:
+
+## Rebase all commits on your development branch
+```
+git checkout
+git rebase -i master
+```
+This will open up a text editor where you can specify which commits to squash.
+
+## Submitting
+Once you've committed and pushed all of your changes to GitHub, go to the page for your fork on GitHub, select your development branch, and click the pull request button. If you need to make any adjustments to your pull request, just push the updates to GitHub. Your pull request will automatically track the changes on your development branch and update.
diff --git a/CONTRIBUTING.md b/CONTRIBUTING.md
new file mode 100644
index 0000000..851f4ad
--- /dev/null
+++ b/CONTRIBUTING.md
@@ -0,0 +1,104 @@
+# Contributing Overview
+Please do! Thanks for your help improving the project! :balloon:
+
+All contributors are welcome. Please see the [newcomers welcome guide](https://docs.google.com/document/d/17OPtDE_rdnPQxmk2Kauhm3GwXF1R5dZ3Cj8qZLKdo5E/edit) for how, where and why to contribute. This project is community-built and welcomes collaboration. Contributors are expected to adhere to our [Code of Conduct](.CODE_OF_CONDUCT.md).
+
+Not sure where to start? First, see the [newcomers welcome guide](https://docs.google.com/document/d/17OPtDE_rdnPQxmk2Kauhm3GwXF1R5dZ3Cj8qZLKdo5E/edit). Grab an open issue with the [help-wanted label](../../labels/help%20wanted) and jump in. Join the [Slack account](http://slack.layer5.io) and engage in conversation. Create a [new issue](/../../issues/new/choose) if needed. All [pull requests](/../../pulls) should reference an open [issue](/../../issues). Include keywords in your pull request descriptions, as well as commit messages, to [automatically close issues in GitHub](https://help.github.com/en/github/managing-your-work-on-github/closing-issues-using-keywords).
+
+**Sections**
+- General Contribution Flow
+ - Developer Certificate of Origin
+
+Relevant coding style guidelines are the Go Code Review Comments and the Formatting and style section of Peter Bourgon's Go: Best Practices for Production Environments.
+
+# General Contribution Flow
+
+In order to contribute to Meshery, please follow the fork-and-pull request workflow described [here](./CONTRIBUTING-gitflow.md).
+
+## Signing-off on Commits (Developer Certificate of Origin)
+
+To contribute to this project, you must agree to the Developer Certificate of
+Origin (DCO) for each commit you make. The DCO is a simple statement that you,
+as a contributor, have the legal right to make the contribution.
+
+See the [DCO](https://developercertificate.org) file for the full text of what you must agree to
+and how it works [here](https://github.com/probot/dco#how-it-works).
+To signify that you agree to the DCO for contributions, you simply add a line to each of your
+git commit messages:
+
+```
+Signed-off-by: Jane Smith The Layer5 community represents the largest collection of service mesh projects and their maintainers in the world. Our projects establish industry standards and enable service developers, owners, and operators with repeatable patterns and best practices for managing all aspects of distributed services. Our shared commitment to the open source spirit push the Layer5 community and its projects forward. MeshMates are experienced Layer5 community members, who will help you learn your way around, discover live projects and expand your community network.
+Become a Meshtee today!Find your MeshMate
+
+
+
+
+βοΈ Join any or all of the weekly meetings on community calendar.
+βοΈ Watch community meeting recordings.
+βοΈ Access the Community Drive by completing a community Member Form.
+βοΈ Discuss in the Community Forum.
+βοΈExplore more in the Community Handbook.
+
+Not sure where to start? Grab an open issue with the help-wanted label.
diff --git a/SECURITY.md b/SECURITY.md new file mode 100644 index 0000000..ef1a94d --- /dev/null +++ b/SECURITY.md @@ -0,0 +1,64 @@ +# Security Policy +We are very grateful to the security researchers and users that report +back Layer5 project security vulnerabilities. We investigate every report thoroughly. + +## Reporting a vulnerability +To make a report, send an email to the private +[security-vulns-reports@layer5.io](mailto:security-vulns-reports@layer5.io) +mailing list with the vulnerability details. For normal product bugs +unrelated to latent security vulnerabilities, please head to +the appropriate repository and submit a [new issue](../../issues/new/choose). + +### When to report a security vulnerability? + +Send us a report whenever you: + +- Think Layer5 projects have a potential security vulnerability. +- Are unsure whether or how a vulnerability affects Layer5 projects. +- Think a vulnerability is present in another project that Layer5 projects +depend on (Docker for example). + +### When not to report a security vulnerability? + +Don't send a vulnerability report if: + +- You need help tuning Layer5 project components for security. +- You need help applying security related updates. +- Your issue is not security related. + +## Evaluation + +The Layer5 team acknowledges and analyzes each vulnerability report within 10 working days. + +Any vulnerability information you share with the Layer5 team stays +within the Layer5 project. We don't disseminate the information to other +projects. We only share the information as needed to fix the issue. + +We keep the reporter updated as the status of the security issue is addressed. + +## Fixing the issue + +Once a security vulnerability has been fully characterized, a fix is developed by the Layer5 team. +The development and testing for the fix happens in a private GitHub repository in order to prevent +premature disclosure of the vulnerability. + +## Early disclosure + +The Layer5 team maintains a mailing list for private early disclosure of security vulnerabilities. +The list is used to provide actionable information to close Layer5 partners. The list is not intended +for individuals to find out about security issues. + +## Public disclosure + +On the day chosen for public disclosure, a sequence of activities takes place as quickly as possible: + +- Changes are merged from the private GitHub repository holding the fix into the appropriate set of public +branches. +- Layer5 team ensures all necessary binaries are promptly built and published. +- Once the binaries are available, an announcement is sent out on the following channels: + - The [Layer5 blog](https://layer5.io/blog/) + - The [Layer5 Twitter feed](https://twitter.com/layer5) + - The #announcements channel on Slack + +As much as possible this announcement will be actionable, and include any mitigating steps customers can take prior to +upgrading to a fixed version.