Skip to content
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

Athena's Shield | The Extra File Verification System #364

Open
wants to merge 56 commits into
base: master
Choose a base branch
from

Commits on Oct 23, 2024

  1. Configuration menu
    Copy the full SHA
    3ee4c73 View commit details
    Browse the repository at this point in the history
  2. Add Athena's Shield configuration and CLI

    Introduce AthenaShield class to manage configuration, CLI for user setup, and update package.json with new script. This enhances the application's configurability and user interaction.
    Sandro642 committed Oct 23, 2024
    Configuration menu
    Copy the full SHA
    9813802 View commit details
    Browse the repository at this point in the history
  3. Add new dlAsync function and mod validation messages

    Implemented a new `dlAsync.js` file and updated the `en_US.toml` with new mod validation messages. This includes the logic for mod verification and error handling, ensuring the integrity of mods before launching the game.
    
    Ajout prochainement de l'utilitaire npm run athshield
    Sandro642 committed Oct 23, 2024
    Configuration menu
    Copy the full SHA
    5f3e229 View commit details
    Browse the repository at this point in the history

Commits on Oct 24, 2024

  1. Update landing.js dependencies and add new features

    Replaced 'path' with 'fs' module and removed unused 'Lang'. Added support for the new HeliosLauncher version and implemented a whitelist for mods. Fixed a typo in the logging message.
    Sandro642 committed Oct 24, 2024
    Configuration menu
    Copy the full SHA
    3790b52 View commit details
    Browse the repository at this point in the history
  2. Fix typo in game launch message

    Corrected the typo from "launchingGame" to "waintingLaunchingGame" in the en_US language file. This ensures the message displayed to users is accurate and free of errors.
    Sandro642 committed Oct 24, 2024
    Configuration menu
    Copy the full SHA
    85cb733 View commit details
    Browse the repository at this point in the history
  3. Add mod whitelist and new HeliosLauncher support

    Implemented a whitelist for mods and added support for the new version of HeliosLauncher. Also corrected a language key for launch information logging.
    Sandro642 committed Oct 24, 2024
    Configuration menu
    Copy the full SHA
    7073c27 View commit details
    Browse the repository at this point in the history
  4. Use AthShield for mod verification

    Implemented mod verification using AthShield when enabled. Added detailed mod identity extraction and validation logic for better integrity checks. Added logs for each verification step and fallback to hash-based identity if the manifest is missing.
    
    Grande ligne : quand tu actives ath shield alors il utilise le système Athena's Shield.
    Sandro642 committed Oct 24, 2024
    Configuration menu
    Copy the full SHA
    886b29e View commit details
    Browse the repository at this point in the history
  5. Configuration menu
    Copy the full SHA
    1476dbb View commit details
    Browse the repository at this point in the history
  6. Add mod verification logic using Athena's Shield

    Integrated Athena's Shield for mod verification, including mod identity extraction and validation against expected identities. Added exclusion list for mods, and implemented fallbacks for missing mod identities using MD5 hashes. Adjusted logging and error reporting to provide clearer feedback.
    Sandro642 committed Oct 24, 2024
    Configuration menu
    Copy the full SHA
    2fc9c3e View commit details
    Browse the repository at this point in the history
  7. Refactor project structure by moving athshield files

    Relocated athshield files to app/assets/athshield for better organization and maintainability. This change improves the project's folder structure and simplifies file management.
    Sandro642 committed Oct 24, 2024
    Configuration menu
    Copy the full SHA
    b435f7a View commit details
    Browse the repository at this point in the history
  8. Add Athena's Shield activation messages

    Include messages for when Athena's Shield is activated and deactivated in the English localization file. This will provide users with clear notifications on the status of Athena's Shield.
    Sandro642 committed Oct 24, 2024
    Configuration menu
    Copy the full SHA
    e3c6a18 View commit details
    Browse the repository at this point in the history
  9. Update athshield script path in package.json

    Relocated the athshield.js script from ./athshield/ to app/assets/athshield/. This change ensures better organization of script files within the project structure.
    Sandro642 committed Oct 24, 2024
    Configuration menu
    Copy the full SHA
    ae9e7b5 View commit details
    Browse the repository at this point in the history
  10. Rename view method to type and integrate athShield in settings

    Renamed the `view` method to `type` in parserAthShield.js to better reflect its purpose. Removed unused `athShield` import from landing.js and added it to settings.js. Added a manageModCategory function in settings.js to manage the display and interaction state of the Mods tab based on the type of `athShield`.
    Sandro642 committed Oct 24, 2024
    Configuration menu
    Copy the full SHA
    fc5a2d4 View commit details
    Browse the repository at this point in the history
  11. Refactor menu visibility logic in athshield.js

    Separate logic for 'cacher' and 'bloquer' options and update corresponding values to 'hidden' and 'blocked' respectively. Ensure configuration is saved after setting the menu visibility.
    Sandro642 committed Oct 24, 2024
    Configuration menu
    Copy the full SHA
    96e0ca1 View commit details
    Browse the repository at this point in the history
  12. Refactor comments and questions from French to English

    Updated all comments and user prompts in athshield.js from French to English for better code readability and broader usability. No functional changes were made.
    Sandro642 committed Oct 24, 2024
    Configuration menu
    Copy the full SHA
    297a3a0 View commit details
    Browse the repository at this point in the history
  13. Fix escape character handling in console log messages

    Updated console log messages in athshield.js to use single quotes for consistent escape character handling. This adjustment ensures better compatibility and readability of string literals in the code.
    Sandro642 committed Oct 24, 2024
    Configuration menu
    Copy the full SHA
    9d4c8cc View commit details
    Browse the repository at this point in the history
  14. Refactor dataPath assignment

    Replaced direct assignment of `dataPath` with variable `nameDataPath` for consistent naming. Introduced `getNameDataPath` function to return the launcher directory name string.
    Sandro642 committed Oct 24, 2024
    Configuration menu
    Copy the full SHA
    4835001 View commit details
    Browse the repository at this point in the history
  15. Refactor config path retrieval in landing.js

    Remove unused dataPath constant and replace its usage in mod validation error message with ConfigManager.getNameDataPath(). This ensures the config path is retrieved dynamically.
    Sandro642 committed Oct 24, 2024
    Configuration menu
    Copy the full SHA
    1f4df6b View commit details
    Browse the repository at this point in the history

