Skip to content

[JENKINS-4478] Move TCP port out from under security #19040

Closed

Description

@jenkins-infra-bot

I already have apache and other security measure in place to secure hudson, but
need the TCP port for JNLP slave agent to be fixed for firewall issues.
I found the setting under security for this and if set manually in the
config.xml file it work with security not enabled, but if you make changes on
the configuration page it removes it if security is not enabled.

My suggestions would be
A. to move this setting to its own section to include any other JNLP settings.
B. Persist this setting regardless of the security setting if its already set.

Thanks


Originally reported by rcalosso, imported from: Move TCP port out from under security
  • assignee: ks_nenasheva
  • status: Resolved
  • priority: Major
  • component(s): core
  • label(s): newbie-friendly
  • resolution: Fixed
  • resolved: 2017-06-03T08:58:52+00:00
  • votes: 4
  • watchers: 5
  • imported: 2025-11-24
Raw content of original issue

I already have apache and other security measure in place to secure hudson, but need the TCP port for JNLP slave agent to be fixed for firewall issues. I found the setting under security for this and if set manually in the config.xml file it work with security not enabled, but if you make changes on the configuration page it removes it if security is not enabled.

My suggestions would be A. to move this setting to its own section to include any other JNLP settings. B. Persist this setting regardless of the security setting if its already set.

Thanks

  • environment: Platform: All, OS: All

Activity

  1. jenkins-infra-bot commented on Nov 28, 2014

    @jenkins-infra-bot
    Author
    jk:
    • Original comment link
    • Raw content of original comment:

      First of all, the port being under security was a bit unexpected on our end.

      Having to enable security (we have it disabled) is very unintuitive and cost us time to figure out. That the JNLP port is bound no matter the enable security setting being turned on or off, is very questionable and confusing. This should defiitely be changed ASAP, to prevent user confusion. Especially, since simply moving the setting but keeping it as is should be rather simple!?

      On one LTS installation, I have security enabled, but use anonymous access anyway. On a second installation, we use anonymous access with security disabled. The confusing part is that on the second installation, I can enable security to set the JNLP port, and then save the settings. Checking back, security is still disabled (I guess because no Security Realm was chosen) but the port is set. This is a very unintuitive and hidden behaviour.

      This is assigned to @Kohsuke Kawaguchi, I guess since 2009. Is this something you can and will do? Or would it be helpful if someone from the community jumped in?

    First of all, the port being under security was a bit unexpected on our end.

    Having to enable security (we have it disabled) is very unintuitive and cost us time to figure out. That the JNLP port is bound no matter the enable security setting being turned on or off, is very questionable and confusing. This should defiitely be changed ASAP, to prevent user confusion. Especially, since simply moving the setting but keeping it as is should be rather simple!?

    On one LTS installation, I have security enabled, but use anonymous access anyway. On a second installation, we use anonymous access with security disabled. The confusing part is that on the second installation, I can enable security to set the JNLP port, and then save the settings. Checking back, security is still disabled (I guess because no Security Realm was chosen) but the port is set. This is a very unintuitive and hidden behaviour.

    This is assigned to @​Kohsuke Kawaguchi, I guess since 2009. Is this something you can and will do? Or would it be helpful if someone from the community jumped in?

  2. jenkins-infra-bot commented on Nov 28, 2014

    @jenkins-infra-bot
    Author
    jk:
    • Original comment link
    • Raw content of original comment:

      It would also be helpful, if the node configuration setting for JNLP port (tunneling) would be a bit more elaborative about the server JNLP port, and where it is configured.

      In our case, even when changing the JNLP port, it was not necessary to configure anything there (as jenkins sends it to the slave on initial connection by the slave).

    It would also be helpful, if the node configuration setting for JNLP port (tunneling) would be a bit more elaborative about the server JNLP port, and where it is configured.

    In our case, even when changing the JNLP port, it was not necessary to configure anything there (as jenkins sends it to the slave on initial connection by the slave).

  3. jenkins-infra-bot commented on May 25, 2017

    @jenkins-infra-bot
    Author
    ks_nenasheva:

    Pull request: #2900

  4. jenkins-infra-bot commented on Jun 3, 2017

    @jenkins-infra-bot
    Author
    scm_issue_link:

    Code changed in jenkins
    User: Daniel Beck
    Path:
    core/src/main/java/hudson/security/GlobalSecurityConfiguration.java
    core/src/main/resources/hudson/security/GlobalSecurityConfiguration/index.groovy
    core/src/main/resources/hudson/security/csrf/GlobalCrumbIssuerConfiguration/config.groovy
    http://jenkins-ci.org/commit/jenkins/2228b3936e3fdf6130d65324ac7278cad84edb95
    Log:
    Merge pull request #2900 from ksenia-nenasheva/JENKINS-4478

    JENKINS-4478 - Move TCP port out from under security

    Compare: a76a267...2228b39

  5. jenkins-infra-bot commented on Jun 3, 2017

    @jenkins-infra-bot
    Author
    danielbeck:
    • Original comment link
    • Raw content of original comment:

      Fixed towards 2.64.

    Fixed towards 2.64.

  6. jenkins-infra-bot commented on Nov 24, 2025

    @jenkins-infra-bot
    Author

    [Original is_duplicated_by from Jira: JENKINS-40228]

  7. jenkins-infra-bot commented on Nov 24, 2025

    @jenkins-infra-bot
    Author

    [Original is_duplicated_by from Jira: JENKINS-44382]

  8. jenkins-infra-bot commented on Nov 24, 2025

    @jenkins-infra-bot
    Author

    [Original is_duplicated_by from Jira: JENKINS-12649]

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions