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

Release Version 3.0.0-rc.1 #734

Merged
merged 15 commits into from
Sep 24, 2024
Merged

Release Version 3.0.0-rc.1 #734

merged 15 commits into from
Sep 24, 2024

Conversation

josecelano
Copy link
Member

Release Version 3.0.0-rc.1

bc28ac7 develop: bump to version 3.0.0-rc.1-develop (Jose Celano)
5c0ae69 release: version 3.0.0-beta (Jose Celano)

Pull request description:

  Version 3.0.0-beta was Released

ACKs for top commit:
  josecelano:
    ACK bc28ac7

Tree-SHA512: ebec3f0611ce0d206bcda1a2cc17baa628da74f3d69f5c4f206c209a965392e847ebd31cf85f86e8fb0ce228850a2429f3c58aa1ff7d2237bd4cd672818bd59e
In the condiguration uyou can set the min and max password length but
those values are not include (not valid).

```toml
[auth.password_constraints]
max_password_length = 64
min_password_length = 6
```

This commit allows password with 6 and 64 chars.
8246f07 feat: min and max password length should be also valid (Jose Celano)
2e67cc1 fix: [#613] wrong error message for password too long error (Jose Celano)

Pull request description:

  Fix bug wrong error message for password too long error.

ACKs for top commit:
  josecelano:
    ACK 8246f07

Tree-SHA512: f65cda387d866a30be7950319ebe4f9ae7e5d6d337d1c3f842a4c890cc209247e7aab38e651dfd95f2ce94d7b00189758c7ce47325bb7a4cedb3fa55b45c55f8
```console
cargo update
    Updating crates.io index
     Locking 83 packages to latest compatible versions
    Updating addr2line v0.22.0 -> v0.24.1
    Removing ahash v0.7.8
    Updating anyhow v1.0.86 -> v1.0.87
    Updating async-trait v0.1.81 -> v0.1.82
    Updating aws-lc-rs v1.8.1 -> v1.9.0
    Updating aws-lc-sys v0.20.1 -> v0.21.1
    Updating backtrace v0.3.73 -> v0.3.74
    Updating bytemuck v1.17.0 -> v1.18.0
    Updating casbin v2.2.0 -> v2.4.0
    Updating cc v1.1.13 -> v1.1.18
    Updating clap v4.5.16 -> v4.5.17
    Updating clap_builder v4.5.15 -> v4.5.17
    Updating cpufeatures v0.2.13 -> v0.2.14
      Adding displaydoc v0.2.5
    Updating fastrand v2.1.0 -> v2.1.1
    Updating flate2 v1.0.32 -> v1.0.33
    Updating gimli v0.29.0 -> v0.31.0
    Updating globset v0.4.14 -> v0.4.15
    Removing hashbrown v0.11.2
    Updating hyper-rustls v0.27.2 -> v0.27.3
    Updating hyper-util v0.1.7 -> v0.1.8
      Adding icu_collections v1.5.0
      Adding icu_locid v1.5.0
      Adding icu_locid_transform v1.5.0
      Adding icu_locid_transform_data v1.5.0
      Adding icu_normalizer v1.5.0
      Adding icu_normalizer_data v1.5.0
      Adding icu_properties v1.5.1
      Adding icu_properties_data v1.5.0
      Adding icu_provider v1.5.0
      Adding icu_provider_macros v1.5.0
      Adding idna v1.0.2
    Updating ignore v0.4.22 -> v0.4.23
    Updating indexmap v2.4.0 -> v2.5.0
    Updating ipnet v2.9.0 -> v2.10.0
    Updating lettre v0.11.7 -> v0.11.8
    Updating libsqlite3-sys v0.28.0 -> v0.30.1
      Adding litemap v0.7.3
    Updating object v0.36.3 -> v0.36.4
    Updating parking v2.2.0 -> v2.2.1
    Updating pest v2.7.11 -> v2.7.12
    Updating pest_derive v2.7.11 -> v2.7.12
    Updating pest_generator v2.7.11 -> v2.7.12
    Updating pest_meta v2.7.11 -> v2.7.12
    Updating prettyplease v0.2.20 -> v0.2.22
    Updating psm v0.1.21 -> v0.1.23
    Updating quote v1.0.36 -> v1.0.37
    Removing redox_syscall v0.4.1
    Updating rgb v0.8.48 -> v0.8.50
    Removing ritelinked v0.3.2
    Updating rustc_version v0.4.0 -> v0.4.1
    Updating rustix v0.38.34 -> v0.38.36
    Updating rustls-webpki v0.102.6 -> v0.102.8
    Updating schannel v0.1.23 -> v0.1.24
    Updating serde v1.0.208 -> v1.0.210
    Updating serde_derive v1.0.208 -> v1.0.210
    Updating serde_json v1.0.125 -> v1.0.128
    Updating sqlformat v0.2.4 -> v0.2.6
    Updating sqlx v0.8.0 -> v0.8.2
    Updating sqlx-core v0.8.0 -> v0.8.2
    Updating sqlx-macros v0.8.0 -> v0.8.2
    Updating sqlx-macros-core v0.8.0 -> v0.8.2
    Updating sqlx-mysql v0.8.0 -> v0.8.2
    Updating sqlx-postgres v0.8.0 -> v0.8.2
    Updating sqlx-sqlite v0.8.0 -> v0.8.2
      Adding stable_deref_trait v1.2.0
    Updating stacker v0.1.15 -> v0.1.17
    Updating syn v2.0.75 -> v2.0.77
      Adding synstructure v0.13.1
    Updating system-configuration v0.6.0 -> v0.6.1
      Adding tinystr v0.7.6
    Updating tokio v1.39.3 -> v1.40.0
    Updating tokio-stream v0.1.15 -> v0.1.16
    Updating tokio-util v0.7.11 -> v0.7.12
      Adding utf16_iter v1.0.5
      Adding utf8_iter v1.0.4
    Updating webpki-roots v0.26.3 -> v0.26.5
    Updating whoami v1.5.1 -> v1.5.2
      Adding write16 v1.0.0
      Adding writeable v0.5.5
    Updating xml-rs v0.8.21 -> v0.8.22
      Adding yoke v0.7.4
      Adding yoke-derive v0.7.4
      Adding zerofrom v0.1.4
      Adding zerofrom-derive v0.1.4
    Removing zeroize_derive v1.4.2
      Adding zerovec v0.10.4
      Adding zerovec-derive v0.10.3
```
69a463a chore(deps): udpate dependencies (Jose Celano)

Pull request description:

  ```console
  cargo update
      Updating crates.io index
       Locking 83 packages to latest compatible versions
      Updating addr2line v0.22.0 -> v0.24.1
      Removing ahash v0.7.8
      Updating anyhow v1.0.86 -> v1.0.87
      Updating async-trait v0.1.81 -> v0.1.82
      Updating aws-lc-rs v1.8.1 -> v1.9.0
      Updating aws-lc-sys v0.20.1 -> v0.21.1
      Updating backtrace v0.3.73 -> v0.3.74
      Updating bytemuck v1.17.0 -> v1.18.0
      Updating casbin v2.2.0 -> v2.4.0
      Updating cc v1.1.13 -> v1.1.18
      Updating clap v4.5.16 -> v4.5.17
      Updating clap_builder v4.5.15 -> v4.5.17
      Updating cpufeatures v0.2.13 -> v0.2.14
        Adding displaydoc v0.2.5
      Updating fastrand v2.1.0 -> v2.1.1
      Updating flate2 v1.0.32 -> v1.0.33
      Updating gimli v0.29.0 -> v0.31.0
      Updating globset v0.4.14 -> v0.4.15
      Removing hashbrown v0.11.2
      Updating hyper-rustls v0.27.2 -> v0.27.3
      Updating hyper-util v0.1.7 -> v0.1.8
        Adding icu_collections v1.5.0
        Adding icu_locid v1.5.0
        Adding icu_locid_transform v1.5.0
        Adding icu_locid_transform_data v1.5.0
        Adding icu_normalizer v1.5.0
        Adding icu_normalizer_data v1.5.0
        Adding icu_properties v1.5.1
        Adding icu_properties_data v1.5.0
        Adding icu_provider v1.5.0
        Adding icu_provider_macros v1.5.0
        Adding idna v1.0.2
      Updating ignore v0.4.22 -> v0.4.23
      Updating indexmap v2.4.0 -> v2.5.0
      Updating ipnet v2.9.0 -> v2.10.0
      Updating lettre v0.11.7 -> v0.11.8
      Updating libsqlite3-sys v0.28.0 -> v0.30.1
        Adding litemap v0.7.3
      Updating object v0.36.3 -> v0.36.4
      Updating parking v2.2.0 -> v2.2.1
      Updating pest v2.7.11 -> v2.7.12
      Updating pest_derive v2.7.11 -> v2.7.12
      Updating pest_generator v2.7.11 -> v2.7.12
      Updating pest_meta v2.7.11 -> v2.7.12
      Updating prettyplease v0.2.20 -> v0.2.22
      Updating psm v0.1.21 -> v0.1.23
      Updating quote v1.0.36 -> v1.0.37
      Removing redox_syscall v0.4.1
      Updating rgb v0.8.48 -> v0.8.50
      Removing ritelinked v0.3.2
      Updating rustc_version v0.4.0 -> v0.4.1
      Updating rustix v0.38.34 -> v0.38.36
      Updating rustls-webpki v0.102.6 -> v0.102.8
      Updating schannel v0.1.23 -> v0.1.24
      Updating serde v1.0.208 -> v1.0.210
      Updating serde_derive v1.0.208 -> v1.0.210
      Updating serde_json v1.0.125 -> v1.0.128
      Updating sqlformat v0.2.4 -> v0.2.6
      Updating sqlx v0.8.0 -> v0.8.2
      Updating sqlx-core v0.8.0 -> v0.8.2
      Updating sqlx-macros v0.8.0 -> v0.8.2
      Updating sqlx-macros-core v0.8.0 -> v0.8.2
      Updating sqlx-mysql v0.8.0 -> v0.8.2
      Updating sqlx-postgres v0.8.0 -> v0.8.2
      Updating sqlx-sqlite v0.8.0 -> v0.8.2
        Adding stable_deref_trait v1.2.0
      Updating stacker v0.1.15 -> v0.1.17
      Updating syn v2.0.75 -> v2.0.77
        Adding synstructure v0.13.1
      Updating system-configuration v0.6.0 -> v0.6.1
        Adding tinystr v0.7.6
      Updating tokio v1.39.3 -> v1.40.0
      Updating tokio-stream v0.1.15 -> v0.1.16
      Updating tokio-util v0.7.11 -> v0.7.12
        Adding utf16_iter v1.0.5
        Adding utf8_iter v1.0.4
      Updating webpki-roots v0.26.3 -> v0.26.5
      Updating whoami v1.5.1 -> v1.5.2
        Adding write16 v1.0.0
        Adding writeable v0.5.5
      Updating xml-rs v0.8.21 -> v0.8.22
        Adding yoke v0.7.4
        Adding yoke-derive v0.7.4
        Adding zerofrom v0.1.4
        Adding zerofrom-derive v0.1.4
      Removing zeroize_derive v1.4.2
        Adding zerovec v0.10.4
        Adding zerovec-derive v0.10.3
  ```

ACKs for top commit:
  josecelano:
    ACK 69a463a

Tree-SHA512: 247d2ac5f83fb8fda40fa1393c57453177b64b05c3efb9c41dd47153cc431dac4ec821a762f8355ccd94e290cf94d566cec400ee5d0850734f509dfdcea9f8a0
```output
cargo update
    Updating crates.io index
     Locking 5 packages to latest compatible versions
    Updating anyhow v1.0.87 -> v1.0.88
    Updating redox_syscall v0.5.3 -> v0.5.4
    Updating rustix v0.38.36 -> v0.38.37
    Updating rustls v0.23.12 -> v0.23.13
    Updating unicode-ident v1.0.12 -> v1.0.13
```
0f3d122 chore(deps): update dependencies (Jose Celano)

Pull request description:

  ```output
  cargo update
      Updating crates.io index
       Locking 5 packages to latest compatible versions
      Updating anyhow v1.0.87 -> v1.0.88
      Updating redox_syscall v0.5.3 -> v0.5.4
      Updating rustix v0.38.36 -> v0.38.37
      Updating rustls v0.23.12 -> v0.23.13
      Updating unicode-ident v1.0.12 -> v1.0.13
  ```

ACKs for top commit:
  josecelano:
    ACK 0f3d122

Tree-SHA512: 29b4d6099468521539da7060a229d62f0fbfc1c9caf586828686ca11e37975a54573a17fd2ec765863fa39f17cd8a43091fc90c3da5e060291d89f483ff66e9a
We need to pass legal texts to the frontent but we don't have a proper
CMS. For now, we have just added the texts in the configuration to make
it possible for users to overrride them. These are the new values in the
config:

```toml
[website.demo]
warning = "⚠️ Please be aware: This demo resets all data weekly. Torrents not complying with our Usage Policies will be removed immediately without notice. We encourage the responsible use of this software in compliance with all legal requirements."

[website.terms]

[website.terms.upload]
content_upload_agreement = """I confirm that the content I am uploading is authorized, and I have read and agree to the terms."""

[website.terms.page]
content = """

Our software is designed to support the distribution of legal, authorized content only. Users may only upload or share files that fall under the following categories:

- **Open-Source Licenses:** Content licensed under recognized open-source licenses, allowing for free distribution and modification.
- **Creative Commons Licenses:** Content released under Creative Commons licenses that permit sharing and distribution.
- **Public Domain:** Content that is free of copyright restrictions and available for public use.

**Prohibited Content:** Any content that infringes copyright, is subject to copyright protection, or is illegal under applicable laws is strictly prohibited. This includes but is not limited to copyrighted movies, music, software, books, and any other media.

**Enforcement:** We reserve the right to remove any content that does not comply with these policies without notice. We may also take additional steps, including reporting violations to the relevant authorities, if necessary.

"""
title = "Usage Policies and Content Restrictions"
```
7d82eb2 feat: [#730] add CMS content to configration (Jose Celano)

Pull request description:

  We need to pass legal texts to the frontent but we don't have a proper CMS. For now, we have just added the texts in the configuration to make it possible for users to overrride them. These are the new values in the config:

  ```toml
  [website.demo]
  warning = "⚠️ Please be aware: This demo resets all data weekly. Torrents not complying with our Usage Policies will be removed immediately without notice. We encourage the responsible use of this software in compliance with all legal requirements."

  [website.terms]

  [website.terms.upload]
  content_upload_agreement = """I confirm that the content I am uploading is authorized, and I have read and agree to the terms."""

  [website.terms.page]
  title = "Usage Policies and Content Restrictions"
  content = """

  Our software is designed to support the distribution of legal, authorized content only. Users may only upload or share files that fall under the following categories:

  - **Open-Source Licenses:** Content licensed under recognized open-source licenses, allowing for free distribution and modification.
  - **Creative Commons Licenses:** Content released under Creative Commons licenses that permit sharing and distribution.
  - **Public Domain:** Content that is free of copyright restrictions and available for public use.

  **Prohibited Content:** Any content that infringes copyright, is subject to copyright protection, or is illegal under applicable laws is strictly prohibited. This includes but is not limited to copyrighted movies, music, software, books, and any other media.

  **Enforcement:** We reserve the right to remove any content that does not comply with these policies without notice. We may also take additional steps, including reporting violations to the relevant authorities, if necessary.

  """
  ```

ACKs for top commit:
  josecelano:
    ACK 7d82eb2

Tree-SHA512: 708aceea4457df03e5bbcc1f2e6b61d521e68db1ce45b962a78d62be297ff94119614c0c11c21f03915d8db8dbddde1ed530da0176a280ec8152854e268e4b47
```output
cargo update
    Updating crates.io index
     Locking 27 packages to latest compatible versions
    Updating anyhow v1.0.88 -> v1.0.89
    Updating arrayref v0.3.8 -> v0.3.9
    Updating aws-lc-sys v0.21.1 -> v0.21.2
    Updating axum v0.7.5 -> v0.7.6
    Updating axum-core v0.4.3 -> v0.4.4
    Updating bytes v1.7.1 -> v1.7.2
    Updating casbin v2.4.0 -> v2.5.0
    Updating cc v1.1.18 -> v1.1.21
    Updating clap v4.5.17 -> v4.5.18
    Updating clap_builder v4.5.17 -> v4.5.18
    Updating clap_derive v4.5.13 -> v4.5.18
    Updating iana-time-zone v0.1.60 -> v0.1.61
    Updating lettre v0.11.8 -> v0.11.9
    Updating pest v2.7.12 -> v2.7.13
    Updating pest_derive v2.7.12 -> v2.7.13
    Updating pest_generator v2.7.12 -> v2.7.13
    Updating pest_meta v2.7.12 -> v2.7.13
    Updating pkg-config v0.3.30 -> v0.3.31
    Updating security-framework-sys v2.11.1 -> v2.12.0
    Updating thiserror v1.0.63 -> v1.0.64
    Updating thiserror-impl v1.0.63 -> v1.0.64
    Updating toml_edit v0.22.20 -> v0.22.21
      Adding tower v0.5.1
    Updating tower-http v0.5.2 -> v0.6.1
    Updating unicode-normalization v0.1.23 -> v0.1.24
    Updating unicode-script v0.5.6 -> v0.5.7
    Updating webpki-roots v0.26.5 -> v0.26.6
```
Mutable static variables are discouraged. I guess we should move them to
the proxy service. We wanted to avoid generating the error images every
time we need them becuase it's costly. I would created them when the
proxy service is instanciated or maybe we can create a new service with
static content for the proxy.
cdf2fe3 fix: chedck error (Jose Celano)
5e0226d chore(deps): update dependencies (Jose Celano)

Pull request description:

  ```output
  cargo update
      Updating crates.io index
       Locking 27 packages to latest compatible versions
      Updating anyhow v1.0.88 -> v1.0.89
      Updating arrayref v0.3.8 -> v0.3.9
      Updating aws-lc-sys v0.21.1 -> v0.21.2
      Updating axum v0.7.5 -> v0.7.6
      Updating axum-core v0.4.3 -> v0.4.4
      Updating bytes v1.7.1 -> v1.7.2
      Updating casbin v2.4.0 -> v2.5.0
      Updating cc v1.1.18 -> v1.1.21
      Updating clap v4.5.17 -> v4.5.18
      Updating clap_builder v4.5.17 -> v4.5.18
      Updating clap_derive v4.5.13 -> v4.5.18
      Updating iana-time-zone v0.1.60 -> v0.1.61
      Updating lettre v0.11.8 -> v0.11.9
      Updating pest v2.7.12 -> v2.7.13
      Updating pest_derive v2.7.12 -> v2.7.13
      Updating pest_generator v2.7.12 -> v2.7.13
      Updating pest_meta v2.7.12 -> v2.7.13
      Updating pkg-config v0.3.30 -> v0.3.31
      Updating security-framework-sys v2.11.1 -> v2.12.0
      Updating thiserror v1.0.63 -> v1.0.64
      Updating thiserror-impl v1.0.63 -> v1.0.64
      Updating toml_edit v0.22.20 -> v0.22.21
        Adding tower v0.5.1
      Updating tower-http v0.5.2 -> v0.6.1
      Updating unicode-normalization v0.1.23 -> v0.1.24
      Updating unicode-script v0.5.6 -> v0.5.7
      Updating webpki-roots v0.26.5 -> v0.26.6
  ```

ACKs for top commit:
  josecelano:
    ACK cdf2fe3

Tree-SHA512: e2a436767319f13dc3368c632f3500ba86307c4901f8b0d2e2321af8b1b55c4fa25441e89fe432c7ae431004d87d050a9289e281d5fa6d3884a498b2ce970c19
@josecelano josecelano self-assigned this Sep 24, 2024
@josecelano
Copy link
Member Author

ACK 867a1f5

@josecelano josecelano merged commit 7ebf95c into main Sep 24, 2024
16 of 19 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant