Repository navigation
Description
Describe the feature
User story: As a user, I want all my traffic to be encrypted throughout the Knative routing path, so that any data going over that path is not readable for anybody else and make my environment more secure.
Business justification: Currently containers running as Knative service must communicate using HTTP/1.1 without any encryption, and in case there is encryption this terminates at the knative-serving side rather than at the container level (thus not achieving full end-to-end encryption and failing some security standards). Supporting passthrough/re-encrypt in the ingress for serverless would enable this feature and make customer's environments more secure.
Acceptance Criteria:
GIVEN I have deployed a service using knative
WHEN I have created a certificate to encrypt incoming external traffic
AND created a "secret" and necessary networking configuration
THEN I am accessing my serverless application by using a secure connection that is now trusted by the CA
Things to consider:
- Need to be enabled / enable-able for all Ingress implementations
- Need to cover 3 paths:
- Ingress -> Queue-Proxy when scaled above TargetBurstCapacity extra capacity. If this was the only part implemented, it would prevent scale-to-zero.- Needed for scale-to-zero:
- Ingress -> Activator - Needs the ability to change HTTP headers to record traffic split decision.
- Activator -> Queue-Proxy
-Should we support ONE certificate for all services? - Do individual certificates per service for now.
- Certification rotation can also be used.
- Reencryption or passthrough either would be acceptable.
Implementation tasks for Alpha:
- All Hops Encrypted: Activator serving TLS #12501
- All Hops Encrypted: Queue-Proxy serving TLS #12502
- All Hops Encrypted: Activator uses queue-proxy TLS if available #12503
- All Hops Encrypted: alpha Kourier support for encrypted backends knative-extensions/net-kourier#750
- Support knative-internal-tls in net-contour knative-extensions/net-contour#703
- TODO: integration work on control plane once data plane components are implemented (force activator always in path)
Metadata
Metadata
Assignees
Labels
Type
Projects
- StatusShow more project fieldsIcebox
- StatusShow more project fieldsNo status
Activity
nainaz commentedon Sep 3, 2021
found a similar issue : adding it here : Encrypt traffic on the data-path "natively"
n3wscott commentedon Sep 3, 2021
Our answer for this has always been "sounds like you want to use istio". Is this really a Knative specific feature?
antoineco commentedon Sep 6, 2021
As long as this doesn't get extended to adding support for an ocean of access control schemes, authentication mechanisms, etc. (in other words, sticking with TLS encryption only) I think this could be manageable.
I didn't look into the details, but @slinkydeveloper did experiment with a fully-automated PKI in the context of
control-protocolat https://github.com/knative-sandbox/control-protocol/tree/release-0.25/pkg/certificates. The Kafka channel implementation in the Eventing sandbox uses it already.nainaz commentedon Sep 9, 2021
nainaz commentedon Sep 15, 2021
evankanderson commentedon Sep 21, 2021
There was additional discussion in #11239 that might be worth reading when considering the proposal.
github-actions commentedon Dec 21, 2021
This issue is stale because it has been open for 90 days with no
activity. It will automatically close after 30 more days of
inactivity. Reopen the issue with
/reopen. Mark the issue asfresh by adding the comment
/remove-lifecycle stale.evankanderson commentedon Jan 13, 2022
I believe we have an alpha (and maybe beta) design for this in the Feature Track document along with a list of parallel items for networking WG to engage with upstream gateway-api on supporting TLS to upstream (
backendRef) services.nak3 commentedon Jan 13, 2022
Upstream gateway-api is planning to support the TLS to upstream service by the "extension" for now. They will clarify it by kubernetes-sigs/gateway-api#968
Force activator always in path when activator CA is specified
Force activator always in path when activator CA is specified
Force activator always in path when activator CA is specified
Force activator always in path when activator CA is specified (#12790)
ReToCode commentedon Jan 25, 2023
Hi @evankanderson, @nainaz I'm trying to find out what is left to be done for this feature to complete in alpha. I'm unsure what is meant by the marked sentence. Could you clarify a bit?
Also do we need a tracking issue for net-gateway-api (as soon as the work Kenjiro mentioned is done).
Furthermore, what about net-istio? What should happen if the feature is enabled (also when it will be always on in GA) in case of
Thanks for clarifying.
/cc @nak3
evankanderson commentedon Jan 25, 2023
Hello!
We needed two implementations to consider this a feasible approach.
I believe that @KauzClay has recently wrapped up the contour implementation, giving us this validation, allowing the feature to move to the beta implementation gate. At this point, we'd want to ensure implementation on the remaining plugins, integration testing to ensure consistency, and make a plan for rollout as a default-on feature for a GA release.
I know that
net-gateway-apiwill currently be a problem, as there's no way to indicate through the Gateway API surface that an HTTPRoute backend uses a particular TLS cert, or even that a backend uses TLS.I'll need to verify for Istio in non-mesh mode, but I suspect that setting up a
DestinationRuleis how to do it.ReToCode commentedon Feb 3, 2023
@evankanderson, @nak3 what do you think about this proposal for going forward:
Alpha (disabled by default)
Beta (enabled by default, can be deactivated)
GA (enabled by default, can be deactivated)
nak3 commentedon Feb 6, 2023
If you like, you can link to the following issues.
#12808 is simple but I guess #12821 is not simple so we can handle #12821 as another issue. Sounds good to me other than that.
ReToCode commentedon Feb 14, 2023
Related: #13472
davidhadas commentedon Mar 5, 2023
After an additional review of the status, we identified a series of gaps that we now aim to close.
davidhadas commentedon May 9, 2023
We have established the necessary infrastructure for adding support for a number of trust options:
we also have a future-looking option:
We now start the journey to add support for these options in all data elements of the system. Apparently we will need to modify: