Replies: 1 comment 2 replies
-
|
Hi @esp0, thanks for your message! I think the best approach to this would be to use a plug-in Seq app to replicate the events in question into a separate (classic SQL database) table for the API to consume. For example, you could use https://github.com/datalust/seq-app-httprequest to push events matching the event type/ Your query about locking API keys down to this does make sense, but a lot of scenarios in this general area are covered by pushing streams of events out from Seq, and those that aren't we're planning to cover using a slightly different "Projects" mechanism in the future, so the push approach should set you up for the best chances of long-term success. The alternative today would be to create a "service" user in Entra ID, log in interactively using that account to create a user-specific API key, and apply a "View filter" to the user in Seq's Settings > User screen. It's a bit clunky, but should achieve what you're after: API keys belonging users with view filters applied inherit the view filter. Let me know if either option will do the job. Best regards, |
Beta Was this translation helpful? Give feedback.
Uh oh!
There was an error while loading. Please reload this page.
-
Hi,
We’re using Seq extensively and are currently exploring how to expose a subset of events through an internal service using the Seq.Api NuGet package.
Our Seq server is configured with Microsoft Entra ID for authentication, which our employees use to access the Seq UI. This works well for interactive access.
Separately, we have a backend service that queries Seq using the Seq.Api package. The purpose of this service is to show partners a list of requests they have made to our public API (after they log in to our system).
What we would like to achieve is:
Create an API key used by our backend service
Restrict that key so it can only read events that match certain criteria, such as:
Application = "PartnerApi"The goal is to ensure the API key cannot read other events stored in Seq, since the instance contains many unrelated logs.
My questions:
Beta Was this translation helpful? Give feedback.
All reactions