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

[LocalNet] Add Path to LocalNet #879

Draft
wants to merge 20 commits into
base: main
Choose a base branch
from
Draft

[LocalNet] Add Path to LocalNet #879

wants to merge 20 commits into from

Conversation

red-0ne
Copy link
Contributor

@red-0ne red-0ne commented Oct 14, 2024

Summary

Add Path to Tilt so it could run on LocalNet for E2E tests and local load testing.

Issue

In order to deprecate AppGate server and have better integration with the production gateway component, Path needs to run on LocalNet for both E2E test and load testing.

Type of change

  • New feature, functionality or library

Testing

  • LocalNet E2E Tests: make test_e2e
  • DevNet E2E Tests: Add the devnet-test-e2e label to the PR.

Sanity Checklist

  • I have tested my changes using the available tooling
  • I have commented my code
  • I have performed a self-review of my own code; both comments & source code
  • I create and reference any new tickets, if applicable
  • I have left TODOs throughout the codebase, if applicable

@red-0ne red-0ne added gateway Changes related to the Gateway actor infra Infra or tooling related improvements, additions or fixes loadtest Work related to load testing observability labels Oct 14, 2024
@red-0ne red-0ne added this to the Shannon Beta TestNet Launch milestone Oct 14, 2024
@red-0ne red-0ne requested a review from okdas October 14, 2024 10:38
@red-0ne red-0ne self-assigned this Oct 14, 2024
Copy link

gitguardian bot commented Oct 14, 2024

⚠️ GitGuardian has uncovered 19 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 GitGuardian status Secret Commit Filename
12819930 Triggered Generic Password a5e6da8 localnet/kubernetes/values-pocketdex-postgres.yaml View secret
14114212 Triggered Generic High Entropy Secret 1cba315 localnet/kubernetes/values-path.yaml View secret
14114212 Triggered Generic High Entropy Secret 1e7896b localnet/kubernetes/path-config.yaml View secret
14114212 Triggered Generic High Entropy Secret baa627f localnet/kubernetes/path-config-3.yaml View secret
14114212 Triggered Generic High Entropy Secret baa627f localnet/kubernetes/path-config-2.yaml View secret
14114212 Triggered Generic High Entropy Secret b82ad3d localnet/kubernetes/path-config-2.yaml View secret
14150880 Triggered Generic High Entropy Secret b82ad3d localnet/kubernetes/path-config-3.yaml View secret
14150881 Triggered Generic High Entropy Secret b82ad3d localnet/kubernetes/path-config-2.yaml View secret
14114212 Triggered Generic High Entropy Secret b82ad3d localnet/kubernetes/path-config-3.yaml View secret
13506804 Triggered Generic High Entropy Secret b82ad3d localnet/kubernetes/path-config-1.yaml View secret
14114212 Triggered Generic High Entropy Secret b82ad3d localnet/kubernetes/path-config-1.yaml View secret
13506804 Triggered Generic High Entropy Secret f0b204a localnet/kubernetes/path-config-1.yaml View secret
13506804 Triggered Generic High Entropy Secret 5b57e3e localnet/kubernetes/path-config-1.yaml View secret
14150881 Triggered Generic High Entropy Secret 5b57e3e localnet/kubernetes/path-config-2.yaml View secret
14150880 Triggered Generic High Entropy Secret 5b57e3e localnet/kubernetes/path-config-3.yaml View secret
12819930 Triggered Generic Password 6ede5e7 localnet/kubernetes/observability-prometheus-stack.yaml View secret
12819930 Triggered Generic Password 274d8e1 localnet/kubernetes/observability-prometheus-stack.yaml View secret
14150881 Triggered Generic High Entropy Secret fb336b1 localnet/kubernetes/path-config-2.yaml View secret
14150880 Triggered Generic High Entropy Secret fb336b1 localnet/kubernetes/path-config-3.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.

@red-0ne red-0ne marked this pull request as draft October 15, 2024 19:51
@red-0ne red-0ne requested a review from Olshansk October 15, 2024 19:51
config.yml Outdated
service_configs:
- service_id: anvil
- service_id: "0021"
Copy link
Member

Choose a reason for hiding this comment

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

tl;dr I'm changing this back

I understand why you did this, but:

  1. This is legacy from Morse adopted into PATH
  • I'd rather change PATH and move forward
  1. If we make this change, you'll need to change a lot more (see the search result below)
  • This requires a TODO_IN_THIS_PR

Screenshot 2024-10-16 at 12 20 31 PM

Copy link
Contributor Author

Choose a reason for hiding this comment

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

From my understanding, Path does not know about / have "anvil" as an EVM service.

Copy link
Member

Choose a reason for hiding this comment

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

I added it. PR incoming soon.

@@ -463,7 +469,9 @@ func (s *suite) TheApplicationSendsTheSupplierASuccessfulRequestForServiceWithPa
method = "GET"
}

res, err := s.pocketd.RunCurlWithRetry(appGateServerUrl, serviceId, method, path, requestData, 5)
// TODO_IN_THIS_PR: Figure out a plan for deprecating appGateServerUrl in a followup (cleaner) PR

Choose a reason for hiding this comment

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

[linter-name (fail-on-found)] reported by reviewdog 🐶
// TODO_IN_THIS_PR: Figure out a plan for deprecating appGateServerUrl in a followup (cleaner) PR

# Build the Docker image with Tilt (local build)
docker_build("path-gateway-local", path_local_repo)

# TODO_IN_THIS_PR(@okdas): Move configs to values and add helm charts for PATH

Choose a reason for hiding this comment

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

[linter-name (fail-on-found)] reported by reviewdog 🐶
# TODO_IN_THIS_PR(@okdas): Move configs to values and add helm charts for PATH

Copy link
Member

@Olshansk Olshansk left a comment

Choose a reason for hiding this comment

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

@red-0ne Didn't review this, but putting a "cod review" checkpoint to reference when this is ready.

k8s_resource(
"path-gateway" + str(actor_number),
labels=["gateways"],
resource_deps=["validator"],
Copy link

Choose a reason for hiding this comment

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

[linter-name (fail-on-found)] reported by reviewdog 🐶
# TODO_IN_THIS_PR(@okdas): Move configs to values and add helm charts for PATH

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
gateway Changes related to the Gateway actor infra Infra or tooling related improvements, additions or fixes loadtest Work related to load testing observability
Projects
Status: 🏗 In progress
Development

Successfully merging this pull request may close these issues.

2 participants