Hello federicoaaguirre , I've delved a bit deeper into the issue.
Essentially, with each osTicket installation, a key is generated in the ost-config file (this one: # Encrypt/Decrypt secret key - randomly generated during installation. define('SECRET_SALT','%CONFIG-SIRI')😉 dynamically.
This key is then used for encrypting and decrypting various entries, including the Secret Client for OAuth2. Essentially, when I perform a "compose down" and subsequently "compose up", it's as if osTicket undergoes a new "installation" because it generates a new secret key. Consequently, this changes the cryptographic algorithm, causing the Secret Client to not match and authentication to fail.
I've also attempted to dictate a key forcefully from the compose using a variable, but the generation system overrides it.
I believe you might be experiencing the same issue with K8s.
The only way to definitively resolve the problem is to modify part of the code. However, doing so would diminish the cryptographic system and compromise security. Therefore, I've opted to manually input the Client Secret key with each compose down and up.