Skip to content
This repository was archived by the owner on Jul 31, 2021. It is now read-only.
This repository was archived by the owner on Jul 31, 2021. It is now read-only.

Library support for leaving enabled_clients on connections unchanged #125

Description

@emsearcy

Opening to increase visibility of auth0/auth0-deploy-cli#207, after I spent a few hours trying to solve this before I stumbled on that.

Expected behavior (as somebody who's been using auth0-deploy-cli for years): deploying connection attributes (such as from a json file in auth-deploy-cli), without an enabled_clients attribute would act the same as the PATCH behavior (no change to enabled clients)

Actual behavior: all clients are disabled

#86 was closed/rejected as changing the default behavior, which still leaves users with no solution...

  • Handling enabled_clients differently between databases and connections is confusing
  • By implicitly assuming "enabled_clients: []" in the passed attributes for connections, the library acts differently than corresponding raw PATCH behavior for just this resource ... which is confusing
  • There is no possible way to deploy connections through this library and leave the enabled_clients parameter unchanged
  • Why somebody would have a connection with no clients in the first place I don't really understand, but at the very least, there are ways to address rolling out a change like this, such as outputting warnings that the behavior will change in an upcoming major version release, supporting a flag to opt in to that behavior early, etc. And it's not like changing from an implicit [] to "no change" would actually change anything, as though it would enable connections immediately (maybe some people are relying on it to disable connections enabled when using the tenant setting "Enable Application Connections" ... but again, this assumes that they had it set up as a connection with no clients—if it had clients, it would be an explicit attribute already...

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