mirror of
https://github.com/Icinga/icinga2.git
synced 2025-09-24 10:17:59 +02:00
Remove passwords from API
IdoMysqlConnection, IdoPgsqlConnection, IcingaDB, and ElasticsearchWriter require passwords in their configuration to authenticate against external services. This commit ensures that these can no longer be accessed using the API.
This commit is contained in:
parent
289a872eaf
commit
843353ab69
@ -21,7 +21,7 @@ class IdoMysqlConnection : DbConnection
|
|||||||
[config] String user {
|
[config] String user {
|
||||||
default {{{ return "icinga"; }}}
|
default {{{ return "icinga"; }}}
|
||||||
};
|
};
|
||||||
[config] String password {
|
[config, no_user_view, no_user_modify] String password {
|
||||||
default {{{ return "icinga"; }}}
|
default {{{ return "icinga"; }}}
|
||||||
};
|
};
|
||||||
[config] String database {
|
[config] String database {
|
||||||
|
@ -20,7 +20,7 @@ class IdoPgsqlConnection : DbConnection
|
|||||||
[config] String user {
|
[config] String user {
|
||||||
default {{{ return "icinga"; }}}
|
default {{{ return "icinga"; }}}
|
||||||
};
|
};
|
||||||
[config] String password {
|
[config, no_user_view, no_user_modify] String password {
|
||||||
default {{{ return "icinga"; }}}
|
default {{{ return "icinga"; }}}
|
||||||
};
|
};
|
||||||
[config] String database {
|
[config] String database {
|
||||||
|
@ -16,7 +16,7 @@ class IcingaDB : ConfigObject
|
|||||||
default {{{ return 6380; }}}
|
default {{{ return 6380; }}}
|
||||||
};
|
};
|
||||||
[config] String path;
|
[config] String path;
|
||||||
[config] String password;
|
[config, no_user_view, no_user_modify] String password;
|
||||||
[config] int db_index;
|
[config] int db_index;
|
||||||
};
|
};
|
||||||
|
|
||||||
|
@ -24,7 +24,7 @@ class ElasticsearchWriter : ConfigObject
|
|||||||
default {{{ return false; }}}
|
default {{{ return false; }}}
|
||||||
};
|
};
|
||||||
[config] String username;
|
[config] String username;
|
||||||
[config] String password;
|
[config, no_user_view, no_user_modify] String password;
|
||||||
|
|
||||||
[config] bool enable_tls {
|
[config] bool enable_tls {
|
||||||
default {{{ return false; }}}
|
default {{{ return false; }}}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user