Material-Scientist

Results 25 comments of Material-Scientist

Managed to restrict access by using a custom tornado LoginHandler. Put the allowed paths of every user in the (secure) cookies, and in the `get_user_async` check if `request_handler.request.path` is in...

This is the important part: ``` async def get_user_async(request_handler): # Get cookies user = request_handler.get_secure_cookie('user') subs = request_handler.get_secure_cookie('subs') # Secure cookies have no default value. So, replace '' manually. if...

Ah, it also ignores the `-fullPercent=95` arg. ![image](https://github.com/user-attachments/assets/8bac6a73-617b-480b-a5ed-212130ae4148)

It seems one of the issues is in this part of the code: ```go // volumeId is provided if vid != 0 { return doVolumeTierUpload(commandEnv, writer, *collection, vid, *dest, *keepLocalDatFile)...

I don't know if this is valid (not familiar with coding in go), but Claude suggests the following code to fix both bugs: 1) ```go func (c *commandVolumeTierUpload) Do(args []string,...

There is a hacky way to do it with templates: ```hcl template { destination = "local/test" #error_on_missing_key = true data =

[security.toml](https://github.com/seaweedfs/seaweedfs/wiki/Security-Configuration): ``` # Put this file to one of the location, with descending priority # ./security.toml # $HOME/.seaweedfs/security.toml # /etc/seaweedfs/security.toml [jwt.signing] key = "blahblahblahblah" [jwt.filer_signing] key = "blahblahblahblah" # all...

> ```python > .emit(msg) > ``` `.emit()` blocks on each message, whereas `._emit()` does not (returns a list futures). You could instead buffer a set number of futures before calling...

Changed to 2520, and get a slightly different error from broker process crashing: ``` I0810 20:26:19.744046 broker_topic_conf_read_write.go:35 load conf for topic my_namespace.my_topic from filer panic: runtime error: invalid memory address...