Project

General

Profile

Actions

Idea #20663

closed

Configuration to limit resources managed by arvados-login-sync

Added by Brett Smith 11 months ago. Updated 9 months ago.

Status:
Resolved
Priority:
Normal
Assigned To:
Category:
Deployment
Start date:
06/22/2023
Due date:
Story points:
2.0
Release relationship:
Auto

Description

arvados-login-sync is willing to modify the following resources:

  • User accounts
  • Group additions
  • Group removals
  • User SSH authorized keys
  • User Arvados API credentials

This is very convenient if you have no other system management tools, but many organizations have other ways to manage these resources, and do not want arvados-login-sync interfering with their existing stacks. It should be possible to configure arvados-login-sync to manage a subset of these resources.

Proposed solution:

  • Arvados configuration grows a setting that lists dedicated keys representing what resources arvados-login-sync is allowed to manage. The default is all of them, for backwards compatibility.
  • This configuration is published through the API server.
  • arvados-login-sync reads this configuration from the API server.
  • If the configuration says arvados-login-sync is not allowed to manage a resource, then it does not take any action that might modify that resource. It assumes that another tool is managing that.
  • If arvados-login-sync cannot do a management task that it should do but cannot because of missing system resources, it logs that fact and does not make any changes associated with that user account. For example, if arvados-login-sync is configured to manage SSH keys and API tokens, and these resources exist for a user+VM but that user does not exist on the VM, it logs the fact that it cannot manage a nonexistent user and skips it.

Looking ahead a bit: the reason to make this configuration available through the API is so that client tools can adapt their management interfaces to match. For example, if we do this, there can be a follow-up story so that Workbench 2 does not present management UI for resources that are not managed by arvados-login-sync.


Subtasks 1 (0 open1 closed)

Task #20670: Review 20663-login-sync-configResolvedLucas Di Pentima06/22/2023Actions
Actions

Also available in: Atom PDF