Skip to content
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

add show hidden option for crypt storage #5554

Merged
merged 1 commit into from
Nov 23, 2023
Merged

add show hidden option for crypt storage #5554

merged 1 commit into from
Nov 23, 2023

Conversation

textrix
Copy link
Contributor

@textrix textrix commented Nov 22, 2023

I tried adding a show hidden option for Crypt Storage.
This is like the option to show files or directories that start with dot in Local Storage.
This is for directories that don't need to be visible to certain users.
I think it requires a .json file by running the alist lang command, but I don't know the exact workflow, so I'm just implementing the feature and submitting it.
Please confirm.

Copy link

welcome bot commented Nov 22, 2023

Thanks for opening this pull request! Please check out our contributing guidelines.

@xhofe xhofe added this to the v3.29.0 milestone Nov 23, 2023
@xhofe xhofe merged commit fe34d30 into AlistGo:main Nov 23, 2023
1 check passed
Copy link

welcome bot commented Nov 23, 2023

Congrats on merging your first pull request! We here at behavior bot are proud of you!

@anwen-anyi
Copy link
Contributor

Doesn't seem to be effective? I did not see two '. zip' files other than non encrypted files
Did I misunderstand?
image

@textrix
Copy link
Contributor Author

textrix commented Nov 24, 2023

Doesn't seem to be effective? I did not see two '. zip' files other than non encrypted files Did I misunderstand? image

This pull request is to give Crypt Storage the option to hide files or directories with names starting with dot (just like Linux 'ls' doesn't show files or directories starting with '.' by default).

Presumably, based on the picture you showed, you were experimenting with the option to encrypt filenames set to 'off'. If you set the name encryption option to 'obfuscate' or 'standard', it should be normal for the original unencrypted storage to show the encrypted name. Also, if you encrypted the name with 'standard', moving it from the original state to another directory should be problematic.

Consider two cases, one where the file or directory is created in Crypt and the other where it was originally created in Stroage, assuming 'off'.

  1. when creating a file in Crypt: the original name is postfixed with '.bin' and written to the original storage, only the file contents are encrypted.
  2. creating a file in the original storage: naturally, the name and content will match the original.

After all, Crypt doesn't handle files that don't have the .bin postfix as originally promised, which is why Crypt doesn't seem to show it, and it's not recommended to create or change anything in the original storage that Crypt references.

So, the screen you've shown as an example is exactly how AList handles Crypt, regardless of this code change.

For reference, I always use this option with obfuscate in rclone crypt. This is because I don't want the storage provider to have to run a simple script to verify my filename, but also because of the previous problem with 'standard' and the limitations on filename length.

Anyway, this code checks if a file or directory name starts with '.'. The code uses strings.HasPrefix to check if the file or directory name starts with '.'. I don't think that question is relevant to this code.

Also, I wonder if other storage types could have this option, what do you think?

@anwen-anyi
Copy link
Contributor

anwen-anyi commented Nov 24, 2023

I understand what you mean this time, I misunderstood it 🙏

truecharts-admin referenced this pull request in truecharts/public Nov 25, 2023
…15347)

This PR contains the following updates:

| Package | Update | Change |
|---|---|---|
| [xhofe/alist](https://togithub.com/alist-org/alist) | minor |
`v3.28.0` -> `v3.29.1` |

---

> [!WARNING]
> Some dependencies could not be looked up. Check the Dependency
Dashboard for more information.

---

### Release Notes

<details>
<summary>alist-org/alist (xhofe/alist)</summary>

###
[`v3.29.1`](https://togithub.com/alist-org/alist/releases/tag/v3.29.1)

[Compare
Source](https://togithub.com/alist-org/alist/compare/v3.29.0...v3.29.1)

#####    🐞 Bug Fixes

- Task popped but not execute  -  by
[@&#8203;xhofe](https://togithub.com/xhofe) in
[https://github.com/alist-org/alist/issues/5565](https://togithub.com/alist-org/alist/issues/5565)
[<samp>(68af2)</samp>](https://togithub.com/alist-org/alist/commit/68af284)

#####     [View changes on
GitHub](https://togithub.com/alist-org/alist/compare/v3.29.0...v3.29.1)

###
[`v3.29.0`](https://togithub.com/alist-org/alist/releases/tag/v3.29.0)

[Compare
Source](https://togithub.com/alist-org/alist/compare/v3.28.0...v3.29.0)

#####    🚀 Features

- Add `header` to `meta`  -  by
[@&#8203;xhofe](https://togithub.com/xhofe) in
[https://github.com/alist-org/alist/issues/5317](https://togithub.com/alist-org/alist/issues/5317)
[<samp>(9ff83)</samp>](https://togithub.com/alist-org/alist/commit/9ff83a7)
- Add ignore direct link params  -  by
[@&#8203;xhofe](https://togithub.com/xhofe) in
[https://github.com/alist-org/alist/issues/5434](https://togithub.com/alist-org/alist/issues/5434)
[<samp>(c0f9c)</samp>](https://togithub.com/alist-org/alist/commit/c0f9c8e)
- Refactor offline download
([#&#8203;5408](https://togithub.com/alist-org/alist/issues/5408) close
[#&#8203;4108](https://togithub.com/alist-org/alist/issues/4108))  -  by
[@&#8203;xhofe](https://togithub.com/xhofe) and
[@&#8203;renovate](https://togithub.com/renovate)\[bot]
in[https://github.com/alist-org/alist/issues/5408](https://togithub.com/alist-org/alist/issues/5408)8
and[https://github.com/alist-org/alist/issues/4108](https://togithub.com/alist-org/alist/issues/4108)8
[<samp>(76928)</samp>](https://togithub.com/alist-org/alist/commit/769281b)
- Add `115_share` driver
([#&#8203;5481](https://togithub.com/alist-org/alist/issues/5481) close
[#&#8203;5384](https://togithub.com/alist-org/alist/issues/5384))  -  by
[@&#8203;SheltonZhu](https://togithub.com/SheltonZhu) in
[https://github.com/alist-org/alist/issues/5481](https://togithub.com/alist-org/alist/issues/5481)
and
[https://github.com/alist-org/alist/issues/5384](https://togithub.com/alist-org/alist/issues/5384)
[<samp>(da1c7)</samp>](https://togithub.com/alist-org/alist/commit/da1c7a4)
- Invalidate old token after changing the password  -  by
[@&#8203;xhofe](https://togithub.com/xhofe) in
[https://github.com/alist-org/alist/issues/5515](https://togithub.com/alist-org/alist/issues/5515)
[<samp>(3d518)</samp>](https://togithub.com/alist-org/alist/commit/3d51845)
- Support using external dist files  -  by
[@&#8203;xhofe](https://togithub.com/xhofe) in
[https://github.com/alist-org/alist/issues/5531](https://togithub.com/alist-org/alist/issues/5531)
[<samp>(6fc67)</samp>](https://togithub.com/alist-org/alist/commit/6fc6751)
- Refactor task module  -  by
[@&#8203;xhofe](https://togithub.com/xhofe)
[<samp>(11a30)</samp>](https://togithub.com/alist-org/alist/commit/11a30c5)
- Customize workers and retry of task (close
[#&#8203;5493](https://togithub.com/alist-org/alist/issues/5493) fix
[#&#8203;5274](https://togithub.com/alist-org/alist/issues/5274))  -  by
[@&#8203;xhofe](https://togithub.com/xhofe) in
[https://github.com/alist-org/alist/issues/5493](https://togithub.com/alist-org/alist/issues/5493)
and
[https://github.com/alist-org/alist/issues/5274](https://togithub.com/alist-org/alist/issues/5274)
[<samp>(7583c)</samp>](https://togithub.com/alist-org/alist/commit/7583c4d)
- Retry all failed task  -  by
[@&#8203;xhofe](https://togithub.com/xhofe) in
[https://github.com/alist-org/alist/issues/5242](https://togithub.com/alist-org/alist/issues/5242)
[<samp>(b2890)</samp>](https://togithub.com/alist-org/alist/commit/b2890f0)
- Add chaoxing and vtencent driver
([#&#8203;5526](https://togithub.com/alist-org/alist/issues/5526) close
[#&#8203;3347](https://togithub.com/alist-org/alist/issues/3347))  -  by
[@&#8203;msterzhang](https://togithub.com/msterzhang) in
[https://github.com/alist-org/alist/issues/5526](https://togithub.com/alist-org/alist/issues/5526)
and
[https://github.com/alist-org/alist/issues/3347](https://togithub.com/alist-org/alist/issues/3347)
[<samp>(12800)</samp>](https://togithub.com/alist-org/alist/commit/1280070)
- Allow keep files in offline download  -  by
[@&#8203;xhofe](https://togithub.com/xhofe) in
[https://github.com/alist-org/alist/issues/4678](https://togithub.com/alist-org/alist/issues/4678)
[<samp>(b6134)</samp>](https://togithub.com/alist-org/alist/commit/b6134dc)
- Customize allow `origins`, `headers` and `methods`  -  by
[@&#8203;xhofe](https://togithub.com/xhofe)
[<samp>(3f405)</samp>](https://togithub.com/alist-org/alist/commit/3f405de)
-   **cloudreve**:
- Support thumbnail
([#&#8203;5373](https://togithub.com/alist-org/alist/issues/5373) close
[#&#8203;5348](https://togithub.com/alist-org/alist/issues/5348))  -  by
[@&#8203;itsHenry35](https://togithub.com/itsHenry35) in
[https://github.com/alist-org/alist/issues/5373](https://togithub.com/alist-org/alist/issues/5373)
and
[https://github.com/alist-org/alist/issues/5348](https://togithub.com/alist-org/alist/issues/5348)
[<samp>(7f733)</samp>](https://togithub.com/alist-org/alist/commit/7f73354)
- Folder size count and switch
([#&#8203;5457](https://togithub.com/alist-org/alist/issues/5457) close
[#&#8203;5395](https://togithub.com/alist-org/alist/issues/5395))  -  by
[@&#8203;itsHenry35](https://togithub.com/itsHenry35) in
[https://github.com/alist-org/alist/issues/5457](https://togithub.com/alist-org/alist/issues/5457)
and
[https://github.com/alist-org/alist/issues/5395](https://togithub.com/alist-org/alist/issues/5395)
[<samp>(65c5e)</samp>](https://togithub.com/alist-org/alist/commit/65c5ec0)
-   **crypt**:
- Optional pre-generated thumbnails  -  by
[@&#8203;chaoqing](https://togithub.com/chaoqing) in
[https://github.com/alist-org/alist/issues/5284](https://togithub.com/alist-org/alist/issues/5284)
[<samp>(fb13d)</samp>](https://togithub.com/alist-org/alist/commit/fb13dae)
- Add show hidden option  -  by
[@&#8203;textrix](https://togithub.com/textrix) in
[https://github.com/alist-org/alist/issues/5554](https://togithub.com/alist-org/alist/issues/5554)
[<samp>(fe34d)</samp>](https://togithub.com/alist-org/alist/commit/fe34d30)
-   **google_drive**:
- Add `hash_info`, `ctime`, `thumbnail`  -  by
[@&#8203;foxxorcat](https://togithub.com/foxxorcat) in
[https://github.com/alist-org/alist/issues/5334](https://togithub.com/alist-org/alist/issues/5334)
[<samp>(1a283)</samp>](https://togithub.com/alist-org/alist/commit/1a283bb)
-   **offline_download**:
- Add simple http tool  -  by
[@&#8203;xhofe](https://togithub.com/xhofe) in
[https://github.com/alist-org/alist/issues/4002](https://togithub.com/alist-org/alist/issues/4002)
[<samp>(34746)</samp>](https://togithub.com/alist-org/alist/commit/34746e9)
-   **onedrive**:
- Custom host for download link  -  by
[@&#8203;xhofe](https://togithub.com/xhofe) in
[https://github.com/alist-org/alist/issues/5310](https://togithub.com/alist-org/alist/issues/5310)
[<samp>(0fd51)</samp>](https://togithub.com/alist-org/alist/commit/0fd5164)
-   **sso**:
- Custom username key for `OIDC`  -  by
[@&#8203;xhofe](https://togithub.com/xhofe) in
[https://github.com/alist-org/alist/issues/5169](https://togithub.com/alist-org/alist/issues/5169)
[<samp>(e719a)</samp>](https://togithub.com/alist-org/alist/commit/e719a1a)
-   **webdav**:
- Add `tls_insecure_skip_verify` field  -  by
[@&#8203;xhofe](https://togithub.com/xhofe) in
[https://github.com/alist-org/alist/issues/5490](https://togithub.com/alist-org/alist/issues/5490)
[<samp>(91f51)</samp>](https://togithub.com/alist-org/alist/commit/91f51f1)

#####    🐞 Bug Fixes

- Hash gcid empty file  -  by
[@&#8203;foxxorcat](https://togithub.com/foxxorcat) in
[https://github.com/alist-org/alist/issues/5394](https://togithub.com/alist-org/alist/issues/5394)
[<samp>(cdfbe)</samp>](https://togithub.com/alist-org/alist/commit/cdfbe6d)
- Incorrect content-type of apk files  -  by
[@&#8203;xhofe](https://togithub.com/xhofe) in
[https://github.com/alist-org/alist/issues/5385](https://togithub.com/alist-org/alist/issues/5385)
[<samp>(4355d)</samp>](https://togithub.com/alist-org/alist/commit/4355dae)
- Reflected XSS vulnerability plist api  -  by
[@&#8203;xhofe](https://togithub.com/xhofe)
[<samp>(61006)</samp>](https://togithub.com/alist-org/alist/commit/6100647)
- `content-type` conflicts with
[#&#8203;5420](https://togithub.com/alist-org/alist/issues/5420)  -  by
[@&#8203;xhofe](https://togithub.com/xhofe) in
[https://github.com/alist-org/alist/issues/5420](https://togithub.com/alist-org/alist/issues/5420)
[<samp>(d2688)</samp>](https://togithub.com/alist-org/alist/commit/d26887d)
-   **115**:
- Allow use proxy directly  -  by
[@&#8203;xhofe](https://togithub.com/xhofe) in
[https://github.com/alist-org/alist/issues/5324](https://togithub.com/alist-org/alist/issues/5324)
[<samp>(e8958)</samp>](https://togithub.com/alist-org/alist/commit/e895801)
- Limit request rate
([#&#8203;5367](https://togithub.com/alist-org/alist/issues/5367) close
[#&#8203;5275](https://togithub.com/alist-org/alist/issues/5275))  -  by
[@&#8203;foxxorcat](https://togithub.com/foxxorcat) and
[@&#8203;xhofe](https://togithub.com/xhofe) in
[https://github.com/alist-org/alist/issues/5367](https://togithub.com/alist-org/alist/issues/5367)
and
[https://github.com/alist-org/alist/issues/5275](https://togithub.com/alist-org/alist/issues/5275)
[<samp>(b9e19)</samp>](https://togithub.com/alist-org/alist/commit/b9e192b)
- Fix driver package import and variable  -  by
[@&#8203;SheltonZhu](https://togithub.com/SheltonZhu) in
[https://github.com/alist-org/alist/issues/5482](https://togithub.com/alist-org/alist/issues/5482)
[<samp>(3bbdd)</samp>](https://togithub.com/alist-org/alist/commit/3bbdd4f)
-   **aliyundrive_open**:
- Change default api to raw server  -  by
[@&#8203;xhofe](https://togithub.com/xhofe) in
[https://github.com/alist-org/alist/issues/5358](https://togithub.com/alist-org/alist/issues/5358)
[<samp>(7600d)</samp>](https://togithub.com/alist-org/alist/commit/7600dc2)
- Upload progress for normal upload  -  by
[@&#8203;NewbieOrange](https://togithub.com/NewbieOrange) in
[https://github.com/alist-org/alist/issues/5398](https://togithub.com/alist-org/alist/issues/5398)
[<samp>(8ef80)</samp>](https://togithub.com/alist-org/alist/commit/8ef8023)
- Mitigation measures for 15-minute limit
([#&#8203;5560](https://togithub.com/alist-org/alist/issues/5560) close
[#&#8203;5547](https://togithub.com/alist-org/alist/issues/5547))  -  by
[@&#8203;BlueSkyXN](https://togithub.com/BlueSkyXN) and
[@&#8203;xhofe](https://togithub.com/xhofe) in
[https://github.com/alist-org/alist/issues/5560](https://togithub.com/alist-org/alist/issues/5560)
and
[https://github.com/alist-org/alist/issues/5547](https://togithub.com/alist-org/alist/issues/5547)
[<samp>(0fbb9)</samp>](https://togithub.com/alist-org/alist/commit/0fbb986)
-   **baidu_netdisk**:
- Hash and `error 2`  -  by
[@&#8203;foxxorcat](https://togithub.com/foxxorcat) in
[https://github.com/alist-org/alist/issues/5356](https://togithub.com/alist-org/alist/issues/5356)
[<samp>(8ef89)</samp>](https://togithub.com/alist-org/alist/commit/8ef89ad)
- Upload file > 4GB  -  by [@&#8203;xhofe](https://togithub.com/xhofe)
in
[https://github.com/alist-org/alist/issues/5392](https://togithub.com/alist-org/alist/issues/5392)
[<samp>(4fc0a)</samp>](https://togithub.com/alist-org/alist/commit/4fc0a77)
-   **deps**:
- Update module github.com/ipfs/go-ipfs-api to v0.7.0  -  by
[@&#8203;renovate](https://togithub.com/renovate)\[bot]
in[https://github.com/alist-org/alist/issues/5247](https://togithub.com/alist-org/alist/issues/5247)7
[<samp>(eb918)</samp>](https://togithub.com/alist-org/alist/commit/eb91865)
- Update module github.com/aliyun/aliyun-oss-go-sdk to
v2.2.9+incompatible  -  by
[@&#8203;renovate](https://togithub.com/renovate)\[bot]
in[https://github.com/alist-org/alist/issues/5141](https://togithub.com/alist-org/alist/issues/5141)1
[<samp>(69a98)</samp>](https://togithub.com/alist-org/alist/commit/69a98ea)
- Update module golang.org/x/net to v0.17.0 \[security]  -  by
[@&#8203;renovate](https://togithub.com/renovate)\[bot]
in[https://github.com/alist-org/alist/issues/5370](https://togithub.com/alist-org/alist/issues/5370)0
[<samp>(cc86d)</samp>](https://togithub.com/alist-org/alist/commit/cc86d6f)
- Update golang.org/x/exp digest to
[`7918f67`](https://togithub.com/alist-org/alist/commit/7918f67)  -  by
[@&#8203;renovate](https://togithub.com/renovate)\[bot]
in[https://github.com/alist-org/alist/issues/5366](https://togithub.com/alist-org/alist/issues/5366)6
[<samp>(4dff4)</samp>](https://togithub.com/alist-org/alist/commit/4dff494)
- Update module github.com/charmbracelet/lipgloss to v0.9.1  -  by
[@&#8203;renovate](https://togithub.com/renovate)\[bot]
in[https://github.com/alist-org/alist/issues/5234](https://togithub.com/alist-org/alist/issues/5234)4
[<samp>(a6325)</samp>](https://togithub.com/alist-org/alist/commit/a632596)
- Update module github.com/aws/aws-sdk-go to v1.46.7  -  by
[@&#8203;renovate](https://togithub.com/renovate)\[bot]
in[https://github.com/alist-org/alist/issues/5068](https://togithub.com/alist-org/alist/issues/5068)8
[<samp>(a7421)</samp>](https://togithub.com/alist-org/alist/commit/a7421d8)
-   **local**:
- Video file thumbnails not displaying on iOS Safari  -  by
[@&#8203;gmugu](https://togithub.com/gmugu) in
[https://github.com/alist-org/alist/issues/5420](https://togithub.com/alist-org/alist/issues/5420)
[<samp>(867ac)</samp>](https://togithub.com/alist-org/alist/commit/867acca)
-   **mopan**:
- 302 Redirect
([#&#8203;5505](https://togithub.com/alist-org/alist/issues/5505) close
[#&#8203;5502](https://togithub.com/alist-org/alist/issues/5502))  -  by
[@&#8203;foxxorcat](https://togithub.com/foxxorcat) and
[@&#8203;xhofe](https://togithub.com/xhofe) in
[https://github.com/alist-org/alist/issues/5505](https://togithub.com/alist-org/alist/issues/5505)
and
[https://github.com/alist-org/alist/issues/5502](https://togithub.com/alist-org/alist/issues/5502)
[<samp>(55a14)</samp>](https://togithub.com/alist-org/alist/commit/55a14bc)
-   **onedrive_app**:
- Incorrect api on `_accessToken`  -  by
[@&#8203;jeffmingup](https://togithub.com/jeffmingup) in
[https://github.com/alist-org/alist/issues/5346](https://togithub.com/alist-org/alist/issues/5346)
[<samp>(35d67)</samp>](https://togithub.com/alist-org/alist/commit/35d6722)
-   **terabox**:
- Auto refresh `JsToken`  -  by
[@&#8203;xhofe](https://togithub.com/xhofe) in
[https://github.com/alist-org/alist/issues/5277](https://togithub.com/alist-org/alist/issues/5277)
[<samp>(6b67a)</samp>](https://togithub.com/alist-org/alist/commit/6b67a36)
- Encode parameters for `filemanager` api  -  by
[@&#8203;URenko](https://togithub.com/URenko) in
[https://github.com/alist-org/alist/issues/5308](https://togithub.com/alist-org/alist/issues/5308)
[<samp>(e1ef6)</samp>](https://togithub.com/alist-org/alist/commit/e1ef690)
-   **vtencent**:
- Hack file with size 0 but actual size is not 0  -  by
[@&#8203;xhofe](https://togithub.com/xhofe)
[<samp>(d455a)</samp>](https://togithub.com/alist-org/alist/commit/d455a23)
-   **weiyun**:
- Unmarshal overflow  -  by
[@&#8203;foxxorcat](https://togithub.com/foxxorcat) in
[https://github.com/alist-org/alist/issues/5459](https://togithub.com/alist-org/alist/issues/5459)
[<samp>(68f44)</samp>](https://togithub.com/alist-org/alist/commit/68f440a)
-   **wopan**:
- Fatal error concurrent map writes  -  by
[@&#8203;xhofe](https://togithub.com/xhofe) in
[https://github.com/alist-org/alist/issues/5352](https://togithub.com/alist-org/alist/issues/5352)
[<samp>(1ebc9)</samp>](https://togithub.com/alist-org/alist/commit/1ebc96a)

#####    🏎 Performance

- **webdav**: Support request with cookies  -  by
[@&#8203;gmugu](https://togithub.com/gmugu) in
[https://github.com/alist-org/alist/issues/5391](https://togithub.com/alist-org/alist/issues/5391)
[<samp>(aaffa)</samp>](https://togithub.com/alist-org/alist/commit/aaffaee)

#####     [View changes on
GitHub](https://togithub.com/alist-org/alist/compare/v3.28.0...v3.29.0)

</details>

---

### Configuration

📅 **Schedule**: Branch creation - At any time (no schedule defined),
Automerge - At any time (no schedule defined).

🚦 **Automerge**: Enabled.

♻ **Rebasing**: Whenever PR becomes conflicted, or you tick the
rebase/retry checkbox.

🔕 **Ignore**: Close this PR and you won't be reminded about this update
again.

---

- [ ] <!-- rebase-check -->If you want to rebase/retry this PR, check
this box

---

This PR has been generated by [Renovate
Bot](https://togithub.com/renovatebot/renovate).

<!--renovate-debug:eyJjcmVhdGVkSW5WZXIiOiIzNy42OC4wIiwidXBkYXRlZEluVmVyIjoiMzcuNjguMSIsInRhcmdldEJyYW5jaCI6Im1hc3RlciJ9-->
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants