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

Added dependabotApiUrl to ENV variable for Proxy Container #1156

Merged
merged 3 commits into from
Jan 31, 2024

Conversation

honeyankit
Copy link
Contributor

Context

  • This pull request primarily introduces changes to the ProxyBuilder class and its usage in the __tests__/proxy-integration.test.ts and src/updater.ts files. The changes involve the addition of a new parameter dependabotApiUrl to the run method of the ProxyBuilder class and the subsequent adjustments in the method calls throughout the codebase.

  • This is done to provide dependabotApiUrl as an ENV variable for the proxy container so that the dependabotApiUrl can be used by newly introduced metrics_client in PR to send metrics from proxy to Dependabot-api.

What are you trying to accomplish?

Currently, in AWS each ec2 host (uj-worker-firecracker) runs a datadog agent. The credentials are sourced from secret manager. All update jobs that run in firecracker on the ec2 host will share the same datadog agent for reporting.

After moving to Dependabot on actions, we'd need to run a datadog agent per job which could dramatically affect our datadog billing. Also if we would need to provide the datadog credentials as inputs to the dynamic workflow which increases risk they can be extracted by unsafe code or customers on self-hosted runners. This has already been flagged by the security team.

@honeyankit honeyankit self-assigned this Jan 31, 2024
@honeyankit honeyankit requested a review from a team as a code owner January 31, 2024 02:03
Copy link
Contributor

@bdragon bdragon left a comment

Choose a reason for hiding this comment

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

LGTM

@honeyankit
Copy link
Contributor Author

Note: The dependabotApiUrl is passed as a parameter to the Dependabot-actions from Dependabot-api

https://github.com/github/dependabot-api/blob/58b6b17fc41f334c614a1e13cced292219f926e6/app/actions/run_updater/actions.rb#L56
6:28

@honeyankit honeyankit merged commit d66c1dd into main Jan 31, 2024
9 checks passed
@honeyankit honeyankit deleted the honeyankit/set-dependeabot-api-as-env-variable branch January 31, 2024 19:45
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
2 participants