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.

How do I secure pyctuator endpoints with basic auth (FastAPI)?

See original GitHub issue

In the API of the Pyctuator object I did not find a way to secure the provided endpoints with BasicAuth. What would be the most straightforward way of doing this using FastAPI?

Also, how can i communicate the credentials to Spring Boot Admin?

If I understood https://codecentric.github.io/spring-boot-admin/current/#spring-boot-admin-client right, I can use something like:

    metadata={
        "user.name": "foo",
        "user.password": "bar"
    }

In the metadata arg of Pyctuator. Is that correct?

Issue Analytics

  • State:closed
  • Created 2 years ago
  • Comments:14 (9 by maintainers)

github_iconTop GitHub Comments

1reaction
thurse93commented, Oct 19, 2021

@michaelyaakoby That looks great! Sorry for the late reply, I was on vacation. Thank you very much for the realization 😃

0reactions
michaelyaakobycommented, Oct 21, 2021

Done. 0.17.0

Read more comments on GitHub >

github_iconTop Results From Across the Web

HTTP Basic Auth - FastAPI
Use that security with a dependency in your path operation. It returns an object of type HTTPBasicCredentials : It contains the username and...
Read more >
pyctuator - PyPI
Log in to the Spring Boot Admin UI at http://localhost:8080 to interact with the application. FastAPI. The following example is complete and should...
Read more >
Spring Boot Admin Reference Guide - GitHub Pages
Support for Python applications is available using Pyctuator. ... order to secure the endpoints, also add the spring-boot-starter-security .
Read more >
Build and Secure a FastAPI Server with Auth0
In this article, we will go over the features of FastAPI , set up a basic API, protect an endpoint using Auth0, and...
Read more >
Spring Monitoring with Spring Actuator and Spring Boot Admin
In particular with endpoints.web.exposure.include=* we are ... with Python applications with Flask or FastAPI using the Pyctuator project.
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