stable

Clone or download

Read-only

Dynamic credential can be used to login on the instance

The user created in the database at the plugin installation is kept even when the plugin is removed. This user might have done actions in Tuleap and removing the entry can breaks the instance in multiple ways. Since I'm a lazy contributor and the plugin does not yet contains usable data and is not yet released this contribution does not come with a ForgeUpgrade to handle the DB schema changes. To be able to test it you will need to uninstall/re-install the plugin. This is part of story #11239: generate dynamic credentials from HashiCorp Vault into a Tuleap instance Change-Id: I3d78afbea278d66f1d5dc42c2ca6c7841612a3d5

Modified Files

Name
M plugins/dynamic_credentials/db/install.sql +18 −0 Go to diff View file
A plugins/dynamic_credentials/include/Credential/Credential.php +53 −0 Go to diff View file
A plugins/dynamic_credentials/include/Credential/CredentialAuthenticationException.php +25 −0 Go to diff View file
M plugins/dynamic_credentials/include/Credential/CredentialDAO.php +11 −0 Go to diff View file
A plugins/dynamic_credentials/include/Credential/CredentialException.php +25 −0 Go to diff View file
A plugins/dynamic_credentials/include/Credential/CredentialExpiredException.php +25 −0 Go to diff View file
M plugins/dynamic_credentials/include/Credential/CredentialInvalidUsernameException.php +1 −1 Go to diff View file
A plugins/dynamic_credentials/include/Credential/CredentialNotFoundException.php +25 −0 Go to diff View file
A plugins/dynamic_credentials/include/Credential/CredentialRetriever.php +94 −0 Go to diff View file
A plugins/dynamic_credentials/include/Session/DynamicCredentialSession.php +78 −0 Go to diff View file
A plugins/dynamic_credentials/include/Session/DynamicCredentialSessionNotInitializedException.php +25 −0 Go to diff View file
A plugins/dynamic_credentials/include/User/DynamicUser.php +75 −0 Go to diff View file
A plugins/dynamic_credentials/include/User/DynamicUserCreator.php +74 −0 Go to diff View file
M plugins/dynamic_credentials/include/dynamic_credentialsPlugin.class.php +57 −0 Go to diff View file
A plugins/dynamic_credentials/phpunit/Credential/CredentialRetrieverTest.php +153 −0 Go to diff View file
A plugins/dynamic_credentials/phpunit/Credential/CredentialTest.php +37 −0 Go to diff View file
A plugins/dynamic_credentials/phpunit/Session/DynamicCredentialSessionTest.php +82 −0 Go to diff View file
A plugins/dynamic_credentials/phpunit/User/DynamicUserCreatorTest.php +108 −0 Go to diff View file
A plugins/dynamic_credentials/phpunit/User/DynamicUserTest.php +95 −0 Go to diff View file
M plugins/dynamic_credentials/tests/rest/DynamicCredentialsTest.php +42 −0 Go to diff View file