Commits on Oct 25, 2024

  1. Make package public

    Changed "private" field in package.json from true to false. This will make the package accessible on npm and allow others to install it.
    Sandro642 committed Oct 25, 2024
    Configuration menu
    Copy the full SHA
    980c836 View commit details
    Browse the repository at this point in the history

Commits on Oct 26, 2024

  1. Add project configuration and settings files

    Added .gitignore to exclude IDE-specific files, set up project code style configuration, included game and launcher settings in config.json, and created minimal discord and distribution JSON files for project setup.
    Sandro642 committed Oct 26, 2024
    Configuration menu
    Copy the full SHA
    0964648 View commit details
    Browse the repository at this point in the history
  2. Add debug mode option to Athena's Shield configuration

    Introduced an option to activate debug mode in Athena's Shield. Updated relevant JavaScript files and configuration to handle the debug mode setting. Added a new method for retrieving the debug status within the parserAthShield.js class.
    Sandro642 committed Oct 26, 2024
    Configuration menu
    Copy the full SHA
    3cdad51 View commit details
    Browse the repository at this point in the history
  3. Enable debug logging conditionally for AthShield

    Wrapped several logging statements related to module identity extraction and validation with a conditional check on the athShield.debug flag. This ensures that detailed logging information is recorded only when debugging is enabled, optimizing performance and log clarity.
    Sandro642 committed Oct 26, 2024
    Configuration menu
    Copy the full SHA
    485facf View commit details
    Browse the repository at this point in the history
  4. Update REMOTE_DISTRO_URL to new API endpoint

    Switched the distribution URL to a more reliable API endpoint to improve stability and performance. The new URL is 'https://api.skym-mc.fr/api/v1/servers/distro', which replaces the old one.
    Sandro642 committed Oct 26, 2024
    Configuration menu
    Copy the full SHA
    33788d4 View commit details
    Browse the repository at this point in the history
  5. Refactor identity check error message

    Simplify the log message for identity not found in the manifest by combining it with the hash usage statement. This improves readability and reduces redundancy in the code.
    Sandro642 committed Oct 26, 2024
    Configuration menu
    Copy the full SHA
    84b4ba9 View commit details
    Browse the repository at this point in the history
  6. Update distribution URL in distromanager.js

    Revert distribution URL to 'https://helios-files.geekcorner.eu.org/distribution.json'. This change ensures compatibility with the older distribution endpoint and corrects the previous, unintended URL.
    Sandro642 committed Oct 26, 2024
    Configuration menu
    Copy the full SHA
    f366b8b View commit details
    Browse the repository at this point in the history
  7. Enable detailed debug logging for mod identity validation

    This commit refactors the mod identity extraction and validation process to include detailed debug logs, which are conditionally logged based on the `athShield.debug` flag. It also updates the import statements and correctly references the `ConfigManager.getNameDataPath` function for error messages.
    Sandro642 committed Oct 26, 2024
    Configuration menu
    Copy the full SHA
    50ad0e8 View commit details
    Browse the repository at this point in the history
  8. Fix typo in comment annotation

    Corrected the typo "discovereds" to "discovered" in the comment section of the landing.js file. This ensures accuracy and professionalism in the documentation.
    Sandro642 committed Oct 26, 2024
    Configuration menu
    Copy the full SHA
    a94aa49 View commit details
    Browse the repository at this point in the history
  9. Remove deprecated Athena Shield and HeliosLauncher code

    Deleted the dlAsync.js and landing.js files from both "ancien code" and "version code final" directories. This cleanup removes outdated functionality related to mod validation and launcher processes, streamlining the codebase.
    Sandro642 committed Oct 26, 2024
    Configuration menu
    Copy the full SHA
    1515571 View commit details
    Browse the repository at this point in the history
  10. Update documentation: Move Athena's Shield docs to /docs

    Renamed Athena's Shield documentation file and added detailed sections explaining its purpose, key features, and user benefits. Introduced a new security feature for HeliosLauncher, ensuring the integrity of installed mods.
    Sandro642 committed Oct 26, 2024
    Configuration menu
    Copy the full SHA
    db49984 View commit details
    Browse the repository at this point in the history
  11. Add crypto package to dependencies

    The crypto package is added to the dependencies in package.json to support encryption-related functionalities. This addition helps in enhancing the security features of the application.
    Sandro642 committed Oct 26, 2024
    Configuration menu
    Copy the full SHA
    1608983 View commit details
    Browse the repository at this point in the history
  12. Update review date in landing.js header comment

    Adjusted the review date to reflect the latest inspection on 10.26.2024. No other changes or bug fixes were included in this commit.
    Sandro642 committed Oct 26, 2024
    Configuration menu
    Copy the full SHA
    a9c81a1 View commit details
    Browse the repository at this point in the history
  13. Set package to private

    Change the "private" field in package.json to true. This will prevent the package from being accidentally published to public repositories.
    Sandro642 committed Oct 26, 2024
    Configuration menu
    Copy the full SHA
    d0c5bf1 View commit details
    Browse the repository at this point in the history
  14. Remove outdated .idea configuration files

    Removed various .idea project configuration files that are no longer needed. This cleanup helps avoid clutter and potential conflicts with differing local configurations.
    Sandro642 committed Oct 26, 2024
    Configuration menu
    Copy the full SHA
    5ffa732 View commit details
    Browse the repository at this point in the history
  15. Remove French configuration and distribution files

    Deleted `config.json` and `distribution.json` from the `fr` directory. These files contained localized configuration and distribution settings which are no longer needed.
    Sandro642 committed Oct 26, 2024
    Configuration menu
    Copy the full SHA
    068ca6b View commit details
    Browse the repository at this point in the history
  16. Add Athena's Shield section to README

    Introduced instructions on activating Athena's Shield in HeliosLauncher. This includes steps for running the verification system and choosing various options to ensure mod integrity and a secure gaming experience.
    Sandro642 committed Oct 26, 2024
    Configuration menu
    Copy the full SHA
    a8a00e4 View commit details
    Browse the repository at this point in the history
  17. Update launch process with Discord RPC enhancements

    Refined the logic for initializing and shutting down Discord Rich Presence (RPC). Added more detailed logging and error handling to the game launch process, enhancing the user experience and debugging capabilities.
    Sandro642 committed Oct 26, 2024
    Configuration menu
    Copy the full SHA
    aab9ff5 View commit details
    Browse the repository at this point in the history
  18. Remove unnecessary comment separators

    Deleted redundant comment separators to clean up the code and improve readability. This does not affect the functionality but ensures the codebase remains easier to maintain.
    Sandro642 committed Oct 26, 2024
    Configuration menu
    Copy the full SHA
    8744d3b View commit details
    Browse the repository at this point in the history
  19. Update landing script to improve debug capabilities

    Added comment about server regex customization and clarified the login parameter's role in the dlAsync function, simplifying testing and validation without game launch.
    Sandro642 committed Oct 26, 2024
    Configuration menu
    Copy the full SHA
    0893cf5 View commit details
    Browse the repository at this point in the history
  20. Reorder function calls in prepareModsTab.

    Moved the manageModCategory function call to the end within prepareModsTab. This ensures that category management happens after resolving the UI elements, maintaining the logical sequence of operations.
    Sandro642 committed Oct 26, 2024
    Configuration menu
    Copy the full SHA
    f0321e1 View commit details
    Browse the repository at this point in the history

