Skip to content
New issue

Have a question about this project? # for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “#”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? # to your account

v2 API: Improve error messages for encryption key selection #271

Merged
merged 1 commit into from
Feb 27, 2025

Conversation

lubux
Copy link
Member

@lubux lubux commented Feb 12, 2025

This PR enhances error messages by providing detailed explanations when key selection for encryption fails in the v2 API.

@lubux lubux changed the title v2 API: Improve error message for encryption key selection v2 API: Improve error messages for encryption key selection Feb 12, 2025
@lubux lubux force-pushed the feat/improve-errors-key-selection branch from 90d5118 to c6ac829 Compare February 24, 2025 15:17
@lubux lubux force-pushed the feat/improve-errors-key-selection branch 3 times, most recently from 5cee6e8 to 0c27fb1 Compare February 27, 2025 09:28
@lubux lubux marked this pull request as ready for review February 27, 2025 09:31
twiss
twiss previously approved these changes Feb 27, 2025
@lubux lubux force-pushed the feat/improve-errors-key-selection branch from 0c27fb1 to 33ad2dc Compare February 27, 2025 09:38
@lubux lubux force-pushed the feat/improve-errors-key-selection branch from 33ad2dc to 4bf9d90 Compare February 27, 2025 09:40
@lubux lubux merged commit e52eada into main Feb 27, 2025
10 checks passed
@lubux lubux deleted the feat/improve-errors-key-selection branch February 27, 2025 09:47
DennisRasey pushed a commit to DennisRasey/forgejo that referenced this pull request Feb 28, 2025
…068)

This PR contains the following updates:

| Package | Type | Update | Change |
|---|---|---|---|
| [github.com/ProtonMail/go-crypto](https://github.com/ProtonMail/go-crypto) | require | patch | `v1.1.5` -> `v1.1.6` |

---

### Release Notes

<details>
<summary>ProtonMail/go-crypto (github.com/ProtonMail/go-crypto)</summary>

### [`v1.1.6`](https://github.com/ProtonMail/go-crypto/releases/tag/v1.1.6)

[Compare Source](ProtonMail/go-crypto@v1.1.5...v1.1.6)

#### What's Changed

-   Fix `PublicKey.KeyIdString` to return a valid key id by [@&#8203;lubux](https://github.com/lubux) in ProtonMail/go-crypto#269
-   Allow Key Flags override [@&#8203;davrux](https://github.com/davrux) in ProtonMail/go-crypto#272
-   Only check that message signatures are newer than the key by [@&#8203;twiss](https://github.com/twiss) in ProtonMail/go-crypto#275
-   openpgp/clearsign: just use rand.Reader in tests by [@&#8203;mdosch](https://github.com/mdosch) in ProtonMail/go-crypto#276
-   Make Issuer Key ID signature subpacket non-critical by [@&#8203;caarlos0](https://github.com/caarlos0) in ProtonMail/go-crypto#266
-   v2 API: Improve error messages for encryption key selection by [@&#8203;lubux](https://github.com/lubux) in ProtonMail/go-crypto#271

**Full Changelog**: ProtonMail/go-crypto@v1.1.5...v1.1.6

</details>

---

### Configuration

📅 **Schedule**: Branch creation - "* 0-3 * * *" (UTC), Automerge - "* 0-3 * * *" (UTC).

🚦 **Automerge**: Disabled by config. Please merge this manually once you are satisfied.

♻ **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://github.com/renovatebot/renovate).
<!--renovate-debug:eyJjcmVhdGVkSW5WZXIiOiIzOS4xNzguMSIsInVwZGF0ZWRJblZlciI6IjM5LjE3OC4xIiwidGFyZ2V0QnJhbmNoIjoiZm9yZ2VqbyIsImxhYmVscyI6WyJkZXBlbmRlbmN5LXVwZ3JhZGUiLCJ0ZXN0L25vdC1uZWVkZWQiXX0=-->

Reviewed-on: https://codeberg.org/forgejo/forgejo/pulls/7068
Reviewed-by: Gusted <gusted@noreply.codeberg.org>
Co-authored-by: Renovate Bot <forgejo-renovate-action@forgejo.org>
Co-committed-by: Renovate Bot <forgejo-renovate-action@forgejo.org>
# for free to join this conversation on GitHub. Already have an account? # to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants