160 Commits

Author SHA1 Message Date
Evan Goode
498702f049 doc: mineflayer 2024-05-05 12:25:08 -04:00
Evan Goode
55508af3a4 auth: add client version regression test 2024-04-28 22:49:50 -04:00
Evan Goode
dc79d4dafc auth: Fix client version not getting persisted
Gorm won't save changes to associated objects unless you use a
gorm.Session with FullSaveAssociations: true.
2024-04-28 22:49:50 -04:00
Evan Goode
87a0749860 Release 1.0.3 v1.0.3 2024-04-22 23:55:32 -04:00
Evan Goode
630144bd3a Bump net/http 2024-04-21 00:01:56 -04:00
Evan Goode
297422a8b6 doc: .minecraft could be missing the . in Prism 2024-04-20 15:57:11 -04:00
Evan Goode
087557b7ea Document Drasl+CSL
Resolves https://github.com/unmojang/drasl/issues/50
2024-04-20 15:57:11 -04:00
Evan Goode
1ddd8660bd Clarify when to set ListenAddress = "127.0.0.1:25585" 2024-04-20 15:47:49 -04:00
Evan Goode
478952b04b Fix docker-caddy example
The Caddy container couldn't access the Drasl container unless using
net=host. Also remove the :25585 port mapping in docker-compose.yaml,
they're no longer needed, and the "version" field, it's obsolete now.

May resolve https://github.com/unmojang/drasl/issues/60
2024-04-20 15:47:49 -04:00
catfromplan9
3fe13c52cd Correct minimum version, 1.6.x only has experimental yggdrasil support 2024-04-03 14:26:55 -04:00
catfromplan9
e92c5e48df Clarify supported versions in README.md 2024-04-03 14:26:55 -04:00
Evan Goode
72d3b1cd32 Add minecraft/profile/lookup/bulk/byname alias
As of 23w42a, the "Usernames to UUIDs" endpoint, previously at POST
https://api.mojang.com/profiles/minecraft, has been moved to POST
https://api.minecraftservices.com/minecraft/profile/lookup/bulk/byname.

This patch adds an alias for the new endpoint. The old endpoint will
still work.

Related: https://github.com/yushijinhun/authlib-injector/issues/232
2024-03-21 11:12:03 -04:00
Evan Goode
f59962fee6 systemd service should call /usr/local/bin/drasl
The average consumer of this is someone installing Drasl via `make
install`, following the instructions in installation.md. Downstream
packagers will know to change this to /usr/bin/drasl.

Resolves https://github.com/unmojang/drasl/issues/48.
2024-03-21 11:11:45 -04:00
Fridtjof_DE
db66a01169 made admins able to bypass AllowChangingPlayerName, AllowSkins and AllowCapes 2023-12-29 20:43:05 -05:00
Evan Goode
365d37d729 Update insecure dependencies, bump to 1.0.2 2023-12-21 10:45:44 -05:00
Evan Goode
68c3167af4 authlib-injector: set feature.enable_profile_key
Per the authlib-injector docs [0], authlib-injector will not fetch
player certificates unless `feature.enable_profile_key` is set.

Resolves https://github.com/unmojang/drasl/issues/40

I'm not totally sure why we need this `feature` flag when using HMCL but
not when using PollyMC.

