Page MenuHomeSolus

Update yubico-authenticator to 6.2.0 and build from source
ClosedPublic

Authored by GZGavinZhao on Jun 5 2023, 5:41 PM.
Tags
None
Referenced Files
F11023998: D14169.diff
Tue, Aug 8, 6:21 PM
F11003904: D14169.diff
Mon, Jul 31, 8:09 PM
F10960373: D14169.diff
Tue, Jul 18, 11:07 AM
F10934265: D14169.diff
Wed, Jul 12, 11:19 AM
F10882562: D14169.id34633.diff
Jun 23 2023, 2:12 PM
F10882276: D14169.id34634.diff
Jun 23 2023, 9:00 AM
F10880312: D14169.id34619.diff
Jun 22 2023, 4:52 PM
F10879147: D14169.id34618.diff
Jun 21 2023, 8:05 PM

Details

Summary

Depends on D14201, D14202.

  • Changelog available here.
  • Now building from source using Flutter. We fetch the Flutter SDK as a source since including the Flutter SDK in our repository still needs a bit of work.
  • Install the authenticator-helper Python executable and manage its runtime dependencies by ourselves instead of letting pyinstaller bundle all of its dependencies.
Test Plan

I don't have a Yubikey, so I can only make sure it runs...

Diff Detail

Repository
R3311 yubico-authenticator
Branch
master
Lint
No Lint Coverage
Unit
No Test Coverage
Build Status
Buildable 5195
Build 5195: arc lint + arc unit

Event Timeline

GZGavinZhao edited the test plan for this revision. (Show Details)
GZGavinZhao added a subscriber: Tracing.
GZGavinZhao removed a subscriber: Tracing.

Nice job! This should be able to be built with our system python-poetry package now.

I also wonder if it's possible to nuke the bundled libs now? Basically, everything in the helper dir apart from authenticator-helper and possibly base_library.zip by the looks of things. If the unbundling is too much of a headache, we can leave it for now.

This revision now requires changes to proceed.Jun 5 2023, 5:56 PM
pspec_x86_64.xml
90

Probably don't want to include this

Sorry, I've been a bit busy this week. I rebuilt against our own python-poetry and I've been trying to remove the bundled libraries in helper. Currently, I am able to remove all of them except zxing-cpp, and I'll try to work it out in the next few days.

  • Build with our own python-poetry.
  • Strip out all the bundled libs in the /usr/share/yubioath-desktop/helper directory and manage the runtime dependency of the authenticator-helper Python script by ourselves.

Cleaner bash usage and remove some unnecessary files.

For good measure, add pcsc-lite as a runtime dependency per the instructions from upstream.

silke requested changes to this revision.Jun 18 2023, 12:34 PM
silke added a subscriber: silke.

One minor nit, but otherwise LGTM!

files/authenticator-helper
2
This revision now requires changes to proceed.Jun 18 2023, 12:34 PM
This revision is now accepted and ready to land.Jun 18 2023, 1:39 PM