Open onixred opened 2 years ago
the role created for the database will be deleted if the token time is expired
I see my user for DB was deleted after dropping token.
2022-01-14 19:53:01 | 2022-01-14 12:53:01,826 ERROR [core-project-manager,d91d3f7a4e91685d,0111c8a2532ea50e] 7 --- [http-nio-8080-exec-2] org.hibernate.engine.jdbc.spi.SqlExceptionHelper : ERROR: permission denied for schema project
-- | --
| | 2022-01-14 19:53:01 | 2022-01-14 12:53:01,826 WARN [core-project-manager,d91d3f7a4e91685d,0111c8a2532ea50e] 7 --- [http-nio-8080-exec-2] org.hibernate.engine.jdbc.spi.SqlExceptionHelper : SQL Error: 0, SQLState: 42501
https://keycloack.dev.emma.ms/auth/realms/emma/.well-known/openid-configuration
| | 2022-01-14 19:23:29 | 2022-01-14 12:23:29,159 INFO [core-project-manager,,] 7 --- [Spring-Cloud-Vault-1] org.springframework.vault.authentication.LifecycleAwareSessionManager : Token TTL exceeded validity TTL threshold. Dropping token.
then log
| | 2022-01-14 19:53:44 | 2022-01-14 12:53:44,941 INFO [core-project-manager,,] 7 --- [Spring-Cloud-Vault-2] emma.commons.vault.databases.service.VaultDatabasesServiceImpl : Start lease change for DB: source path core_project_manager_db2/creds/core-project-manager-role and vault path core_project_manager_db2/creds/core-project-manager-role
| | 2022-01-14 19:53:44 | 2022-01-14 12:53:44,936 INFO [core-project-manager,,] 7 --- [Spring-Cloud-Vault-2] org.springframework.vault.authentication.LifecycleAwareSessionManager : Scheduling Token renewal
Describe the bug Hello. I use
And it works. But in logs I see following:
My vault configuration in bootstrap.yml:
and my role settings
token info
I use custom lease listener
why APPROLE token is not updated after the expiration?