Bug 1528461 - Once a route is created, the TLS section becomes immutable
Summary: Once a route is created, the TLS section becomes immutable
Keywords:
Status: CLOSED DUPLICATE of bug 1524707
Alias: None
Product: OpenShift Container Platform
Classification: Red Hat
Component: Networking
Version: 3.6.0
Hardware: Unspecified
OS: Unspecified
high
high
Target Milestone: ---
: ---
Assignee: Rajat Chopra
QA Contact: zhaozhanqi
URL:
Whiteboard:
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2017-12-21 22:24 UTC by Eric Jones
Modified: 2022-08-04 22:20 UTC (History)
2 users (show)

Fixed In Version:
Doc Type: If docs needed, set a value
Doc Text:
Clone Of:
Environment:
Last Closed: 2018-01-18 22:22:09 UTC
Target Upstream Version:
Embargoed:


Attachments (Terms of Use)

Description Eric Jones 2017-12-21 22:24:59 UTC
Description of problem:
Once a route is created, it cannot be updated to add a certificate (and therefore secure the route) by anything less than a cluster-admin. The error returned is:

An error occurred updating route test. Reason: Route "test" is invalid: spec.tls: Invalid value: route.TLSConfig{Termination:"edge", Certificate:"-----BEGIN CERTIFICATE-----\n...\n-----END CERTIFICATE-----", Key:"-----BEGIN CERTIFICATE-----\n...\n-----END CERTIFICATE-----", CACertificate:"-----BEGIN CERTIFICATE-----\n...\n-----END CERTIFICATE-----", DestinationCACertificate:"", InsecureEdgeTerminationPolicy:""}: field is immutable


Version-Release number of selected component (if applicable):
3.6

How reproducible:
100%

Steps to Reproduce:
1. create an app with a route
2. edit the route to secure and add certificates


Actual results:
An error occurred updating route test. Reason: Route "test" is invalid: spec.tls: Invalid value: route.TLSConfig{Termination:"edge", Certificate:"-----BEGIN CERTIFICATE-----\n...\n-----END CERTIFICATE-----", Key:"-----BEGIN CERTIFICATE-----\n...\n-----END CERTIFICATE-----", CACertificate:"-----BEGIN CERTIFICATE-----\n...\n-----END CERTIFICATE-----", DestinationCACertificate:"", InsecureEdgeTerminationPolicy:""}: field is immutable


Expected results:
Route updated successfully

Additional info:
Similar to bz:
https://bugzilla.redhat.com/show_bug.cgi?id=1524707

Comment 1 Rajat Chopra 2018-01-18 22:22:09 UTC
Will be addressed in bz: https://bugzilla.redhat.com/show_bug.cgi?id=1524707

*** This bug has been marked as a duplicate of bug 1524707 ***


Note You need to log in before you can comment on or make changes to this bug.