strapi-plugin-magic-sessionmanager 4.16.0 → 4.16.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/CHANGELOG.md +38 -0
- package/README.md +42 -28
- package/dist/admin/{Analytics-me4qzS0I.js → Analytics-CMR62DiD.js} +1 -1
- package/dist/admin/{Analytics-D4gsVwL0.mjs → Analytics-FcRt0X62.mjs} +1 -1
- package/dist/admin/{App-BTG-2Q26.js → App-CmytGbze.js} +80 -15
- package/dist/admin/{App-BJwtFWxl.mjs → App-DBieSWB0.mjs} +80 -15
- package/dist/admin/{OnlineUsersWidget-DYS3Vy1Q.js → OnlineUsersWidget-Lzx9XB74.js} +1 -1
- package/dist/admin/{OnlineUsersWidget-Yd283YDy.mjs → OnlineUsersWidget-zP9Hl_it.mjs} +1 -1
- package/dist/admin/{Settings-TPZ9_75s.js → Settings-1v--SXC0.js} +185 -54
- package/dist/admin/{Settings-DIlvfdjZ.mjs → Settings-CZOPusQK.mjs} +185 -54
- package/dist/admin/{de-DB9ldYwN.mjs → de-D3TSA066.mjs} +17 -3
- package/dist/admin/{de-BuMw1gBJ.js → de-y_9mdVT7.js} +17 -3
- package/dist/admin/{en-BbLMPQB3.mjs → en-B60I97bK.mjs} +17 -3
- package/dist/admin/{en-BqGhOJDy.js → en-CIQB8nfI.js} +17 -3
- package/dist/admin/{es-C5iaiE9G.mjs → es-CJEL_iGC.mjs} +17 -3
- package/dist/admin/{es-BaIeckl9.js → es-DHhHzlRY.js} +17 -3
- package/dist/admin/{fr-BEvBUCwI.mjs → fr-BfBK_iuV.mjs} +17 -3
- package/dist/admin/{fr-D1YKyTex.js → fr-D86FTt1w.js} +17 -3
- package/dist/admin/{index-CgZiLcJ1.js → index-CSJJn4qy.js} +15 -10
- package/dist/admin/{index-DUESEUaO.mjs → index-tt61o2VH.mjs} +15 -10
- package/dist/admin/index.js +1 -1
- package/dist/admin/index.mjs +1 -1
- package/dist/admin/{pt-DtnW-s0V.js → pt-BE-FT-L8.js} +17 -3
- package/dist/admin/{pt-DeDih9cR.mjs → pt-C3PSvC7z.mjs} +17 -3
- package/dist/server/index.js +2643 -1800
- package/dist/server/index.mjs +2643 -1800
- package/package.json +1 -1
|
@@ -4,7 +4,7 @@ import { Field, Typography, Switch, Box, TextInput, Flex, Button, Link, SingleSe
|
|
|
4
4
|
import { ConfirmDialog, useNotification, useFetchClient, useQueryParams, useRBAC, Page, Form, Blocker, useForm } from "@strapi/strapi/admin";
|
|
5
5
|
import { EyeStriked, Eye, Key, Duplicate, Cross, Plus, Trash, Download, Check } from "@strapi/icons";
|
|
6
6
|
import styled from "styled-components";
|
|
7
|
-
import { F as ReadableParagraphs, b as getTranslation, m as logSafeAdminError, R as ReadableText, G as EqualGrid, n as PersistentAlert, P as PropertyList, H as formatSessionDate, C as ConfirmAction, I as refocusIfLost, l as pluginId, s as isCancelledRequest, J as requireSuccessfulMutation, o as pluginPermissions, w as PageShell } from "./index-
|
|
7
|
+
import { F as ReadableParagraphs, b as getTranslation, m as logSafeAdminError, R as ReadableText, G as EqualGrid, n as PersistentAlert, P as PropertyList, H as formatSessionDate, C as ConfirmAction, I as refocusIfLost, l as pluginId, s as isCancelledRequest, J as requireSuccessfulMutation, o as pluginPermissions, w as PageShell } from "./index-tt61o2VH.mjs";
|
|
8
8
|
import { useIntl } from "react-intl";
|
|
9
9
|
import { S as SectionCard } from "./SectionCard-D51bv4Hi.mjs";
|
|
10
10
|
import { g as getRiskAvailability, r as riskDependentControl } from "./riskData-CI1gm2yI.mjs";
|
|
@@ -67,6 +67,7 @@ const SETTINGS_TAB_FIELDS = Object.freeze({
|
|
|
67
67
|
"adminContentActivity",
|
|
68
68
|
"securityLogStoreIp",
|
|
69
69
|
"securityLogAnonymizeIp",
|
|
70
|
+
"securityLogGeoLookup",
|
|
70
71
|
"securityLogRetentionDays"
|
|
71
72
|
]
|
|
72
73
|
});
|
|
@@ -122,6 +123,10 @@ const SETTINGS_FIELD_LABELS = Object.freeze({
|
|
|
122
123
|
"settings.config.adminActivity.anonymize.label",
|
|
123
124
|
"Anonymise the last part of IP addresses"
|
|
124
125
|
],
|
|
126
|
+
securityLogGeoLookup: [
|
|
127
|
+
"settings.config.adminActivity.geoLookup.label",
|
|
128
|
+
"Look up the location of security events"
|
|
129
|
+
],
|
|
125
130
|
securityLogRetentionDays: [
|
|
126
131
|
"settings.config.adminActivity.retention.label",
|
|
127
132
|
"Keep security events for"
|
|
@@ -616,6 +621,13 @@ function useOptionLabels() {
|
|
|
616
621
|
}
|
|
617
622
|
const IntroText = ({ children }) => /* @__PURE__ */ jsx(ReadableText, { variant: "omega", textColor: "neutral600", tag: "p", children });
|
|
618
623
|
const RequiresNotice = ({ tab, children }) => /* @__PURE__ */ jsx(Typography, { variant: "pi", textColor: "neutral600", tag: "p", "data-requires": "", children: tab ? /* @__PURE__ */ jsx(SettingsTabLink, { tab, children }) : children });
|
|
624
|
+
const ProtectedNotice = () => {
|
|
625
|
+
const { t } = useSettingsTranslate();
|
|
626
|
+
return /* @__PURE__ */ jsx(RequiresNotice, { children: t(
|
|
627
|
+
"settings.config.protected.notice",
|
|
628
|
+
"Read-only for your role: changing this needs the “Change protected settings” permission."
|
|
629
|
+
) });
|
|
630
|
+
};
|
|
619
631
|
const RequiresGeolocation = () => {
|
|
620
632
|
const { t } = useSettingsTranslate();
|
|
621
633
|
return /* @__PURE__ */ jsx(RequiresNotice, { tab: "location-data", children: t("settings.config.requires.geolocation", "Requires IP location lookup") });
|
|
@@ -1398,8 +1410,13 @@ const SETTINGS_DEFAULTS = Object.freeze({
|
|
|
1398
1410
|
alertOnNewLocation: true,
|
|
1399
1411
|
alertOnVpnProxy: true,
|
|
1400
1412
|
enableWebhooks: false,
|
|
1401
|
-
|
|
1402
|
-
|
|
1413
|
+
// Webhook URLs are never returned (4.17): the API sends hasDiscordWebhook /
|
|
1414
|
+
// hasSlackWebhook and a hint; a URL key exists in the draft only while the
|
|
1415
|
+
// admin replaces (text) or removes ('') it.
|
|
1416
|
+
hasDiscordWebhook: false,
|
|
1417
|
+
hasSlackWebhook: false,
|
|
1418
|
+
discordWebhookHint: null,
|
|
1419
|
+
slackWebhookHint: null,
|
|
1403
1420
|
enableGeofencing: false,
|
|
1404
1421
|
allowedCountries: [],
|
|
1405
1422
|
blockedCountries: [],
|
|
@@ -1410,8 +1427,10 @@ const SETTINGS_DEFAULTS = Object.freeze({
|
|
|
1410
1427
|
adminContentActivity: false,
|
|
1411
1428
|
securityLogStoreIp: true,
|
|
1412
1429
|
securityLogAnonymizeIp: false,
|
|
1430
|
+
securityLogGeoLookup: false,
|
|
1413
1431
|
securityLogRetentionDays: 90
|
|
1414
1432
|
});
|
|
1433
|
+
const WRITE_ONLY_SETTINGS_KEYS = Object.freeze(["discordWebhookUrl", "slackWebhookUrl"]);
|
|
1415
1434
|
const MAX_FAILED_LOGINS_RANGE = Object.freeze({ min: 0, max: 100 });
|
|
1416
1435
|
const WEBHOOK_HOSTS = Object.freeze({
|
|
1417
1436
|
discordWebhookUrl: ["discord.com", "discordapp.com"],
|
|
@@ -1521,7 +1540,7 @@ function validateSettings(settings) {
|
|
|
1521
1540
|
function getAdjustedFields(submitted, stored, previous) {
|
|
1522
1541
|
const source = submitted || {};
|
|
1523
1542
|
return Object.keys(source).filter(
|
|
1524
|
-
(key) => !areSettingsEqual(source[key], stored?.[key]) && (previous === void 0 || !areSettingsEqual(source[key], previous?.[key]))
|
|
1543
|
+
(key) => !WRITE_ONLY_SETTINGS_KEYS.includes(key) && !areSettingsEqual(source[key], stored?.[key]) && (previous === void 0 || !areSettingsEqual(source[key], previous?.[key]))
|
|
1525
1544
|
);
|
|
1526
1545
|
}
|
|
1527
1546
|
const COUNTRIES = [
|
|
@@ -1925,6 +1944,7 @@ const LoginProtectionTab = ({ form }) => {
|
|
|
1925
1944
|
const maxFailedError = tError(errors.maxFailedLogins);
|
|
1926
1945
|
const maxFailedValue = Number(settings.maxFailedLogins);
|
|
1927
1946
|
const lookupOff = !settings.enableGeolocation;
|
|
1947
|
+
const locked = form.canChangeProtected === false;
|
|
1928
1948
|
const risk = getRiskAvailability(form.geoIp.status);
|
|
1929
1949
|
const reject = riskDependentControl(settings.blockSuspiciousSessions, risk.state);
|
|
1930
1950
|
const autoStillRejects = reject.savedOnButInactive && (settings.geoLookupFailureMode || "auto") === "auto";
|
|
@@ -2077,7 +2097,7 @@ const LoginProtectionTab = ({ form }) => {
|
|
|
2077
2097
|
SingleSelect,
|
|
2078
2098
|
{
|
|
2079
2099
|
value: settings.geoLookupFailureMode || "auto",
|
|
2080
|
-
disabled: lookupOff,
|
|
2100
|
+
disabled: lookupOff || locked,
|
|
2081
2101
|
onChange: (value) => handleChange("geoLookupFailureMode", value),
|
|
2082
2102
|
children: [
|
|
2083
2103
|
/* @__PURE__ */ jsx(SingleSelectOption, { value: "auto", children: t("settings.config.suspicious.failureMode.auto", "Automatic") }),
|
|
@@ -2185,6 +2205,7 @@ const GeoIpDatabaseCard = ({ form }) => {
|
|
|
2185
2205
|
);
|
|
2186
2206
|
};
|
|
2187
2207
|
const lookupOff = !settings.enableGeolocation;
|
|
2208
|
+
const locked = form.canChangeProtected === false;
|
|
2188
2209
|
const localDatabase = usesLocalDatabase(settings.geoIpProvider);
|
|
2189
2210
|
const databaseDisabled = lookupOff || !localDatabase;
|
|
2190
2211
|
const credentialSource = geoIpStatus?.credentialSource;
|
|
@@ -2222,7 +2243,7 @@ const GeoIpDatabaseCard = ({ form }) => {
|
|
|
2222
2243
|
SingleSelect,
|
|
2223
2244
|
{
|
|
2224
2245
|
value: settings.geoIpProvider || "auto",
|
|
2225
|
-
disabled: lookupOff,
|
|
2246
|
+
disabled: lookupOff || locked,
|
|
2226
2247
|
onChange: (value) => handleChange("geoIpProvider", value),
|
|
2227
2248
|
children: [
|
|
2228
2249
|
/* @__PURE__ */ jsx(SingleSelectOption, { value: "auto", children: t("settings.config.provider.auto", "Automatic") }),
|
|
@@ -2418,7 +2439,7 @@ const GeoIpDatabaseCard = ({ form }) => {
|
|
|
2418
2439
|
{
|
|
2419
2440
|
name: "geoIpDatabasePath",
|
|
2420
2441
|
value: settings.geoIpDatabasePath || "",
|
|
2421
|
-
disabled: databaseDisabled && !errors.geoIpDatabasePath,
|
|
2442
|
+
disabled: (databaseDisabled || locked) && !errors.geoIpDatabasePath,
|
|
2422
2443
|
onChange: (event) => handleChange("geoIpDatabasePath", event.target.value),
|
|
2423
2444
|
placeholder: "GeoLite2-City.mmdb",
|
|
2424
2445
|
autoComplete: "off",
|
|
@@ -2574,6 +2595,7 @@ const LocationDataTab = ({ form }) => {
|
|
|
2574
2595
|
const { settings, handleChange } = form;
|
|
2575
2596
|
const risk = getRiskAvailability(form.geoIp.status);
|
|
2576
2597
|
const scoring = riskDependentControl(settings.enableSecurityScoring, risk.state);
|
|
2598
|
+
const locked = form.canChangeProtected === false;
|
|
2577
2599
|
return /* @__PURE__ */ jsxs(Flex, { direction: "column", alignItems: "stretch", gap: 6, children: [
|
|
2578
2600
|
/* @__PURE__ */ jsxs(Flex, { direction: "column", alignItems: "stretch", gap: 2, children: [
|
|
2579
2601
|
/* @__PURE__ */ jsx(IntroText, { children: t(
|
|
@@ -2586,7 +2608,7 @@ const LocationDataTab = ({ form }) => {
|
|
|
2586
2608
|
) })
|
|
2587
2609
|
] }),
|
|
2588
2610
|
/* @__PURE__ */ jsxs(SectionCard, { title: t("settings.config.lookup.title", "IP location lookup"), children: [
|
|
2589
|
-
/* @__PURE__ */
|
|
2611
|
+
/* @__PURE__ */ jsxs(
|
|
2590
2612
|
SettingsToggleRow,
|
|
2591
2613
|
{
|
|
2592
2614
|
id: "enable-ip-geolocation",
|
|
@@ -2596,11 +2618,15 @@ const LocationDataTab = ({ form }) => {
|
|
|
2596
2618
|
"Looks up country and city at every sign-in and for listed sessions without a location."
|
|
2597
2619
|
),
|
|
2598
2620
|
checked: settings.enableGeolocation,
|
|
2621
|
+
disabled: locked,
|
|
2599
2622
|
onChange: (checked) => handleChange("enableGeolocation", checked),
|
|
2600
|
-
children:
|
|
2601
|
-
|
|
2602
|
-
|
|
2603
|
-
|
|
2623
|
+
children: [
|
|
2624
|
+
locked ? /* @__PURE__ */ jsx(ProtectedNotice, {}) : null,
|
|
2625
|
+
/* @__PURE__ */ jsx(ReadableText, { variant: "pi", textColor: "neutral700", tag: "p", "data-privacy-note": "", children: t(
|
|
2626
|
+
"settings.config.lookup.enable.privacy",
|
|
2627
|
+
"With the Automatic or ipapi.co provider, IP addresses can be sent to ipapi.co."
|
|
2628
|
+
) })
|
|
2629
|
+
]
|
|
2604
2630
|
}
|
|
2605
2631
|
),
|
|
2606
2632
|
/* @__PURE__ */ jsx(
|
|
@@ -2969,6 +2995,84 @@ const EmailTemplatesCard = ({ form }) => {
|
|
|
2969
2995
|
] })
|
|
2970
2996
|
] });
|
|
2971
2997
|
};
|
|
2998
|
+
const WebhookUrlField = ({
|
|
2999
|
+
form,
|
|
3000
|
+
id,
|
|
3001
|
+
field,
|
|
3002
|
+
hasKey,
|
|
3003
|
+
hintKey,
|
|
3004
|
+
label,
|
|
3005
|
+
description,
|
|
3006
|
+
placeholder,
|
|
3007
|
+
error,
|
|
3008
|
+
disabled = false
|
|
3009
|
+
}) => {
|
|
3010
|
+
const { t } = useSettingsTranslate();
|
|
3011
|
+
const { settings, handleChange } = form;
|
|
3012
|
+
const stored = settings[hasKey] === true;
|
|
3013
|
+
const draft = settings[field];
|
|
3014
|
+
const [replacing, setReplacing] = useState(false);
|
|
3015
|
+
const removing = stored && draft === "";
|
|
3016
|
+
const showInput = !stored || replacing || typeof draft === "string" && draft !== "";
|
|
3017
|
+
const onInput = (value) => handleChange(field, value ? value : void 0);
|
|
3018
|
+
const cancel = () => {
|
|
3019
|
+
handleChange(field, void 0);
|
|
3020
|
+
setReplacing(false);
|
|
3021
|
+
};
|
|
3022
|
+
if (!showInput) {
|
|
3023
|
+
return /* @__PURE__ */ jsx(FormField, { id, name: field, label, description, error, children: /* @__PURE__ */ jsxs(Flex, { direction: "column", alignItems: "stretch", gap: 2, "data-webhook-saved": field, children: [
|
|
3024
|
+
/* @__PURE__ */ jsxs(Flex, { gap: 2, wrap: "wrap", alignItems: "center", minWidth: 0, children: [
|
|
3025
|
+
/* @__PURE__ */ jsx(
|
|
3026
|
+
Badge,
|
|
3027
|
+
{
|
|
3028
|
+
backgroundColor: removing ? "danger100" : "success100",
|
|
3029
|
+
textColor: removing ? "danger700" : "success700",
|
|
3030
|
+
children: removing ? t("settings.webhooks.removing", "Removed on save") : t("settings.webhooks.saved", "Saved")
|
|
3031
|
+
}
|
|
3032
|
+
),
|
|
3033
|
+
settings[hintKey] ? /* @__PURE__ */ jsx(Typography, { variant: "pi", textColor: "neutral600", children: settings[hintKey] }) : null
|
|
3034
|
+
] }),
|
|
3035
|
+
/* @__PURE__ */ jsx(Flex, { gap: 2, wrap: "wrap", children: removing ? /* @__PURE__ */ jsx(Button, { variant: "tertiary", size: "S", disabled, onClick: cancel, children: t("settings.webhooks.undo", "Keep URL") }) : /* @__PURE__ */ jsxs(Fragment$1, { children: [
|
|
3036
|
+
/* @__PURE__ */ jsx(
|
|
3037
|
+
Button,
|
|
3038
|
+
{
|
|
3039
|
+
variant: "secondary",
|
|
3040
|
+
size: "S",
|
|
3041
|
+
disabled,
|
|
3042
|
+
onClick: () => setReplacing(true),
|
|
3043
|
+
children: t("settings.webhooks.replace", "Replace")
|
|
3044
|
+
}
|
|
3045
|
+
),
|
|
3046
|
+
/* @__PURE__ */ jsx(
|
|
3047
|
+
Button,
|
|
3048
|
+
{
|
|
3049
|
+
variant: "danger-light",
|
|
3050
|
+
size: "S",
|
|
3051
|
+
disabled,
|
|
3052
|
+
onClick: () => handleChange(field, ""),
|
|
3053
|
+
children: t("settings.webhooks.remove", "Remove")
|
|
3054
|
+
}
|
|
3055
|
+
)
|
|
3056
|
+
] }) })
|
|
3057
|
+
] }) });
|
|
3058
|
+
}
|
|
3059
|
+
return /* @__PURE__ */ jsx(FormField, { id, name: field, label, description, error, children: /* @__PURE__ */ jsxs(Flex, { direction: "column", alignItems: "stretch", gap: 2, children: [
|
|
3060
|
+
/* @__PURE__ */ jsx(
|
|
3061
|
+
SecretTextInput,
|
|
3062
|
+
{
|
|
3063
|
+
name: field,
|
|
3064
|
+
revealedType: "url",
|
|
3065
|
+
value: typeof draft === "string" ? draft : "",
|
|
3066
|
+
disabled: disabled && !error,
|
|
3067
|
+
onChange: onInput,
|
|
3068
|
+
placeholder,
|
|
3069
|
+
showLabel: t("settings.webhooks.show", "Show URL"),
|
|
3070
|
+
hideLabel: t("settings.webhooks.hide", "Hide URL")
|
|
3071
|
+
}
|
|
3072
|
+
),
|
|
3073
|
+
stored ? /* @__PURE__ */ jsx(Flex, { gap: 2, wrap: "wrap", children: /* @__PURE__ */ jsx(Button, { variant: "tertiary", size: "S", onClick: cancel, children: t("settings.webhooks.cancelReplace", "Keep the saved URL") }) }) : null
|
|
3074
|
+
] }) });
|
|
3075
|
+
};
|
|
2972
3076
|
const WEBHOOK_EVENTS = Object.freeze({
|
|
2973
3077
|
suspicious: "login.suspicious",
|
|
2974
3078
|
newLocation: "login.new_location",
|
|
@@ -3008,6 +3112,7 @@ const AlertsTab = ({ form }) => {
|
|
|
3008
3112
|
const lookupOff = !settings.enableGeolocation;
|
|
3009
3113
|
const emailTypesDisabled = lookupOff || !settings.enableEmailAlerts;
|
|
3010
3114
|
const webhookFieldsDisabled = lookupOff || !settings.enableWebhooks;
|
|
3115
|
+
const locked = form.canChangeProtected === false;
|
|
3011
3116
|
const templateErrors = fieldHasError(errors, "emailTemplates");
|
|
3012
3117
|
const risk = getRiskAvailability(form.geoIp.status);
|
|
3013
3118
|
const emailTypes = [
|
|
@@ -3133,7 +3238,7 @@ const AlertsTab = ({ form }) => {
|
|
|
3133
3238
|
WEBHOOK_EVENTS
|
|
3134
3239
|
),
|
|
3135
3240
|
checked: settings.enableWebhooks,
|
|
3136
|
-
disabled: lookupOff,
|
|
3241
|
+
disabled: lookupOff || locked,
|
|
3137
3242
|
onChange: (checked) => handleChange("enableWebhooks", checked)
|
|
3138
3243
|
}
|
|
3139
3244
|
),
|
|
@@ -3143,64 +3248,51 @@ const AlertsTab = ({ form }) => {
|
|
|
3143
3248
|
"Without a risk data source, {suspicious} is never sent.",
|
|
3144
3249
|
WEBHOOK_EVENTS
|
|
3145
3250
|
) }) : null,
|
|
3251
|
+
locked ? /* @__PURE__ */ jsx(ProtectedNotice, {}) : null,
|
|
3146
3252
|
/* @__PURE__ */ jsxs(EqualGrid, { columns: 2, stackBelow: "medium", gap: 6, children: [
|
|
3147
3253
|
/* @__PURE__ */ jsx(
|
|
3148
|
-
|
|
3254
|
+
WebhookUrlField,
|
|
3149
3255
|
{
|
|
3256
|
+
form,
|
|
3150
3257
|
id: "discord-webhook-url",
|
|
3151
|
-
|
|
3258
|
+
field: "discordWebhookUrl",
|
|
3259
|
+
hasKey: "hasDiscordWebhook",
|
|
3260
|
+
hintKey: "discordWebhookHint",
|
|
3152
3261
|
label: t("settings.config.webhooks.discord.label", "Discord webhook URL"),
|
|
3153
3262
|
description: t(
|
|
3154
3263
|
"settings.config.webhooks.discord.hint",
|
|
3155
3264
|
"Must start with https://discord.com or https://discordapp.com. Anyone with this URL can post to your channel."
|
|
3156
3265
|
),
|
|
3157
3266
|
error: tError(errors.discordWebhookUrl),
|
|
3158
|
-
|
|
3159
|
-
|
|
3160
|
-
|
|
3161
|
-
|
|
3162
|
-
revealedType: "url",
|
|
3163
|
-
value: settings.discordWebhookUrl || "",
|
|
3164
|
-
disabled: webhookFieldsDisabled && !errors.discordWebhookUrl,
|
|
3165
|
-
onChange: (value) => handleChange("discordWebhookUrl", value),
|
|
3166
|
-
placeholder: t(
|
|
3167
|
-
"settings.webhooks.discord.placeholder",
|
|
3168
|
-
"https://discord.com/api/webhooks/123456789/abcdefghijklmnopqrstuvwxyz..."
|
|
3169
|
-
),
|
|
3170
|
-
showLabel: t("settings.webhooks.show", "Show URL"),
|
|
3171
|
-
hideLabel: t("settings.webhooks.hide", "Hide URL")
|
|
3172
|
-
}
|
|
3267
|
+
disabled: webhookFieldsDisabled || locked,
|
|
3268
|
+
placeholder: t(
|
|
3269
|
+
"settings.webhooks.discord.placeholder",
|
|
3270
|
+
"https://discord.com/api/webhooks/123456789/abcdefghijklmnopqrstuvwxyz..."
|
|
3173
3271
|
)
|
|
3174
|
-
}
|
|
3272
|
+
},
|
|
3273
|
+
`discord-${form.draftVersion}`
|
|
3175
3274
|
),
|
|
3176
3275
|
/* @__PURE__ */ jsx(
|
|
3177
|
-
|
|
3276
|
+
WebhookUrlField,
|
|
3178
3277
|
{
|
|
3278
|
+
form,
|
|
3179
3279
|
id: "slack-webhook-url",
|
|
3180
|
-
|
|
3280
|
+
field: "slackWebhookUrl",
|
|
3281
|
+
hasKey: "hasSlackWebhook",
|
|
3282
|
+
hintKey: "slackWebhookHint",
|
|
3181
3283
|
label: t("settings.config.webhooks.slack.label", "Slack webhook URL"),
|
|
3182
3284
|
description: t(
|
|
3183
3285
|
"settings.config.webhooks.slack.hint",
|
|
3184
3286
|
"Must start with https://hooks.slack.com. Anyone with this URL can post to your channel."
|
|
3185
3287
|
),
|
|
3186
3288
|
error: tError(errors.slackWebhookUrl),
|
|
3187
|
-
|
|
3188
|
-
|
|
3189
|
-
|
|
3190
|
-
|
|
3191
|
-
revealedType: "url",
|
|
3192
|
-
value: settings.slackWebhookUrl || "",
|
|
3193
|
-
disabled: webhookFieldsDisabled && !errors.slackWebhookUrl,
|
|
3194
|
-
onChange: (value) => handleChange("slackWebhookUrl", value),
|
|
3195
|
-
placeholder: t(
|
|
3196
|
-
"settings.webhooks.slack.placeholder",
|
|
3197
|
-
"https://hooks.slack.com/services/XXXX/XXXX/XXXX"
|
|
3198
|
-
),
|
|
3199
|
-
showLabel: t("settings.webhooks.show", "Show URL"),
|
|
3200
|
-
hideLabel: t("settings.webhooks.hide", "Hide URL")
|
|
3201
|
-
}
|
|
3289
|
+
disabled: webhookFieldsDisabled || locked,
|
|
3290
|
+
placeholder: t(
|
|
3291
|
+
"settings.webhooks.slack.placeholder",
|
|
3292
|
+
"https://hooks.slack.com/services/XXXX/XXXX/XXXX"
|
|
3202
3293
|
)
|
|
3203
|
-
}
|
|
3294
|
+
},
|
|
3295
|
+
`slack-${form.draftVersion}`
|
|
3204
3296
|
)
|
|
3205
3297
|
] })
|
|
3206
3298
|
]
|
|
@@ -3286,11 +3378,13 @@ const AdminActivityTab = ({ form }) => {
|
|
|
3286
3378
|
const { t } = useSettingsTranslate();
|
|
3287
3379
|
const units = useOptionLabels();
|
|
3288
3380
|
const { settings, handleChange } = form;
|
|
3381
|
+
const locked = form.canChangeProtected === false;
|
|
3289
3382
|
return /* @__PURE__ */ jsxs(Flex, { direction: "column", alignItems: "stretch", gap: 6, children: [
|
|
3290
3383
|
/* @__PURE__ */ jsx(IntroText, { children: t(
|
|
3291
3384
|
"settings.config.adminActivity.intro",
|
|
3292
3385
|
"The security log records sign-ins and work in this admin panel. Each admin’s history is under Session Manager > Admin panel; only admins with “View admin activity” can open it."
|
|
3293
3386
|
) }),
|
|
3387
|
+
locked ? /* @__PURE__ */ jsx(ProtectedNotice, {}) : null,
|
|
3294
3388
|
/* @__PURE__ */ jsxs(SectionCard, { title: t("settings.config.adminActivity.recording.title", "What is recorded"), children: [
|
|
3295
3389
|
/* @__PURE__ */ jsx(
|
|
3296
3390
|
SettingsToggleRow,
|
|
@@ -3302,6 +3396,7 @@ const AdminActivityTab = ({ form }) => {
|
|
|
3302
3396
|
"Every sign-in, failed attempt, lockout and sign-out, and who signed out whom, with time, browser and operating system."
|
|
3303
3397
|
),
|
|
3304
3398
|
checked: settings.adminSignInHistory,
|
|
3399
|
+
disabled: locked,
|
|
3305
3400
|
onChange: (checked) => handleChange("adminSignInHistory", checked)
|
|
3306
3401
|
}
|
|
3307
3402
|
),
|
|
@@ -3315,9 +3410,10 @@ const AdminActivityTab = ({ form }) => {
|
|
|
3315
3410
|
),
|
|
3316
3411
|
description: t(
|
|
3317
3412
|
"settings.config.adminActivity.content.hint",
|
|
3318
|
-
"Which entries each admin opens, creates, edits, publishes, unpublishes or deletes, with content type,
|
|
3413
|
+
"Which entries each admin opens, creates, edits, publishes, unpublishes or deletes, with content type, locale and time. Entry titles are not stored; the list shows them only to admins who may open the entry."
|
|
3319
3414
|
),
|
|
3320
3415
|
checked: settings.adminContentActivity,
|
|
3416
|
+
disabled: locked,
|
|
3321
3417
|
onChange: (checked) => handleChange("adminContentActivity", checked),
|
|
3322
3418
|
children: /* @__PURE__ */ jsx(ReadableText, { variant: "pi", textColor: "neutral700", tag: "p", "data-privacy-note": "", children: t(
|
|
3323
3419
|
"settings.config.adminActivity.content.notice",
|
|
@@ -3345,6 +3441,7 @@ const AdminActivityTab = ({ form }) => {
|
|
|
3345
3441
|
"The address comes from Strapi’s client IP (server.proxy settings). The location uses the IP location lookup under Location data."
|
|
3346
3442
|
),
|
|
3347
3443
|
checked: settings.securityLogStoreIp,
|
|
3444
|
+
disabled: locked,
|
|
3348
3445
|
onChange: (checked) => handleChange("securityLogStoreIp", checked)
|
|
3349
3446
|
}
|
|
3350
3447
|
),
|
|
@@ -3361,11 +3458,29 @@ const AdminActivityTab = ({ form }) => {
|
|
|
3361
3458
|
"Stores 203.0.113.0 instead of 203.0.113.42 (IPv6: the first 48 bits only)."
|
|
3362
3459
|
),
|
|
3363
3460
|
checked: settings.securityLogAnonymizeIp,
|
|
3364
|
-
disabled: !settings.securityLogStoreIp,
|
|
3461
|
+
disabled: locked || !settings.securityLogStoreIp,
|
|
3365
3462
|
onChange: (checked) => handleChange("securityLogAnonymizeIp", checked),
|
|
3366
3463
|
children: !settings.securityLogStoreIp ? /* @__PURE__ */ jsx(RequiresNotice, { children: t("settings.config.adminActivity.requiresIp", "Requires Store IP addresses") }) : null
|
|
3367
3464
|
}
|
|
3368
3465
|
),
|
|
3466
|
+
/* @__PURE__ */ jsx(
|
|
3467
|
+
SettingsToggleRow,
|
|
3468
|
+
{
|
|
3469
|
+
id: "security-log-geo-lookup",
|
|
3470
|
+
title: t(
|
|
3471
|
+
"settings.config.adminActivity.geoLookup.label",
|
|
3472
|
+
"Look up the location of security events"
|
|
3473
|
+
),
|
|
3474
|
+
description: t(
|
|
3475
|
+
"settings.config.adminActivity.geoLookup.hint",
|
|
3476
|
+
"Shows country and city next to each sign-in. Only the anonymised address is looked up, in the local GeoIP database; it goes to ipapi.co only if you chose ipapi.co as provider under Location data."
|
|
3477
|
+
),
|
|
3478
|
+
checked: settings.securityLogGeoLookup,
|
|
3479
|
+
disabled: locked || !settings.securityLogStoreIp,
|
|
3480
|
+
onChange: (checked) => handleChange("securityLogGeoLookup", checked),
|
|
3481
|
+
children: !settings.securityLogStoreIp ? /* @__PURE__ */ jsx(RequiresNotice, { children: t("settings.config.adminActivity.requiresIp", "Requires Store IP addresses") }) : null
|
|
3482
|
+
}
|
|
3483
|
+
),
|
|
3369
3484
|
/* @__PURE__ */ jsx(EqualGrid, { columns: 2, stackBelow: "medium", gap: 6, children: /* @__PURE__ */ jsx(
|
|
3370
3485
|
PresetSelect,
|
|
3371
3486
|
{
|
|
@@ -3374,11 +3489,12 @@ const AdminActivityTab = ({ form }) => {
|
|
|
3374
3489
|
label: t("settings.config.adminActivity.retention.label", "Keep security events for"),
|
|
3375
3490
|
description: t(
|
|
3376
3491
|
"settings.config.adminActivity.retention.hint",
|
|
3377
|
-
"Older events are deleted once a day. Events of a deleted admin are deleted with the account."
|
|
3492
|
+
"At least 7 days. Older events are deleted once a day; each deletion is itself recorded. Events of a deleted admin are deleted with the account."
|
|
3378
3493
|
),
|
|
3379
3494
|
value: settings.securityLogRetentionDays,
|
|
3380
3495
|
presets: SELECT_PRESETS.securityLogRetentionDays,
|
|
3381
3496
|
format: units.days,
|
|
3497
|
+
disabled: locked,
|
|
3382
3498
|
onChange: (value) => handleChange("securityLogRetentionDays", value)
|
|
3383
3499
|
}
|
|
3384
3500
|
) })
|
|
@@ -3513,7 +3629,14 @@ function useSettingsForm() {
|
|
|
3513
3629
|
if (key === "strictSessionEnforcement") {
|
|
3514
3630
|
setRelaxedWarningDismissed(false);
|
|
3515
3631
|
}
|
|
3516
|
-
setSettings((previousSettings) =>
|
|
3632
|
+
setSettings((previousSettings) => {
|
|
3633
|
+
if (value === void 0) {
|
|
3634
|
+
const next = { ...previousSettings };
|
|
3635
|
+
delete next[key];
|
|
3636
|
+
return next;
|
|
3637
|
+
}
|
|
3638
|
+
return { ...previousSettings, [key]: value };
|
|
3639
|
+
});
|
|
3517
3640
|
}, []);
|
|
3518
3641
|
const handleSave = useCallback(async () => {
|
|
3519
3642
|
const submitted = buildSavePayload(settingsRef.current, savedSettingsRef.current);
|
|
@@ -3783,6 +3906,9 @@ const SettingsPage = () => {
|
|
|
3783
3906
|
const {
|
|
3784
3907
|
allowedActions: { canRead: canViewAdminActivity }
|
|
3785
3908
|
} = useRBAC(pluginPermissions.adminActivityRead);
|
|
3909
|
+
const {
|
|
3910
|
+
allowedActions: { canUpdate: canChangeProtected }
|
|
3911
|
+
} = useRBAC(pluginPermissions.settingsUpdate);
|
|
3786
3912
|
const visibleTabs = useMemo(
|
|
3787
3913
|
() => getVisibleSettingsTabs(Boolean(canViewAdminActivity)),
|
|
3788
3914
|
[canViewAdminActivity]
|
|
@@ -3911,7 +4037,12 @@ const SettingsPage = () => {
|
|
|
3911
4037
|
),
|
|
3912
4038
|
visibleTabs.map((tab) => {
|
|
3913
4039
|
const TabPanel = TAB_COMPONENTS[tab];
|
|
3914
|
-
return /* @__PURE__ */ jsx(Tabs.Content, { value: tab, forceMount: true, hidden: activeTab !== tab, children: /* @__PURE__ */ jsx(TabPanelFrame, { "data-settings-tab-panel": "", children: /* @__PURE__ */ jsx(Flex, { direction: "column", alignItems: "stretch", paddingTop: 6, children: /* @__PURE__ */ jsx(
|
|
4040
|
+
return /* @__PURE__ */ jsx(Tabs.Content, { value: tab, forceMount: true, hidden: activeTab !== tab, children: /* @__PURE__ */ jsx(TabPanelFrame, { "data-settings-tab-panel": "", children: /* @__PURE__ */ jsx(Flex, { direction: "column", alignItems: "stretch", paddingTop: 6, children: /* @__PURE__ */ jsx(
|
|
4041
|
+
TabPanel,
|
|
4042
|
+
{
|
|
4043
|
+
form: { ...form, canChangeProtected: Boolean(canChangeProtected) }
|
|
4044
|
+
}
|
|
4045
|
+
) }) }) }, tab);
|
|
3915
4046
|
}),
|
|
3916
4047
|
/* @__PURE__ */ jsxs(Form, { method: "PUT", initialValues: form.savedSettings, children: [
|
|
3917
4048
|
/* @__PURE__ */ jsx(DraftSync, { values: form.settings }),
|
|
@@ -727,7 +727,7 @@ const de = {
|
|
|
727
727
|
"adminPanel.howItWorks.recordedNoIp": "Session Manager speichert jede Anmeldung mit Zeit und Browser im Anmeldeverlauf, ohne IP-Adressen.",
|
|
728
728
|
"settings.config.adminActivity.anonymize.hint": "Speichert 203.0.113.0 statt 203.0.113.42 (IPv6: nur die ersten 48 Bit).",
|
|
729
729
|
"settings.config.adminActivity.anonymize.label": "Letzten Teil der IP-Adressen anonymisieren",
|
|
730
|
-
"settings.config.adminActivity.content.hint": "Welche Einträge jeder Admin öffnet, erstellt, bearbeitet, veröffentlicht, zurückzieht oder löscht, mit Inhaltstyp,
|
|
730
|
+
"settings.config.adminActivity.content.hint": "Welche Einträge jeder Admin öffnet, erstellt, bearbeitet, veröffentlicht, zurückzieht oder löscht, mit Inhaltstyp, Sprache und Zeit. Titel werden nicht gespeichert; die Liste zeigt sie nur Admins, die den Eintrag öffnen dürfen.",
|
|
731
731
|
"settings.config.adminActivity.content.label": "Content-Manager-Aktivität speichern",
|
|
732
732
|
"settings.config.adminActivity.content.notice": "Damit wird die Arbeitsweise von Personen erfasst. In vielen Ländern müssen Beschäftigte vorher informiert werden, und in Deutschland hat der Betriebsrat meist ein Mitbestimmungsrecht. Klären Sie das, bevor Sie es einschalten.",
|
|
733
733
|
"settings.config.adminActivity.intro": "Das Sicherheitsprotokoll speichert Anmeldungen und Arbeit in diesem Admin-Panel. Den Verlauf jedes Admins finden Sie unter Session Manager > Admin-Panel; nur Admins mit „Admin-Aktivität ansehen“ können ihn öffnen.",
|
|
@@ -735,13 +735,27 @@ const de = {
|
|
|
735
735
|
"settings.config.adminActivity.privacy.title": "IP-Adressen und Aufbewahrung",
|
|
736
736
|
"settings.config.adminActivity.recording.title": "Was gespeichert wird",
|
|
737
737
|
"settings.config.adminActivity.requiresIp": "Erfordert „IP-Adressen speichern“",
|
|
738
|
-
"settings.config.adminActivity.retention.hint": "Ältere Ereignisse werden einmal täglich gelöscht. Ereignisse eines gelöschten Admins werden mit dem Konto gelöscht.",
|
|
738
|
+
"settings.config.adminActivity.retention.hint": "Mindestens 7 Tage. Ältere Ereignisse werden einmal täglich gelöscht; jede Löschung wird selbst protokolliert. Ereignisse eines gelöschten Admins werden mit dem Konto gelöscht.",
|
|
739
739
|
"settings.config.adminActivity.retention.label": "Sicherheitsereignisse aufbewahren für",
|
|
740
740
|
"settings.config.adminActivity.signIns.hint": "Jede Anmeldung, jeder Fehlversuch, jede Sperre und Abmeldung, und wer wen abgemeldet hat, mit Zeit, Browser und Betriebssystem.",
|
|
741
741
|
"settings.config.adminActivity.signIns.label": "Admin-Anmeldungen speichern",
|
|
742
742
|
"settings.config.adminActivity.storeIp.hint": "Die Adresse ist die Client-IP von Strapi (Einstellungen server.proxy). Der Standort nutzt die IP-Standortabfrage unter Standortdaten.",
|
|
743
743
|
"settings.config.adminActivity.storeIp.label": "IP-Adressen speichern",
|
|
744
|
-
"settings.config.tab.adminActivity": "Admin-Aktivität"
|
|
744
|
+
"settings.config.tab.adminActivity": "Admin-Aktivität",
|
|
745
|
+
"settings.config.protected.notice": "Für Ihre Rolle schreibgeschützt: Zum Ändern ist die Berechtigung „Change protected settings“ (Geschützte Einstellungen ändern) nötig.",
|
|
746
|
+
"settings.config.adminActivity.geoLookup.label": "Standort von Sicherheitsereignissen ermitteln",
|
|
747
|
+
"settings.config.adminActivity.geoLookup.hint": "Zeigt Land und Stadt neben jeder Anmeldung. Nur die anonymisierte Adresse wird nachgeschlagen, in der lokalen GeoIP-Datenbank; an ipapi.co geht sie nur, wenn Sie unter Standortdaten ipapi.co als Anbieter gewählt haben.",
|
|
748
|
+
"settings.webhooks.saved": "Gespeichert",
|
|
749
|
+
"settings.webhooks.removing": "Wird beim Speichern entfernt",
|
|
750
|
+
"settings.webhooks.undo": "URL behalten",
|
|
751
|
+
"settings.webhooks.replace": "Ersetzen",
|
|
752
|
+
"settings.webhooks.remove": "Entfernen",
|
|
753
|
+
"settings.webhooks.cancelReplace": "Gespeicherte URL behalten",
|
|
754
|
+
"adminPanel.identity.placeholder": "Admin Nr. {id}",
|
|
755
|
+
"adminPanel.identity.emailHidden": "E-Mail ausgeblendet (benötigt „Lesen“ für Benutzer)",
|
|
756
|
+
"adminPanel.roles.hidden": "Ausgeblendet (benötigt „Lesen“ für Rollen)",
|
|
757
|
+
"adminPanel.search.placeholderId": "Nach Admin-ID suchen",
|
|
758
|
+
"adminPanel.activity.attempts": "{count, plural, one {# Anmeldeversuch} other {# Anmeldeversuche}} innerhalb von 5 Minuten"
|
|
745
759
|
};
|
|
746
760
|
export {
|
|
747
761
|
de as default
|
|
@@ -729,7 +729,7 @@ const de = {
|
|
|
729
729
|
"adminPanel.howItWorks.recordedNoIp": "Session Manager speichert jede Anmeldung mit Zeit und Browser im Anmeldeverlauf, ohne IP-Adressen.",
|
|
730
730
|
"settings.config.adminActivity.anonymize.hint": "Speichert 203.0.113.0 statt 203.0.113.42 (IPv6: nur die ersten 48 Bit).",
|
|
731
731
|
"settings.config.adminActivity.anonymize.label": "Letzten Teil der IP-Adressen anonymisieren",
|
|
732
|
-
"settings.config.adminActivity.content.hint": "Welche Einträge jeder Admin öffnet, erstellt, bearbeitet, veröffentlicht, zurückzieht oder löscht, mit Inhaltstyp,
|
|
732
|
+
"settings.config.adminActivity.content.hint": "Welche Einträge jeder Admin öffnet, erstellt, bearbeitet, veröffentlicht, zurückzieht oder löscht, mit Inhaltstyp, Sprache und Zeit. Titel werden nicht gespeichert; die Liste zeigt sie nur Admins, die den Eintrag öffnen dürfen.",
|
|
733
733
|
"settings.config.adminActivity.content.label": "Content-Manager-Aktivität speichern",
|
|
734
734
|
"settings.config.adminActivity.content.notice": "Damit wird die Arbeitsweise von Personen erfasst. In vielen Ländern müssen Beschäftigte vorher informiert werden, und in Deutschland hat der Betriebsrat meist ein Mitbestimmungsrecht. Klären Sie das, bevor Sie es einschalten.",
|
|
735
735
|
"settings.config.adminActivity.intro": "Das Sicherheitsprotokoll speichert Anmeldungen und Arbeit in diesem Admin-Panel. Den Verlauf jedes Admins finden Sie unter Session Manager > Admin-Panel; nur Admins mit „Admin-Aktivität ansehen“ können ihn öffnen.",
|
|
@@ -737,12 +737,26 @@ const de = {
|
|
|
737
737
|
"settings.config.adminActivity.privacy.title": "IP-Adressen und Aufbewahrung",
|
|
738
738
|
"settings.config.adminActivity.recording.title": "Was gespeichert wird",
|
|
739
739
|
"settings.config.adminActivity.requiresIp": "Erfordert „IP-Adressen speichern“",
|
|
740
|
-
"settings.config.adminActivity.retention.hint": "Ältere Ereignisse werden einmal täglich gelöscht. Ereignisse eines gelöschten Admins werden mit dem Konto gelöscht.",
|
|
740
|
+
"settings.config.adminActivity.retention.hint": "Mindestens 7 Tage. Ältere Ereignisse werden einmal täglich gelöscht; jede Löschung wird selbst protokolliert. Ereignisse eines gelöschten Admins werden mit dem Konto gelöscht.",
|
|
741
741
|
"settings.config.adminActivity.retention.label": "Sicherheitsereignisse aufbewahren für",
|
|
742
742
|
"settings.config.adminActivity.signIns.hint": "Jede Anmeldung, jeder Fehlversuch, jede Sperre und Abmeldung, und wer wen abgemeldet hat, mit Zeit, Browser und Betriebssystem.",
|
|
743
743
|
"settings.config.adminActivity.signIns.label": "Admin-Anmeldungen speichern",
|
|
744
744
|
"settings.config.adminActivity.storeIp.hint": "Die Adresse ist die Client-IP von Strapi (Einstellungen server.proxy). Der Standort nutzt die IP-Standortabfrage unter Standortdaten.",
|
|
745
745
|
"settings.config.adminActivity.storeIp.label": "IP-Adressen speichern",
|
|
746
|
-
"settings.config.tab.adminActivity": "Admin-Aktivität"
|
|
746
|
+
"settings.config.tab.adminActivity": "Admin-Aktivität",
|
|
747
|
+
"settings.config.protected.notice": "Für Ihre Rolle schreibgeschützt: Zum Ändern ist die Berechtigung „Change protected settings“ (Geschützte Einstellungen ändern) nötig.",
|
|
748
|
+
"settings.config.adminActivity.geoLookup.label": "Standort von Sicherheitsereignissen ermitteln",
|
|
749
|
+
"settings.config.adminActivity.geoLookup.hint": "Zeigt Land und Stadt neben jeder Anmeldung. Nur die anonymisierte Adresse wird nachgeschlagen, in der lokalen GeoIP-Datenbank; an ipapi.co geht sie nur, wenn Sie unter Standortdaten ipapi.co als Anbieter gewählt haben.",
|
|
750
|
+
"settings.webhooks.saved": "Gespeichert",
|
|
751
|
+
"settings.webhooks.removing": "Wird beim Speichern entfernt",
|
|
752
|
+
"settings.webhooks.undo": "URL behalten",
|
|
753
|
+
"settings.webhooks.replace": "Ersetzen",
|
|
754
|
+
"settings.webhooks.remove": "Entfernen",
|
|
755
|
+
"settings.webhooks.cancelReplace": "Gespeicherte URL behalten",
|
|
756
|
+
"adminPanel.identity.placeholder": "Admin Nr. {id}",
|
|
757
|
+
"adminPanel.identity.emailHidden": "E-Mail ausgeblendet (benötigt „Lesen“ für Benutzer)",
|
|
758
|
+
"adminPanel.roles.hidden": "Ausgeblendet (benötigt „Lesen“ für Rollen)",
|
|
759
|
+
"adminPanel.search.placeholderId": "Nach Admin-ID suchen",
|
|
760
|
+
"adminPanel.activity.attempts": "{count, plural, one {# Anmeldeversuch} other {# Anmeldeversuche}} innerhalb von 5 Minuten"
|
|
747
761
|
};
|
|
748
762
|
exports.default = de;
|
|
@@ -727,7 +727,7 @@ const en = {
|
|
|
727
727
|
"adminPanel.howItWorks.recordedNoIp": "Session Manager records every sign-in with time and browser in the sign-in history, without IP addresses.",
|
|
728
728
|
"settings.config.adminActivity.anonymize.hint": "Stores 203.0.113.0 instead of 203.0.113.42 (IPv6: the first 48 bits only).",
|
|
729
729
|
"settings.config.adminActivity.anonymize.label": "Anonymise the last part of IP addresses",
|
|
730
|
-
"settings.config.adminActivity.content.hint": "Which entries each admin opens, creates, edits, publishes, unpublishes or deletes, with content type,
|
|
730
|
+
"settings.config.adminActivity.content.hint": "Which entries each admin opens, creates, edits, publishes, unpublishes or deletes, with content type, locale and time. Entry titles are not stored; the list shows them only to admins who may open the entry.",
|
|
731
731
|
"settings.config.adminActivity.content.label": "Record Content Manager activity",
|
|
732
732
|
"settings.config.adminActivity.content.notice": "This records how people work. In many countries employees must be told first, and in Germany the works council usually has a say. Check this before you turn it on.",
|
|
733
733
|
"settings.config.adminActivity.intro": "The security log records sign-ins and work in this admin panel. Each admin’s history is under Session Manager > Admin panel; only admins with “View admin activity” can open it.",
|
|
@@ -735,13 +735,27 @@ const en = {
|
|
|
735
735
|
"settings.config.adminActivity.privacy.title": "IP addresses and retention",
|
|
736
736
|
"settings.config.adminActivity.recording.title": "What is recorded",
|
|
737
737
|
"settings.config.adminActivity.requiresIp": "Requires Store IP addresses",
|
|
738
|
-
"settings.config.adminActivity.retention.hint": "Older events are deleted once a day. Events of a deleted admin are deleted with the account.",
|
|
738
|
+
"settings.config.adminActivity.retention.hint": "At least 7 days. Older events are deleted once a day; each deletion is itself recorded. Events of a deleted admin are deleted with the account.",
|
|
739
739
|
"settings.config.adminActivity.retention.label": "Keep security events for",
|
|
740
740
|
"settings.config.adminActivity.signIns.hint": "Every sign-in, failed attempt, lockout and sign-out, and who signed out whom, with time, browser and operating system.",
|
|
741
741
|
"settings.config.adminActivity.signIns.label": "Record admin sign-ins",
|
|
742
742
|
"settings.config.adminActivity.storeIp.hint": "The address comes from Strapi’s client IP (server.proxy settings). The location uses the IP location lookup under Location data.",
|
|
743
743
|
"settings.config.adminActivity.storeIp.label": "Store IP addresses",
|
|
744
|
-
"settings.config.tab.adminActivity": "Admin activity"
|
|
744
|
+
"settings.config.tab.adminActivity": "Admin activity",
|
|
745
|
+
"settings.config.protected.notice": "Read-only for your role: changing this needs the “Change protected settings” permission.",
|
|
746
|
+
"settings.config.adminActivity.geoLookup.label": "Look up the location of security events",
|
|
747
|
+
"settings.config.adminActivity.geoLookup.hint": "Shows country and city next to each sign-in. Only the anonymised address is looked up, in the local GeoIP database; it goes to ipapi.co only if you chose ipapi.co as provider under Location data.",
|
|
748
|
+
"settings.webhooks.saved": "Saved",
|
|
749
|
+
"settings.webhooks.removing": "Removed on save",
|
|
750
|
+
"settings.webhooks.undo": "Keep URL",
|
|
751
|
+
"settings.webhooks.replace": "Replace",
|
|
752
|
+
"settings.webhooks.remove": "Remove",
|
|
753
|
+
"settings.webhooks.cancelReplace": "Keep the saved URL",
|
|
754
|
+
"adminPanel.identity.placeholder": "Admin #{id}",
|
|
755
|
+
"adminPanel.identity.emailHidden": "Email hidden (needs “Read” on Users)",
|
|
756
|
+
"adminPanel.roles.hidden": "Hidden (needs “Read” on Roles)",
|
|
757
|
+
"adminPanel.search.placeholderId": "Search by admin ID",
|
|
758
|
+
"adminPanel.activity.attempts": "{count, plural, one {# attempt} other {# attempts}} within 5 minutes"
|
|
745
759
|
};
|
|
746
760
|
export {
|
|
747
761
|
en as default
|
|
@@ -729,7 +729,7 @@ const en = {
|
|
|
729
729
|
"adminPanel.howItWorks.recordedNoIp": "Session Manager records every sign-in with time and browser in the sign-in history, without IP addresses.",
|
|
730
730
|
"settings.config.adminActivity.anonymize.hint": "Stores 203.0.113.0 instead of 203.0.113.42 (IPv6: the first 48 bits only).",
|
|
731
731
|
"settings.config.adminActivity.anonymize.label": "Anonymise the last part of IP addresses",
|
|
732
|
-
"settings.config.adminActivity.content.hint": "Which entries each admin opens, creates, edits, publishes, unpublishes or deletes, with content type,
|
|
732
|
+
"settings.config.adminActivity.content.hint": "Which entries each admin opens, creates, edits, publishes, unpublishes or deletes, with content type, locale and time. Entry titles are not stored; the list shows them only to admins who may open the entry.",
|
|
733
733
|
"settings.config.adminActivity.content.label": "Record Content Manager activity",
|
|
734
734
|
"settings.config.adminActivity.content.notice": "This records how people work. In many countries employees must be told first, and in Germany the works council usually has a say. Check this before you turn it on.",
|
|
735
735
|
"settings.config.adminActivity.intro": "The security log records sign-ins and work in this admin panel. Each admin’s history is under Session Manager > Admin panel; only admins with “View admin activity” can open it.",
|
|
@@ -737,12 +737,26 @@ const en = {
|
|
|
737
737
|
"settings.config.adminActivity.privacy.title": "IP addresses and retention",
|
|
738
738
|
"settings.config.adminActivity.recording.title": "What is recorded",
|
|
739
739
|
"settings.config.adminActivity.requiresIp": "Requires Store IP addresses",
|
|
740
|
-
"settings.config.adminActivity.retention.hint": "Older events are deleted once a day. Events of a deleted admin are deleted with the account.",
|
|
740
|
+
"settings.config.adminActivity.retention.hint": "At least 7 days. Older events are deleted once a day; each deletion is itself recorded. Events of a deleted admin are deleted with the account.",
|
|
741
741
|
"settings.config.adminActivity.retention.label": "Keep security events for",
|
|
742
742
|
"settings.config.adminActivity.signIns.hint": "Every sign-in, failed attempt, lockout and sign-out, and who signed out whom, with time, browser and operating system.",
|
|
743
743
|
"settings.config.adminActivity.signIns.label": "Record admin sign-ins",
|
|
744
744
|
"settings.config.adminActivity.storeIp.hint": "The address comes from Strapi’s client IP (server.proxy settings). The location uses the IP location lookup under Location data.",
|
|
745
745
|
"settings.config.adminActivity.storeIp.label": "Store IP addresses",
|
|
746
|
-
"settings.config.tab.adminActivity": "Admin activity"
|
|
746
|
+
"settings.config.tab.adminActivity": "Admin activity",
|
|
747
|
+
"settings.config.protected.notice": "Read-only for your role: changing this needs the “Change protected settings” permission.",
|
|
748
|
+
"settings.config.adminActivity.geoLookup.label": "Look up the location of security events",
|
|
749
|
+
"settings.config.adminActivity.geoLookup.hint": "Shows country and city next to each sign-in. Only the anonymised address is looked up, in the local GeoIP database; it goes to ipapi.co only if you chose ipapi.co as provider under Location data.",
|
|
750
|
+
"settings.webhooks.saved": "Saved",
|
|
751
|
+
"settings.webhooks.removing": "Removed on save",
|
|
752
|
+
"settings.webhooks.undo": "Keep URL",
|
|
753
|
+
"settings.webhooks.replace": "Replace",
|
|
754
|
+
"settings.webhooks.remove": "Remove",
|
|
755
|
+
"settings.webhooks.cancelReplace": "Keep the saved URL",
|
|
756
|
+
"adminPanel.identity.placeholder": "Admin #{id}",
|
|
757
|
+
"adminPanel.identity.emailHidden": "Email hidden (needs “Read” on Users)",
|
|
758
|
+
"adminPanel.roles.hidden": "Hidden (needs “Read” on Roles)",
|
|
759
|
+
"adminPanel.search.placeholderId": "Search by admin ID",
|
|
760
|
+
"adminPanel.activity.attempts": "{count, plural, one {# attempt} other {# attempts}} within 5 minutes"
|
|
747
761
|
};
|
|
748
762
|
exports.default = en;
|