Is it possible to disable file encryption in open channel

hi sendbird,

we are using sdk (android): 3.0.143.

i have read some issue regarding to the file encryption.


and saw description from document

This property is only effective when using the share encrypted files.
...
 (Default: false)

however, that this flag now is enabled. We don’t want the file to be encrypted by default, to allow visitor users to browse our open channel and be able to download file without auth token.

By checking the logic in android platform, we can confirm that this flag is false before sent to sendbird

while the flag returned is true

{"url":"https://file-ap-5.sendbird.com/20c7460.....394.jpe","thumbnails":[{"real_height":240,"url":"https://file-ap-5.sendbird.com/343f.....jpe","height":240,"width":240,"real_width":240},{"real_height":320,"url":"https://file-ap-5.sendbird.com/b27a5540......jpe","height":320,"width":320,"real_width":320}],"require_auth":true}

this is weird and not sure is bug or not.

is it possible for us to disable this default enabled feature in console? or dm you ?

thanks anyway.

1 Like

@darylsze I tried too but it’s not disabled yetfile Message

but it keeps returning encrypted URL

send bird team working on it

1 Like

yup… let’s wait for Jason’s feedback. Thanks anyway.

may i know any updates for this ?

@darylsze

I’m so sorry I missed you original point a little in the thread. I can disable file encryption for all channel types if needed.

yes please. I got few questions for this:

  1. is it dynamic configurable via dashboard
  2. correct me if i am wrong, that I saw the documentation noted that this is by default disabled, while this seems to be default enabled?
  3. is open channel support to enable/ disable file encryption?

@darylsze

Q: Is file encryption dynamically configurable via dashboard?
A: Not at this time no. It will require an internal settings change.

Q: Correct me if i am wrong, that I saw the documentation noted that this is by default disabled, while this seems to be default enabled?
A: Please share where you got this impression from the docs. I found one place but can’t be sure it is where you saw it. It would be helpful so I can update the docs.

Q: Is open channel support to enable/ disable file encryption?
A: No. At the moment there is only an internal global setting for Sendbird to turn file encryption on or off for all channels.

thanks Jason,
I can’t find the document as well at this moment, maybe I got a bad memory for it.

btw, i have DM you for my application id , please help to turn off the encryption feature

@Jason
finally I recalled the memory where i got the impression of file message is default disabled auth header:

  1. from the doc: https://docs.sendbird.com/platform/messages#3_send_a_message in which require_auth is default false, please refer to the attached image:
  2. from the code source in Android SDK 3.0.143
    in class BaseChannel line 829, the default require_auth parameter is false, please refer to the attached image:
  3. the response of send file message request contains mRequireAuth = false, please refer below:
    image

hope all sources of truth could be aligned at your earliest convenience!