Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Rancher - Account (User) #16

Open
dbones opened this issue Jul 26, 2022 · 4 comments
Open

Rancher - Account (User) #16

dbones opened this issue Jul 26, 2022 · 4 comments

Comments

@dbones
Copy link
Member

dbones commented Jul 26, 2022

Rancher uses are automatically added via the github integration

we will need a away to query for them though

@dbones dbones moved this from 📋 Backlog to 🔖 Ready in dev.lab backlog Jul 26, 2022
@dbones dbones moved this from 🔖 Ready to 🏗 In progress in dev.lab backlog Jul 26, 2022
@dbones
Copy link
Member Author

dbones commented Jul 26, 2022

apiVersion: management.cattle.io/v3
description: ""
displayName: Dave R.
kind: User
metadata:
  annotations:
    authz.management.cattle.io/creator-role-bindings: '{"created":["user"],"required":["user"]}'
    lifecycle.cattle.io/create.mgmt-auth-users-controller: "true"
  finalizers:
  - controller.cattle.io/mgmt-auth-users-controller
  labels:
    CTKN8Q3LC9FNASR5E8T2UBPH70PJGD1P: hashed-principal-name
  name: u-whzq6t3pkh
principalIds:
- github_user://183822
- local://u-whzq6t3pkh

note that the principal is not in the spec or status

@dbones dbones added this to the v1 milestone Jul 26, 2022
@dbones
Copy link
Member Author

dbones commented Sep 29, 2022

note that we cannot QUERY for User or UserAttribute resources

will implement a controller so we can cache the info, and be done with it

@dbones
Copy link
Member Author

dbones commented Sep 29, 2022

ExtraByProvider:
  github:
    principalid:
    - github_user://15765462
    username:
    - dev-tu
  local:
    principalid:
    - local://user-xasdsfqld
    username:
    - admin
GroupPrincipals:
  activedirectory:
    Items: null
  adfs:
    Items: null
  azuread:
    Items: null
  freeipa:
    Items: null
  github:
    Items:
    - displayName: fox-in-the-lab
      loginName: fox-in-the-lab
      memberOf: true
      metadata:
        creationTimestamp: null
        name: github_org://54006669
      principalType: group
      profilePicture: https://avatars.githubusercontent.com/u/54006669?v=4
      provider: github
    - displayName: archive
      loginName: archive
      memberOf: true
      metadata:
        creationTimestamp: null
        name: github_team://6599990
      principalType: group
      profilePicture: https://avatars.githubusercontent.com/u/54006669?v=4
      provider: github
    - displayName: galaxy
      loginName: galaxy
      memberOf: true
      metadata:
        creationTimestamp: null
        name: github_team://6609853
      principalType: group
      profilePicture: https://avatars.githubusercontent.com/u/54006669?v=4
      provider: github
    - displayName: galaxy-guest
      loginName: galaxy-guest
      memberOf: true
      metadata:
        creationTimestamp: null
        name: github_team://6609854
      principalType: group
      profilePicture: https://avatars.githubusercontent.com/u/54006669?v=4
      provider: github
    - displayName: in-the-lab
      loginName: in-the-lab
      memberOf: true
      metadata:
        creationTimestamp: null
        name: github_team://6599991
      principalType: group
      profilePicture: https://avatars.githubusercontent.com/u/54006669?v=4
      provider: github
    - displayName: platform
      loginName: platform
      memberOf: true
      metadata:
        creationTimestamp: null
        name: github_team://6600567
      principalType: group
      profilePicture: https://avatars.githubusercontent.com/u/54006669?v=4
      provider: github
    - displayName: platform-guest
      loginName: platform-guest
      memberOf: true
      metadata:
        creationTimestamp: null
        name: github_team://6600566
      principalType: group
      profilePicture: https://avatars.githubusercontent.com/u/54006669?v=4
      provider: github
  googleoauth:
    Items: null
  keycloak:
    Items: null
  keycloakoidc:
    Items: null
  local:
    Items: null
  oidc:
    Items: null
  okta:
    Items: null
  openldap:
    Items: null
  ping:
    Items: null
  shibboleth:
    Items: null
LastRefresh: "2022-09-29T20:23:34Z"
NeedsRefresh: false
UserName: ""
apiVersion: management.cattle.io/v3
kind: UserAttribute
metadata:
  creationTimestamp: "2022-09-13T00:14:31Z"
  generation: 205
  labels:
    cattle.io/creator: norman
  name: user-xxqld
  ownerReferences:
  - apiVersion: management.cattle.io/v3
    kind: User
    name: user-xxqld
    uid: aa9af792-6c1d-a6a3144542a6
  resourceVersion: "153630253"
  uid: 214992-ea0c791cdb5b

@dbones dbones moved this from 🏗 In progress to 👀 In review in dev.lab backlog Sep 30, 2022
@dbones dbones moved this from 👀 In review to 🏗 In progress in dev.lab backlog Oct 23, 2022
@dbones
Copy link
Member Author

dbones commented Oct 23, 2022

odd thing the UserAttribute did not work with the ExtraByProvider

now using the Rancher User and its principal IDs

Lab Account

Image

Internal Github User

Image

Internal Rancher User

Image

@dbones dbones moved this from 🏗 In progress to 👀 In review in dev.lab backlog Oct 24, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
Status: 👀 In review
Development

No branches or pull requests

1 participant