Menu

#122 [Bug]: Database settings screen does not read manifest for plugin

open
nobody
bug (38)
5 days ago
5 days ago
Anonymous
No

Originally created by: traustitj

Describe the bug

I have created a plugin here : https://github.com/traustitj/tabularis-mysql-ssl

The plugin asks for you to add certificate files to connect to MySQL/MariaDB with certificates, but they don't show up in the interface.

To Reproduce

Add plugin to tabularis
Add new database for MySQL-SSL, no settings for certificates.

OS Version

Windows 11

Tabularis Version

v0.9.13

Relevant Log Output


Discussion

  • Anonymous

    Anonymous - 5 days ago

    Originally posted by: debba

    Hi @traustitj ,
    error is related to [#123] ?

    Plugin is really interesting, if you want we can chat together in Discord.
    You can reach us following the link in the readme or website.

     

    Related

    Tickets: #123

  • Anonymous

    Anonymous - 5 days ago

    Originally posted by: traustitj

    I'll connect after work. Lets see if we can meet up.
    I don't think this is related to the wrong user path.

    If you have a look at this file

    {
    "$schema": "https://tabularis.dev/schemas/plugin-manifest.json",
    "id": "mysqlssl",
    "name": "MySQL SSL",
    "version": "0.2.0",
    "description": "MySQL and MariaDB driver with PEM TLS client certificate support.",
    "default_port": 3306,
    "default_username": "root",
    "executable": "mysqlssl-plugin",
    "capabilities": {
    "schemas": false,
    "views": true,
    "routines": true,
    "file_based": false,
    "folder_based": false,
    "connection_string": true,
    "connection_string_example": "mysql://user:pass@localhost:3306/db",
    "identifier_quote": "`",
    "alter_primary_key": true,
    "auto_increment_keyword": "AUTO_INCREMENT",
    "serial_type": "",
    "inline_pk": false,
    "alter_column": true,
    "create_foreign_keys": true,
    "no_connection_required": false,
    "manage_tables": true,
    "readonly": false
    },
    "settings": [
    {
    "key": "ssl_mode",
    "label": "SSL Mode",
    "type": "select",
    "default": "required",
    "options": ["disabled", "preferred", "required", "verify_ca", "verify_identity"],
    "description": "TLS mode used for MySQL connections. verify_ca and verify_identity require a CA certificate."
    },
    {
    "key": "ssl_ca",
    "label": "CA Certificate Path",
    "type": "string",
    "description": "Absolute path, or a path relative to the plugin directory, to the PEM CA certificate used to validate the server."
    },
    {
    "key": "ssl_cert",
    "label": "Client Certificate Path",
    "type": "string",
    "description": "Absolute path, or a path relative to the plugin directory, to the PEM client certificate."
    },
    {
    "key": "ssl_key",
    "label": "Client Key Path",
    "type": "string",
    "description": "Absolute path, or a path relative to the plugin directory, to the PEM client private key."
    },
    {
    "key": "max_connections",
    "label": "Max Connections",
    "type": "number",
    "default": 5,
    "description": "Maximum number of pooled MySQL connections kept by the plugin process."
    },
    {
    "key": "max_blob_size",
    "label": "Max Blob Size",
    "type": "number",
    "default": 104857600,
    "description": "Largest BLOB value, in bytes, that the plugin will fetch or write through the grid and blob helpers."
    }
    ],
    "data_types": [
    { "name": "TINYINT", "category": "numeric", "requires_length": false, "requires_precision": false },
    .... shortened
    ]
    }

    It seems that the settings part is not rendered.

     

Log in to post a comment.

MongoDB Logo MongoDB