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

support hooks #666

Open
4 of 5 tasks
till opened this issue Feb 6, 2024 · 2 comments
Open
4 of 5 tasks

support hooks #666

till opened this issue Feb 6, 2024 · 2 comments
Labels
feat New feature or request.

Comments

@till
Copy link
Contributor

till commented Feb 6, 2024

Preflight checklist

Ory Network Project

No response

Describe your problem

Trying to figure out how to add hook files to the container.

The examples to use the kratos hooks usually look like this:

selfservice:
  flows:
    settings:
      after:
        profile:
          hooks:
            - hook: web_hook
              config:
                url: http://service
                method: POST
                body: file:///path/to/<something>.jsonnet
                can_interrupt: true

So this means /path/to/<something>.jsonnet has to be included or mounted into the container.

Describe your ideal solution

Ideally, the values would support this — similar to the schema files.

Workarounds or alternatives

Wrap the helm chart into another one, or prepend a helm chart (or manifests) to create k8s configs which I can then mount via extra volumes? I would rather maintain this in this helm chart instead of writing more helm.

Version

latest

Additional Context

No response

@till till added the feat New feature or request. label Feb 6, 2024
@Demonsthere
Copy link
Collaborator

Hello there!
The current solution would be to supply the jsonnet files as extra config maps and mount into the containers using:

  extraVolumes: []
  # - name: my-volume
  #   secret:
  #     secretName: my-secret
  extraVolumeMounts: []
  # - name: my-volume
  #   mountPath: /etc/secrets/my-secret
  #   readOnly: true

We could add an option to add arbitrary data to a CM to make it easier and nor requite to sideload the config 🤔

@till
Copy link
Contributor Author

till commented Feb 16, 2024

@Demonsthere You mean, currently I'd have to build the ConfigMap myself, right?

I think a general mechanism for the hooks would be great.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
feat New feature or request.
Projects
None yet
Development

No branches or pull requests

2 participants