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

Support for variable expansion of headers in environment variables #180

Closed
maheshyem opened this issue Oct 5, 2024 · 1 comment · Fixed by #182
Closed

Support for variable expansion of headers in environment variables #180

maheshyem opened this issue Oct 5, 2024 · 1 comment · Fixed by #182
Assignees
Labels
bug Something isn't working
Milestone

Comments

@maheshyem
Copy link

Expected Behaviour

ibs-secret-xxx should be supported for environment variables

Actual Behaviour

ibs-secret-xxx is not supported for environment variables

Reproduce Scenario (including but not limited to)

Steps to Reproduce

For example set the header mailbox password environment variable with ibs-secret-mailboxPwd

{
	"callContent": {
		"fetchEmail": {
			"class": "com.adobe.campaign.tests.integro.tools.EmailClientTools",
			"method": "fetchEmail",
			"returnType": "java.util.ArrayList",
			"args": [
				null,
				"Happy Birthday"
			]
		}
	},
	"environmentVariables": {
		"AC.UITEST.MAILING.PORT": "xxx",
		"AC.UITEST.MAILING.PREFIX": "xxx",
		"AC.UITEST.MAILING.PWD": "ibs-secret-mailboxPwd",
		"AC.UITEST.MAILING.PROVIDER": "xxx",
		"AC.UITEST.MAILING.FOLDER": "xxx",
		"AC.TEST.IMS.USER.TOKEN.ENABLED": "false"
	}
}

Platform and Version

{
  "deploymentMode": " - in production",
  "bridgeServiceVersion": "2.11.17",
  "hostVersion": "0.3.6.11",
  "overALLSystemState": "All systems up"
}

Sample Code that illustrates the problem

Provided above in steps

Logs taken while reproducing problem

{
	"title": "Error during call of target Java Class and Method.",
	"code": 500,
	"detail": "We experienced an exception when calling the provided method com.adobe.campaign.tests.integro.tools.EmailClientTools.fetchEmail.\nProvided error message : com.adobe.campaign.tests.integro.exceptions.TestAPIException: MessagingException message: [AUTHENTICATIONFAILED] Authentication failed.",
	"bridgeServiceException": "com.adobe.campaign.tests.bridge.service.exceptions.TargetJavaMethodCallException",
	"originalException": "com.adobe.campaign.tests.integro.exceptions.TestAPIException",
	"originalMessage": "MessagingException message: [AUTHENTICATIONFAILED] Authentication failed.",
	"failureAtStep": "fetchEmail",
	"stackTrace": [
		"com.adobe.campaign.tests.integro.tools.ClassicEmailClientTools.getConnectionStore(ClassicEmailClientTools.java:245)",
		"com.adobe.campaign.tests.integro.tools.ClassicEmailClientTools.fetchEmail(ClassicEmailClientTools.java:121)",
		"com.adobe.campaign.tests.integro.tools.ClassicEmailClientTools.fetchEmail(ClassicEmailClientTools.java:75)",
		"com.adobe.campaign.tests.integro.tools.ClassicEmailClientTools.fetchEmail(ClassicEmailClientTools.java:185)",
		"com.adobe.campaign.tests.integro.tools.EmailClientTools.fetchEmail(EmailClientTools.java:117)",
		"java.base/jdk.internal.reflect.NativeMethodAccessorImpl.invoke0(Native Method)",
		"java.base/jdk.internal.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62)",
		"java.base/jdk.internal.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)",
		"java.base/java.lang.reflect.Method.invoke(Method.java:566)",
		"com.adobe.campaign.tests.bridge.service.CallContent.call(CallContent.java:172)",
		"com.adobe.campaign.tests.bridge.service.JavaCalls.lambda$call$0(JavaCalls.java:59)",
		"java.base/java.util.concurrent.FutureTask.run(FutureTask.java:264)",
		"java.base/java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1128)",
		"java.base/java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:628)",
		"java.base/java.lang.Thread.run(Thread.java:829)"
	]
}
@baubakg baubakg self-assigned this Oct 7, 2024
@baubakg baubakg added the bug Something isn't working label Oct 7, 2024
@baubakg baubakg added this to the 2.11.18 milestone Oct 7, 2024
@baubakg
Copy link
Member

baubakg commented Oct 7, 2024

problem reproduced. The problem is a header problem.

@baubakg baubakg changed the title ibs-secret-xxx support for environment variables Support for variable expansion of headers in environment variables Oct 7, 2024
baubakg added a commit that referenced this issue Oct 7, 2024
…les-and-secrets

Fixed Issue #180 fixing expansion of header values in the environment variable
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants