{"id":18637020,"url":"https://github.com/openshift/cluster-authentication-operator","last_synced_at":"2025-04-04T08:08:55.942Z","repository":{"id":33675867,"uuid":"160205772","full_name":"openshift/cluster-authentication-operator","owner":"openshift","description":"OpenShift operator for the top level Authentication and OAuth configs.","archived":false,"fork":false,"pushed_at":"2025-03-27T15:08:34.000Z","size":86518,"stargazers_count":49,"open_issues_count":20,"forks_count":101,"subscribers_count":12,"default_branch":"master","last_synced_at":"2025-03-28T07:08:44.067Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":"","language":"Go","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"apache-2.0","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/openshift.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null}},"created_at":"2018-12-03T14:41:56.000Z","updated_at":"2025-03-27T13:24:49.000Z","dependencies_parsed_at":"2023-10-26T14:32:44.808Z","dependency_job_id":"33f3ae0e-aa46-423b-8203-700bf3ada2f1","html_url":"https://github.com/openshift/cluster-authentication-operator","commit_stats":{"total_commits":776,"total_committers":60,"mean_commits":"12.933333333333334","dds":0.7190721649484536,"last_synced_commit":"75c7842973cbeccaf98ec4f8102093f688278eca"},"previous_names":["openshift/cluster-osin-operator"],"tags_count":2,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/openshift%2Fcluster-authentication-operator","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/openshift%2Fcluster-authentication-operator/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/openshift%2Fcluster-authentication-operator/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/openshift%2Fcluster-authentication-operator/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/openshift","download_url":"https://codeload.github.com/openshift/cluster-authentication-operator/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":247142066,"owners_count":20890652,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":[],"created_at":"2024-11-07T05:32:40.721Z","updated_at":"2025-04-04T08:08:55.911Z","avatar_url":"https://github.com/openshift.png","language":"Go","readme":"# cluster-authentication-operator\nThe authentication operator is an \n[OpenShift ClusterOperator](https://github.com/openshift/enhancements/blob/master/enhancements/dev-guide/operators.md#what-is-an-openshift-clusteroperator).    \nIt installs and maintains the Authentication [Custom Resource](https://kubernetes.io/docs/concepts/extend-kubernetes/api-extension/custom-resources/) in a cluster and can be viewed with:     \n```\noc get clusteroperator authentication -o yaml\n```\n\nThe [Custom Resource Definition](https://kubernetes.io/docs/concepts/extend-kubernetes/api-extension/custom-resources/#customresourcedefinitions)\n`authentications.operator.openshift.io`    \ncan be viewed in a cluster with:\n\n```console\n$ oc get crd authentications.operator.openshift.io -o yaml\n```\n\nMany OpenShift ClusterOperators share common build, test, deployment, and update methods.    \nFor more information about how to build, deploy, test, update, and develop OpenShift ClusterOperators, see      \n[OpenShift ClusterOperator and Operand Developer Document](https://github.com/openshift/enhancements/blob/master/dev-guide/operators.md#how-do-i-buildupdateverifyrun-unit-tests)\n\nThis section explains how to deploy OpenShift with your test cluster-authentication-operator image:        \n[Testing a ClusterOperator/Operand image in a cluster](https://github.com/openshift/enhancements/blob/master/dev-guide/operators.md#how-can-i-test-changes-to-an-openshift-operatoroperandrelease-component)\n\n\n## Add a basic IdP to test your stuff\nThe most common identity provider for demoing and testing is the HTPasswd IdP.\n\nTo set it up, take the following steps:\n\n1. Create a new htpasswd file\n```\n$ htpasswd -bBc /tmp/htpasswd testuser testpasswd\n```\n2. (optional) Add more users\n```\n$ htpasswd -bB /tmp/htpasswd testuser2 differentpassword\n```\n3. Create a secret from that htpasswd in the `openshift-config` namespace\n```\noc create secret generic myhtpasswdidp-secret -n openshift-config --from-file=/tmp/htpasswd\n```\n4. Configure the OAuth server to use the HTPasswd IdP from the secret by editing the spec of the cluster-wide OAuth/cluster object so that it looks like the one in this example:\n```\napiVersion: config.openshift.io/v1\nkind: OAuth\nmetadata:\n  name: cluster\nspec:\n  identityProviders:\n  - name: htpassidp\n    type: HTPasswd\n    htpasswd:\n      fileData:\n        name: myhtpasswdidp-secret\n```\n5. The operator will now restart the OAuth server deployment and mount the new config\n6. When the operator is available again (`oc get clusteroperator authentication`), you should be able to log in:\n```\noc login -u testuser -p testpasswd\n```\n","funding_links":[],"categories":[],"sub_categories":[],"project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fopenshift%2Fcluster-authentication-operator","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fopenshift%2Fcluster-authentication-operator","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fopenshift%2Fcluster-authentication-operator/lists"}