Restricted domains per API keys #699

Closed
opened 2025-11-09 09:56:15 -06:00 by GiteaMirror · 1 comment
Owner

Originally created by @benbaja on GitHub (Jan 28, 2025).

describe the feature you'd like to see

Hey there,
I would love to have the possibility to restrict certain API keys to a domain or a list of domains, as it is possible with ip adresses at the moment, for example to manage different webapps using the same cobalt instance as the backend and avoid having the API key intercepted and used by other parties.
I'm not extremely familiar with CORS but I would be down to give it a shot and open a merge request if this feature is possible and/or interesting to other people.
Kudos for the hard work! 🥇

additional context

No response

Originally created by @benbaja on GitHub (Jan 28, 2025). ### describe the feature you'd like to see Hey there, I would love to have the possibility to restrict certain API keys to a domain or a list of domains, as it is possible with ip adresses at the moment, for example to manage different webapps using the same cobalt instance as the backend and avoid having the API key intercepted and used by other parties. I'm not extremely familiar with CORS but I would be down to give it a shot and open a merge request if this feature is possible and/or interesting to other people. Kudos for the hard work! 🥇 ### additional context _No response_
GiteaMirror added the feature request label 2025-11-09 09:56:15 -06:00
Author
Owner

@dumbmoron commented on GitHub (Jan 29, 2025):

this is not possible because someone can just impersonate any headers that would imply it's coming from a particular domain

@dumbmoron commented on GitHub (Jan 29, 2025): this is not possible because someone can just impersonate any headers that would imply it's coming from a particular domain
Sign in to join this conversation.