-
Outcome
-
Resolution: Unresolved
-
Critical
-
None
-
openshift-4.13, openshift-4.14
-
11% To Do, 11% In Progress, 78% Done
-
False
-
Goal: Managed OpenShift consumers (e.g. ROSA, OSD on AWS) and self-managed OpenShift customers on AWS can rely on layered product operators in the cluster to leverage short lived authentication token via AWS STS to authenticate with the AWS API. The configuration experience to get an operator to do this is streamlined and standardized across all operators.
Background: When components on OpenShift communicate with AWS APIs, they need to authenticate first. This can be done in two ways: a static and long-lived set of credentials generated specifically for the workload ahead of time, or the workload getting permissions to assume a role / policy generated ahead of time, requesting temporary authentication tokens at runtime that are refreshed regularly. In both cases the credentials are associated with the required permissions the workload needs on the AWS API. OpenShift core platform has adopted support for this on AWS with OCPPLAN-5656. OLM-managed operators have so far not seen a structured approach to enablement and configuration.
Benefit for customers: STS is considered more secure because in the event of the token accidentally leaking, the window in which it can be used for exploits is small. In this case, no reconfiguration of the workload is required to get a new token. Whereas with static, long-lived tokens, exploitation can happen over a potentially long period of time if the leakage goes undetected. Changing long-lived tokens when the leakage / exploitation is detected also causes administrative overhead. An OpenShift deployment where both the core platform and optional OLM-managed operators exclusively use short-lived tokens for AWS API authentication is considered part of a strong security posture.
Why is this important now: Customers increasingly prefer STS for API access in their AWS accounts and start to enforce it via policies. A workload / product that doesn't support this typically requires an exception given by customers InfoSec team. Currently the support for this authentication method is fragmented across the layered product portfolio and the catalog of optional, OLM-managed operators. Only a subset support some form of short-lived token usage, but only for a specific cloud provider. The configuration experience to enable this varies between operators and is typically manual. If left unchanged, it could be seen as an adoption barrier. Additionally, Hypershift-based deployments are going to use short-lived token authentication exclusively and will have no first-class support for operators, that do not support it.
Outcomes:
- As a customer of OpenShift layered products, I need to be able to fluidly, reliably and consistently install and use OpenShift layered product Kubernetes Operators into my cluster clusters, while leveraging short-lived token authentication throughout my deployment.
- As a customer of OpenShift on the AWS overall I expect OpenShift as a platform to function equally well with STS as it does with static, long-lived credentials. I expect the same from the Kubernetes Operators under the Red Hat brand (that need to reach AWS APIs) in that tokenized workflows are equally integrated and workable.
- As the managed services, including Hypershift teams, offering a downstream opinionated, supported and managed lifecycle of OpenShift (in the forms of ROSA, ROSA HCP, OSD on AWS etc), the OpenShift platform should have as close as possible, native integration for layered product as we have for the core platform operators when it comes STS
- As the Hypershift team, where the only credential mode for clusters/customers is short-lived token authentication, the Red Hat branded Operators that must reach the AWS API, should be enabled to work with short-lived credentials in a consistent, and automated fashion that allows customer to use those operators as easily as possible, driving the use of layered products.
Current Situation:
- OLM-managed operators today are unable to request cloud credentials via OpenShifts Credential API when installed on a cluster with short-lived authentication enabled. The CloudCredentialOperator component that would be used for this has currently no support for OLM-managed operators.
- On managed Openshift (ROSA, OSD), enabling one of the OLM-managed operators when it is deployed in a managed cluster, customers are required to register the operator with OCM (OpenShift Cluster Manager) before installing it via OperatorHub or directly on the cluster.
- Users are unaware of which operators request credentials
- Users are not warned that operator installation will failÂ
- Users subsequently are unaware why the installation failed
- Operators timeout waiting for credentials
- Users should be informed of steps required for a successful installation
- CloudCredentialOperator (CCO) doesn’t exist in HyperShift as of today
- Any configuration for short-lived token support for OLM-managed operator installation is currently command-line only
Execution Plan:
Some of the below workstreams will be running in parallel. Proper product documentation and QE is part of all of them.
Workstream 1 - CloudCredentialOperator-based flow for OLM-managed operators and AWS STS (OCPBU-559)
- CCO gets a new mode in which it can reconcile STS credential request for OLM-managed operators
- A standardized flow is leveraged to guide users in preparing their AWS IAM policies and roles with permissions that are required for OLM-managed operatorsÂ
- A standardized flow is defined in which users can configure OLM-managed operators to leverage AWS STS
- An example operator is used to demonstrate the end2end functionality
- This will be not be backported
Workstream 3 - STS enablement for critical OLM-managed operators (OCPBU-563)
- based on Workstream 1, the following operators will be enabled to support the standard configuration flow for STS:
- ALB Operator
- EFS Operator
- OADP
- Cluster Logging
- these operators only support this flow on OCP 4.14 or newer
Workstream 6 - Continued STS enablement for OLM-managed operators (OCPBU-568)
- Short-lived token authentication using AWS STS for: 3Scale, RHODS, RHODA, EFA and ACK operators, ODF, ACM, Ansible Automation Platform
- these operators only support this flow on OCP 4.14 or newer
Workstream 8 - Standardized update flow for OLM-managed operators leveraging short-lived token authentication (OCPBU-570)
- A standardized flow is derived to warn the user if during or after an update the required IAM permissions of an OLM-managed operator configured with short-lived token authentication change
- this flow is implemented in the OCP console as well as in the OLM APIs
Workstream 11 - Hypershift-enablement for short-lived token authentication flows with OLM-managed operators (OCPBU-571)
- Hypershift-based clusters are capable of supporting the same flows for short-lived token authentication for OLM-managed operators as ROSA or self-managed OpenShift on AWS using AWS STS
Workstream 12 - Native OLM support for Tokenized Operators for a better User Experience (OCPSTRAT-675)
- provide a UX that requires manual preparation steps by the user and also leads to less code changes required in operators supporting this flow
Open Questions:
- Can we expect CCO to come to HyperShift?
Definition of done:
- Main success scenario - high-level user story (using STS as an example)
- customer creates a ROSA STS or Hypershift cluster (AWS)
- customer wants basic (table-stakes) features such as AWS EFS, OADP or Logging
- customer discovers the cluster is in STS mode and the desired operators are STS-capable
- customer sees necessary tasks for preparing for the operator in OperatorHub from their cluster
- customer prepares AWS IAM/STS roles/policies in anticipation of the Operator they want, using what they get from OperatorHub
- customer's provides a very minimal set of parameters (AWS ARN of role(s) with policy) to the Operator's OperatorHub page
- The cluster can automatically setup the Operator, using the provided tokenized credentials and the Operator functions as expected
- Cluster and Operator upgrades are taken into account and automated
- The above steps 1-7 should apply similarly for Google Cloud and Microsoft Azure Cloud, with their respective token-based workload identity systems.
- Managed OpenShift scenarios - high-level user story
- The same as above, but the ROSA CLI would assist with AWS role/policy creation
- The same as above, but the oc CLI would assist with cloud role/policy management (per respective cloud provider for the cluster)
Desired effect:
- Growth is the acquisition of net new usage of the platform. This can be new workloads not previously able to be supported, new markets not previously considered, or new end users not previously served.
- Retention is maintaining and expanding existing use of the platform. This can be more effective use of tools, competitive pressures, and ease of use improvements.
- Both of growth and retention are the effect of this effort.
- Customers have strict requirements around using only token-based cloud credential systems for workloads in their cloud accounts, which include OpenShift clusters in all forms.
- We gain new customers from both those that have waited for token-based auth/auth from OpenShift and from those that are new to OpenShift, with strict requirements around cloud account access
- We retain customers that are going thru both cloud-native and hybrid-cloud journeys that all inevitably see security requirements driving them towards token-based auth/auth.
- Customers have strict requirements around using only token-based cloud credential systems for workloads in their cloud accounts, which include OpenShift clusters in all forms.
References
- DR-66: Guided operator installs
- Design Document: STS enablement for operators on Managed OpenShift
- Operators & STS
Â
- blocks
-
PROJQUAY-2390 STS protocol for S3 access
- Closed
- is cloned by
-
OCPSTRAT-1509 Tokenized Auth Enablement for OLM-managed Operators on Azure
- New
-
OCPSTRAT-1501 Tokenized Auth Enablement for OLM-managed Operators on GCP
- In Progress
- is depended on by
-
ACM-6424 Support the standardized STS configuration flow via OLM and CCO for ACM
- Backlog
- is related to
-
RFE-6687 Enable WIF support for ACS in GCP
- Rejected
-
RFE-6677 Enable STS support for ACS in AWS
- Rejected
-
OCPSTRAT-605 Ensure compatibility of layered operators for HCP (HyperShift)
- In Progress
- relates to
-
RFE-5592 External DNS operator doesn't work on HCP clusters
- Accepted
-
ACM-1775 Ability for RHACM to consume GCP WIF token
- Closed
-
OCPSTRAT-513 Azure managed identity with Azure AD workload identity for self-managed OpenShift
- Closed
-
OCPSTRAT-469 Install and upgrade OpenShift with GCP Workload Identity
- Closed
- links to