Skip to content

Allow to restrict imports to white listed registries - #13313

Merged
openshift-bot merged 4 commits into
openshift:masterfrom
mfojtik:registry-whitelist
Apr 6, 2017
Merged

openshift-bot merged 4 commits into
openshift:masterfrom
mfojtik:registry-whitelist

Conversation

@mfojtik

@mfojtik mfojtik commented Mar 8, 2017 •

Copy link
Copy Markdown
Contributor

This change will allow to restrict image importing to registries that are white listed in the master-config.yaml. By default (when not specified) the legacy behavior is retained and any registry is allowed for the image import.
However, for a new clusters when the master-config.yaml is created, we picked the known public registries and whitelisted them explicitely.

Q/A:

What impact will this have to existing users?
Unless you recreate the master-config.yaml, everything should work as it worked before.

What impact will this have to new users?
When the master-config.yaml is written to disk, the list of registries we allow to import from will be created. In case you want to import Docker image from third-party registry, that registry needs to be added to the list (a server restart is required after that change).

The verification is done in image import validation, so:

 # oc import-image foo.bar:5000/test/test --confirm
The ImageStreamImport "test" is invalid: spec.images[0].from.name: Invalid value: "foo.bar:5000/test/test": importing images from registry "foo.bar" is forbidden, only images from "docker.io,registry.access.redhat.com,gcr.io,quay.io,*.amazonaws.com" are allowed

In case of creating the ImageStream directly with tags, the importer will report errors if the untrusted
registry is used in the ImageStream status:

# oc describe is/ruby
Name:			ruby
Namespace:		test
Created:		8 seconds ago
Labels:			<none>
Annotations:		openshift.io/display-name=Ruby
Docker Pull Spec:	172.30.53.250:5000/test/ruby
Unique Images:		0
Tags:			5
...
...
foo.bar:5000/openshift/ruby-20-centos7:latest
  pushed image

  ! error: Import failed (Invalid value: "foo.bar:5000/openshift/ruby-20-centos7:latest": importing images from registry "foo.bar" is forbidden, only images from "docker.io,registry.access.redhat.com,gcr.io,quay.io,*.amazonaws.com" are allowed):
      7 seconds ago

In case you already have images imported from third-party registries that are not whitelisted
the images will remain but the scheduled import won't work for them anymore (you will see the error above).

@mfojtik

mfojtik commented Mar 8, 2017

Copy link
Copy Markdown
Contributor Author

[test]

@mfojtik
mfojtik force-pushed the registry-whitelist branch from 6123bb5 to 1521270 Compare March 8, 2017 20:57
Comment thread pkg/cmd/server/api/v1/conversions.go Outdated
}

