Skip to main content
Solved

Licence validity insane checking


Hi,

As you can see in the log below the validity of the licence is checked (twice ?) every twenty second or so, the token is refreshed.

It spams the debug logs (and that’s a problem). What the point to do this check so often? This is crazy.

[2024-03-20T14:01:20+0100] [DEBUG] [EventSubscriber\UpdateEventSubscriber:69]: Checking if route matches updates endpoint

[2024-03-20T14:01:20+0100] [DEBUG] [Core\Security\Authentication\Infrastructure\Repository\DbWriteTokenRepository:61]: Deleting expired refresh tokens

[2024-03-20T14:01:20+0100] [DEBUG] [Core\Security\Authentication\Infrastructure\Repository\DbWriteTokenRepository:82]: Deleting expired tokens which are not linked to a refresh token

[2024-03-20T14:01:50+0100] [DEBUG] [EventSubscriber\UpdateEventSubscriber:69]: Checking if route matches updates endpoint

[2024-03-20T14:01:50+0100] [DEBUG] [Core\Security\Authentication\Infrastructure\Repository\DbWriteTokenRepository:61]: Deleting expired refresh tokens

[2024-03-20T14:01:50+0100] [DEBUG] [Core\Security\Authentication\Infrastructure\Repository\DbWriteTokenRepository:82]: Deleting expired tokens which are not linked to a refresh token

[2024-03-20T14:02:03+0100] [DEBUG] [EventSubscriber\UpdateEventSubscriber:69]: Checking if route matches updates endpoint

[2024-03-20T14:02:03+0100] [DEBUG] [Core\Security\Authentication\Infrastructure\Repository\DbWriteTokenRepository:61]: Deleting expired refresh tokens

[2024-03-20T14:02:03+0100] [DEBUG] [Core\Security\Authentication\Infrastructure\Repository\DbWriteTokenRepository:82]: Deleting expired tokens which are not linked to a refresh token

[2024-03-20T14:02:20+0100] [DEBUG] [EventSubscriber\UpdateEventSubscriber:69]: Checking if route matches updates endpoint

[2024-03-20T14:02:20+0100] [DEBUG] [Core\Security\Authentication\Infrastructure\Repository\DbWriteTokenRepository:61]: Deleting expired refresh tokens

[2024-03-20T14:02:20+0100] [DEBUG] [Core\Security\Authentication\Infrastructure\Repository\DbWriteTokenRepository:82]: Deleting expired tokens which are not linked to a refresh token

[2024-03-20T14:02:50+0100] [DEBUG] [EventSubscriber\UpdateEventSubscriber:69]: Checking if route matches updates endpoint

[2024-03-20T14:02:50+0100] [DEBUG] [Core\Security\Authentication\Infrastructure\Repository\DbWriteTokenRepository:61]: Deleting expired refresh tokens

[2024-03-20T14:02:50+0100] [DEBUG] [Core\Security\Authentication\Infrastructure\Repository\DbWriteTokenRepository:82]: Deleting expired tokens which are not linked to a refresh token

[2024-03-20T14:03:03+0100] [DEBUG] [EventSubscriber\UpdateEventSubscriber:69]: Checking if route matches updates endpoint

[2024-03-20T14:03:03+0100] [DEBUG] [Core\Security\Authentication\Infrastructure\Repository\DbWriteTokenRepository:61]: Deleting expired refresh tokens

[2024-03-20T14:03:03+0100] [DEBUG] [Core\Security\Authentication\Infrastructure\Repository\DbWriteTokenRepository:82]: Deleting expired tokens which are not linked to a refresh token

[2024-03-20T14:03:20+0100] [DEBUG] [EventSubscriber\UpdateEventSubscriber:69]: Checking if route matches updates endpoint

[2024-03-20T14:03:20+0100] [DEBUG] [Core\Security\Authentication\Infrastructure\Repository\DbWriteTokenRepository:61]: Deleting expired refresh tokens

[2024-03-20T14:03:20+0100] [DEBUG] [Core\Security\Authentication\Infrastructure\Repository\DbWriteTokenRepository:82]: Deleting expired tokens which are not linked to a refresh token

[2024-03-20T14:04:01+0100] [DEBUG] [EventSubscriber\UpdateEventSubscriber:69]: Checking if route matches updates endpoint

