We are currently set path of properties file which contains secret/access key for Credentials File for AWSCredentialsProviderControlerService . Issue, is we are changing properties path for prod and non prod each time we run nifi workflow. trying to come up no change on Configuration on Credential File path, so that access/secret key would be read regardless of prod and non prod. Since credential file wont support Nifi Expresion language, trying to make use of ACCESS KEY/SECRET properties ${ENV:equalsIgnoreCase("prod"):ifElse(${ACESS_PROD},${ACESS_NONPROD})} Issue we are facing, we are not able to store these access key/secret keys to the registry. Hence unable to implement this change. Is there any way to read access/secret key regardless of environment in Nifi. Curently we are using 1 property file for non prod nifi and 2nd property file for prod properties. In this set up, manually need to changed to credential file path when switching from prod to non prod. Trying to seamlessly work without changing path of credential file. Is there any way to make this happen?
Nifi: How to read access/secret key for AWSCredentialsProviderControlerService independent of environment
1.2k Views Asked by Samjas Subair At
1
There are 1 best solutions below
Related Questions in APACHE-NIFI
- HTTP Error 404 when accessing nifi
- Only Sensitive values IN GetFile Processor?
- NiFi-1.0 - content_repo & flowfile_repo
- Best practices to handle errors in NIFI
- org.apache.nifi.bootstrap.Command Apache NiFi is not running
- ExecutionScript output two different flowfiles NIFI
- How to configure Apache NiFi for a Kerberized Hadoop Cluster
- Apache Nifi - get the file attributes and construct the json through custom processor
- How to save all entities in nifi ui into template using rest api?
- Remote NiFi input ports are not exposed
- Nifi executeprocess processor
- Access to queue attributes?
- NIFI JSON Jolt value mapping for keys
- How to create snippetID for all the processors,processgroups in the Entire UI using restapi in c#
- Migrate Dataflow NIFI
Related Questions in SECRET-KEY
- A few questions about md5 collision in production
- Need a Python code to convert a secret key to base64 encoded
- DEPRECATION WARNING in rails 4
- Encypting on one server and decrypting on another using .NET
- JWT Tokens global + private secret
- S3 upload directly in JavaScript
- what kind of attack can be work by using two different secret key
- Why is a SecretKeySpec needed when deriving a key from a password in Java?
- How to pass shell environment variable to Supervisor program?
- How to brute force JWT token for the sercret?
- How to use the secret uri to get the secret value stored in the azure keyvault?
- Deploy C# client application (S3) with Amazon AWS secret key?
- when you have secret key in your project, how can pushing to GitHub be possible?
- how do I pass a predetermined value as secretkey to the keystore
- why does secret management tool SecretHub work locally but not in heroku production?
Related Questions in ACCESS-KEYS
- AccessKey Property not worked in Mozila firefox
- Access Key vs Hotkey
- Nifi: How to read access/secret key for AWSCredentialsProviderControlerService independent of environment
- accesskey VS navigator keyboard shortcut
- button onclick="" vs $(document).on("click",...)
- Is there an alternative to using access keys to authenticate a mobile application to invoke an AWS Lambda function?
- Prism + MVVM + Access Keys + UpdateSourceTrigger="LostFocus" -- This doesn't let me save an updated textbox without first losing focus
- Different between access key and Shared Access Signature
- Cannot access storage table with the azure application which is having owner access
- Accesskey in shadow-root element doesn't work in Firefox
- How to use aws access and secret keys with aws sqs sdk v3 for angular?
- HTML accesskey 'e' not working in Chrome
- Azure: CloudQueue and security, put a Access Key into a CloudQueueMessage
- Access keys not working inside popup (WPF)
- How to filter on usernames using custodian iam-user resource?
Related Questions in AWS-CREDENTIALS
- How to make Terraform to read AWS Credentials file?
- Nifi: How to read access/secret key for AWSCredentialsProviderControlerService independent of environment
- AWS Credential Error in Runtime using JavaScript AWS SDK v2.784.0
- Implemented botocore.credentials's RefreshableCredentials logic but the script is still failing after an hour
- How to pass AWS credentials from react
- AWS SDK .NET, how do I access s3 through a privatelink using the ec2 imdsv2
- botocore.utils [DEBUG] Caught retryable HTTP exception while making metadata service request, could not connect to the endpoint URL
- AwsCredentialsProvier using environment variables
- Use AWS S3 on shared host and directadmin
- What format is ~/.aws/credential & config file
- How do I obtain an Access Token from an Unauthenticated Cognito Identity
- Can't export fromIni from @aws-sdk/credential-providers
- Testing AWS Lambda via the console produces an Access Denied error
- How to authenticate to AWS using Java SDK and SSO
- Providing AWS_PROFILE when reading S3 files with Spark
Trending Questions
- UIImageView Frame Doesn't Reflect Constraints
- Is it possible to use adb commands to click on a view by finding its ID?
- How to create a new web character symbol recognizable by html/javascript?
- Why isn't my CSS3 animation smooth in Google Chrome (but very smooth on other browsers)?
- Heap Gives Page Fault
- Connect ffmpeg to Visual Studio 2008
- Both Object- and ValueAnimator jumps when Duration is set above API LvL 24
- How to avoid default initialization of objects in std::vector?
- second argument of the command line arguments in a format other than char** argv or char* argv[]
- How to improve efficiency of algorithm which generates next lexicographic permutation?
- Navigating to the another actvity app getting crash in android
- How to read the particular message format in android and store in sqlite database?
- Resetting inventory status after order is cancelled
- Efficiently compute powers of X in SSE/AVX
- Insert into an external database using ajax and php : POST 500 (Internal Server Error)
Popular Questions
- How do I undo the most recent local commits in Git?
- How can I remove a specific item from an array in JavaScript?
- How do I delete a Git branch locally and remotely?
- Find all files containing a specific text (string) on Linux?
- How do I revert a Git repository to a previous commit?
- How do I create an HTML button that acts like a link?
- How do I check out a remote Git branch?
- How do I force "git pull" to overwrite local files?
- How do I list all files of a directory?
- How to check whether a string contains a substring in JavaScript?
- How do I redirect to another webpage?
- How can I iterate over rows in a Pandas DataFrame?
- How do I convert a String to an int in Java?
- Does Python have a string 'contains' substring method?
- How do I check if a string contains a specific word?
The process that uses the AWSCredentialsProviderControlerService does not support param or variables, but the AWSCredentialsProviderControlerService "credential file" property supports "Parameters Context" as entries, make use of this for your solution.
Example:
Trigger something --> RouteOnAttribute --> If Prod (run executestreamcmd and change the Parameter Context Value to point to prod credfile) else if DEV(run executestreamcmd and change the Parameter Context Value to point to prod credfile) --> then run you AWS Processor.
You can use the toolkit client to edit the parameter context, or event nipyapi python module. It will not be fast tohu.