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

[FEATURE REQ] Backends Credentials Specified in Config Publisher Yaml file #588

Closed
zcarroll4 opened this issue Jul 17, 2024 · 5 comments
Closed
Labels
question Further information is requested

Comments

@zcarroll4
Copy link
Contributor

zcarroll4 commented Jul 17, 2024

Please describe the feature.

Can we specify the backend's headers within the publisher configuration yaml files? Similar to how the example displays defining the credentials for the loggers?

Copy link

  Thank you for opening this issue! Please be patient while we will look into it and get back to you as this is an open source project. In the meantime make sure you take a look at the [closed issues](https://github.com/Azure/apiops/issues?q=is%3Aissue+is%3Aclosed) in case your question has already been answered. Don't forget to provide any additional information if needed (e.g. scrubbed logs, detailed feature requests,etc.).
  Whenever it's feasible, please don't hesitate to send a Pull Request (PR) our way. We'd greatly appreciate it, and we'll gladly assess and incorporate your changes.

@guythetechie
Copy link
Contributor

@zcarroll4 - the publisher configuration YAML should support most options in the REST API.

Have you tried something like this?

backends:
 - name: mybackend
   properties:
     credentials:
       ...etc

Here is the credentials object that the API expects.

@waelkdouh waelkdouh added the question Further information is requested label Jul 18, 2024
@zcarroll4
Copy link
Contributor Author

@zcarroll4 - the publisher configuration YAML should support most options in the REST API.

Have you tried something like this?

backends:

 - name: mybackend

   properties:

     credentials:

       ...etc

Here is the credentials object that the API expects.

This is exactly what I was looking for, I'll take a look at that wiki page tomorrow and test again. And yeah I tried something similar to how the logger syntax was but didn't have any luck yet.

@waelkdouh
Copy link
Contributor

@zcarroll4 it would be great if you can post a scrubbed sample here for future references once you get a successful run.

@zcarroll4
Copy link
Contributor Author

zcarroll4 commented Jul 18, 2024

backends:
  - name:FUNC-APP-TX
    properties:
      url: "https://****************.azurewebsites.us/api"
      resourceid: "https://***********************/subscriptions/******************/resourceGroups/********/providers/Microsoft.Web/sites/*************"      
      credentials:
        header: 
          "HEADER-NAME-1": [
            "**************************************"
          ]
          "HEADER-NAME-2": [
            "{{INSERT SAVED NAME VALUE}}"
          ]
      

github-merge-queue bot pushed a commit that referenced this issue Jul 18, 2024
Specifiy Backend Credentials in Example Publisher Config #588
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
question Further information is requested
Projects
None yet
Development

No branches or pull requests

3 participants