[2024-03-20T14:04:01+0100] [DEBUG] [Core\Security\Authentication\Infrastructure\Repository\DbWriteTokenRepository:61]: Deleting expired refresh tokens

[2024-03-20T14:04:01+0100] [DEBUG] [Core\Security\Authentication\Infrastructure\Repository\DbWriteTokenRepository:82]: Deleting expired tokens which are not linked to a refresh token

[2024-03-20T14:04:03+0100] [DEBUG] [EventSubscriber\UpdateEventSubscriber:69]: Checking if route matches updates endpoint

[2024-03-20T14:04:03+0100] [DEBUG] [Core\Security\Authentication\Infrastructure\Repository\DbWriteTokenRepository:61]: Deleting expired refresh tokens

[2024-03-20T14:04:03+0100] [DEBUG] [Core\Security\Authentication\Infrastructure\Repository\DbWriteTokenRepository:82]: Deleting expired tokens which are not linked to a refresh token

[2024-03-20T14:04:20+0100] [DEBUG] [EventSubscriber\UpdateEventSubscriber:69]: Checking if route matches updates endpoint

[2024-03-20T14:04:20+0100] [DEBUG] [Core\Security\Authentication\Infrastructure\Repository\DbWriteTokenRepository:61]: Deleting expired refresh tokens

[2024-03-20T14:04:20+0100] [DEBUG] [Core\Security\Authentication\Infrastructure\Repository\DbWriteTokenRepository:82]: Deleting expired tokens which are not linked to a refresh token

[2024-03-20T14:04:50+0100] [DEBUG] [EventSubscriber\UpdateEventSubscriber:69]: Checking if route matches updates endpoint

[2024-03-20T14:04:50+0100] [DEBUG] [Core\Security\Authentication\Infrastructure\Repository\DbWriteTokenRepository:61]: Deleting expired refresh tokens

[2024-03-20T14:04:50+0100] [DEBUG] [Core\Security\Authentication\Infrastructure\Repository\DbWriteTokenRepository:82]: Deleting expired tokens which are not linked to a refresh token

[2024-03-20T14:05:03+0100] [DEBUG] [EventSubscriber\UpdateEventSubscriber:69]: Checking if route matches updates endpoint

[2024-03-20T14:05:03+0100] [DEBUG] [Core\Security\Authentication\Infrastructure\Repository\DbWriteTokenRepository:61]: Deleting expired refresh tokens

[2024-03-20T14:05:03+0100] [DEBUG] [Core\Security\Authentication\Infrastructure\Repository\DbWriteTokenRepository:82]: Deleting expired tokens which are not linked to a refresh token

 

Best answer by Laurent

Hi @Stéphane no, “tokens” do not mean license.

We have changed the purging of obsolete API tokens which were controlled at each access to the APIs by a parallel system which is responsible for doing this work less often in order to optimize performance.

 

View original
Did this topic help you find an answer to your question?

Laurent
Centreonian
Forum|alt.badge.img+20
  • Centreonian
  • March 22, 2024

Hi @Stéphane this is not about licenses but tokens to access to API.

We changed this for 24.04. Currently each time a call is performed to APIs, there is a check to delete obsolete tokens.


Hi,

Sadly we going to upgrade to 23.10.

24.04 won’t have enough recoil to be an option, plus users still aren’t ready to not use the old pages as the new Resource Status page is too much  buggy in 22.10 so it may have been widely adopted.

And what did you change exactly?

Last time we have a talk, you, Mathieu and me, you’ve talked of this 20s period about the licence check, so I really don’t understand. Is access to the APIs subject to the possession of a commercial licence?

And, if it has absolutely no connection with the licensing (?),  I still don’t understand why it has to be checked so often. Tokens to access the API aren’t expiring on a 20 seconds basis. Do they ?!

>Currently each time a call is performed to APIs, there is a check to delete obsolete tokens.

Sounds absolutely crazy…


Laurent
Centreonian
Forum|alt.badge.img+20
  • Centreonian
  • March 25, 2024

Hi @Stéphane no, “tokens” do not mean license.

We have changed the purging of obsolete API tokens which were controlled at each access to the APIs by a parallel system which is responsible for doing this work less often in order to optimize performance.

 


Reply


Cookie policy

We use cookies to enhance and personalize your experience. If you accept you agree to our full cookie policy. Learn more about our cookies.

 
Cookie settings