question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

bug: Setting relaxed-security in config file doesn't seem to work

See original GitHub issue

Is there an existing issue for this?

  • I have searched the existing issues

Current Behavior

I start the Appium server with this config yaml:

server:
  base-path: /wd/hub
  keep-alive-timeout: 800
  relaxed-security: true
  use-plugins:
    - device-farm
    - appium-dashboard
  plugin:
    device-farm:
      platform: android

I run appium --config /path/to/my/config. The documentation tells me to use --config-file, however that argument doesn’t seem to work, whereas --config works. The server starts like this:

[Appium] Welcome to Appium v2.0.0-beta.44
[Appium] Non-default server args:
[Appium] {
[Appium]   basePath: '/wd/hub',
[Appium]   keepAliveTimeout: 800,
[Appium]   usePlugins: [
[Appium]     'device-farm',
[Appium]     'appium-dashboard'
[Appium]   ]
[Appium] }

Relaxed-security seems to be missing and when I do shell commands, it notifies me that I have to allow-insecure adb_shell. However if I start the server with the flag: appium --relaxed-security --config /path/to/my/config it looks correct:

[Appium] Welcome to Appium v2.0.0-beta.44
[Appium] Non-default server args:
[Appium] {
[Appium]   basePath: '/wd/hub',
[Appium]   keepAliveTimeout: 800,
[Appium]   relaxedSecurityEnabled: true,
[Appium]   usePlugins: [
[Appium]     'device-farm',
[Appium]     'appium-dashboard'
[Appium]   ]
[Appium] }

I tried this with a json also. Any ideas?

Expected Behavior

Setting the boolean value relaxed-security: true inside the config should enable this feature and notify me inside the Appium Log.

Minimal Reproducible Example

Start the Appium server using a JSON or YAML config with the argument relaxed-security: true

Environment

  • Operating system: Windows 10
  • Appium 2.0.0-beta.44
  • Appium driver(s) and their version(s): Espresso Driver 2.13.8
  • Appium plugin(s) and their version(s): Appium-Dashboard 1.10 + Device-Farm 3.4.0

Link to Appium Logs

No response

Futher Information

No response

Issue Analytics

  • State:closed
  • Created 9 months ago
  • Comments:12 (5 by maintainers)

github_iconTop GitHub Comments

1reaction
boneskullcommented, Dec 16, 2022

@ValzRon OK, we’ve published; please update and try again

0reactions
ValzRoncommented, Dec 16, 2022

@ValzRon OK, we’ve published; please update and try again

This works, thank you!

Read more comments on GitHub >

github_iconTop Results From Across the Web

Xcode 13.2 - Internal error : Miss… | Apple Developer Forums
Hi guys, just updated Xcode to 13.2 via Mac App Store. I installed the additional components, and my project won't compile anymore :...
Read more >
Building web application security policies with entities - AskF5
When you use, configure, and properly "tune" entities, you help BIG-IP ASM build policies with the right level of security and maintenance ...
Read more >
Minimum Password Length auditing and enforcement on ...
Policy path: Computer Configuration > Windows Settings > Security Settings > Account Policies -> Password Policy -> Relax minimum password length limits
Read more >
How To Troubleshooting Artifactory 7.x Upgrade Issues - JFrog
Solution: You can resolve the issue by removing the following lines from system.yaml (located at $JFROG_HOME/artifactory/var/etc/system.yaml).
Read more >
Configuring Content Security Policy - Jenkins
If either of these are true, you should be very careful when relaxing the CSP rule set. If neither is true, and all...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found