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 a portal implementation #54

Merged
merged 1 commit into from
Jan 25, 2024
Merged

Add a portal implementation #54

merged 1 commit into from
Jan 25, 2024

Conversation

A6GibKm
Copy link
Collaborator

@A6GibKm A6GibKm commented Dec 3, 2023

There are a few things missing

  • Use meson to build and install the binary together with the .portal and .service files
  • Find a better name
  • Clean code a bit
  • Is Request doing the correct thing?

This is compatible with gnome-keyring's stored secrets, but we store them with a more descriptive label, e.g.

Secret Portal token for com.belmoussaoui.ashpd.demo

See flatpak/xdg-desktop-portal#482.

@A6GibKm A6GibKm force-pushed the portal-backend branch 3 times, most recently from 7e128dd to d457d09 Compare December 3, 2023 11:43
@bilelmoussaoui bilelmoussaoui linked an issue Dec 4, 2023 that may be closed by this pull request
@A6GibKm A6GibKm force-pushed the portal-backend branch 2 times, most recently from 58572b4 to 140930d Compare December 15, 2023 21:55
@A6GibKm A6GibKm marked this pull request as draft December 15, 2023 21:56
@A6GibKm A6GibKm force-pushed the portal-backend branch 2 times, most recently from 74ee254 to 8d296e7 Compare December 19, 2023 21:44
oo7-portal-impl/Cargo.toml Outdated Show resolved Hide resolved
.github/workflows/CI.yml Outdated Show resolved Hide resolved
oo7-portal-impl/data/oo7-portal-impl.service Outdated Show resolved Hide resolved
oo7-portal-impl/src/main.rs Outdated Show resolved Hide resolved
attributes,
&secret,
true,
// TODO Find a better one.
Copy link
Owner

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

is this what the current portal implementation doing?

oo7-portal-impl/src/main.rs Outdated Show resolved Hide resolved
@bilelmoussaoui bilelmoussaoui force-pushed the portal-backend branch 2 times, most recently from eab6845 to e40adc6 Compare January 7, 2024 12:19
portal/Cargo.toml Outdated Show resolved Hide resolved
@bilelmoussaoui
Copy link
Owner

Use meson to build and install the binary together with the .portal and .service files

This is something we can do later imho

portal/Cargo.toml Outdated Show resolved Hide resolved
@A6GibKm A6GibKm force-pushed the portal-backend branch 3 times, most recently from ed2745b to 8e77eed Compare January 11, 2024 21:43
@A6GibKm A6GibKm force-pushed the portal-backend branch 4 times, most recently from 15e46a9 to de47f50 Compare January 13, 2024 21:20
Cargo.toml Outdated Show resolved Hide resolved
portal-impl/Cargo.toml Outdated Show resolved Hide resolved
@bilelmoussaoui bilelmoussaoui force-pushed the portal-backend branch 2 times, most recently from b85d9c1 to 9fba035 Compare January 21, 2024 16:14
@bilelmoussaoui bilelmoussaoui changed the title WIP: portal impl WIP: Add a portal implementation Jan 21, 2024
@bilelmoussaoui bilelmoussaoui changed the title WIP: Add a portal implementation Add a portal implementation Jan 21, 2024
@bilelmoussaoui bilelmoussaoui marked this pull request as ready for review January 21, 2024 16:15
@bilelmoussaoui bilelmoussaoui force-pushed the portal-backend branch 2 times, most recently from b914433 to 8291639 Compare January 21, 2024 16:55
Currently it still lacks:
- Proper end-to-end tests on the CI using the support we have for the
portal from the client side as well but that requires a mock server
which we don't have an implementation for yet
- Build system integration so that the necessary file for the binary to
be picked up as a secret portal provider can be installed
@A6GibKm
Copy link
Collaborator Author

A6GibKm commented Jan 25, 2024

From my point of view, the only thing missing here is more testing.

@bilelmoussaoui
Copy link
Owner

We can have more testing once we get the server bits re-implemented. Then we can write a mock implementation and have all the bits tested. For now, let us land it

@bilelmoussaoui bilelmoussaoui merged commit b317379 into main Jan 25, 2024
5 checks passed
@bilelmoussaoui bilelmoussaoui deleted the portal-backend branch January 25, 2024 17:12
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.

Secret portal implementation
3 participants