seqeralabs / staticreg

A tool to generate a static website from an OCI registry containing all the images and tags the provided user has access to.
Apache License 2.0
0 stars 0 forks source link

server: Log requests and user agents and return 200 to user agents that should not render the registry html #13

Closed fntlnz closed 1 month ago

fntlnz commented 1 month ago

In some cases is desirable to avoid rendering the html page or miss a cache when the request comes from a certain user agent.

We can implement this by allowing the user to pass a list of ignored user agents when starting staticreg server.

To make it easier, we can also log user agents when staticreg is started with a debug loglevel.

pditommaso commented 1 month ago

Is there an ETA for this?

fntlnz commented 1 month ago

@pditommaso we got a PR in review for this, please take a look!

pditommaso commented 1 month ago

Cool! I leave the review to somebody else in the team