Skip to content

Bookmark sync on Gitlab using new fine-grained personnal access token #2238

@noraj

Description

@noraj

Which version of floccus are you using?

5.9.1

How many bookmarks do you have, roughly?

xbel has 2k lines

Are you using other means to sync bookmarks in parallel to floccus?

No

Sync method

Git

Which browser are you using? In case you are using the phone App, specify the Android or iOS version and device please.

Firefox 149.0.2

Which version of Nextcloud Bookmarks are you using? (if relevant)

No response

Which version of Nextcloud? (if relevant)

No response

What kind of WebDAV server are you using? (if relevant)

No response

Describe the Bug

When having 2FA enabled on a GitLab account, one must use a PAT (personal access token) instead of password.

Before with the legacy permission token, the permissions where very broad, generating a token with write_repository and read_repository was enough. (old issue #1609)

Image

However, my token expired, now I have to generate a new one but now Gitlab is promoting the new fine-grained access tokens to replace the legacy ones. I tried to generate one with the permissions:

  • Repository:
    • Commit: Create, Read, Update

But I had 403 error while trying to sync Floccus. So I generated a new one with those:

  • Repository
    • Repository: Read
    • Commit: Create, Read, Update
    • Protected Branch: Read, Update
    • Code: Push, Read, Download

Everything looks like it works, no error except that nothing is pushed to the git repository, no new commit. I want to know if you have some documentation to explain what Gitlab permissions are needed for Floccus to work. It looks non trivial to identify the required ones.

Expected Behavior

Floccus successfully push a commit with the changed bookmarks to the Gitlab repository.

To Reproduce

Setup a Gitlab git repository, push the first commit manually and generate a new fine-grained PAT, try the permissions listed above.

Debug log provided

  • I have provided a debug log file

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions