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

CertOauth UI Problems #6305

Open
cd1zz opened this issue Dec 24, 2024 · 5 comments
Open

CertOauth UI Problems #6305

cd1zz opened this issue Dec 24, 2024 · 5 comments
Assignees

Comments

@cd1zz
Copy link

cd1zz commented Dec 24, 2024

Describe the Bug with repro steps

  1. Create a logic app
  2. Add the Security Copilot "Submit a prompt" action.
  3. Try to add "Client Certificate Auth"
  4. Receive an error like:

Failed to create connection: {"error":{"code":"BadRequest","message":"{\"Code\":\"\",\"Message\":\"clientCertificate parameter was type String, expected Newtonsoft.Json.Linq.JObject.\",\"Target\":null,\"Details\":[],\"Innererror\":null}"}}

or this one:

{"error":{"code":"ApiConnectionIsInConflictState","message":"The api connection 'securitycopilot-8' is being cleaned up. Please try again later or use different connection name."}}

I have tried base64 encoding a PFX, pub cert, etc. but receive various errors. I have also tried various JSON structures as it seems like it's expecting that.

It seems somewhat similar to #2875 where I wonder if some parameters are missing?

I have also tried using "secrets" as defined in the app registration but that also fails.

Image

What type of Logic App Is this happening in?

Consumption (Portal)

Which operating system are you using?

Windows

Did you refer to the TSG before filing this issue? https://aka.ms/lauxtsg

Yes

Workflow JSON

Screenshots or Videos

No response

Browser

Chrome, and Edge

Additional context

No response

@takyyon
Copy link
Contributor

takyyon commented Dec 27, 2024

@rllyy97 Do you think you could take a look at this? From the error, it seems like we are passing parameter in a different format?

@rllyy97
Copy link
Contributor

rllyy97 commented Dec 30, 2024

Hi @cd1zz thanks for reporting your issue. From your two error messages, the second is just a result of the first request failing. When the first fails during creation we start the process to delete the errored connection, and it sometimes leads to id overlap just with how the backend processes things.
For the first error I will do some investigation to see what's up, I have not used this connector before, nor have I seen this error before.

@hartra344
Copy link
Contributor

Currently Cert Auth isn't supported as an Auth Type in Logic Apps. It's something we can add support for in the future so I'm flagging this as feature request. We generally suggest using managed identity in places where you would use cert auth. Some connectors also support Cert Auth though to provide properly secure solutions for Power Apps and Power Automate.

@cd1zz
Copy link
Author

cd1zz commented Jan 22, 2025 via email

@hartra344
Copy link
Contributor

Looks like it's not but it should be. I'll raise this to the connector owner to add support.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

4 participants