Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Various updates #18

Closed
wants to merge 15 commits into from
Closed

Various updates #18

wants to merge 15 commits into from

Conversation

dzarras
Copy link
Contributor

@dzarras dzarras commented Nov 17, 2023

  1. Adds dependency to Spring Actuator and exposes health endpoint
  2. Cleans up build.gradle.kts
  3. Updates folder structure for docker compose
  4. Simplifies configuration of insecure WebClients
  5. Adds PID Issuer application in docker-compose.yaml
  6. Adds documentation for docker compose
  7. Adds documentation for the environment variables that can be used to configured PID issuer

Closes: #4

@dzarras dzarras added documentation Improvements or additions to documentation feature New feature or request labels Nov 17, 2023
@dzarras dzarras requested a review from babisRoutis November 17, 2023 15:33
@dzarras dzarras requested a review from a team as a code owner November 17, 2023 15:33
Copy link
Contributor

@babisRoutis babisRoutis left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@dzarras

Added some minor comments.
Let's discuss them

#
# Issuer options
#
issuer.clientId=pid-issuer
issuer.publicUrl=http://localhost:${server.port}
issuer.publicUrl=http://localhost:${server.port}/${spring.webflux.base-path}
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This will evaluate to // I think

@@ -246,9 +241,12 @@ fun beans(clock: Clock) = beans {
authorize(MetaDataApi.WELL_KNOWN_OPENID_CREDENTIAL_ISSUER, permitAll)
authorize(MetaDataApi.WELL_KNOWN_JWKS, permitAll)
authorize(IssuerApi.CREDENTIALS_OFFER, permitAll)
authorize("/actuator/health", permitAll)
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Not All

},
)
}
bean {
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Move this inside the security configuration if profile can be nested inside a beans { }

class EncodePidInCborWithMicroService(private val creatorUrl: HttpsUrl) : EncodePidInCbor {
class EncodePidInCborWithMicroService(
private val creatorUrl: HttpsUrl,
private val webClient: WebClient,
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Why pass a client?

Pass the "Mode of operation" a let the adapter provision a WebClient using the factory methods

@babisRoutis
Copy link
Contributor

In general to mix to many changes in PR
For instance actuator is irrelevant to the main subject of the PR

@dzarras dzarras closed this Nov 20, 2023
@dzarras dzarras deleted the feature/add-pid-issuer-to-compose branch November 20, 2023 14:54
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
documentation Improvements or additions to documentation feature New feature or request
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Document docker-compose
2 participants