improve dyncfg src type anon message (#19684)
Ilya Mashchenko committed
Feb 20, 2025 at 15:45 UTC
5cf6732343717eea32d941826e241e9622dd3d71
1 file changed
+2
-2
src/daemon/dyncfg/dyncfg-tree.c
+2
-2
@@ -34,7 +34,7 @@ static void dyncfg_to_json(DYNCFG *df, const char *id, BUFFER *wb, bool anonymou
34
}
35
buffer_json_object_close(wb);
36
buffer_json_member_add_string(wb, "source_type", dyncfg_id2source_type(df->current.source_type));
37
- buffer_json_member_add_string(wb, "source", df->current.source_type == DYNCFG_SOURCE_TYPE_DYNCFG && anonymous ? "anonymous access does not present sensitive user info" : string2str(df->current.source));
37
+ buffer_json_member_add_string(wb, "source", df->current.source_type == DYNCFG_SOURCE_TYPE_DYNCFG && anonymous ? "User details hidden in anonymous mode. Sign in to access configuration details." : string2str(df->current.source));
38
buffer_json_member_add_boolean(wb, "sync", df->sync);
39
buffer_json_member_add_boolean(wb, "user_disabled", df->dyncfg.user_disabled);
40
buffer_json_member_add_boolean(wb, "restart_required", df->dyncfg.restart_required);
@@ -45,7 +45,7 @@ static void dyncfg_to_json(DYNCFG *df, const char *id, BUFFER *wb, bool anonymou
45
buffer_json_member_add_boolean(wb, "available", true);
46
buffer_json_member_add_string(wb, "status", dyncfg_id2status(df->dyncfg.status));
47
buffer_json_member_add_string(wb, "source_type", dyncfg_id2source_type(df->dyncfg.source_type));
48
- buffer_json_member_add_string(wb, "source", df->dyncfg.source_type == DYNCFG_SOURCE_TYPE_DYNCFG && anonymous ? "anonymous access does not present sensitive user info" :string2str(df->dyncfg.source));
48
+ buffer_json_member_add_string(wb, "source", df->dyncfg.source_type == DYNCFG_SOURCE_TYPE_DYNCFG && anonymous ? "User details hidden in anonymous mode. Sign in to access configuration details." :string2str(df->dyncfg.source));
49
buffer_json_member_add_uint64(wb, "created_ut", df->dyncfg.created_ut);
50
buffer_json_member_add_uint64(wb, "modified_ut", df->dyncfg.modified_ut);
51
buffer_json_member_add_string(wb, "content_type", content_type_id2string(df->dyncfg.payload->content_type));