1. 14 Feb, 2022 1 commit
  2. 07 Feb, 2022 1 commit
    • Douglas Mendizábal's avatar
      Fix container consumers rbac policy · 96015933
      Douglas Mendizábal authored
      This patch modifies the Consumer controller to enable the use of
      ownership information in policy checks. e.g. policies that use a target
      container:
      
         project_id:%(target.container.project_id)
      
      Story: 2009664
      Task: 43872
      
      Depends-On: I8698fc7a9ac849b8c24adfe824ca44dd3e42b999
      Change-Id: I1724152839f0f5850f8d32d40b36d1670c0ad996
      96015933
  3. 31 Jan, 2022 1 commit
    • Douglas Mendizábal's avatar
      Allow secret delete by users with "creator" role · 2620d14c
      Douglas Mendizábal authored
      Users with the "creator" role on a project can now delete secrets owned
      by the project even if the user is different than the user that
      originally created the secret.  Previous to this fix a user with the
      "creator" role was only allowed to delete a secret owned by the project
      if they were also the same user that originally created, which was
      inconsistent with the way that deletes are handled by other OpenStack
      projects that integrate with Barbican.
      
      This change does not affect the policy for delting private secrets
      (i.e. secrets with the "project-access" flag set to "false").
      
      Story: 2009791
      Task: 44324
      Change-Id: Ie3e3adc1ee02d770de050f5cfa8110774bb1f661
      2620d14c
  4. 16 Dec, 2021 1 commit
  5. 14 Dec, 2021 1 commit
  6. 08 Dec, 2021 1 commit
  7. 07 Dec, 2021 1 commit
  8. 06 Dec, 2021 1 commit
    • Douglas Mendizábal's avatar
      Fix policy for Orders · 5d81a3c4
      Douglas Mendizábal authored
      This patch adds checks to make sure that the project_id of the token
      matches the project_id that owns the Order.
      
      Currently, having a role on any project will allow the request to be
      processed, which results in a 404 - Not Found instead of 401 -
      Forbidden.
      
      Change-Id: Ie0e6f6edae40e47d45afbe92fd509032cb091b1a
      5d81a3c4
  9. 02 Dec, 2021 1 commit
  10. 29 Nov, 2021 1 commit
    • Douglas Mendizábal's avatar
      Move DogTag functional tests to experimental · 9dbd8313
      Douglas Mendizábal authored
      Temporarily moving the Dogtag test to the experimental pipeline.  The
      tests has not passed in months and we won't be fixing it any time soon
      so we should stop wasting resources.
      
      Change-Id: Ie3fce8f4dda33d0eff166d1b1698f001f4d74e8f
      9dbd8313
  11. 13 Nov, 2021 1 commit
  12. 10 Nov, 2021 1 commit
  13. 15 Oct, 2021 1 commit
  14. 12 Oct, 2021 2 commits
  15. 11 Oct, 2021 2 commits
    • Douglas Mendizábal's avatar
      Fix secret metadata access rules (pt 2) · af262dc3
      Douglas Mendizábal authored
      This patch fixes the secure-rbac rules to ensure that the user making
      the request is authenticated for the project that owns the secret.
      
      Story: 2009253
      Task: 43451
      
      Change-Id: I8222ea2a55cdb72f1d9affe9fb0cf542c6b7c88c
      af262dc3
    • Douglas Mendizábal's avatar
      Fix secret metadata access rules · 7d270bac
      Douglas Mendizábal authored
      This patch fixes the legacy policy rules for accessing secret metadata
      by checking that the user making the request is authenticated for the
      project that owns the secret.
      
      Story: 2009253
      Task: 43451
      
      Change-Id: Ide37d64dff10d421817bf90b8e2e58bf6ac4f592
      7d270bac
  16. 09 Oct, 2021 1 commit
  17. 08 Oct, 2021 1 commit
  18. 23 Sep, 2021 3 commits
  19. 22 Sep, 2021 1 commit
  20. 17 Sep, 2021 2 commits
    • Douglas Mendizábal's avatar
      Ignore network errors during C_Finalize · 70aac1f6
      Douglas Mendizábal authored
      The Trustway Proteccio HSM can somtimes return a network error when
      attempting to finalize the cryptoki library.
      
      The error can prevent reinitialization because we attempt to finalize
      the library before initalizing a new connection.  When a network error
      occurrs, barbican gets stuck in an error loop trying to finalize the
      dead connection before starting a new one.
      
      This patch adds code to ignore the network error when finalizing to
      ensure we are able to attempt to reinitialize.
      
      Connection errors during other operations will still result in 500
      errors as expected.
      
      Change-Id: I9ac6c7bbda0f81cb26e1c589803317df1ef11f39
      70aac1f6
    • Zuul's avatar
      476a5b73
  21. 16 Sep, 2021 5 commits
  22. 15 Sep, 2021 1 commit
    • Douglas Mendizábal's avatar
      Fix Castellan Secret Store inconsistent encoding · b9daa100
      Douglas Mendizábal authored
      This patch fixes the Castellan secret store use of SecretDTO objects,
      which require that the "secret" member be base64 encoded. [1]
      
      Prior to this fix all secrets that were generated were stored in
      plaintext, but secrets coming in through the API were base64 encoded
      before being stored in the backend.
      
      On secret retreival the Castellan plugin wrongly assumed everything in
      the backend was encoded, so attempts to retrieve generated keys failed.
      
      This patch fixes this inconsistency by always storing data un-encoded in
      the backend.
      
      A helper method was added to sort out the inconsistent data stored prior
      to this fix.
      
      A "version" property was added to the Castellan plugin metadata that is
      stored in barbican to help differentiate secrets stored prior to this
      fix vs secrets stored after this fix.
      
      Story: 2008335
      Task: 41236
      
      [1]
      https://opendev.org/openstack/barbican/src/tag/12.0.0/barbican/plugin/interface/secret_store.py#L356
      
      Change-Id: I46fe77a471bf7927a24ca4d64dfccb385cd6402e
      b9daa100
  23. 13 Sep, 2021 1 commit
  24. 03 Sep, 2021 1 commit
    • Douglas Mendizábal's avatar
      Return 403 instead of 500 when policy check fails · 200bff89
      Douglas Mendizábal authored
      This patch fixes an issue where a 500 response is sent instead of a 403
      when a request is made using the wrong scope.  e.g.  Using project
      scope instead of system scope.
      
      Story: 2009170
      Task: 43200
      
      Change-Id: Id399d2220118efe1033426c658d1834cbff02f94
      200bff89
  25. 06 Jul, 2021 1 commit
    • Takashi Kajinami's avatar
      Replace oslo_utils.fnmatch with fnmatch · aa7bf886
      Takashi Kajinami authored
      The oslo_utils.fnmatch module was added to solve an issue in py2.7 but
      it is no longer required because py2.7 is no longer supported.
      The module was deprecated since oslo.utils 4.9.1[1] and the stdlib's
      fnmatch module should be used instead.
      
      [1] 4c893c92f551c9dd2a7cfbe7ae8171ad8139df0b
      
      Change-Id: If6ea16bbad5a7454e3a0f190c5a5e8da17f01a89
      aa7bf886
  26. 18 Jun, 2021 1 commit
  27. 15 Jun, 2021 1 commit
    • Douglas Mendizábal's avatar
      Fix alembic migrations · 3a76ced8
      Douglas Mendizábal authored
      A change was introduced to SQL Alchemy 1.4.8 that breaks our Alembic
      migrations.  Specifically it breaks the "add_secret_consumers" migration
      because it attempts to check for a table using an object that is no
      longer allowed to call that function.
      
      This patch removes the bespoke validation, because alembic should take
      care of checking the schema.
      
      Story: 2008967
      Task:  42606
      
      Change-Id: I36fb10445413fb1ec4046ab6c2525eae47d85ea1
      3a76ced8
  28. 14 Jun, 2021 1 commit
    • Gorka Eguileor's avatar
      Fix unit tests and migration to unblock gate · 1ae4badb
      Gorka Eguileor authored
      Currently there are 2 failing unit tests:
      
      - test_soft_deleting_expired_secrets: Caused by passing a column instead
        of a table on the query creation.
      
      - test_should_raise_for_pycrypto_stored_key_no_private_key: Caused by
        the conjunction of Barbican using scoped sessions and SQLAlchemy's
        identity mapping.
      
      And a migration issue on add_secret_consumers.
      
      This patch fixes all those issues to unblock the gate.
      
      Story: 2008967
      
      Change-Id: I6dc7d2671f2ba9d97af42d3155ae2bf3a8e33453
      1ae4badb
  29. 10 Jun, 2021 2 commits
  30. 08 Jun, 2021 1 commit