English
Proxy decisions and logs
Worked example and independent check
Put a local echo service behind the proxy. With weights BLUE=3 and ROUND=2 and a blocking threshold of 5, BLUE alone passes and BLUE plus ROUND is blocked. Record the matched rules, score and upstream call count for both requests.
Implementation stages
- FI6 · Implement a health endpoint for a local service. Make the readiness response independent of upstream content. Record the method, path, status and response length. Run a local test client against your healthy instance. Assert the expected status and a stable response body. Test the upstream-unavailable case separately.
- TF0 · Place a reverse proxy in front of a local echo application you control. Preserve the request method, path, query and body. Forward only end-to-end headers and return the upstream status. Send an ordinary request containing item=blue. Compare the values seen by the echo service to the input. Check a response with an empty body.
- KG7 · Implement a rule that looks for the literal teaching marker LAB-CHECK. In monitoring mode record a match and forward the original request. In blocking mode stop that request and record the rule identifier. Prepare one ordinary request and one containing LAB-CHECK. Assert the decision, log event and whether the local upstream received each request in both modes.
- WT4 · Build a separate normalized copy of declared inspection fields while preserving the original bytes for forwarding. Specify the decoding order and behavior for malformed input. Use a local fixture whose query represents the word blue and a space using ordinary URL encoding. The inspection view should contain the decoded text and the mock upstream should receive the original representation.
- RO3 · Assign weights to two harmless labels, BLUE and ROUND. Define when each rule contributes and compare the combined value to a configured threshold. Include the matching rule IDs in the decision record. Set the weights to 3 and 2 and the block threshold to 5. Test each label alone, both labels together, and repeated occurrences of one label. Document whether repeats count.
SynQ discussion
Show SynQ the input, your prediction and what actually happened. Ask which intermediate value to inspect first.
Русский
Решения прокси и журнал
Разбор примера и самостоятельная проверка
Поместите эхо-сервис за прокси. При BLUE=3, ROUND=2 и пороге 5 один BLUE проходит, сочетание блокируется. Для обоих запросов запишите правила, баллы и число обращений к эхо-сервису.
Этапы реализации
- FI6 · Сделайте локальную проверку готовности. Сравните статус и тело при доступном и остановленном эхо-сервисе.
- TF0 · Передайте item=blue локальному эхо-сервису. Сверьте метод, путь, параметры, тело и возвращённый статус.
- KG7 · На маркере LAB-CHECK запишите событие в режиме наблюдения. В режиме блокировки убедитесь, что внутренний сервис запрос не получил.
- WT4 · Декодируйте blue%20sky для проверки. Убедитесь, что эхо-сервис получил исходные байты blue%20sky.
- RO3 · Присвойте BLUE вес 3, ROUND вес 2, порог 5. Проверьте метки по отдельности, вместе и с повтором.
Вопрос для SynQ
Покажите SynQ входные данные, ваш прогноз и фактический результат. Спросите, какое промежуточное значение проверить первым.
Қазақша
Прокси шешімдері мен журналы
Мысал және өзіндік тексеру
Эхо-қызметті проксидің артына қойыңыз. BLUE=3, ROUND=2 және шек 5 болса, бір BLUE өтеді, екі белгі бірге бұғатталады. Екі сұрау үшін ереже, ұпай және ішкі қызметке жүгіну санын жазыңыз.
Іске асыру кезеңдері
- FI6 · Жергілікті дайындық тексерісін жазыңыз. Эхо-қызмет жұмыс істегенде және тоқтағанда күй мен денені салыстырыңыз.
- TF0 · item=blue мәнін жергілікті эхо-қызметке жіберіңіз. Әдіс, жол, параметрлер, дене және қайтқан күйді салыстырыңыз.
- KG7 · LAB-CHECK белгісін бақылау режимінде журналға жазыңыз. Бұғаттау режимінде ішкі қызметке сұрау жетпегенін тексеріңіз.
- WT4 · Тексеру үшін blue%20sky мәнін ашыңыз. Эхо-қызметке бастапқы blue%20sky байттары барғанын тексеріңіз.
- RO3 · BLUE белгісіне 3, ROUND белгісіне 2 салмақ, шекке 5 беріңіз. Жеке, бірге және қайталанған белгілерді тексеріңіз.
SynQ-ға сұрақ
SynQ-ға кіріс деректі, өз болжамыңызды және нақты нәтижені көрсетіңіз. Алдымен қай аралық мәнді тексеру керегін сұраңыз.