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

feat: Litmus 3.0: Added enhancements in subscriber for Litmus 3.0 #4027

Merged
merged 5 commits into from Jun 29, 2023

Conversation

amityt
Copy link
Contributor

@amityt amityt commented Jun 29, 2023

Proposed changes

Summarize your changes here to communicate with the maintainers and make sure to put the link of that issue

Types of changes

What types of changes does your code introduce to Litmus? Put an x in the boxes that apply

  • New feature (non-breaking change which adds functionality)
  • Bugfix (non-breaking change which fixes an issue)
  • Breaking change (fix or feature that would cause existing functionality to not work as expected)
  • Documentation Update (if none of the other choices applies)

Checklist

Put an x in the boxes that apply. You can also fill these out after creating the PR. If you're unsure about any of them, don't hesitate to ask. We're here to help! This is simply a reminder of what we are going to look for before merging your code.

  • I have read the CONTRIBUTING doc
  • I have signed the commit for DCO to be passed.
  • Lint and unit tests pass locally with my changes
  • I have added tests that prove my fix is effective or that my feature works (if appropriate)
  • I have added necessary documentation (if appropriate)

Dependency

  • Please add the links to the dependent PR need to be merged before this (if any).

Special notes for your reviewer:

Signed-off-by: Amit Kumar Das <amit.das@harness.io>
Signed-off-by: Amit Kumar Das <amit.das@harness.io>
Signed-off-by: Amit Kumar Das <amit.das@harness.io>
continue
}
if r.Payload.Errors != nil {
logrus.Error("Error response from the server : ", string(message))

Check failure

Code scanning / CodeQL

Log entries created from user input High

This log entry depends on a
user-provided value
.

// disable ssl verification if configured
if strings.ToLower(infraData["SKIP_SSL_VERIFY"]) == "true" {
http.DefaultTransport.(*http.Transport).TLSClientConfig = &tls.Config{InsecureSkipVerify: true}

Check failure

Code scanning / CodeQL

Disabled TLS certificate check High

InsecureSkipVerify should not be used in production code.
// disable ssl verification if configured
if strings.ToLower(infraData["SKIP_SSL_VERIFY"]) == "true" {
http.DefaultTransport.(*http.Transport).TLSClientConfig = &tls.Config{InsecureSkipVerify: true}
websocket.DefaultDialer.TLSClientConfig = &tls.Config{InsecureSkipVerify: true}

Check failure

Code scanning / CodeQL

Disabled TLS certificate check High

InsecureSkipVerify should not be used in production code.

cfg, err := k8s.GetKubeConfig()
if err != nil {
logrus.WithError(err).Fatal("could not get config")
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Suggested change
logrus.WithError(err).Fatal("could not get config")
logrus.WithError(err).Fatal("could not get kube config")


cfg, err := k8s.GetKubeConfig()
if err != nil {
logrus.WithError(err).Fatal("could not get config")
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Suggested change
logrus.WithError(err).Fatal("could not get config")
logrus.WithError(err).Fatal("could not get kubeconfig")

amityt and others added 2 commits June 29, 2023 17:08
Signed-off-by: Amit Kumar Das <amit.das@harness.io>
Copy link
Contributor

@SarthakJain26 SarthakJain26 left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM

@Saranya-jena
Copy link
Contributor

Looks Good 🚀

@Jonsy13 Jonsy13 merged commit ae7c165 into litmuschaos:master Jun 29, 2023
15 of 16 checks passed
SohamRatnaparkhi pushed a commit to SohamRatnaparkhi/litmus that referenced this pull request Jun 30, 2023
…tmuschaos#4027)

* feat: Litmus 3.0: Added subscriber base setup

Signed-off-by: Amit Kumar Das <amit.das@harness.io>

* feat: Litmus 3.0: Added events for chaosengine and workflows

Signed-off-by: Amit Kumar Das <amit.das@harness.io>

* feat: Litmus 3.0: Added logs and minor changes

Signed-off-by: Amit Kumar Das <amit.das@harness.io>

* updated logs

Signed-off-by: Amit Kumar Das <amit.das@harness.io>

---------

Signed-off-by: Amit Kumar Das <amit.das@harness.io>
Co-authored-by: Saranya Jena <saranya.jena@harness.io>
SohamRatnaparkhi pushed a commit to SohamRatnaparkhi/litmus that referenced this pull request Jun 30, 2023
…tmuschaos#4027)

* feat: Litmus 3.0: Added subscriber base setup

Signed-off-by: Amit Kumar Das <amit.das@harness.io>

* feat: Litmus 3.0: Added events for chaosengine and workflows

Signed-off-by: Amit Kumar Das <amit.das@harness.io>

* feat: Litmus 3.0: Added logs and minor changes

Signed-off-by: Amit Kumar Das <amit.das@harness.io>

* updated logs

Signed-off-by: Amit Kumar Das <amit.das@harness.io>

---------

Signed-off-by: Amit Kumar Das <amit.das@harness.io>
Co-authored-by: Saranya Jena <saranya.jena@harness.io>
Signed-off-by: SohamRatnaparkhi <soham.ratnaparkhi@gmail.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

4 participants