macroEngine 1.21.2: strict_gating permission enforcement + experimental flags - #33
Merged
Merged
Conversation
…xperimental flag system
- Add core/internal/security/check_all.mcfunction: closes long-documented
gap where admin_min_level/cmd_min_level/sandbox_cmd_min_level were
referenced in docstrings since v6.0.2 but never actually enforced
(nothing read macroengine.perm_level anywhere in the pack).
- New flags.experimental.strict_gating toggle (systems/flag/experimental),
default OFF (0b) for backward compatibility - existing servers keep
current unenforced behavior until an admin opts in via
api/toggle/experimental/{true,false}.
- Wire check_all into api/cb/*, core/internal/api/wand/call_cmd,
debug/tools/trigger/execute as a no-op-unless-enabled gate.
- No files removed; incremental change only.
NOTE: strict_gating defaults to OFF. Permission checks are inert until
explicitly enabled per-server. Flagging for visibility, not blocking.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Özet
packs/macroEngine-Datapack-1.21.2günceli, yüklenen 1.21.2 datapack sürümüyle eşitler. 13 dosya değişti, 15 yeni dosya eklendi, silinen dosya yok.Ana değişiklik: strict_gating izin uygulaması
core/internal/security/check_all.mcfunctioneklendi. Bu fonksiyon, v6.0.2den beri docstringlerdeadmin_min_level/cmd_min_level/sandbox_cmd_min_levelolarak "uygulanıyor" diye belgelenen ama pakette hiçbir yerdemacroengine.perm_levelokumadığı için fiilen hiç çalışmayan izin kontrolünü kapatıyor.Dikkat: Yeni
flags.experimental.strict_gatingbayrağı varsayılan olarak KAPALI (0b, geriye dönük uyumluluk için —config.mcfunction:50). Yani bu PR mergelendiğinde izin kontrolleri sunucularda otomatik olarak aktifleşmiyor; adminapi/toggle/experimental/{true,false}ile elle açmalı. Bu bilinçli bir kill-switch tasarımı ama merge öncesi görünür olması gerektiğini düşündüğüm bir nokta.Diğer eklemeler
systems/flag/experimental/bayrak sistemi (strict_gating, hologram, particle_trail, scoreboard_hud, waypoint, combat_tag, crafting_ui)experimental/altında yeni deneysel özellik fonksiyonları (hologram, particle_trail, waypoint, crafting_ui, scoreboard_hud, combat_tag)api/cb/*,core/internal/api/wand/call_cmd,debug/tools/trigger/executeBilinen sınırlama (yeni değil, dokümante edilmiş)
core/internal/load/gate/request.mcfunctionkendi race condition riskini belgeliyor: çağıranlar storage a yazdıktan sonrapending_gateçakışma kontrolü çalışıyor, yani eşzamanlı çağrılarda ikinci istek ilkiyle yarışabilir. Bu PR bunu düzeltmiyor, mevcut haliyle taşıyor.Kontrol edilenler
.jsondosyaları geçerlipack_format: 57— 1.21.2 datapack formatı için doğru@a[level=...]selector güvenlik açığı bu pakette yok