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

Create DockerWhitelist class #3860

Merged
merged 4 commits into from
Apr 26, 2019
Merged

Create DockerWhitelist class #3860

merged 4 commits into from
Apr 26, 2019

Conversation

Krigpl
Copy link
Contributor

@Krigpl Krigpl commented Feb 7, 2019

Just per repository since tags are mutable so it's not secure in this sense. Alternatively, we can use image IDs which are not user-friendly.

@ghost ghost assigned Krigpl Feb 7, 2019
@ghost ghost added the in progress label Feb 7, 2019
@codecov
Copy link

codecov bot commented Mar 25, 2019

Codecov Report

❗ No coverage uploaded for pull request base (epic/env_refactor@59534a1). Click here to learn what that means.
The diff coverage is 96.29%.

@@                 Coverage Diff                  @@
##             epic/env_refactor    #3860   +/-   ##
====================================================
  Coverage                     ?   88.82%           
====================================================
  Files                        ?      221           
  Lines                        ?    19227           
  Branches                     ?        0           
====================================================
  Hits                         ?    17078           
  Misses                       ?     2149           
  Partials                     ?        0

@Wiezzel Wiezzel force-pushed the docker_whitelist branch from 0a1772b to bce0e2a Compare April 5, 2019 12:46
@ghost ghost assigned Wiezzel Apr 5, 2019
@Wiezzel Wiezzel force-pushed the docker_whitelist branch from bce0e2a to 62f3321 Compare April 8, 2019 08:17
@Krigpl Krigpl requested a review from Wiezzel April 24, 2019 13:46
@Krigpl Krigpl changed the base branch from develop to epic/env_refactor April 24, 2019 13:46
Krigpl and others added 3 commits April 24, 2019 15:48
* Updated schema version to 26
* Insert 'golemfactory' by default into the database
* Changed is_whitelisted() to accept image_name which seems more
  convenient to use
@Krigpl Krigpl force-pushed the docker_whitelist branch from 95e9bb3 to 159b454 Compare April 24, 2019 13:50
@@ -309,6 +310,12 @@ def test_env_disabled(self):
with self.assertRaises(ValueError):
self.env.install_prerequisites(prereqs)

def _patch_whitelist(self, return_value):
# Has to use twisted's patch because standard one doesn't work with
# Deferreds very well
Copy link

Choose a reason for hiding this comment

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

You could have used the same approach as I did with local_client in test_pull_image_error but this looks just as good.

@Krigpl Krigpl merged commit 0e91923 into epic/env_refactor Apr 26, 2019
@ghost ghost removed the in progress label Apr 26, 2019
@Krigpl Krigpl deleted the docker_whitelist branch April 26, 2019 08:55
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.

3 participants