Skip to content
This repository has been archived by the owner on Mar 27, 2023. It is now read-only.

Google Cloud Armor Rules #24

Open
argidenise opened this issue Mar 14, 2023 · 3 comments
Open

Google Cloud Armor Rules #24

argidenise opened this issue Mar 14, 2023 · 3 comments

Comments

@argidenise
Copy link

Hi Ayaka,

I want to self-host my own API endpoint, please kindly share what Google Cloud Armor rules did you use?

Thank you.

@ayaka14732
Copy link
Owner

ayaka14732 commented Mar 14, 2023

Note that the second and the third rules are not safe at all, because simply changing the "User-Agent" header will bypass them. However, the rules are set to show that developers should use this API appropriately and should not use programming methods to call this API on a large scale. Otherwise the free API will be exhausted very quickly.

@argidenise
Copy link
Author

Thank you! I have successfully created the rules, may I know how to connect this to my Cloud Run? I have been trying :(

@ayaka14732
Copy link
Owner

Yes, I also think the setup is confusing :(

  1. In Load balancing, create a load balancer.

  1. In Cloud Armor - "Apply policy to targets", apply to the load balancer we've just created.

If you are willing to contribute, feel free to create a PR with the steps for the configuration!

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants