Comments (5)
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.
@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.
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
- 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?
- Can i Create (Publish) EventHub Loggers as well since it is extracting the info?
from apiops.
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.
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)
- [BUG] HOT 1
- [FEATURE REQ/BUG?] Allow extractor to exclude certain components HOT 1
- [FEATURE REQ] Generate a default configuration file after running extractor HOT 4
- [BUG] Publisher failed -Unable to import API from WSDL HOT 13
- [BUG] HOT 21
- [BUG] Importing Policy Fragments fail if they use certificates that have not been imported manually before into the APIM HOT 1
- [BUG] Extractor pull request shows date and partial-time formats in wrong format HOT 2
- [BUG] Named values aren't deleted HOT 2
- [BUG] Operation policies aren't deleted HOT 4
- [BUG] Publisher Pipeline Validation Failure HOT 5
- [FEATURE REQ] - Run publisher from artifact folder HOT 5
- exclude products HOT 2
- [FEATURE REQ] Workspaces Support HOT 9
- Backend url is overwritten when I only update the specification.yaml file HOT 8
- [BUG] Publisher pipeline fails when using configuration files: HTTP request to URI failed with status code 400. Content is '{"error":{"code":"ValidationError","message":"Invalid payload format. Contract should have 'properties' specified.","details":null}}'. HOT 1
- [FEATURE REQ] Variable SERVICE_CONNECTION_NAME as a template parameter HOT 1
- [BUG] Can't use configuration to overwrite global policy. HOT 10
- [BUG] HOT 1
- [Bug] SOAP API inconsistencies in specification between import/extract/publish HOT 2
- serviceUrl not updating in APIM [BUG] HOT 1
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from apiops.