Azure-Samples / ctfd-azure-paas

A scaleable and secure CTFd (Capture the Flag framework) using Azure PaaS
MIT License
14 stars 14 forks source link

App Service scaling problem #17

Open ZTsolmon opened 6 months ago

ZTsolmon commented 6 months ago

Please provide us with the following information:

This issue is for a: (mark with an x)

- [x] bug report -> please search issues before submitting
- [ ] feature request
- [ ] documentation issue or request
- [ ] regression (a behavior that used to work and stopped in a new release)

Minimal steps to reproduce

After scaling CTFd app service web app instance count to 2 or more.

Any log messages given by the failure

No implicit error log messages given

Expected/desired behavior

When scaling app service instance to more than one, session cookie keeps changed and forced to logout.

OS and Version?

Versions

Latest

Mention any other details that might be useful

Tried enabled/disabled ARR affinity, both cases had a same session problem.


Thanks! We'll be in touch soon.

balteravishay commented 6 months ago

Thank you for reporting this @ZTsolmon ! While working on reproducing your issue I notice that there is another issue with MariaDB no longer supported on Azure #18 I will work on these ASAP. Thanks for you patience!

balteravishay commented 4 months ago

@ZTsolmon could you please check this again? I've recently did some updated to the solution, part of which was updating the CTFs image to a new version. I've tried to replicate this behaviour and could not.