-
Notifications
You must be signed in to change notification settings - Fork 0
Blockstate safety, bundled remaps, PE bridge and mixins for 26.1 clients #6
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Merged
Merged
Changes from all commits
Commits
Show all changes
9 commits
Select commit
Hold shift + click to select a range
256985a
fix: harden legacy metadata and PacketEvents bridge
ohnodev cc20d6f
Stop blanket high-id blockstate fallback in legacy remapper.
ohnodev 816a137
Build full legacy blockstate wire-id table for chunk remap safety.
ohnodev a0129af
Switch LegacyLink to dump-driven legacy remaps and harden rewrite paths.
ohnodev 42ec174
Bundle LegacyLink remap tables inside the mod.
ohnodev 731a433
26.1 protocol rewrites, PE bridge updates, refresh prebuilt jar
ohnodev f9fa5d3
Harden legacy metadata rewrites and privacy safety gates.
ohnodev 60e4e25
Merge main into fix/recipe-book-add-legacy-rewrite (preserve branch a…
ohnodev fb62b57
Harden privacy scan output and redact legacy translator address logging.
ohnodev File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
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
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,20 @@ | ||
| name: Privacy Scan | ||
|
|
||
| permissions: | ||
| contents: read | ||
|
|
||
| on: | ||
| pull_request: | ||
| push: | ||
| branches: | ||
| - main | ||
|
|
||
| jobs: | ||
| scan: | ||
| runs-on: ubuntu-latest | ||
| steps: | ||
| - name: Checkout | ||
| uses: actions/checkout@v4 | ||
|
|
||
| - name: Scan for sensitive usernames and local paths | ||
| run: bash scripts/check-sensitive-paths.sh |
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
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
Empty file.
Binary file not shown.
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
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,42 @@ | ||
| #!/usr/bin/env bash | ||
| set -euo pipefail | ||
|
|
||
| REPO_ROOT="$(cd "$(dirname "${BASH_SOURCE[0]}")/.." && pwd)" | ||
| cd "${REPO_ROOT}" | ||
|
|
||
| echo "Scanning for sensitive usernames/absolute local paths..." | ||
|
|
||
| python3 - <<'PY' | ||
| import pathlib | ||
| import re | ||
| import sys | ||
|
|
||
| root = pathlib.Path(".") | ||
| pattern = re.compile(r"/Users/[^/]+/|/home/[^/]+/|[A-Za-z]:\\+Users\\+[^\\]+\\+", re.IGNORECASE) | ||
| skip_suffixes = {".jar", ".png", ".jpg", ".jpeg", ".gif", ".webp"} | ||
| skip_files = {"scripts/check-sensitive-paths.sh"} | ||
| skip_prefixes = ("build/", ".gradle/") | ||
|
|
||
| hits = [] | ||
| for path in root.rglob("*"): | ||
| if not path.is_file(): | ||
| continue | ||
| rel = path.as_posix() | ||
| if rel.startswith(".git/") or rel.startswith(skip_prefixes) or rel in skip_files or path.suffix.lower() in skip_suffixes: | ||
| continue | ||
| try: | ||
| text = path.read_text(encoding="utf-8") | ||
| except Exception: | ||
| continue | ||
| for line_no, line in enumerate(text.splitlines(), start=1): | ||
| if pattern.search(line): | ||
| hits.append((rel, line_no, line.strip())) | ||
|
|
||
| if hits: | ||
| for rel, line_no, line in hits: | ||
| print(f"{rel}:{line_no}:<REDACTED_LINE>") | ||
| print("\nERROR: Sensitive identifier/path found. Sanitize before commit/PR.") | ||
|
coderabbitai[bot] marked this conversation as resolved.
|
||
| sys.exit(1) | ||
|
|
||
| print("No sensitive identifiers/paths detected.") | ||
| PY | ||
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
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
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
Oops, something went wrong.
Oops, something went wrong.
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.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Align snapshot version wording across README sections.
Line 78 says mappings are based on
26.2-snapshot-3, but Line 38 still says the repo is built against26.2-snapshot-2. Please make these consistent to avoid operator confusion.🤖 Prompt for AI Agents