Bug 1387483
Summary: | remove reverse DNS validation in kobo.hub.decorators.validate_worker() | ||
---|---|---|---|
Product: | [Fedora] Fedora | Reporter: | Yuxiang Zhu <yuxzhu> |
Component: | kobo | Assignee: | Daniel Mach <dmach> |
Status: | CLOSED ERRATA | QA Contact: | Fedora Extras Quality Assurance <extras-qa> |
Severity: | unspecified | Docs Contact: | |
Priority: | unspecified | ||
Version: | 26 | CC: | dmach, kdudka |
Target Milestone: | --- | ||
Target Release: | --- | ||
Hardware: | Unspecified | ||
OS: | Unspecified | ||
Whiteboard: | |||
Fixed In Version: | kobo-0.6.0-1.el7 kobo-0.6.0-1.fc26 kobo-0.6.0-1.fc25 kobo-0.6.0-1.el6 kobo-0.6.0-1.fc27 | Doc Type: | If docs needed, set a value |
Doc Text: | Story Points: | --- | |
Clone Of: | Environment: | ||
Last Closed: | 2017-09-26 20:52:30 UTC | Type: | Bug |
Regression: | --- | Mount Type: | --- |
Documentation: | --- | CRM: | |
Verified Versions: | Category: | --- | |
oVirt Team: | --- | RHEL 7.3 requirements from Atomic Host: | |
Cloudforms Team: | --- | Target Upstream Version: | |
Embargoed: |
Description
Yuxiang Zhu
2016-10-21 03:14:03 UTC
We used an entry in /etc/hosts to work around this. Not sure if it covers all the cases though... Any consideration to remove the validation? It will be very helpful to run Kobo based application on Docker or other cloud computing platform. This patch may help. From aa90390785557684e539ab85c68e8446bca5fdc9 Mon Sep 17 00:00:00 2001 From: Rayson zhu <vfreex+git> Date: Fri, 21 Oct 2016 22:50:26 +0800 Subject: [PATCH] remove reverse DNS validation for Kobo worker --- kobo/hub/decorators.py | 5 ----- 1 file changed, 5 deletions(-) diff --git a/kobo/hub/decorators.py b/kobo/hub/decorators.py index 2bc64e5..d54bb11 100644 --- a/kobo/hub/decorators.py +++ b/kobo/hub/decorators.py @@ -16,11 +16,6 @@ def validate_worker(func): if getattr(request, 'worker', None) is None: raise SuspiciousOperation("User doesn't match any worker: %s" % request.user.username) - fqdn = socket.getfqdn(request.META["REMOTE_ADDR"]) - prefix, hostname = request.user.username.split("/", 1) - if hostname != fqdn: - raise SuspiciousOperation("Worker's FQDN (%s) doesn't match username (%s)" % (fqdn, hostname)) - return func(request, *args, **kwargs) _new_func.__name__ = func.__name__ -- 2.7.4 Fixed upstream: https://github.com/release-engineering/kobo/commit/6d83e409dcf56806b433c10012717b3551c69a4f Moving to MODIFIED until I build a new kobo build in koji. (In reply to Daniel Mach from comment #3) > Fixed upstream: > https://github.com/release-engineering/kobo/commit/ > 6d83e409dcf56806b433c10012717b3551c69a4f > > Moving to MODIFIED until I build a new kobo build in koji. Thank you. That'll be very helpful! This bug appears to have been reported against 'rawhide' during the Fedora 26 development cycle. Changing version to '26'. kobo-0.6.0-1.fc27 has been submitted as an update to Fedora 27. https://bodhi.fedoraproject.org/updates/FEDORA-2017-37ed4d4db6 kobo-0.6.0-1.el7 has been submitted as an update to Fedora EPEL 7. https://bodhi.fedoraproject.org/updates/FEDORA-EPEL-2017-0579784f53 kobo-0.6.0-1.fc26 has been submitted as an update to Fedora 26. https://bodhi.fedoraproject.org/updates/FEDORA-2017-6b7dcfe861 kobo-0.6.0-1.el6 has been submitted as an update to Fedora EPEL 6. https://bodhi.fedoraproject.org/updates/FEDORA-EPEL-2017-57639ea44b kobo-0.6.0-1.fc25 has been submitted as an update to Fedora 25. https://bodhi.fedoraproject.org/updates/FEDORA-2017-bc3c16a54f kobo-0.6.0-1.fc25 has been pushed to the Fedora 25 testing repository. If problems still persist, please make note of it in this bug report. See https://fedoraproject.org/wiki/QA:Updates_Testing for instructions on how to install test updates. You can provide feedback for this update here: https://bodhi.fedoraproject.org/updates/FEDORA-2017-bc3c16a54f kobo-0.6.0-1.fc26 has been pushed to the Fedora 26 testing repository. If problems still persist, please make note of it in this bug report. See https://fedoraproject.org/wiki/QA:Updates_Testing for instructions on how to install test updates. You can provide feedback for this update here: https://bodhi.fedoraproject.org/updates/FEDORA-2017-6b7dcfe861 kobo-0.6.0-1.el6 has been pushed to the Fedora EPEL 6 testing repository. If problems still persist, please make note of it in this bug report. See https://fedoraproject.org/wiki/QA:Updates_Testing for instructions on how to install test updates. You can provide feedback for this update here: https://bodhi.fedoraproject.org/updates/FEDORA-EPEL-2017-57639ea44b kobo-0.6.0-1.el7 has been pushed to the Fedora EPEL 7 testing repository. If problems still persist, please make note of it in this bug report. See https://fedoraproject.org/wiki/QA:Updates_Testing for instructions on how to install test updates. You can provide feedback for this update here: https://bodhi.fedoraproject.org/updates/FEDORA-EPEL-2017-0579784f53 kobo-0.6.0-1.fc27 has been pushed to the Fedora 27 testing repository. If problems still persist, please make note of it in this bug report. See https://fedoraproject.org/wiki/QA:Updates_Testing for instructions on how to install test updates. You can provide feedback for this update here: https://bodhi.fedoraproject.org/updates/FEDORA-2017-37ed4d4db6 kobo-0.6.0-1.el7 has been pushed to the Fedora EPEL 7 stable repository. If problems still persist, please make note of it in this bug report. kobo-0.6.0-1.fc26 has been pushed to the Fedora 26 stable repository. If problems still persist, please make note of it in this bug report. kobo-0.6.0-1.fc25 has been pushed to the Fedora 25 stable repository. If problems still persist, please make note of it in this bug report. kobo-0.6.0-1.el6 has been pushed to the Fedora EPEL 6 stable repository. If problems still persist, please make note of it in this bug report. kobo-0.6.0-1.fc27 has been pushed to the Fedora 27 stable repository. If problems still persist, please make note of it in this bug report. |