Fork `org.springframework.vault.core.VaultTemplate` to Spring 4.2 Use custom MappingJackson2HttpMessageConverter, drop Gson Minor refactoring in VaultConnector
TW-93821: fail fast on unresolved secure values instead of locking out Vault When a connection's secure:secret-id (or LDAP password) still carries an unresolved credentialsJSON: token (e.g. the project was copied without its secure values), the AppRole login is guaranteed to fail, and since Vault 1.13 five such failures lock out the role_id alias for 15 minutes, breaking every project sharing the role - that is the cause of the sporadic mass "permission denied" outages. Now VaultConnector.performLogin refuses to log in with such a value and throws a clear actionable error instead, without calling Vault. The check covers all login flows (build wrapped tokens, test connection, revocation) and detects the token via ProjectCredentialsStorage.isSecureValueToken from the TeamCity core. Empty credentials are intentionally left intact: they are valid Vault configurations (AppRole bind_secret_id=false, LDAP deny_null_bind=false). Co-Authored-By: Claude Fable 5 <noreply@anthropic.com> Merge-request: TC-MR-22205 Merged-by: Dmitry Andreev <dmitry.andreev@jetbrains.com>
This plugin allows you to set up an integration between JetBrains TeamCity and HashiCorp Vault. With this integration in place, TeamCity builds can retrieve secrets from the remote Vault storage, which allows you to avoid storing sensitive data locally.