Syan
Syan
CDCloudflare Developers
Created by Syan on 6/26/2024 in #workers-help
Migration from KV to D1
Hi, I am currently running a migration API in an existing pages project which fetches all resources from a certain KV namespace, and inserts those into a specific D1 database. Since there are quite a lot of items in the KV namespace, an internal server error is produced: Too many API requests by single worker invocation. I understand that internal calls to certain services are limited to 1000. Is there any way to temporarily increase this in order to make the migration process easier? Worst case I can limit the amount of items interacted with, but this is a little more tedious than just being able to migrate it all at the same time.
3 replies
CDCloudflare Developers
Created by Syan on 5/21/2023 in #general-help
Zero Trust Application communication
Hi all, I have a question regarding the Applications talking to each other. I have two applications, with the same access policies. This means, when a user successfully authenticates on either application, they can access the other as well. Since a global cookie gets stored in the team domain, this seems to work perfectly. However: The applications are set-up as follows: (app1) path: example.com/manage/* (=frontend) (app2) path: example.com/api/* (=backend) When the user successfully authenticates on app1, they can succesfully access app2 manually. Successfully authenticating on the front-end (app1) essentially means the user can access the api (app2) without any issue. However, my frontend is dynamic, so when a delete button or such is pressed, it will send out a request to the api. Whenever this happens, the api responds with its login page, as to make the user reauthenticate, even though the user is authenticated already. When opening the same link to the api in a tab manually, no reauthentication is necessary, and the request gets fulfilled. My first thought was that this was an issue regarding cookies, but I can't seem to solve the issue. Given the two applications are on the same domain, I don't see how the cookies wouldn't be "shared". Any ideas would be greatly appreciated NotLikeThis Thanks in advance!
7 replies