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

Implement a script to mirror test GCP project #37

Open
mshudrak opened this issue Feb 23, 2023 · 13 comments
Open

Implement a script to mirror test GCP project #37

mshudrak opened this issue Feb 23, 2023 · 13 comments
Labels
enhancement New feature or request

Comments

@mshudrak
Copy link
Collaborator

Currently, there is no simple way for developers to mirror GCP project used in testing. However, this might be required for developers in order to locally test their version of GCP scanner or even debug tests itself.

It would be great to have a script that can deploy a mirror/copy of our test GCP project for new developers. We also need to provide documentation to ensure easy setup.

@mshudrak mshudrak added the enhancement New feature or request label Feb 23, 2023
@sudiptob2
Copy link
Contributor

I am interested in this topic as we discussed already in the google group.

@sudiptob2
Copy link
Contributor

I think we need following DOD to cover

  • Create a script to deploy the project in the GCP
  • Documentation on how to use the script
  • Documentation on how to run the tests against the project

One of my concerns is, to setup up the project enabling billing might be required in the GCP. Not everyone will be interested to add billing information.
Do you have any workaround in mind for this

@mshudrak
Copy link
Collaborator Author

Yea, that's a decent plan. As for billing, I don't think I have a simple solution for that. GCP offers free $300 credit https://cloud.google.com/free/docs/free-cloud-features#free-trial for new customers but that's obviously does not solve the problem.

Alternatively, we might potentially think about safe way to grant any new developer access to main test GCP project (e.g. viewer access).

@ArkaprabhaChakraborty
Copy link

Alternatively, we might potentially think about safe way to grant any new developer access to main test GCP project (e.g. viewer access).

This sounds better

@sudiptob2
Copy link
Contributor

yes, 300$ credit is there but it still needs a credit card to avail that.
Later solution seems feasible

@ArkaprabhaChakraborty
Copy link

Actually, we can kinda have an "OAuth2"-ed gateway kinda logic for contributors and that "token" can be used to run the tests on an "instance" and return the results probably?

@ArkaprabhaChakraborty
Copy link

It's a bad idea that came in my mind :)

@sudiptob2
Copy link
Contributor

I think I can do a POC regarding a safe way to grant any new developer access

@ArkaprabhaChakraborty
Copy link

I think I can do a POC regarding a safe way to grant any new developer access

On a custom project? That POC can be done tho.

@sudiptob2
Copy link
Contributor

On a custom project? That POC can be done tho.

Yes, basically we need to check if we can safely grant user read access to the project that GitHub action uses to run the tests.

@mshudrak
Copy link
Collaborator Author

Let me think about this one. It is not super clear on what would be the best option here.

@mhdsysy
Copy link

mhdsysy commented Feb 25, 2023

TBH, a well-documented step by step guide for setting up GCP for local testing is also good if the other options were cumbersome.

@mshudrak
Copy link
Collaborator Author

@mhdsysy Yes but the issue is that GCP requires credit card in order to setup a project which might be a problem for some folks.

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

No branches or pull requests

4 participants