Skip to content
This repository has been archived by the owner on Apr 17, 2023. It is now read-only.

Allowed controlled anonymous access with public namespaces #468

Merged
merged 1 commit into from
Oct 21, 2015

Conversation

mssola
Copy link
Collaborator

@mssola mssola commented Oct 21, 2015

Before this patch, a "public" namespace allowed pulls to any Portus user.
However, it did not allow pull access to anonymous users.

After this patch, the TokensController won't authenticate every user, but only
those that have called the docker login command. From now on, it's up to each
policy to allow/disallow anonymous users. In particular, the only one that
allows access to anonymous users is the Namespace policy, and it only does it
for pull requests.

Fixes #279

Signed-off-by: Miquel Sabaté Solà msabate@suse.com

@mssola mssola force-pushed the anonymous-access branch 2 times, most recently from 7790d69 to d886807 Compare October 21, 2015 14:50
Before this patch, a "public" namespace allowed pulls to any Portus user.
However, it did not allow pull access to anonymous users.

After this patch, the TokensController won't authenticate every user, but only
those that have called the `docker login` command. From now on, it's up to
each
policy to allow/disallow anonymous users. In particular, the only one that
allows access to anonymous users is the Namespace policy, and it only does it
for pull requests.

Moreover, the UI toggles have now a title that tells the user that by making a
namespace public, anyone will be able to pull.

Fixes SUSE#279

Signed-off-by: Miquel Sabaté Solà <msabate@suse.com>
@flavio
Copy link
Member

flavio commented Oct 21, 2015

LGTM

mssola added a commit that referenced this pull request Oct 21, 2015
Allowed controlled anonymous access with public namespaces
@mssola mssola merged commit 0fe68c0 into SUSE:master Oct 21, 2015
@mssola mssola deleted the anonymous-access branch October 22, 2015 08:05
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants