Skip to content

[FEATURE] SMD group interactions #16

@travisbcotton

Description

@travisbcotton

Short Description
Using:

Version:    0.1.1
Tag:        v0.1.1
Branch:     HEAD
Commit:     b0fd58701163282058d0e6730efa8188be6b6462
Git State:  clean
Date:       2025-03-19T18:08:40Z
Go:         go1.23.4
Compiler:   gc
Build Host: fv-az1660-258
Build User: runner

Managing SMD groups is a little weird using the ochami smd group sub-command.
If I have existing groups and I want to update the memberships I currently have to do the following:

- if group doesn't exist: POST
- if group exists
   - get existing list of members
   - get new list of members
   - do a symmetrical diff
   - DELETE then POST if there is a difference

I don't see a way to update the group membership with going through the above steps.

ochami smd group member set <group> <members> returns:

unsuccessful HTTP status: HTTP/2.0 405 Method Not Allowed: {\"type\":\"about:blank\",\"title\":\"Method Not Allowed\",\"detail\":\"allow GET\",\"status\":405}\n"

ochami smd group update -d@payload.yaml -f yaml just returns the help menu. It doesn't tell me why though.

What I would like to see is a way to update group membership with a single command line call that:

  • Deletes members if they are in the group but not in the new payload
  • Adds members if they are not in the group but in the new payload
  • Leaves members if they are in the existing group and the new payload

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions