mirror of
https://github.com/pgsty/minio.git
synced 2026-07-22 13:40:22 +03:00
Migrate config to KV data format (#8392)
- adding oauth support to MinIO browser (#8400) by @kanagaraj - supports multi-line get/set/del for all config fields - add support for comments, allow toggle - add extensive validation of config before saving - support MinIO browser to support proper claims, using STS tokens - env support for all config parameters, legacy envs are also supported with all documentation now pointing to latest ENVs - preserve accessKey/secretKey from FS mode setups - add history support implements three APIs - ClearHistory - RestoreHistory - ListHistory - add help command support for each config parameters - all the bug fixes after migration to KV, and other bug fixes encountered during testing.
This commit is contained in:
committed by
kannappanr
parent
8836d57e3c
commit
ee4a6a823d
+324
-203
@@ -1,219 +1,340 @@
|
||||
{
|
||||
"version": "33",
|
||||
"credential": {
|
||||
"accessKey": "36J9X8EZI4KEV1G7EHXA",
|
||||
"secretKey": "ECk2uqOoNqvtJIMQ3WYugvmNPL_-zm3WcRqP5vUM",
|
||||
"expiration": "1970-01-01T00:00:00Z",
|
||||
"status": "enabled"
|
||||
},
|
||||
"region": "",
|
||||
"worm": "off",
|
||||
"storageclass": {
|
||||
"standard": "",
|
||||
"rrs": ""
|
||||
},
|
||||
"cache": {
|
||||
"drives": [],
|
||||
"expiry": 90,
|
||||
"maxuse": 80,
|
||||
"exclude": []
|
||||
"_": {
|
||||
"drives": "",
|
||||
"exclude": "",
|
||||
"expiry": "90",
|
||||
"quota": "80",
|
||||
"state": "off"
|
||||
}
|
||||
},
|
||||
"kms": {
|
||||
"vault": {
|
||||
"compression": {
|
||||
"_": {
|
||||
"extensions": ".txt,.log,.csv,.json,.tar,.xml,.bin",
|
||||
"mime_types": "text/*,application/json,application/xml",
|
||||
"state": "off"
|
||||
}
|
||||
},
|
||||
"identity_ldap": {
|
||||
"_": {
|
||||
"group_name_attribute": "",
|
||||
"group_search_base_dn": "",
|
||||
"group_search_filter": "",
|
||||
"server_addr": "",
|
||||
"state": "off",
|
||||
"sts_expiry": "",
|
||||
"username_format": ""
|
||||
}
|
||||
},
|
||||
"identity_openid": {
|
||||
"_": {
|
||||
"config_url": "http://localhost:8080/auth/realms/demo/.well-known/openid-configuration",
|
||||
"state": "on"
|
||||
}
|
||||
},
|
||||
"kms_vault": {
|
||||
"_": {
|
||||
"auth_approle_id": "",
|
||||
"auth_approle_secret": "",
|
||||
"auth_type": "",
|
||||
"capath": "",
|
||||
"endpoint": "",
|
||||
"auth": {
|
||||
"type": "",
|
||||
"approle": {
|
||||
"id": "",
|
||||
"secret": ""
|
||||
}
|
||||
},
|
||||
"key-id": {
|
||||
"name": "",
|
||||
"version": 0
|
||||
}
|
||||
"key_name": "",
|
||||
"key_version": "0",
|
||||
"namespace": "",
|
||||
"state": "off"
|
||||
}
|
||||
},
|
||||
"notify": {
|
||||
"amqp": {
|
||||
"1": {
|
||||
"enable": false,
|
||||
"url": "",
|
||||
"exchange": "",
|
||||
"routingKey": "",
|
||||
"exchangeType": "",
|
||||
"deliveryMode": 0,
|
||||
"mandatory": false,
|
||||
"immediate": false,
|
||||
"durable": false,
|
||||
"internal": false,
|
||||
"noWait": false,
|
||||
"autoDeleted": false,
|
||||
"queueDir": "",
|
||||
"queueLimit": 0
|
||||
}
|
||||
"logger_http": {
|
||||
"1": {
|
||||
"auth_token": "",
|
||||
"endpoint": "",
|
||||
"state": "off"
|
||||
},
|
||||
"elasticsearch": {
|
||||
"1": {
|
||||
"enable": false,
|
||||
"format": "",
|
||||
"url": "",
|
||||
"index": "",
|
||||
"queueDir": "",
|
||||
"queueLimit": 0
|
||||
}
|
||||
},
|
||||
"kafka": {
|
||||
"1": {
|
||||
"enable": false,
|
||||
"brokers": null,
|
||||
"topic": "",
|
||||
"queueDir": "",
|
||||
"queueLimit": 0,
|
||||
"tls": {
|
||||
"enable": false,
|
||||
"skipVerify": false,
|
||||
"clientAuth": 0
|
||||
},
|
||||
"sasl": {
|
||||
"enable": false,
|
||||
"username": "",
|
||||
"password": ""
|
||||
}
|
||||
}
|
||||
},
|
||||
"mqtt": {
|
||||
"1": {
|
||||
"enable": false,
|
||||
"broker": "",
|
||||
"topic": "",
|
||||
"qos": 0,
|
||||
"username": "",
|
||||
"password": "",
|
||||
"reconnectInterval": 0,
|
||||
"keepAliveInterval": 0,
|
||||
"queueDir": "",
|
||||
"queueLimit": 0
|
||||
}
|
||||
},
|
||||
"mysql": {
|
||||
"1": {
|
||||
"enable": false,
|
||||
"format": "",
|
||||
"dsnString": "",
|
||||
"table": "",
|
||||
"host": "",
|
||||
"port": "",
|
||||
"user": "",
|
||||
"password": "",
|
||||
"database": "",
|
||||
"queueDir": "",
|
||||
"queueLimit": 0
|
||||
}
|
||||
},
|
||||
"nats": {
|
||||
"1": {
|
||||
"enable": false,
|
||||
"address": "",
|
||||
"subject": "",
|
||||
"username": "",
|
||||
"password": "",
|
||||
"token": "",
|
||||
"secure": false,
|
||||
"pingInterval": 0,
|
||||
"queueDir": "",
|
||||
"queueLimit": 0,
|
||||
"streaming": {
|
||||
"enable": false,
|
||||
"clusterID": "",
|
||||
"async": false,
|
||||
"maxPubAcksInflight": 0
|
||||
}
|
||||
}
|
||||
},
|
||||
"nsq": {
|
||||
"1": {
|
||||
"enable": false,
|
||||
"nsqdAddress": "",
|
||||
"topic": "",
|
||||
"tls": {
|
||||
"enable": false,
|
||||
"skipVerify": true
|
||||
},
|
||||
"queueDir": "",
|
||||
"queueLimit": 0
|
||||
}
|
||||
},
|
||||
"postgresql": {
|
||||
"1": {
|
||||
"enable": false,
|
||||
"format": "",
|
||||
"connectionString": "",
|
||||
"table": "",
|
||||
"host": "",
|
||||
"port": "",
|
||||
"user": "",
|
||||
"password": "",
|
||||
"database": "",
|
||||
"queueDir": "",
|
||||
"queueLimit": 0
|
||||
}
|
||||
},
|
||||
"redis": {
|
||||
"1": {
|
||||
"enable": false,
|
||||
"format": "",
|
||||
"address": "",
|
||||
"password": "",
|
||||
"key": "",
|
||||
"queueDir": "",
|
||||
"queueLimit": 0
|
||||
}
|
||||
},
|
||||
"webhook": {
|
||||
"1": {
|
||||
"enable": false,
|
||||
"endpoint": "",
|
||||
"queueDir": "",
|
||||
"queueLimit": 0
|
||||
}
|
||||
"_": {
|
||||
"auth_token": "",
|
||||
"endpoint": "",
|
||||
"state": "off"
|
||||
}
|
||||
},
|
||||
"logger": {
|
||||
"console": {
|
||||
"enabled": true
|
||||
"logger_http_audit": {
|
||||
"_": {
|
||||
"auth_token": "",
|
||||
"endpoint": "",
|
||||
"state": "off"
|
||||
}
|
||||
},
|
||||
"notify_amqp": {
|
||||
"1": {
|
||||
"auto_deleted": "off",
|
||||
"delivery_mode": "0",
|
||||
"durable": "off",
|
||||
"exchange": "",
|
||||
"exchange_type": "",
|
||||
"internal": "off",
|
||||
"mandatory": "off",
|
||||
"no_wait": "off",
|
||||
"queue_dir": "",
|
||||
"queue_limit": "0",
|
||||
"routing_key": "",
|
||||
"state": "off",
|
||||
"url": ""
|
||||
},
|
||||
"http": {
|
||||
"target1": {
|
||||
"enabled": false,
|
||||
"type": "minio",
|
||||
"endpoint": "https://username:password@example.com/api"
|
||||
}
|
||||
"_": {
|
||||
"auto_deleted": "off",
|
||||
"delivery_mode": "0",
|
||||
"durable": "off",
|
||||
"exchange": "",
|
||||
"exchange_type": "",
|
||||
"internal": "off",
|
||||
"mandatory": "off",
|
||||
"no_wait": "off",
|
||||
"queue_dir": "",
|
||||
"queue_limit": "0",
|
||||
"routing_key": "",
|
||||
"state": "off",
|
||||
"url": ""
|
||||
}
|
||||
},
|
||||
"compress": {
|
||||
"enabled": false,
|
||||
"extensions": [
|
||||
".txt",
|
||||
".log",
|
||||
".csv",
|
||||
".json"
|
||||
],
|
||||
"mime-types": [
|
||||
"text/csv",
|
||||
"text/plain",
|
||||
"application/json"
|
||||
]
|
||||
},
|
||||
"openid": {
|
||||
"jwks": {
|
||||
"url": null
|
||||
"notify_elasticsearch": {
|
||||
"1": {
|
||||
"format": "namespace",
|
||||
"index": "",
|
||||
"queue_dir": "",
|
||||
"queue_limit": "0",
|
||||
"state": "off",
|
||||
"url": ""
|
||||
},
|
||||
"_": {
|
||||
"format": "namespace",
|
||||
"index": "",
|
||||
"queue_dir": "",
|
||||
"queue_limit": "0",
|
||||
"state": "off",
|
||||
"url": ""
|
||||
}
|
||||
},
|
||||
"policy": {
|
||||
"opa": {
|
||||
"url": null,
|
||||
"authToken": ""
|
||||
"notify_kafka": {
|
||||
"1": {
|
||||
"brokers": "",
|
||||
"queue_dir": "",
|
||||
"queue_limit": "0",
|
||||
"sasl_enable": "off",
|
||||
"sasl_password": "",
|
||||
"sasl_username": "",
|
||||
"state": "off",
|
||||
"tls_client_auth": "0",
|
||||
"tls_enable": "off",
|
||||
"tls_skip_verify": "off",
|
||||
"topic": ""
|
||||
},
|
||||
"_": {
|
||||
"brokers": "",
|
||||
"queue_dir": "",
|
||||
"queue_limit": "0",
|
||||
"sasl_enable": "off",
|
||||
"sasl_password": "",
|
||||
"sasl_username": "",
|
||||
"state": "off",
|
||||
"tls_client_auth": "0",
|
||||
"tls_enable": "off",
|
||||
"tls_skip_verify": "off",
|
||||
"topic": ""
|
||||
}
|
||||
},
|
||||
"notify_mqtt": {
|
||||
"1": {
|
||||
"broker": "",
|
||||
"keep_alive_interval": "0s",
|
||||
"password": "",
|
||||
"qos": "0",
|
||||
"queue_dir": "",
|
||||
"queue_limit": "0",
|
||||
"reconnect_interval": "0s",
|
||||
"state": "off",
|
||||
"topic": "",
|
||||
"username": ""
|
||||
},
|
||||
"_": {
|
||||
"broker": "",
|
||||
"keep_alive_interval": "0s",
|
||||
"password": "",
|
||||
"qos": "0",
|
||||
"queue_dir": "",
|
||||
"queue_limit": "0",
|
||||
"reconnect_interval": "0s",
|
||||
"state": "off",
|
||||
"topic": "",
|
||||
"username": ""
|
||||
}
|
||||
},
|
||||
"notify_mysql": {
|
||||
"1": {
|
||||
"database": "",
|
||||
"dsn_string": "",
|
||||
"format": "namespace",
|
||||
"host": "",
|
||||
"password": "",
|
||||
"port": "",
|
||||
"queue_dir": "",
|
||||
"queue_limit": "0",
|
||||
"state": "off",
|
||||
"table": "",
|
||||
"username": ""
|
||||
},
|
||||
"_": {
|
||||
"database": "",
|
||||
"dsn_string": "",
|
||||
"format": "namespace",
|
||||
"host": "",
|
||||
"password": "",
|
||||
"port": "",
|
||||
"queue_dir": "",
|
||||
"queue_limit": "0",
|
||||
"state": "off",
|
||||
"table": "",
|
||||
"username": ""
|
||||
}
|
||||
},
|
||||
"notify_nats": {
|
||||
"1": {
|
||||
"address": "",
|
||||
"password": "",
|
||||
"ping_interval": "0",
|
||||
"queue_dir": "",
|
||||
"queue_limit": "0",
|
||||
"secure": "off",
|
||||
"state": "off",
|
||||
"streaming_async": "off",
|
||||
"streaming_cluster_id": "",
|
||||
"streaming_enable": "off",
|
||||
"streaming_max_pub_acks_in_flight": "0",
|
||||
"subject": "",
|
||||
"token": "",
|
||||
"username": ""
|
||||
},
|
||||
"_": {
|
||||
"address": "",
|
||||
"password": "",
|
||||
"ping_interval": "0",
|
||||
"queue_dir": "",
|
||||
"queue_limit": "0",
|
||||
"secure": "off",
|
||||
"state": "off",
|
||||
"streaming_async": "off",
|
||||
"streaming_cluster_id": "",
|
||||
"streaming_enable": "off",
|
||||
"streaming_max_pub_acks_in_flight": "0",
|
||||
"subject": "",
|
||||
"token": "",
|
||||
"username": ""
|
||||
}
|
||||
},
|
||||
"notify_nsq": {
|
||||
"1": {
|
||||
"nsqd_address": "",
|
||||
"queue_dir": "",
|
||||
"queue_limit": "0",
|
||||
"state": "off",
|
||||
"tls_enable": "off",
|
||||
"tls_skip_verify": "off",
|
||||
"topic": ""
|
||||
},
|
||||
"_": {
|
||||
"nsqd_address": "",
|
||||
"queue_dir": "",
|
||||
"queue_limit": "0",
|
||||
"state": "off",
|
||||
"tls_enable": "off",
|
||||
"tls_skip_verify": "off",
|
||||
"topic": ""
|
||||
}
|
||||
},
|
||||
"notify_postgres": {
|
||||
"1": {
|
||||
"connection_string": "",
|
||||
"database": "",
|
||||
"format": "namespace",
|
||||
"host": "",
|
||||
"password": "",
|
||||
"port": "",
|
||||
"queue_dir": "",
|
||||
"queue_limit": "0",
|
||||
"state": "off",
|
||||
"table": "",
|
||||
"username": ""
|
||||
},
|
||||
"_": {
|
||||
"connection_string": "",
|
||||
"database": "",
|
||||
"format": "namespace",
|
||||
"host": "",
|
||||
"password": "",
|
||||
"port": "",
|
||||
"queue_dir": "",
|
||||
"queue_limit": "0",
|
||||
"state": "off",
|
||||
"table": "",
|
||||
"username": ""
|
||||
}
|
||||
},
|
||||
"notify_redis": {
|
||||
"1": {
|
||||
"address": "",
|
||||
"format": "namespace",
|
||||
"key": "",
|
||||
"password": "",
|
||||
"queue_dir": "",
|
||||
"queue_limit": "0",
|
||||
"state": "off"
|
||||
},
|
||||
"_": {
|
||||
"address": "",
|
||||
"format": "namespace",
|
||||
"key": "",
|
||||
"password": "",
|
||||
"queue_dir": "",
|
||||
"queue_limit": "0",
|
||||
"state": "off"
|
||||
}
|
||||
},
|
||||
"notify_webhook": {
|
||||
"1": {
|
||||
"endpoint": "",
|
||||
"queue_dir": "",
|
||||
"queue_limit": "0",
|
||||
"state": "off"
|
||||
},
|
||||
"_": {
|
||||
"auth_token": "",
|
||||
"endpoint": "",
|
||||
"queue_dir": "",
|
||||
"queue_limit": "0",
|
||||
"state": "off"
|
||||
}
|
||||
},
|
||||
"policy_opa": {
|
||||
"_": {
|
||||
"auth_token": "",
|
||||
"state": "off",
|
||||
"url": ""
|
||||
}
|
||||
},
|
||||
"region": {
|
||||
"_": {
|
||||
"name": "us-east-1"
|
||||
}
|
||||
},
|
||||
"storageclass": {
|
||||
"_": {
|
||||
"rrs": "",
|
||||
"standard": "",
|
||||
"state": "off"
|
||||
}
|
||||
},
|
||||
"worm": {
|
||||
"_": {
|
||||
"state": "off"
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user