Integration log drain return logs for all projects even with only one project specified

Summary

I have created an integration log drain using the https://api.vercel.com/v2/integrations/log-drains endpoint. I’m only specifying a single project id in the projectIds field. If I query the https://api.vercel.com/v2/integrations/log-drains endpoint using a GET, I correctly get the response like

{
       "projectIds": [
            "MY_PROJECT"
        ],
        ...
}

If I modify the permissions for the integration to only include one project, it’ll show correctly but even if I then allow the integration to access all projects, it’ll revert back to include all projects.

What am I missing here?

Thanks!

Steps to Reproduce

Requires a team with multiple projects where the integration has access to all projects.

Create an integration log drain using a POST request to https://api.vercel.com/v2/integrations/log-drains endpoint with the required body.

{
  "name": "Integration log drain",
  "url": "MY_URL",
  "projectIds": [
    "MY_PROJECT"
  ],
  "deliveryFormat": "json",
  "events": [
    "lambda",
    "build",
    "edge",
    "static",
    "external"
  ],
  "secret": "MY_SECRET"
}

The Vercel UI will show the message below in my case.
Screenshot 2024-06-02 at 19 09 58

If you do a GET request to https://api.vercel.com/v2/integrations/log-drains, it’ll show that the log drain is only associated to one project.

Thanks for reporting this, @jarleriksen! I’m not sure what’s causing this strange behavior, so I asked the Log Drains team for help investigating. We’ll keep you updated as we learn more.

1 Like

I don’t have a solution yet, but wanted to let you know we are still investigating.

The team released a fix for this. Please let me know if you continue to experience this issue :pray:

1 Like

That’s awesome to hear!

This topic was automatically closed 2 days after the last reply. New replies are no longer allowed.