Commits on Oct 27, 2024

  1. Configuration menu
    Copy the full SHA
    0348e83 View commit details
    Browse the repository at this point in the history
  2. Configuration menu
    Copy the full SHA
    f68165c View commit details
    Browse the repository at this point in the history
  3. Refactor CLI activation logic and improve debug capabilities

    This commit refactors the code in extraverif.js to improve the activation logic for the extra file verification CLI. It now handles comment lines correctly and ignores them. Additionally, the debug capabilities have been enhanced. The landing script has also been updated to improve debug capabilities. Unnecessary comment separators have been removed.
    Sandro642 committed Oct 27, 2024
    Configuration menu
    Copy the full SHA
    040ca97 View commit details
    Browse the repository at this point in the history
  4. Configuration menu
    Copy the full SHA
    aef5e02 View commit details
    Browse the repository at this point in the history
  5. Configuration menu
    Copy the full SHA
    1614b63 View commit details
    Browse the repository at this point in the history
  6. Configuration menu
    Copy the full SHA
    93bca16 View commit details
    Browse the repository at this point in the history
  7. Configuration menu
    Copy the full SHA
    bd67015 View commit details
    Browse the repository at this point in the history
  8. Configuration menu
    Copy the full SHA
    e51eefa View commit details
    Browse the repository at this point in the history
  9. Configuration menu
    Copy the full SHA
    745a11e View commit details
    Browse the repository at this point in the history
  10. Configuration menu
    Copy the full SHA
    4732ee5 View commit details
    Browse the repository at this point in the history
  11. Configuration menu
    Copy the full SHA
    d659e0f View commit details
    Browse the repository at this point in the history
  12. Configuration menu
    Copy the full SHA
    07ed316 View commit details
    Browse the repository at this point in the history
  13. Configuration menu
    Copy the full SHA
    7f33a1d View commit details
    Browse the repository at this point in the history
  14. Configuration menu
    Copy the full SHA
    2f0a054 View commit details
    Browse the repository at this point in the history

Commits on Oct 28, 2024

  1. Update variables.json

    Sandro642 authored Oct 28, 2024
    Configuration menu
    Copy the full SHA
    d4437c7 View commit details
    Browse the repository at this point in the history

Commits on Oct 29, 2024

  1. Configuration menu
    Copy the full SHA
    0770d65 View commit details
    Browse the repository at this point in the history
  2. Configuration menu
    Copy the full SHA
    092f36a View commit details
    Browse the repository at this point in the history