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: Integrated OCI registries in global config artifact store. #3567

Merged
merged 31 commits into from
Jul 13, 2023

Conversation

Ash-exp
Copy link
Contributor

@Ash-exp Ash-exp commented Jun 26, 2023

Description

Modified Registry to support both Container and OCI complaint registries. Added util functions for both and bifurcated the existing apis response based on query params to get either container or chart registries only responses based on use cases.

How Has This Been Tested?

Go to global config page and under Container Registries /OCI Registries

  • Create Registry
    • Container Registry
      • new registry
      • existing registry
      • set default
      • previously deleted
    • OCI Registry (Private)
      • new registry
      • existing registry
      • set default
      • previously deleted
  • Update Registry
    • Container Registry
      • new registry
      • existing registry
      • set default
      • previously deleted
    • OCI Registry (Private)
      • new registry
      • existing registry
      • set default
      • previously deleted
  • Delete Registry
    • Container Registry
      • new registry
      • existing registry
      • set default
      • previously deleted
    • OCI Registry (Private)
      • new registry
      • existing registry
      • set default
      • previously deleted

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?


@Ash-exp Ash-exp added the enhancement New feature or request label Jun 26, 2023
@Ash-exp Ash-exp requested a review from iamayushm June 26, 2023 14:29
@Ash-exp Ash-exp self-assigned this Jun 26, 2023
@gitguardian
Copy link

gitguardian bot commented Jul 6, 2023

⚠️ GitGuardian has uncovered 2 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
141558 Generic High Entropy Secret 254d28b scripts/devtron-reference-helm-charts/deployment-chart_4-18-0/env-values.yaml View secret
2763127 Generic High Entropy Secret 254d28b scripts/devtron-reference-helm-charts/deployment-chart_4-18-0/secrets-test-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!

@sonarcloud
Copy link

sonarcloud bot commented Jul 13, 2023

SonarCloud Quality Gate failed.    Quality Gate failed

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

No Coverage information No Coverage information
7.2% 7.2% Duplication

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

@Ash-exp Ash-exp merged commit 229e3f9 into main Jul 13, 2023
2 of 3 checks passed
@Ash-exp Ash-exp deleted the virtual-cluster-v2 branch July 13, 2023 17:25
gireesh-naidu pushed a commit that referenced this pull request Aug 13, 2023
* fix: Deployment enforcement config save err (#3626)

* wip

* wip

* feat: Integrated OCI registries in global config artifact store. (#3567)

* migration virtual cluster v2

* migration column name changed

* migration update

* refactoring gitops code

* OCI registry integration

* added validation for container storage type action

* refactoring gitops code

* migration update

* migration update

* manifest_push_config dto update

* manifest push config dto correction

* wip

* db object correction

* manifest push config get function

* cleaning code

* added integration test cases for docker_artifact_store

* skipped integration test cases for built and modified logs

* updated validation condition

* updated docker_artifact_store query condition for OCI config relations

* moving save timeline call

* handled nil pointer issue of existing registry update

* cleaning code- removing unused functions

* trigger event refactor for unit test case

* wip

* migration-update

* wip

* updated wire_gen.go

---------

Co-authored-by: ayushmaheshwari <ayush@devtron.ai>

* updated plugin list, detail get api (#3627)

Co-authored-by: Kartik <kartik@MacBook-Pro.Dlink>

---------

Co-authored-by: iamayushm <32041961+iamayushm@users.noreply.github.com>
Co-authored-by: Asutosh Das <asutosh2000ad@gmail.com>
Co-authored-by: ayushmaheshwari <ayush@devtron.ai>
Co-authored-by: Kartik <kartik@MacBook-Pro.Dlink>
Co-authored-by: Kartik <kartik@MacBook-Pro-2.local>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants