Skip to content

Commit

Permalink
Add access to pull images
Browse files Browse the repository at this point in the history
Currently, allow any access
  • Loading branch information
jesusbv committed Feb 19, 2024
1 parent 373c9ec commit 2275f84
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion engines/registry/app/models/registry/access_scope.rb
Original file line number Diff line number Diff line change
Expand Up @@ -40,7 +40,11 @@ def to_s
end

def granted(client: nil)
aa = authorized_actions(client)
# aa = authorized_actions(client)
# TODO: decide on a policy to grant a system access to products/images
# in the meantime, allow access to any action
# if basisc auth is OK (username/password)
aa = @actions
Rails.logger.info "Granted actions for user '#{client&.account || '<anonymous>'}': #{aa}"
{
'type' => @type,
Expand Down

0 comments on commit 2275f84

Please sign in to comment.