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.

Support `@LocalArmeriaPort`, `@LocalArmeriaPorts`

See original GitHub issue

I’m working on a PR to allow Armeria internal services and spring actuators to only be allowed on certain ports. But I faced one problem.

When I specify a random port, I can’t tell it clearly. So in Armeria, it would be nice to provide annotations like @LocalArmeriaPort and @LocalArmeriaPorts like @LocalServerPort as Spring Boot provides. Also, this task will bind to that port when management.server.port is set, and it would be nice to use @LocalManagementPort.

This is likely to be a cornerstone for future features that will be added.

See https://docs.spring.io/spring-boot/docs/current/reference/htmlsingle/#howto-discover-the-http-port-at-runtime See @LocalRSocketServerPort

Issue Analytics

  • State:closed
  • Created 4 years ago
  • Comments:8 (5 by maintainers)

github_iconTop GitHub Comments

1reaction
heowccommented, Mar 26, 2020

Rethinking, it seems that management.server.port should be included after the PR or it should be included.

This is because allowing a port allows all other routes to access.

0reactions
heowccommented, Mar 17, 2020

Hmm … If so, what do you think of changing the port from Spring integration module to a random port if the port is set to 0?

This solution is not perfect in timing, but it adds nothing to ServerPort.

Read more comments on GitHub >

github_iconTop Results From Across the Web

com.linecorp.armeria.spring (Armeria 1.10.0 API reference)
Interface used to configure a service on the default armeria server. DocServiceConfigurator. Configures a DocService built by Armeria auto configuration.
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