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

[ALM Accelerator - QUESTION] Secure and Unsecure Plugin Configuration. #6335

Closed
lingutla123 opened this issue Aug 13, 2023 · 13 comments
Closed
Assignees
Labels
alm-accelerator ALM Accelerator Components and Apps question Further information is requested

Comments

@lingutla123
Copy link

lingutla123 commented Aug 13, 2023

What is your question?

Hi Mike,

What is the data format accepted for 'Secure and Unsecure Configurations" fields in "Configure Deployment Settings - Plugin Steps" tab?

Currently we are using xml input format for secure and unsecure configs. It is working fine when we do manual deployment. However, when same code deployed through ALM and passing xml value is throwing index out of range exception.

Thank you.

What component are you experiencing the issue with?

ALM Accelerator Canvas App

What solution version are you using?

August 2023

AB#787

@lingutla123 lingutla123 added alm-accelerator ALM Accelerator Components and Apps question Further information is requested labels Aug 13, 2023
@lingutla123 lingutla123 changed the title [ALM Accelerator - QUESTION] Plugin Configuration. [ALM Accelerator - QUESTION] Secure and Unsecure Plugin Configuration. Aug 14, 2023
@mikefactorial
Copy link
Collaborator

@lingutla123 mind sharing a sample of what you are passing? Could be a bug but it's hard to tell without knowing the specific format of the XML

@mikefactorial
Copy link
Collaborator

@RajeevPentyala for awareness

@lingutla123
Copy link
Author

lingutla123 commented Aug 16, 2023

Hi Mike,

Following example worked fine when directly deployed using plugin configuration tool . However, getting error with ALM accelerator pipeline.
image

Thank you!

@RajeevPentyala
Copy link
Collaborator

@lingutla123 Could not reproduce the issue. Tested with the XML you've provide. Can you provide the logs of failed pipeline for us to troubleshoot?

Configuration Settings:
image

Deploy Pipeline:
image

Plugin step post deployment from PRT:
image

@lingutla123
Copy link
Author

Hi Rajeev,

Thank you for the response! We are also not facing issue while deploying/running the pipeline. We are getting error when we try to access these values in the plug in code.

My test code functionality and where we are getting error:
In the "plug In" code, accessing the config values and assigning to a text box. Text box is displaying the values entered if we use plug in registration tool. However, we are getting index out of range error ( for same code) when we deploy the plug in through ALM Pipeline.

image

@RajeevPentyala
Copy link
Collaborator

@lingutla123 Will check the scenario you mentioned.

@RajeevPentyala
Copy link
Collaborator

@lingutla123 Will check the scenario you mentioned.

@lingutla123 I went ahead tested the plug-in code by configuring 'Secured' and 'Unsecured' configs from 'ALM Accelerator' and my code worked well with no issues. Please find below plug-in trace log where I am reading and printing the 'Secured' and 'Unsecured' config values. I suspect you must have a custom logic to read and parse the 'Secured' and 'Unsecured' configs and not sure if the exception from that code.

image

Could you read and print the 'Secured' and 'Unsecured' configs in your plug-in code similar like below and let me know the outcome?
image

@lingutla123
Copy link
Author

Thank you!

We have Base Plug In and Runner classes. We are retrieving config values entered in xml format and transforming to key value pairs. Code is working fine when we deploy plug in using "plug in registration tool". However, getting index out of range when deployed using ALM Accelerator pipeline. So, not sure where it is going wrong. Is there any deploy step logs we can if these values are read by pipeline or not?

@RajeevPentyala
Copy link
Collaborator

Thank you!

We have Base Plug In and Runner classes. We are retrieving config values entered in xml format and transforming to key value pairs. Code is working fine when we deploy plug in using "plug in registration tool". However, getting index out of range when deployed using ALM Accelerator pipeline. So, not sure where it is going wrong. Is there any deploy step logs we can if these values are read by pipeline or not?

@lingutla123 In your plugin, you can try printing the config values using ITracing Service before you proceed with your parse logic. Also, open the plugin step in 'Plugin Registration Tool' and check the secured and unsecured config values showing up properly.

image

@lingutla123
Copy link
Author

Thank you!

Trace is not giving any values.

For dev environment, we are deploying through 'Plug in registration tool' and it is working. Same code deployed through QA Env using ALM pipeline. In QA env, when viewed 'PlugIn Registration Tool' it is showing as below screen shot. Do we expect to see the config values here ( which are passed through ALM pipeline)? If yes, why are they not coming up? What could be the step we are missing?

image

@RajeevPentyala
Copy link
Collaborator

RajeevPentyala commented Oct 9, 2023

Thank you!

Trace is not giving any values.

For dev environment, we are deploying through 'Plug in registration tool' and it is working. Same code deployed through QA Env using ALM pipeline. In QA env, when viewed 'PlugIn Registration Tool' it is showing as below screen shot. Do we expect to see the config values here ( which are passed through ALM pipeline)? If yes, why are they not coming up? What could be the step we are missing?

image

@lingutla123 The configuration values should have been present when you opened the plug-in step using the 'Plugin Registration Tool.' Could you please confirm if you have entries in the 'SDKMessages' node of the 'CustomDeploymentSettings.json' file, as highlighted below?

image

@lingutla123
Copy link
Author

Hi Rajeev,

It is working.
Thank you!!

@CoEStarterKitBot
Copy link
Collaborator

@lingutla123 This has been fixed in the latest release. Please install the latest version of the toolkit following the instructions for installing updates. Note that if you do not remove the unmanaged layers as described there you will not receive updates from us.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
alm-accelerator ALM Accelerator Components and Apps question Further information is requested
Projects
Status: Done
Development

No branches or pull requests

4 participants