!DnzGDOEluSXwfOUoKI:matrix.org

Contributing (Authelia)

623 Members
Discuss Contributing to the Authelia Open Source project16 Servers

Load older messages


SenderMessageTime
21 Jun 2022
@james:authelia.comJames

I expect it'll work like this:

  1. Load file provider and load initial database (checking for errors).
  2. Watch file database.
  3. On changes read the file, validate it, and if validation succeeds replace the existing user DB in memory, if it fails log a non fatal error.
09:08:05
@cajuteq:mozilla.orgcajuteqyup seems good to me09:08:32
@cajuteq:mozilla.orgcajuteqmaybe with a way to trigger the reload from a request in case 2 fails09:09:19
@cajuteq:mozilla.orgcajuteq i'm thinking of a sister of authelia validate-config which could be authelia reload-config 09:11:10
@james:authelia.comJamesThat would probably require a control socket of some description which we don't currently have. A similar command which validates a users database would be possible though. Also this would only be for the user database at the present time, the config file is a fairly large undertaking which could cause a lot of bugs.09:13:18
@cajuteq:mozilla.orgcajuteq so more of a validate-userdb and reload-userdb ; that is fine for me 09:15:19
@james:authelia.comJamesI meant specifically for validation, the reload option would probably be something we do down the line. 09:15:59
@cajuteq:mozilla.orgcajuteq you mean validate will in the futur do the reload ? if so this would not only be a breaking behaviour change but also be not granular enough for every uses imo 09:17:39
@cajuteq:mozilla.orgcajuteq if you mean someting like validate --reload it('s fine though 09:18:29
@james:authelia.comJamesI mean triggering the reload from the CLI will not likely be implemented at this stage09:18:36
@james:authelia.comJamesWe can't just have a CLI to do that, we'd have to have a management communication socket which doesn't exist yet09:19:35
@cajuteq:mozilla.orgcajuteqok understood and it would be an epic to create such socket without creating a whole new family of bugs09:20:43
@james:authelia.comJamesYeah and most likely would not result in a measurable benefit since a huge majority of reloading issues will occur regardless of the source of the triggered reload09:21:25
@cajuteq:mozilla.orgcajuteqyep thats right09:21:52
@james:authelia.comJamesIf we ensure there is a info message indicating the reload happened, and an error message when it fails, users can easily check the logs09:22:20
@james:authelia.comJamesIf no message appears they know something strange occurred and they need to forcibly reload it09:22:40
@james:authelia.comJames(by restarting)09:22:48
@cajuteq:mozilla.orgcajuteqyes seems a fair behaviour09:23:10
@_discord_988742778861273128:t2bot.ioams0 joined the room.09:51:06
@_discord_679443460801036355:t2bot.ioams0 joined the room.09:52:02
@_discord_451980399464415232:t2bot.ioozbarge joined the room.15:28:45
22 Jun 2022
@_discord_537937218052816906:t2bot.iobeepboop joined the room.12:43:15
23 Jun 2022
@_discord_894670942456938507:t2bot.ioGreg1928 joined the room.17:35:15
24 Jun 2022
@_discord_180328575101173760:t2bot.iojamiew0w joined the room.04:47:46
@frankcryptic:matrix.orgfrankcryptic joined the room.06:21:59
@georgeraven:matrix.orggeorgeraven joined the room.07:24:01
25 Jun 2022
@_discord_255451184104472576:t2bot.ioMyles joined the room.01:19:17
@_discord_190262019067215872:t2bot.iobleomycin joined the room.02:01:47
26 Jun 2022
@_discord_808876176981491762:t2bot.ioQuaffAPint joined the room.01:25:52
@_discord_712269806572666970:t2bot.ioNillyr joined the room.16:09:52

There are no newer messages yet.


Back to Room List