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: Docker lint plugin #5694

Merged
merged 14 commits into from
Oct 1, 2024
Merged

Conversation

kamal-devtron
Copy link
Contributor

@kamal-devtron kamal-devtron commented Aug 15, 2024

Description

Fixes #5931

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?


Copy link

scripts/sql/276_docker_lint.up.sql Outdated Show resolved Hide resolved
scripts/sql/276_docker_lint.up.sql Outdated Show resolved Hide resolved
scripts/sql/276_docker_lint.up.sql Outdated Show resolved Hide resolved
scripts/sql/276_docker_lint.up.sql Outdated Show resolved Hide resolved
Copy link

gitguardian bot commented Sep 30, 2024

⚠️ GitGuardian has uncovered 3 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.

Since your pull request originates from a forked repository, GitGuardian is not able to associate the secrets uncovered with secret incidents on your GitGuardian dashboard.
Skipping this check run and merging your pull request will create secret incidents on your GitGuardian dashboard.

🔎 Detected hardcoded secrets in your pull request
GitGuardian id GitGuardian status Secret Commit Filename
10220829 Triggered Generic High Entropy Secret 9225773 charts/devtron/values.yaml View secret
10220829 Triggered Generic High Entropy Secret 9225773 charts/devtron/devtron-bom.yaml View secret
10220829 Triggered Generic High Entropy Secret 9225773 devtron-images.txt.source 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.

tayalrishabh96
tayalrishabh96 previously approved these changes Sep 30, 2024
Copy link
Contributor

@tayalrishabh96 tayalrishabh96 left a comment

Choose a reason for hiding this comment

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

Tested all the scenarios - looks good to merge!

pawan-mehta-dt
pawan-mehta-dt previously approved these changes Oct 1, 2024
Copy link

sonarqubecloud bot commented Oct 1, 2024

@prakarsh-dt prakarsh-dt merged commit 3791f90 into devtron-labs:main Oct 1, 2024
5 checks passed
iamayushm added a commit that referenced this pull request Oct 3, 2024
* removing fetchArtifacts V1 usage and abstracting tag extraction logic

* docker tag and repo method in util

* modifying image tag logic in release override

* wip: adding empty path check

* review changes

* fix: app update migration (#5903)

* wip: adding app name check

* wip

* wip

* wip

* moving migration to code

* wip: adding app name in log

* wip: moving sql logic to code

* pg no rows handling

* adding db migration call

* fixing fetch app query

* wip: adding pg multiple rows handling

* audit log update

* fix: nil ptr fix in copying extraEnvVars

* feat:  Docker lint plugin (#5694)

* added up script for docker linit plugin

* rename of script file

* docker lint down script

* changes in docker lint

* hadolint image

* change in name of plugin

* changes in down script

* chnages in docker lint

* chnages in down script

* change in hadolint image

* rename  down script file

* renaming sql script

* feat: Added Devtron CI Trigger v1.1.0 (#5934)

* Create 028901_019_devtron_ci_trigger_v1_1.down.sql

* Create 028901_019_devtron_ci_trigger_v1_1.up.sql

* Update 028901_019_devtron_ci_trigger_v1_1.up.sql

---------

Co-authored-by: Prakarsh <71125043+prakarsh-dt@users.noreply.github.com>

* renaming docker lint script file (#5937)

* fix: err handling for configmap access

* release: PR for v0.7.3 (#5942)

* Update Chart.yaml

* Update devtron-bom.yaml

* Update values.yaml

* Update devtron-installer.yaml

* Update installation-script

* Update version.txt

* Update devtron.yaml

* Update releasenotes.md

* Update devtron-bom.yaml

* Update values.yaml

* Update releasenotes.md

* Update releasenotes.md

* Updated release-notes files

* Update releasenotes.md

* Update release.txt

* Updated release-notes files

* Update release-notes-v0.7.2.md

---------

Co-authored-by: ReleaseBot <prakarsh@devtron.ai>

* wip: modifying tags function

* sync

---------

Co-authored-by: Gireesh Naidu <gireesh@devtron.ai>
Co-authored-by: Gireesh Naidu <111440205+gireesh-naidu@users.noreply.github.com>
Co-authored-by: kamal-devtron <128121299+kamal-devtron@users.noreply.github.com>
Co-authored-by: Kiran <155609672+kirandevtn@users.noreply.github.com>
Co-authored-by: Prakarsh <71125043+prakarsh-dt@users.noreply.github.com>
Co-authored-by: Pawan Mehta <117346502+pawan-mehta-dt@users.noreply.github.com>
Co-authored-by: ReleaseBot <prakarsh@devtron.ai>
vikramdevtron added a commit that referenced this pull request Oct 3, 2024
* fix: app update migration (#5903)

* wip: adding app name check

* wip

* wip

* wip

* moving migration to code

* wip: adding app name in log

* wip: moving sql logic to code

* pg no rows handling

* adding db migration call

* fixing fetch app query

* wip: adding pg multiple rows handling

* audit log update

* fix: nil ptr fix in copying extraEnvVars

* feat:  Docker lint plugin (#5694)

* added up script for docker linit plugin

* rename of script file

* docker lint down script

* changes in docker lint

* hadolint image

* change in name of plugin

* changes in down script

* chnages in docker lint

* chnages in down script

* change in hadolint image

* rename  down script file

* renaming sql script

* feat: Added Devtron CI Trigger v1.1.0 (#5934)

* Create 028901_019_devtron_ci_trigger_v1_1.down.sql

* Create 028901_019_devtron_ci_trigger_v1_1.up.sql

* Update 028901_019_devtron_ci_trigger_v1_1.up.sql

---------

Co-authored-by: Prakarsh <71125043+prakarsh-dt@users.noreply.github.com>

* renaming docker lint script file (#5937)

* fix: err handling for configmap access

* release: PR for v0.7.3 (#5942)

* Update Chart.yaml

* Update devtron-bom.yaml

* Update values.yaml

* Update devtron-installer.yaml

* Update installation-script

* Update version.txt

* Update devtron.yaml

* Update releasenotes.md

* Update devtron-bom.yaml

* Update values.yaml

* Update releasenotes.md

* Update releasenotes.md

* Updated release-notes files

* Update releasenotes.md

* Update release.txt

* Updated release-notes files

* Update release-notes-v0.7.2.md

---------

Co-authored-by: ReleaseBot <prakarsh@devtron.ai>

---------

Co-authored-by: iamayushm <32041961+iamayushm@users.noreply.github.com>
Co-authored-by: Gireesh Naidu <gireesh@devtron.ai>
Co-authored-by: Gireesh Naidu <111440205+gireesh-naidu@users.noreply.github.com>
Co-authored-by: kamal-devtron <128121299+kamal-devtron@users.noreply.github.com>
Co-authored-by: Kiran <155609672+kirandevtn@users.noreply.github.com>
Co-authored-by: Prakarsh <71125043+prakarsh-dt@users.noreply.github.com>
Co-authored-by: Pawan Mehta <117346502+pawan-mehta-dt@users.noreply.github.com>
Co-authored-by: ReleaseBot <prakarsh@devtron.ai>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Feature: Add a plugin to support Dockerfile Linting in CI Pipeline
4 participants