[0] https://github-com.translate.goog/yushijinhun/authlib-injector/wiki/Yggdrasil-%E6%9C%8D%E5%8A%A1%E7%AB%AF%E6%8A%80%E6%9C%AF%E8%A7%84%E8%8C%83?_x_tr_sl=auto&_x_tr_tl=en&_x_tr_hl=en#%E5%8A%9F%E8%83%BD%E9%80%89%E9%A1%B9,
v1.0.2
2023-12-21 10:27:21 -05:00
Evan Goode
19d51767d5 Fix slim skins and bump version to 1.0.1
Resolves https://github.com/unmojang/drasl/issues/37
v1.0.1
2023-11-30 04:59:24 +00:00
Evan Goode
936b858800 Icon in README 2023-11-29 23:33:09 -05:00
Evan Goode
276f36c0e2 Default skins and capes, usage.md
Resolves https://github.com/unmojang/drasl/issues/27
v1.0.0
2023-11-22 21:30:02 -05:00
catfromplan9
3124908587 Suggest PollyMC as a authlib-injector compatible launcher 2023-11-22 18:17:46 +00:00
Evan Goode
6f8606f340 Fix Ely.by RegistrationExistingPlayer 2023-11-15 21:18:38 -05:00
Evan Goode
f00df28b1b Fix Ely.by URLs 2023-11-15 21:02:10 -05:00
Evan Goode
e8537ea54c OfflineSkins, also fix several skin issues 2023-11-10 20:19:07 -05:00
Evan Goode
46f500f153 session: fix inverted behavior of 'unsigned' query param 2023-11-10 00:32:50 -05:00
Evan Goode
240bfd353f DenyUnknownUsers 2023-11-10 00:02:51 -05:00
Evan Goode
899b3ab4b1 Document CacheTTLSeconds 2023-11-09 23:39:46 -05:00
Evan Goode
93c65ef920 Document TokenStaleSec, TokenExpireSec 2023-11-09 23:02:32 -05:00
Evan Goode
21fd78e620 fix docker container v1.0.0-beta.2 2023-10-04 11:23:15 -04:00
Evan Goode
5f19e79ffc No <p> inside fieldset 2023-09-19 23:26:16 -04:00
Evan Goode
c637ad83a6 Bump flake version to 1.0.0 2023-09-19 22:49:42 -04:00
Evan Goode
188370448f README, whitespace tweaks 2023-09-19 22:48:29 -04:00
Evan Goode
2e3d77a3af recipes.md: AccountURL in RegistrationExistingPlayer 2023-09-19 22:19:16 -04:00
Evan Goode
9ec4382b58 Fix link to recipes.md 2023-09-19 22:11:30 -04:00
Evan Goode
3d54b131c8 Linting, formatting v1.0.0-beta.1 2023-09-18 21:46:53 -04:00
Evan Goode
3bb87e6b30 lint HTML 2023-09-18 20:58:04 -04:00
Evan Goode
bc13baec78 recipes.md: Add 'stealth' setup 2023-09-18 20:36:41 -04:00
Evan Goode
a7679dce16 Log responses from fallback API servers 2023-09-18 20:29:43 -04:00
Evan Goode
f99ba88487 better buttons 2023-09-17 00:21:09 -04:00
Evan Goode
de43a8068b Update usage on home page, add footer 2023-09-17 00:21:09 -04:00
Evan Goode
f68e2308c0 Icon 2023-09-17 00:21:05 -04:00
Evan Goode
32242f1002 Make fallback API cache configurable
Closes https://github.com/unmojang/drasl/issues/19
2023-09-16 14:00:30 -04:00
Evan Goode
db101f77e0 make install LICENSE 2023-09-13 17:57:00 -04:00
Evan Goode
59b0fd40a4 AUR package 2023-09-08 01:09:11 -04:00
Evan Goode
0235f5c7fb Harden included systemd service
I read https://blog.sergeantbiggs.net/posts/hardening-applications-with-systemd/

systemd-analyze security drasl gives a score of 2.7
2023-09-07 22:10:41 -04:00
Evan Goode
569a273292 A couple skin tests 2023-09-07 16:48:07 -04:00
Evan Goode
5908508fdd Fix 404s for web ui 2023-09-06 23:07:30 -04:00
Evan Goode
2313fee3fe Fix config test 2023-09-04 16:59:04 -04:00
Evan Goode
3dbc20a6a9 Add example-config.toml 2023-09-04 16:53:51 -04:00
Evan Goode
19a55762c9 Add GCC to build dependencies, clarify Go version req 2023-09-04 14:03:07 -04:00
Evan Goode
b6422386fd examples 2023-09-04 13:58:45 -04:00