-
Notifications
You must be signed in to change notification settings - Fork 284
N°8604 N°8605 - Add authentication to combodo-db-tools binaries #817
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Merged
Molkobain
merged 5 commits into
support/3.2
from
issue/8604-8605-add-authentication-to-combodo-db-tools-binaries
Feb 26, 2026
Merged
Changes from all commits
Commits
Show all changes
5 commits
Select commit
Hold shift + click to select a range
51041e9
N°8604 N°8605 - Add autoloader and dedicated classes for binaries utils
Molkobain fa5fdc0
N°8605 - Harden security
Molkobain 330ab87
N°8604 - Harden security
Molkobain ebe667e
N°8604 N°8605 - Fixes from code review
Molkobain 27321cd
N°8604 N°8605 - Improve robustness whether module is in datamodels/2.…
Molkobain File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,9 @@ | ||
| { | ||
| "name": "combodo/combodo-db-tools", | ||
| "license": "AGPL-3.0-only", | ||
| "autoload": { | ||
| "psr-4": { | ||
| "Combodo\\iTop\\DBTools\\": "src/" | ||
| } | ||
| } | ||
| } |
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,18 @@ | ||
| <?php | ||
|
|
||
| /* | ||
| * @copyright Copyright (C) 2010-2026 Combodo SAS | ||
| * @license http://opensource.org/licenses/AGPL-3.0 | ||
| */ | ||
|
|
||
| namespace Combodo\iTop\DBTools\Enum; | ||
|
|
||
| /** | ||
| * Enum for the exit codes of the bin scripts | ||
| */ | ||
| enum BinExitCode: int | ||
| { | ||
| case SUCCESS = 0; | ||
| case ERROR = -1; | ||
| case FATAL = -2; | ||
| } |
12 changes: 12 additions & 0 deletions
12
datamodels/2.x/combodo-db-tools/src/Exception/AuthenticationException.php
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,12 @@ | ||
| <?php | ||
| /* | ||
| * @copyright Copyright (C) 2010-2026 Combodo SAS | ||
| * @license http://opensource.org/licenses/AGPL-3.0 | ||
| */ | ||
|
|
||
| namespace Combodo\iTop\DBTools\Exception; | ||
|
|
||
| class AuthenticationException extends \Exception | ||
| { | ||
|
|
||
| } |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,22 @@ | ||
| <?php | ||
|
|
||
| // autoload.php @generated by Composer | ||
|
|
||
| if (PHP_VERSION_ID < 50600) { | ||
| if (!headers_sent()) { | ||
| header('HTTP/1.1 500 Internal Server Error'); | ||
| } | ||
| $err = 'Composer 2.3.0 dropped support for autoloading on PHP <5.6 and you are running '.PHP_VERSION.', please upgrade PHP or use Composer 2.2 LTS via "composer self-update --2.2". Aborting.'.PHP_EOL; | ||
| if (!ini_get('display_errors')) { | ||
| if (PHP_SAPI === 'cli' || PHP_SAPI === 'phpdbg') { | ||
| fwrite(STDERR, $err); | ||
| } elseif (!headers_sent()) { | ||
| echo $err; | ||
| } | ||
| } | ||
| throw new RuntimeException($err); | ||
| } | ||
|
|
||
| require_once __DIR__ . '/composer/autoload_real.php'; | ||
|
|
||
| return ComposerAutoloaderInit38292b9b3a56c6c8776285a17c58034e::getLoader(); |
Oops, something went wrong.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Uh oh!
There was an error while loading. Please reload this page.