Skip to content

Add module for Hashicorp Consul #4860

Closed

Description

@krisiye

Feature Request: Consul is often used in conjunction with HashiCorp Vault as a secret backend. It's quite common to run tests that will need testcontainers for Consul (official images provided on dockerhub by hashicorp) so that it could be integrated with other testcontainers such as Vault for the secret backend.
https://www.consul.io/

Some of the Features to include wil be:

  • support for ACLs
  • consul configuration as an object
  • support for both new (>= 1.4.0) and legacy (< 1.4.0) ACL config
  • TLS support
  • cluster support

Activity

  1. changed the title [-]Add Testcontainer for Hashicorp Consul[/-] [+]Add Testcontainer module for Hashicorp Consul[/+] on Jan 7, 2022
  2. changed the title [-]Add Testcontainer module for Hashicorp Consul[/-] [+]Add module for Hashicorp Consul[/+] on Jan 7, 2022
  3. kiview commented on Jan 10, 2022

    @kiview
    Member

    Hi @krisiye, are you raising this issue to ask if you should provide a PR with such a module?

  4. krisiye commented on Jan 10, 2022

    @krisiye
    Author

    @kiview - I'd be happy to contribute to a module. I have been using internal repos to provide containers for my purposes but i think hashicorp consul deserves to be a managed module that can exist alongside vault and iterate along. Let me know if that makes sense and i can work on a PR.

  5. kiview commented on Jan 10, 2022

    @kiview
    Member

    Can you share your current solution, so we can better assess if the implementation of a distinct module makes sense?

  6. krisiye commented on Jan 10, 2022

    @krisiye
    Author

    @kiview - Here is a module I pushed out to my fork for your review - master...krisiye:issue_4860 thanks!

  7. kiview commented on Jan 11, 2022

    @kiview
    Member

    Thanks a lot for sharing @krisiye. On a first look, your implementation seems fine.

    Since we are currently rethinking our approach to 3rd party modules, I'd suggest for now you publish the module yourself (e.g. like the Keycloak module: https://github.com/dasniko/testcontainers-keycloak) and we revisit this topic in the future (to ensure ongoing discoverability and compatibility).

  8. krisiye commented on Jan 11, 2022

    @krisiye
    Author

    Thanks for the feedback @kiview! I will publish a module on my end. Regards!

  9. krisiye commented on Jan 26, 2022

    @krisiye
    Author

    FYI - testcontainers-consul has been published.

    <dependency>
      <groupId>com.hmhco</groupId>
      <artifactId>testcontainers-consul</artifactId>
      <version>0.0.4</version>
      <scope>test</scope>
    </dependency>
    
  10. kiview commented on Jan 27, 2022

    @kiview
    Member

    Thanks a lot @krisiye! 🙇‍♂️

    To everyone finding this issue, we strongly encourage you to try out and use https://github.com/hmhco/testcontainers-consul for the time being 🙂

  11. eddumelendez commented on Aug 31, 2022

    @eddumelendez
    Member

    We already merged #4683 and it will be available in the next release and there is also com.hmhco:testcontainers-consul

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