mirrord: Not able to load environment variables or connect to services via gradle+intellij
Bug Description
I recently got a new mac, setting it up I am not able to get intellij mirrord to load the environment variables correctly. This worked on my previous mac fine
Via CLI it works fine
mirrord exec -a scott1 --target=deployment/<APP> -- bash
$ env | grep MIRRORD_AGENT_NAMESPACE=scott1
MIRRORD_AGENT_NAMESPACE=scott1
But when I start up the java app in intellij, it does not load the environment variables from the target pod
Since in the past this has been due to SIP issue https://mirrord.dev/docs/faq/common-issues/ I copied my JDK into ~/java, but this did not ameliorate the issue
I also tried running sudo codesign --remove-signature ./<your-binary> but after that I could not boot the jdk without it exiting immediately afterwards. I tried other jdks no dice thus far
Steps to Reproduce
- Run java app in intellij
- Observe no environment variables
Backtrace
No response
Relevant Logs
No response
Your operating system and version
osx sonoma 14.7
Local process
$| file $JAVA_HOME/bin/java /Users/sschulthess/.jenv/versions/corretto64-1.8.0.422/bin/java: Mach-O 64-bit executable arm64
Local process version
$| java -version openjdk version “1.8.0_422” OpenJDK Runtime Environment Corretto-8.422.05.1 (build 1.8.0_422-b05) OpenJDK 64-Bit Server VM Corretto-8.422.05.1 (build 25.422-b05, mixed mode)
Additional Info
config file
{
"target": {
"path": {
"deployment": "APP"
},
"namespace": "scott1"
},
"agent": {
"namespace": "scott1"
},
"feature": {
"network": {
"incoming": "steal",
"outgoing": {
"filter": {
"local": [
"localhost:3000"
]
}
}
},
"fs": "read"
},
"kube_context": "zc-carsharing-dev"
}
About this issue
- Original URL
- State: closed
- Created 2 years ago
- Comments: 19 (11 by maintainers)
Hi, Environment variables can’t be affected by SIP so it’s probably not that. Can you enable internal proxy logs by adding this to your mirrord.json:
then after running attaching the logs (after redacting sensitive information?