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

chore: add configurable posix claims fields to master config [RM-398] #9690

Merged
merged 11 commits into from
Jul 29, 2024

Conversation

kkunapuli
Copy link
Contributor

@kkunapuli kkunapuli commented Jul 22, 2024

Ticket

RM-398

Description

Add the following fields to the master config, for saml and oidc:

  • Agent UID
  • Agent GID
  • Agent User Name
  • Agent Group Name

For now, these fields are unused. Docs will be updated once the fields have an impact.

Test Plan

Checklist

  • Changes have been manually QA'd
  • New features have been approved by the corresponding PM
  • User-facing API changes have the "User-facing API Change" label
  • Release notes have been added as a separate file under docs/release-notes/
    See Release Note for details.
  • Licenses have been included for new code which was copied and/or modified from any external code

@cla-bot cla-bot bot added the cla-signed label Jul 22, 2024
Copy link

netlify bot commented Jul 22, 2024

Deploy Preview for determined-ui canceled.

Name Link
🔨 Latest commit 27205bb
🔍 Latest deploy log https://app.netlify.com/sites/determined-ui/deploys/66a148f357d30c0008b11e61

Copy link

codecov bot commented Jul 22, 2024

Codecov Report

Attention: Patch coverage is 0% with 7 lines in your changes missing coverage. Please review.

Project coverage is 53.53%. Comparing base (769d600) to head (27205bb).

Additional details and impacted files
@@            Coverage Diff             @@
##             main    #9690      +/-   ##
==========================================
- Coverage   53.54%   53.53%   -0.01%     
==========================================
  Files        1256     1256              
  Lines      152910   152914       +4     
  Branches     3297     3296       -1     
==========================================
- Hits        81873    81870       -3     
- Misses      70887    70894       +7     
  Partials      150      150              
Flag Coverage Δ
backend 44.74% <0.00%> (-0.01%) ⬇️
harness 72.84% <ø> (ø)
web 52.03% <ø> (ø)

Flags with carried forward coverage won't be shown. Click here to find out more.

Files Coverage Δ
master/internal/config/oidc_config.go 50.00% <ø> (ø)
master/internal/config/saml_config.go 20.00% <ø> (ø)
master/internal/plugin/saml/service.go 20.25% <0.00%> (-0.53%) ⬇️

... and 3 files with indirect coverage changes

@kkunapuli kkunapuli changed the title save chore: add configurable posix claims fields to master config [RM-398] Jul 22, 2024
@kkunapuli kkunapuli marked this pull request as ready for review July 22, 2024 20:28
@kkunapuli kkunapuli requested a review from a team as a code owner July 22, 2024 20:28
@kkunapuli kkunapuli requested review from carolinaecalderon and corban-beaird and removed request for carolinaecalderon July 22, 2024 20:28
AgentUID int `json:"agent_uid"`
AgentGID int `json:"agent_gid"`
AgentUserName string `json:"agent_user_name"`
AgentGroupName string `json:"agent_group_name"`
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

nit: Could we instead make these match GroupAttributeName & DisplayNameAttributeName, that way it's clear that these aren't the values for these fields, but instead the name of the attribute that can be passed in. Maybe something along the lines of AgentUIDAttributeName?

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Absolutely! I was wondering about the naming; what is the meaning of AttributeName? Is it kinda like a "key" in a key/value pair?

Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Yep exactly!

Copy link
Contributor

@corban-beaird corban-beaird left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

One small naming nit, but besides that looks solid! Thank you so much for your work on this!

@kkunapuli kkunapuli merged commit 61bc7bb into main Jul 29, 2024
76 of 94 checks passed
@kkunapuli kkunapuli deleted the kunapuli/posix-master-config branch July 29, 2024 19:12
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants