mirror of
https://github.com/emqx/neuron.git
synced 2026-10-18 21:50:42 +08:00
Merge pull request #2591 from ZhouBox/main
1.update cert schema 2.add datatag when sub app frist sending
This commit is contained in:
@@ -62,7 +62,7 @@ CREATE TABLE IF NOT EXISTS client_certificates (
|
||||
valid_from DATETIME,
|
||||
valid_to DATETIME,
|
||||
serial_number TEXT,
|
||||
fingerprint TEXT UNIQUE,
|
||||
fingerprint TEXT,
|
||||
certificate_data BLOB NOT NULL,
|
||||
is_ca INTEGER DEFAULT 0,
|
||||
trust_status INTEGER DEFAULT 0,
|
||||
@@ -75,6 +75,7 @@ CREATE TABLE IF NOT EXISTS client_certificates (
|
||||
CREATE INDEX IF NOT EXISTS idx_client_certificates_app_name ON client_certificates(app_name);
|
||||
CREATE INDEX IF NOT EXISTS idx_client_certificates_common_name ON client_certificates(common_name);
|
||||
CREATE INDEX IF NOT EXISTS idx_client_certificates_fingerprint ON client_certificates(fingerprint);
|
||||
CREATE UNIQUE INDEX IF NOT EXISTS idx_client_certificates_app_name_fingerprint ON client_certificates(app_name, fingerprint);
|
||||
|
||||
-- Create security policies table for northbound app security management
|
||||
CREATE TABLE IF NOT EXISTS security_policies (
|
||||
|
||||
@@ -2690,6 +2690,7 @@ static void read_group(int64_t timestamp, int64_t timeout,
|
||||
neu_driver_cache_value_t value = { 0 };
|
||||
|
||||
strcpy(tag_value.tag, tag->name);
|
||||
tag_value.datatag = *tag;
|
||||
|
||||
tag_value.datatag.bias = tag->bias;
|
||||
|
||||
|
||||
Reference in New Issue
Block a user