Uploaded image for project: 'Satellite'
  1. Satellite
  2. SAT-30106

Auth token of flatpak-remote is returned by API

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Unresolved
    • Icon: Undefined Undefined
    • None
    • 6.17.0
    • Repositories
    • Sprint 143
    • Moderate
    • None

      Description of problem:

      When user with `create_flatpak_remotes`permission creates a remote with some username and authentication token, the token can be retrieved by anyone with the `view_flatpak_remotes` permission.

       

      How reproducible:

      always

       

      Is this issue a regression from an earlier version:

      no

       

      Steps to Reproduce:

      1. create a flatpak remote with username and permission

      2. read the remote via API:

      $ curl -sku lojza:changeme -H "Content-type: application/json" -X GET https://satellite.redhat.com/katello/api/flatpak_remotes/1 | jq

       

      Actual behavior:
      {
        "name": "CUzimMsarr",
        "url": "https://flatpaks.redhat.io/rhel/",
        "description": null,
        "username": "1234567|wonderful-tokenauth",
        "token": "DyHkcJ5hKi....

       

      Expected behavior:
      token shouldn't be returned

       

      Business Impact / Additional info:

       

              rhn-engineering-sajha Samir Jha
              vsedmik@redhat.com Vladimír Sedmík
              Votes:
              0 Vote for this issue
              Watchers:
              1 Start watching this issue

                Created:
                Updated: