GithubHelp home page GithubHelp logo

Comments (5)

rishabhsaha avatar rishabhsaha commented on June 1, 2024

Hi - the secret in the namedvalue pair is encrypted by APIM. So it can’t be published as is. That’s also why it was not part of the initial name value type we had designed. We are still thinking through if keyvault secrets could be supported since it’s a reference.

from apiops.

rishabhsaha avatar rishabhsaha commented on June 1, 2024

@sujithre - do you plan to publish the same secret value which exists in the lower environment in the higher environment? Would key vault be an option? We could even think about having secrets in config.yaml but since it’s checked we wouldn’t recommend doing that.

from apiops.

sujithre avatar sujithre commented on June 1, 2024

Hi Rishabh,
Got your Point
Problem i faced is I have an EventHub Logger. So when i have extracted Logger looks like below
{
"name": "APIMEVentLogger",
"properties": {
"description": "adding a new logger",
"isBuffered": true,
"loggerType": "azureEventHub",
"credentials": {
"name": "apimevents",
"connectionString": "{{Logger-Credentials--CCC}}"
}
}
}

Logger-Credentials--CCC is generated like a secret. I was having trouble in Deploying it
As you said when i converted it into Keyvault i got no Problems at least in Deploying it.

i got a few questions

  1. when i actually put into a key vault and refer it from a named value, when we extract it it looks like below

{
"name": "Secret",
"properties": {
"displayName": "Secret",
"keyVault": {
"secretIdentifier": "https://xxx.vault.azure.net/secrets/FunctionKey"
},
"secret": true,
"tags": []
}
}
Now when i Publish it to a different APIM instance it points to the same Keyvault Is there a way we could Parameterise KEyvault name and Secret Keys?

  1. Can i Create (Publish) EventHub Loggers as well since it is extracting the info?

from apiops.

rishabhsaha avatar rishabhsaha commented on June 1, 2024

Thanks for the additional context and feedback. We are actively working on having the keyvault name-value parameterized. The EventHub logger we’ll add to the backlog.

from apiops.

guythetechie avatar guythetechie commented on June 1, 2024

Added support here.

Sample configuration value would be:

namedValues
  - name: mynamedvalue
    displayName: mynamedvalue
    keyVault:
      identityClientId: Set if Key Vault authentication happens through a user-assigned managed identity
      secretIdentifier: Url for key vault secret (can be versioned if needed).

from apiops.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.