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

feat(vscode): Auto regenerate managed api connection keys #4982

Merged
merged 18 commits into from
Jul 19, 2024

Conversation

JoaquimMalcampo
Copy link
Contributor

@JoaquimMalcampo JoaquimMalcampo commented Jun 14, 2024

  • The commit message follows our guidelines
  • Tests for the changes have been added (for bug fixes/features)
  • Docs have been added / updated (for bug fixes / features)
  • What kind of change does this PR introduce? (Bug fix, feature, docs update, ...)
    This introduces behavior which automatically regenerates managed api connection keys in the local settings file during project load and before flow execution.

  • What is the current behavior? (You can also link to an open issue here)
    Currently, managed api connection keys expire after 7 days of creation. There is no gesture or behavior to renew these connection keys.

  • What is the new behavior (if this is a feature change)?
    The connection keys would be checked during project load and before flow execution and then regenerated if the key is expired or if its within the buffer of expiry. This is automatic and does not alert the customer when these keys are regerated.

  • Does this PR introduce a breaking change? (What changes might users need to make in their application due to this PR?)
    No.

  • Please Include Screenshots or Videos of the intended change:
    WIP

@hartra344 hartra344 linked an issue Jun 14, 2024 that may be closed by this pull request
@hartra344
Copy link
Contributor

Is this ready to merge?

@JoaquimMalcampo
Copy link
Contributor Author

unit tests still in progress

Joaquim Malcampo and others added 7 commits July 16, 2024 13:11
* introducing connectionKeys.ts for auto regenerate keys

* removed comment in pickFuncProcess

* jwtHelper compatible without atob and local setting file access fixes

* add logic for resolving connection ids

* added function to format settings before api call

* updated jwtHelper and workflow services and their imports, added unit tests and logging

* update changes to connection.ts

* changed workflow to export functions and enabled duration telemetry

* fixed typo in workflow

* fixed workflow utility

---------

Co-authored-by: Joaquim Malcampo <jmalcampo@microsoft.com>
@ccastrotrejo ccastrotrejo merged commit c31d440 into main Jul 19, 2024
11 of 12 checks passed
@ccastrotrejo ccastrotrejo deleted the jmalcampo/connectionKey-regen branch July 19, 2024 20:41
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Renew Connection Keys When Debugging Locally
4 participants