Skip to content
Snippets Groups Projects
  1. Apr 30, 2021
  2. Apr 29, 2021
  3. Apr 28, 2021
  4. Apr 27, 2021
  5. Apr 26, 2021
    • Alexis Kalderimis's avatar
      Require 'api' scope to execute mutations · b988fe76
      Alexis Kalderimis authored
      Verify that read_api tokens cannot run mutations.
      
      Also: adds tests use of OAuth tokens for GraphQL
      
      We make some changes to the sessionless_authentication module
      in order to capture the request_authenticator, so that we can access
      the token scopes, without making any extra queries.
      
      We ensure we always authorize the mutation, which, like all resolvers,
      needs to opt in to the check.
      
      Unlike resolvers, mutations should always raise. So
      `BaseMutation.authorized?` raises on failure.
      
      Logic for handling scopes is pushed down to the `ObjectAuthorization`
      class, and encapsulated in the `ScopeValidator`, which limits the
      methods that can be called by resolvers.
      b988fe76
    • David Fernandez's avatar
      Restrict the dependency proxy auth service · 55bda7c4
      David Fernandez authored
      Any objects other than `User` (such as `DeployToken`) are not allowed
      
      Changelog: security
      Unverified
      55bda7c4
  6. Apr 23, 2021
  7. Apr 22, 2021
  8. Apr 21, 2021
Loading