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

[Important] Register your application and get API Key - (Prevent API Overload) #7

Open
softmarshmallow opened this issue May 3, 2021 · 27 comments
Assignees

Comments

@softmarshmallow
Copy link
Member

softmarshmallow commented May 3, 2021

Important notice (ACTION REQUIRED)

Recently, lots of abused usage of free bridged cloud services are detected. To keep providing the service free for everyone, we decided to force application registration to use bridged.cc services.

Register your service here -> https://grida.co/cloud/cors/register

  1. service / account registration
  2. get your api key in 24H
  3. update your bridged.cc service call to use registered api key
  4. unauthorized request will be blocked from Oct 10 2021
  5. OR Use this hotline to contact us - join slack
curl -XGET -H 'x-cors-grida-api-key: your-api-key-here' 'https://cors.bridged.cc/https://grida.co'

Please join our community slack for latest updates / any questions, via this invitation link

History (From here, it's an informative document, your action is not required)

(July 4 2021)
As noticed, we've started blocking unregistered applications order by most frequently accessing. currently 6 hosts are blocked to use our proxy service, waiting for the organizers to contact us. (with no contact, these blocking will remain permanent) - gridaco/base#31

(June 29 2021)

(June 2021)
Request per month skyrocketed, reached up to 2 billion requests. We decided to make the service available to authorized app only, preventing abused & anonymous usages.

(May 2021)
Currently cors services is being called maximum rate of 100,000 request per hour globally, Which the financing issue is held cause of this.

We want to keep this service free and public, open to everyone and we'll need to limit max request per hour per ip or account on free tier to do this.

We're thinking of 10,000 request per hour per ip/account will be an adequate quota to provide as a free tier.

I'll keep this thread open and get feedbacks for this idea.

Current action items are.

  • Add statistics to services so we can find if there is a abusing usage of this serviec. (too many request for few clients - we don't want this to happen)
  • Write privacy policy for statistics data collecting

Problem still lives.

  • How to tell current develooers that this service will be updated? - we don't have there email address or nothing.
@Fawesum
Copy link

Fawesum commented May 4, 2021

Sounds more than reasonable. 10k per hour is also very generous.

@softmarshmallow
Copy link
Member Author

softmarshmallow commented May 19, 2021

OFFICIAL NOTICE FROM BRIDGED TEAM

Hi,

From June 1 2021, Only authenticated user/apps will be able to use BASE in unlimited quota.
The API limit for unauthorized/anonymous requests will be as described above.

Even for authenticated accounts, It might be necessary for us to take payments for massive requests.
We want to keep utility functions up and online, free for everyone and we are raising funds and contacting cloud providers such as AWS for this to happen.

Thanks for using Bridged App Services.

@softmarshmallow
Copy link
Member Author

From May 25th, We are limiting lambda function memory from 1024mb to 128mb. This, in most cases, will not have effect. but fetching high payload data such as video might not work anymore.

See gridaco/base#25

We are not adding any access limit to cors.bridged.cc service (as mentioned above) yet.

We'll see if this lowers the pricing, if it works, we'll keep it this way.

@softmarshmallow
Copy link
Member Author

softmarshmallow commented May 24, 2021

To make things clean and clear, we are sharing our payments to AWS. (for free cors.bridged.cc service)

From May 1st ~ May 25th
Total: $963+ / Mo

Data transfer
image

Api Gateway
image

Lambda
image

Additional Plans for keeping CORS Free.

  • We can save data transfer price via supporting multi-region service.
  • We ca save lambda execution time by limiting timeout to 3 seconds (currently 6. - 3 does most of the job)

@softmarshmallow
Copy link
Member Author

softmarshmallow commented Jun 23, 2021

UPDATE - IMPORTANT NOTICE (ACTION REQUIRED)

Recently, lots of abused usage of free bridged cloud services are detected. To keep providing the service free for everyone, we decided to force application registration to use bridged.cc services.

Register your service here -> https://grida.co/cloud/cors/register

  1. service / account registration
  2. get your api key in 24H
  3. update your bridged.cc service call to use registered api key
  4. unauthorized request will be blocked from July first 2021

@stl1988
Copy link

stl1988 commented Aug 23, 2021

When clicking that typeform link for rwgistering, it says "Sorry, you can't access this typeform until its creator says so.". I first thought I had to create a typeform account, but it doesn't seem to work this way.

@softmarshmallow
Copy link
Member Author

softmarshmallow commented Aug 23, 2021

When clicking that typeform link for rwgistering, it says "Sorry, you can't access this typeform until its creator says so.". I first thought I had to create a typeform account, but it doesn't seem to work this way.

I can confirm that the link is alive and accessible. (tested on ingognito) guess that was something temporary. :)
-> https://grida.co/cloud/cors/register

@Beasleydog
Copy link

I get an error saying the form is closed. Is there any other way to get an API key?
image

@korrida
Copy link

korrida commented Oct 3, 2021

Same to me. No way to register my service. How can i get api key now?

@softmarshmallow
Copy link
Member Author

softmarshmallow commented Oct 3, 2021

@Beasleydog @korrida Sorry for the inconvenience. I've update the form link. we are now using google forms.
-> https://grida.co/cloud/cors/register

@korrida
Copy link

korrida commented Oct 4, 2021

I'm done, what's next ?

@softmarshmallow
Copy link
Member Author

@korrida We'll email you manually shortly :)

@korrida
Copy link

korrida commented Oct 5, 2021

I got it thanks. Should it work as part of POST header via dot ajax request? This guideline contains only a GET call example. I use the following construction:
$.ajax({
url: "https://cors.bridged.cc/http://web.idtlive.com/index/api.show/index.html",
type: "POST",
contentType: "application/json",
headers: { 'x-cors-grida-api-key': 'myid' }, .... etc

@softmarshmallow
Copy link
Member Author

@korrida Method should not matter (Like any other api services :) )
All works the same way for GET / POST / PUT / etc.

@DarKWinGTM
Copy link

DarKWinGTM commented Oct 12, 2021

Hi, I was waiting for api key.

@softmarshmallow
Copy link
Member Author

Hi. response to your application can take up to 48 hours, we check it manually every morning.
For reaching me urgently, you can use this community slack channel and DM me :)

join slack

@lypborges
Copy link

What'll be the price for this registration?

@softmarshmallow
Copy link
Member Author

@lypborges Free!

@PerceptAsh
Copy link

I registered for an API key on Thursday 14 Oct and haven't received one yet. I requested one using email, support@perceptit.com.au.

@faob-dev
Copy link

faob-dev commented Dec 5, 2021

I registered my account 1 week ago for API key but haven't got my api key
farrukh.obaid@gmail.com

@softmarshmallow
Copy link
Member Author

Hi, Sorry, It is impossible to track individual's requests here. please contact us via Slack. https://grida.co/join-slack

@mikelgmh
Copy link

Is it possible to whitelist a domain instead of needing to send an API Key? My webapp does not have a backend, so the requests are made directly from the browser and I don't want my key to be exposed.

@yaqwsx
Copy link

yaqwsx commented Jul 18, 2022

Hello, I registered a key about 8 months ago, and everything was working flawlessly. However, a few weeks ago I started getting error 403. What can I do to diagnose what changed?

@softmarshmallow
Copy link
Member Author

Hi. @yaqwsx

As you can see on this repo, no logics are changed. Please check once again if it's not your target's (request target) problem. If this continues, please let me know :)

@LetusAbaasy
Copy link

Hello @softmarshmallow, I registered the questions in the google forms to get a key, thanks for your help and services.

@softmarshmallow
Copy link
Member Author

Hello @softmarshmallow, I registered the questions in the google forms to get a key, thanks for your help and services.

Hi. Please reach me via the slack link above :)

@deontic
Copy link

deontic commented Aug 8, 2022

Is it possible to whitelist a domain instead of needing to send an API Key? My webapp does not have a backend, so the requests are made directly from the browser and I don't want my key to be exposed.

I need to do this as well, is there a way to whitelist the domain instead of having to expose the API key?

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

No branches or pull requests