if len(obj.ImagePolicyConfig.AllowedRegistriesForImport) == 0 {
obj.ImagePolicyConfig.AllowedRegistriesForImport = []string{

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@smarterclayton need to double check on the registry hostnames here...

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

We can't default this on - that breaks existing clusters.

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

You need to do this when we create a config, not in API defaulting.

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

fixed. also I moved the default whitelist to types.go (instead of burrying it in master_args)

Comment thread pkg/cmd/server/api/types.go Outdated
// images from. By default docker.io, Red Hat registry, gcr.io, Amazon ECS, quay.io are
// allowed. If you want to import images from your private Docker Registry, you have to
// add it into the list.
AllowedRegistriesForImport []string

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Make this a sub struct with a single field.

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Specify domain name.

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@smarterclayton i this we also need wildcard (*) for registries like ECS. Does it make sense?

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Yes, supporting wildcard is fine. Be sure to document the wildcard syntax. A bit concerned that we shouldn't support crazy wildcards (filepath matching is crazy).

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@smarterclayton i don't want to re-invent wildcard matching, so if you have better suggestion from the standard library I'm all for it :-) The filepath matching seems reasonable to me... I guess most users/admins will just use the '*' and '??' wildcards anyway.

Comment thread pkg/cmd/server/api/v1/types.go Outdated
// AllowedRegistriesForImport is a white list of registries that we allow to import the
// images from. By default docker.io, Red Hat registry, gcr.io, Amazon ECS, quay.io are
// allowed. If you want to import images from your private Docker Registry, you have to
// add it into the list.

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This needs to only impose this behavior when this is set. If empty, old behavior applies.

Comment thread pkg/image/api/helper.go
// RegistryHostname returns the registry hostname without port
func (r DockerImageReference) RegistryHostname() string {
registryHost := r.AsV2().Registry
if strings.Contains(registryHost, ":") {

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Ports matter - gcr.io on port 443 is not the same as gcr.io on port 935

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

i assume all registries we whitelist by default run on 443?

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

so I'd say if port is not specified, it can be 443 or 80 (secure or insecure). If it is specified, it must match. I.e. docker.io matches docker.io:443, but docker.io does not match docker.io:8443

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@smarterclayton maybe we can add that to the config struct (insecure: true)

Comment thread pkg/image/importer/importer.go Outdated
repoName := defaultRef.RepositoryName()
registryURL := defaultRef.RegistryURL()

if !importer.isAllowedRegistry(defaultRef.RegistryHostname()) {

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

If empty, you have to bypass this. Can't break old clusters.

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

right, I will make it optional.

Comment thread pkg/image/importer/importer.go Outdated
registryURL := defaultRef.RegistryURL()

if !importer.isAllowedRegistry(defaultRef.RegistryHostname()) {
isi.Status.Images[i].Status = invalidStatus("", field.Invalid(field.NewPath("from", "name"), from.Name, fmt.Sprintf("registry %q not allowed in master configuration", defaultRef.RegistryHostname())))

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This message needs to be really good - this is going to break people. You're going to have to make sure the CLI and UI do a good job of presenting this error.

Images may not be imported from %q - only images from %s are allowed

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Would be good to demonstrate how this would be shown in oc import-image, oc describe is, web console, etc

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

with the current implementation, it will get surfaced in the events inside image stream... when I rework this in validation, I think it you will get the error when you run oc import-image, so the IS won't be created at all.

Web console will get validation error as well, so I think that will be presented to users in nice form.

Comment thread pkg/image/importer/importer.go Outdated
// the master configuration.
func (i *ImageStreamImporter) isAllowedRegistry(registry string) bool {
for _, allowedRegistry := range i.allowedRegistries {
if matched, err := filepath.Match(allowedRegistry, registry); matched && err == nil {

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I don't like filepath because it is OS specific.

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

yeah, I will probably craft something custom and make it part of util/strings.go

Comment thread pkg/image/importer/importer.go Outdated
repoName := defaultRef.RepositoryName()
registryURL := defaultRef.RegistryURL()

if !importer.isAllowedRegistry(defaultRef.RegistryHostname()) {

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Why is this here? Put this in ImageStreamImport validation, pass the allowed registries to the strategy, not the importer.

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

you're right... I thought we want to do this in importer, but this really is a validation... i will pass the list of allowed registries to import validator and verify it there.

@mfojtik
mfojtik force-pushed the registry-whitelist branch 4 times, most recently from 8c2c69d to 6fe3cbe Compare March 9, 2017 12:42
@mfojtik mfojtik changed the title WIP: Restrict image imports to white-listed registries Restrict image imports to white-listed registries Mar 9, 2017
@mfojtik mfojtik changed the title Restrict image imports to white-listed registries Allow to restrict imports to white listed registries Mar 9, 2017
@mfojtik

mfojtik commented Mar 9, 2017

Copy link
Copy Markdown
Contributor Author

@smarterclayton all updated, PTAL pls.

DomainName string
// Insecure indicates whether the registry is secury (https) or insecure (http)
// By default (if not specified) the registry is assumed as secure.
Insecure bool

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

What about different port, how one will specify that?

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

If it's part of domain name (I assume from validation code) can you state that in the doc text for DomainName, it isn't obvious.

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

yes, good idea

Comment thread pkg/image/api/helper.go Outdated
}

// RegistryHostname returns the registry hostname without port
func (r DockerImageReference) RegistryHostPort() (string, string) {

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Shouldn't this method accept bool Insecure? And return 80 if it's set to true?

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

the godoc is wrong, but yeah

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

actually I already have that fixed :)

Comment thread pkg/image/api/validation/validation.go Outdated
case 2:
allowedRegistryHost, allowedRegistryPort = parts[0], parts[1]
default:
// TODO: Should we panic/glog here? The format of allowed registries should be

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

glog for sure

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

done.

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

glog not needed, so I will remove it from here (see Clayton comment)

// name. The domain name might include wildcards, like '*' or '??'.
type RegistryLocation struct {
// DomainName specifies a domain name for the registry
DomainName string

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Additionally, since we allow wildcard matches here, that should be mentioned in the doc as well.

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

yeah, I mention it in the comment for the registry location to make it more visible, but I can move it down.

@miminar miminar left a comment •

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Now what about oc tag? 😄 I realized it's not an issue because oc tag modifies the spec of ImageStream and leaves the actually image creation on importer controller.

Nevertheless I'd like to see at least an integration test proving that the oc tag case is handled.

Comment thread pkg/image/api/validation/validation.go Outdated
default:
// TODO: Should we panic/glog here? The format of allowed registries should be
// validated during the server startup.
return errs

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

At least log an error an continue.

Comment thread pkg/image/api/helper.go Outdated
return r.Exact()
}

// RegistryHostname returns the registry hostname without port

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

godoc

Comment thread pkg/image/api/helper.go
return hostname, port
}
// The default registry port is https/443
return registryHost, "443"

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

The 443 may be wrong. Empty port should be returned if not specified.

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@miminar empty port mean 80 right? that might be incorrect.

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

we default to https in RegistryURL() anyway, so I think this is fine.

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

(I added a bool option to make @soltysh happy :-)

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

empty port mean 80 right? that might be incorrect.

Empty port means not specified in this case.

we default to https in RegistryURL() anyway, so I think this is fine.

ah, that's unfortunate...

isi: &api.ImageStreamImport{ObjectMeta: validMeta, Spec: repoFn("unknown.registry:5000/foo/bar")},
expected: field.ErrorList{},
allowedRegistries: &configapi.AllowedRegistries{},
},

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Can you add one more test case with AllowedRegistries not empty and matching the registry?

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

sure, but that case is covered when allowedRegistry is set to defaultallowedregistry and matched docker.io

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

added extra test case.

// By default all registries have set to be "secure", iow. the port for them is
// defaulted to "443".
// If the registry you are adding here is insecure, you can add 'Insecure: true' which
// in that case it will default to port '80'.

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

s/which in that case it will default to port '80'/to make it default to "80"/

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

fixed. (moved to types anyway)

Comment thread pkg/cmd/server/api/types.go Outdated
type RegistryLocation struct {
// DomainName specifies a domain name for the registry
DomainName string
// Insecure indicates whether the registry is secury (https) or insecure (http)

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

typo

@mfojtik
mfojtik force-pushed the registry-whitelist branch from c6010e7 to e5b7594 Compare March 9, 2017 14:15
@soltysh

soltysh commented Mar 9, 2017

Copy link
Copy Markdown
Contributor

I will strongly argue against fixing the error part as part of this PR (the 2nd commit). I'd prefer having a proper solution to error handling inside the entire ImageStream. Currently we only have nice error handling presented per tag, but none when it comes to failing when .spec.dockerImageRepository is specified. I'd rather have a proper followup fixing the error handling once and for all and not an ad-hoc solution for this particular error.

@mfojtik

mfojtik commented Mar 9, 2017

Copy link
Copy Markdown
Contributor Author

@soltysh my fix is addressing the repository import as well.... in that case the repository is used as "tag", which sux and can be improved.
I need to report nice error to users that trying to import from remote, untrusted registry and this will do. I'm not against improving it, but we can get there in iterative step and the change in this PR can be the first step.

@mfojtik
mfojtik force-pushed the registry-whitelist branch 2 times, most recently from d5257ed to c6fd96b Compare March 9, 2017 15:05
Comment thread pkg/image/controller/controller.go Outdated
}
glog.V(4).Infof("Import stream %s/%s partial=%t error: %v", stream.Namespace, stream.Name, partial, err)
glog.V(4).Infof("Import stream %s/%s partial=%t error: %#+v", stream.Namespace, stream.Name, partial, err)
if apierrs.IsInvalid(err) && client.IsStatusErrorKind(err, "ImageStreamImport") {

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@smarterclayton this uglyness is needed to properly report the import errors to users who:

  1. Create ImageStream that contains multiple tags (typically examples/imagestreams...)
  2. The import fails because the registry used in ImageStream is invalid (for tag or for repository)
  3. The error is then logged into glog.V(4) and burried in server log
  4. User end up with ImageStream that tells you the tags are being imported... forever.

(in addition, if this happen, all other tags in that IS are not imported even though they are valid... but one problem at the time)...

And since the StatusInvalid will not tell us what tag failed specifically you have to guess it from the error message (which sux big time, but I can't figure out better solution).

I would said that this code is just a band-aid for having the import error reported properly (since white-listing registries needs to do this), but we should fix the error reporting in general from the image streams in 1.6.

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Yes, please open a new issue and I will start working on it right after this merges.

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Spawned #13319

@mfojtik
mfojtik force-pushed the registry-whitelist branch from c6fd96b to 13b12ab Compare March 9, 2017 15:16
Comment thread pkg/image/api/validation/validation.go Outdated
glog.V(5).Infof("invalid registry domain format: %s", registry.DomainName)
continue
}
if util.IsWildcardMatch(registryHost, allowedRegistryHost) && registryPort == allowedRegistryPort {

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

So if the whitelist has a benevolent entry with insecure==true and someone wants import a from the repo securely, he won't be allowed to.

Another case this fails is an import from a registry hosted on :443 with invalid certificate - user is forced to use the insecure flag to no avail because the ports won't match here.

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@miminar in that case you will have to add both combinations (secure and insecure) to the whitelist

@mfojtik

mfojtik commented Mar 9, 2017

Copy link
Copy Markdown
Contributor Author

[test]

@mfojtik

mfojtik commented Apr 4, 2017

Copy link
Copy Markdown
Contributor Author

[test]

@mfojtik
mfojtik force-pushed the registry-whitelist branch from b5f7288 to f6da4cf Compare April 4, 2017 08:41
@mfojtik

mfojtik commented Apr 5, 2017

Copy link
Copy Markdown
Contributor Author

[test] one more time

@mfojtik
mfojtik force-pushed the registry-whitelist branch from b9b9f3b to 107e83d Compare April 5, 2017 11:22
@mfojtik

mfojtik commented Apr 5, 2017

Copy link
Copy Markdown
Contributor Author

@smarterclayton @stevekuznetsov i still can't figure out what is wrong on GCE here... it seems like the image tags failed to import (presumably because something prevented them to). I wonder if we have some special master-config for GCE or we use the one that the Origin generates (iow. do we have whitelist or not).

Also I know that I'm annoying with this but it would really help to have master logs from GCE :-/

@mfojtik

mfojtik commented Apr 5, 2017

Copy link
Copy Markdown
Contributor Author

[test]

@soltysh

soltysh commented Apr 5, 2017

Copy link
Copy Markdown
Contributor

@smarterclayton @soltysh support for local registry added:

This LGTM (since I wasn't explicit last time ;))

@smarterclayton

smarterclayton commented Apr 5, 2017 via email

Copy link
Copy Markdown
Contributor

@mfojtik

mfojtik commented Apr 6, 2017

Copy link
Copy Markdown
Contributor Author

gce docker flake [test]

@mfojtik

mfojtik commented Apr 6, 2017

Copy link
Copy Markdown
Contributor Author

[test]

@mfojtik
mfojtik force-pushed the registry-whitelist branch from 107e83d to c058b4d Compare April 6, 2017 12:05
@mfojtik

mfojtik commented Apr 6, 2017

Copy link
Copy Markdown
Contributor Author

@smarterclayton got it... it was actually my fault (missing nil-check)... it reflected on GCE because the master configuration we generate there for some reason does not include the whitelist (which means all images are allowed)...

@mfojtik

mfojtik commented Apr 6, 2017

Copy link
Copy Markdown
Contributor Author

[test] (should pass this time)

@soltysh

soltysh commented Apr 6, 2017

Copy link
Copy Markdown
Contributor

@smarterclayton got it... it was actually my fault (missing nil-check)... it reflected on GCE because the master configuration we generate there for some reason does not include the whitelist (which means all images are allowed)...

IIRC, the configuration we have there is coming from our ansible script, doesn't that needs to be updated to reflect your changes in that case?

@openshift-bot

Copy link
Copy Markdown
Contributor

Evaluated for origin test up to c058b4d

@mfojtik

mfojtik commented Apr 6, 2017

Copy link
Copy Markdown
Contributor Author

@soltysh I kind of like that it tests the "legacy" case where it is not set and the origin in that case should not enforce any whitelist and the legacy behavior is preserved... in fact it helped to discover this bug.

@soltysh

soltysh commented Apr 6, 2017

Copy link
Copy Markdown
Contributor

@mfojtik completely agree, but that causes discrepancy between what we get when running installer manually vs what ansible does for us. Although I wonder which part of the ansible would be causing that. I though that --write-config which I assume is being called by ansible when generating configs should work ootb, but apparently it it not :/

@openshift-bot

Copy link
Copy Markdown
Contributor

@soltysh

soltysh commented Apr 6, 2017

Copy link
Copy Markdown
Contributor

[merge]

@openshift-bot

openshift-bot commented Apr 6, 2017 •

Copy link
Copy Markdown
Contributor

continuous-integration/openshift-jenkins/merge SUCCESS (https://ci.openshift.redhat.com/jenkins/job/test_pull_request_origin/601/) (Image: devenv-rhel7_6119)

@openshift-bot

Copy link
Copy Markdown
Contributor

Evaluated for origin merge up to c058b4d

@openshift-bot
openshift-bot merged commit 4b16943 into openshift:master Apr 6, 2017
@smarterclayton

smarterclayton commented Apr 7, 2017 via email

Copy link
Copy Markdown
Contributor

{DomainName: "gcr.io"},
{DomainName: "quay.io"},
// FIXME: Probably need to have more fine-tuned pattern defined
{DomainName: "*.amazonaws.com"},

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

We should not have added this - this effectively invalidates everything we did to secure this. This means that anyone can go and set a registry up on amazonaws and defeat this protection.

@mfojtik
mfojtik deleted the registry-whitelist branch September 5, 2018 21:08
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

5 participants