Skip to content

Conversation

@subhashish-devtron
Copy link
Contributor

@subhashish-devtron subhashish-devtron commented Sep 14, 2023

Description

Fixes #3917
Adds support for variables in pre and post steps for CI and CD pipelines and jobs

How Has This Been Tested?

Tested for all scenarios

Checklist:

  • The title of the PR states what changed and the related issues number (used for the release note).
  • Does this PR requires documentation updates?
  • I've updated documentation as required by this PR.
  • I have performed a self-review of my own code.
  • I have commented my code, particularly in hard-to-understand areas.
  • I have tested it for all user roles.
  • I have added all the required unit/api test cases.

Does this PR introduce a user-facing change?


@gitguardian
Copy link

gitguardian bot commented Sep 14, 2023

⚠️ GitGuardian has uncovered 8 secrets following the scan of your pull request.

Please consider investigating the findings and remediating the incidents. Failure to do so may lead to compromising the associated services or software components.

🔎 Detected hardcoded secrets in your pull request
GitGuardian id Secret Commit Filename
2763127 Generic High Entropy Secret ad9050d scripts/devtron-reference-helm-charts/reference-chart_3-13-0/secrets-test-values.yaml View secret
2763127 Generic High Entropy Secret 6f28adf scripts/devtron-reference-helm-charts/reference-chart_3-13-0/secrets-test-values.yaml View secret
2763127 Generic High Entropy Secret 1143115 scripts/devtron-reference-helm-charts/reference-chart_3-13-0/secrets-test-values.yaml View secret
2763127 Generic High Entropy Secret ab8e6bb scripts/devtron-reference-helm-charts/statefulset-chart_5-0-0/secrets-test-values.yaml View secret
2763127 Generic High Entropy Secret ad9050d scripts/devtron-reference-helm-charts/reference-chart_3-13-0/secrets-test-values.yaml View secret
2763127 Generic High Entropy Secret 6f28adf scripts/devtron-reference-helm-charts/reference-chart_3-13-0/secrets-test-values.yaml View secret
2763127 Generic High Entropy Secret 1143115 scripts/devtron-reference-helm-charts/reference-chart_3-13-0/secrets-test-values.yaml View secret
141558 Generic High Entropy Secret ab8e6bb scripts/devtron-reference-helm-charts/statefulset-chart_5-0-0/env-values.yaml View secret
🛠 Guidelines to remediate hardcoded secrets
  1. Understand the implications of revoking this secret by investigating where it is used in your code.
  2. Replace and store your secrets safely. Learn here the best practices.
  3. Revoke and rotate these secrets.
  4. If possible, rewrite git history. Rewriting git history is not a trivial act. You might completely break other contributing developers' workflow and you risk accidentally deleting legitimate data.

To avoid such incidents in the future consider


🦉 GitGuardian detects secrets in your source code to help developers and security teams secure the modern development process. You are seeing this because you or someone else with access to this repository has authorized GitGuardian to scan your pull request.

Our GitHub checks need improvements? Share your feedbacks!

Base automatically changed from feat-scoped-vars to main September 14, 2023 14:25
# Conflicts:
#	api/restHandler/scopedVariable/ScopedVariableRestHandler.go
#	pkg/bulkAction/BulkUpdateService.go
#	pkg/chart/ChartService.go
#	pkg/pipeline/PipelineBuilder.go
#	pkg/pipeline/PropertiesConfig.go
#	pkg/variables/VariableEntityMappingService.go
#	pkg/variables/repository/VariableEntityDTO.go
#	pkg/variables/repository/VariableEntityMappingRepository.go
#	pkg/variables/repository/VariableSnapshotHistoryDTO.go
#	wire_gen.go
@sonarqubecloud
Copy link

SonarCloud Quality Gate failed.    Quality Gate failed

Bug A 0 Bugs
Vulnerability A 0 Vulnerabilities
Security Hotspot A 0 Security Hotspots
Code Smell A 15 Code Smells

No Coverage information No Coverage information
45.3% 45.3% Duplication

idea Catch issues before they fail your Quality Gate with our IDE extension sonarlint SonarLint

@github-actions
Copy link

PR is not linked to any issue, please make the corresponding changes in the body.

@subhashish-devtron subhashish-devtron changed the title Feat: Scoped Variables support in pre-post CI, CD and Jobs Feat: Variables support in pre-post CI, CD and Jobs Sep 28, 2023
@subhashish-devtron subhashish-devtron changed the title Feat: Variables support in pre-post CI, CD and Jobs feat: Variables support in pre-post CI, CD and Jobs Sep 28, 2023
@subhashish-devtron subhashish-devtron merged commit 1317afb into main Sep 28, 2023
@subhashish-devtron subhashish-devtron deleted the feat-cicd-vars-final branch September 28, 2023 07:37
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.

Feature: Variables support

5 participants