{"id":20903311,"url":"https://github.com/kruzio/exodus","last_synced_at":"2026-02-10T17:32:15.443Z","repository":{"id":64303221,"uuid":"274590331","full_name":"kruzio/exodus","owner":"kruzio","description":"Export file(s) to external targets easily","archived":false,"fork":false,"pushed_at":"2022-10-13T23:35:02.000Z","size":159,"stargazers_count":4,"open_issues_count":0,"forks_count":0,"subscribers_count":0,"default_branch":"master","last_synced_at":"2025-05-13T04:41:15.071Z","etag":null,"topics":["azure-blob","azure-storage","export","exporter","filesender","gcp-bucket","gcp-storage","golang","k8s","kubernetes","library","mail","s3","s3-bucket","sendfile","slack","smtp","webhook","webhook-client"],"latest_commit_sha":null,"homepage":"","language":"Go","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"apache-2.0","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/kruzio.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null}},"created_at":"2020-06-24T06:15:32.000Z","updated_at":"2025-01-30T15:10:10.000Z","dependencies_parsed_at":"2023-01-15T10:00:43.825Z","dependency_job_id":null,"html_url":"https://github.com/kruzio/exodus","commit_stats":null,"previous_names":[],"tags_count":2,"template":false,"template_full_name":null,"purl":"pkg:github/kruzio/exodus","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/kruzio%2Fexodus","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/kruzio%2Fexodus/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/kruzio%2Fexodus/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/kruzio%2Fexodus/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/kruzio","download_url":"https://codeload.github.com/kruzio/exodus/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/kruzio%2Fexodus/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":29309593,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-02-10T16:09:25.305Z","status":"ssl_error","status_checked_at":"2026-02-10T16:08:52.170Z","response_time":65,"last_error":"SSL_read: unexpected eof while reading","robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":false,"can_crawl_api":true,"host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["azure-blob","azure-storage","export","exporter","filesender","gcp-bucket","gcp-storage","golang","k8s","kubernetes","library","mail","s3","s3-bucket","sendfile","slack","smtp","webhook","webhook-client"],"created_at":"2024-11-18T13:12:26.440Z","updated_at":"2026-02-10T17:32:15.424Z","avatar_url":"https://github.com/kruzio.png","language":"Go","funding_links":[],"categories":[],"sub_categories":[],"readme":"![release](https://img.shields.io/github/v/release/kruzio/exodus?sort=semver)\n![Go Version](https://img.shields.io/github/go-mod/go-version/kruzio/exodus)\n![Release](https://github.com/kruzio/exodus/workflows/Release/badge.svg)\n[![codecov](https://codecov.io/gh/kruzio/exodus/branch/master/graph/badge.svg)](https://codecov.io/gh/kruzio/exodus)\n[![License](https://img.shields.io/badge/License-Apache%202.0-blue.svg)](https://opensource.org/licenses/Apache-2.0)\n![Tweet](https://img.shields.io/twitter/url?style=social\u0026url=https%3A%2F%2Fgithub.com%2Fkruzio%2Fexodus)\n\n\u003cimg src=\"https://raw.githubusercontent.com/kruzio/artwork/main/logo.png\" alt=\"logo\" width=\"128\"/\u003e\n\n# exodus\n- Export file(s) to external targets easily\n- Send Alert Notification to one or more desitnations\n\n# Supported Targets\n\n```shell script\n\n+--------------+-------------------------------------------------------------------------------------------------------------------------------------------+\n|    SCHEME    |                                                                   INFO                                                                    |\n+--------------+-------------------------------------------------------------------------------------------------------------------------------------------+\n| GS           |   Upload to GCP Cloud Storage              | gs://my-bucket                                                                               |\n|              |                                            | For additional information see https://gocloud.dev/howto/blob/#gcs-ctor                      |\n|              | -------------------------------------------+--------------------------------------------------------------------------------------------- |\n|              |                                                                                                                                           |\n| SLACK        |   Post file to a slack channel             | slack://mychannel?apikey=\u003cmykey\u003e[\u0026file-type=json\u0026title=mymsgtitle]                           |\n|              |                                            |                                                                                              |\n|              |   apikey=\u003cmykey\u003e                           | Slack API token - xoxo-YOURTOKEN                                                             |\n|              |                                            | For additional information see https://api.slack.com/apps                                    |\n|              |                                            | Note that your app must join the destintation channel                                        |\n|              |   file-type=json                           | The content type                                                                             |\n|              |   title=mymsgtitle                         | The notification title                                                                       |\n|              | -------------------------------------------+--------------------------------------------------------------------------------------------- |\n|              |                                                                                                                                           |\n| FILE         |   Save file to the local file system using | file:///path/to/dir                                                                          |\n|              |                                            | The filename will be the same as name of the inout file name                                 |\n|              |                                            | For additional information see https://gocloud.dev/howto/blob/#local                         |\n|              | -------------------------------------------+--------------------------------------------------------------------------------------------- |\n|              |                                                                                                                                           |\n| WEBHOOK+HTTP |   Post file to a webhook                   | For example: webhook+http://myserver?x-headers=X-myheader:myval\u0026token-bearer=1234            |\n|              |                                            |                                                                                              |\n|              |   \u003e\u003e Authentication Options \u003c\u003c             |                                                                                              |\n|              |   token-bearer=\u003ctoken\u003e                     | Support Authorization Bearer token based authentication                                      |\n|              |   username=\u003cusername\u003e                      | Basic HTTP Authentication scheme                                                             |\n|              |   password=\u003cpassword\u003e                      | Basic HTTP Authentication scheme                                                             |\n|              |                                            |                                                                                              |\n|              |   \u003e\u003e Additional Options \u003c\u003c                 |                                                                                              |\n|              |   proxy-url=\u003cproxy\u003e                        | The proxy URL the webhook client should connect to                                           |\n|              |   content-type=\u003ccontentType\u003e               | defaults to json and can be one of: json | text | xml | html | multipart                     |\n|              |   x-headers=k1:v1,k2:v2                    | additional custom request headers                                                            |\n|              | -------------------------------------------+--------------------------------------------------------------------------------------------- |\n|              |                                                                                                                                           |\n| WEBHOOK      |   Post file to a webhook                   | For example: webhook://myserver?x-headers=X-myheader:myval\u0026token-bearer=1234                 |\n|              |                                            |                                                                                              |\n|              |   \u003e\u003e Authentication Options \u003c\u003c             |                                                                                              |\n|              |   token-bearer=\u003ctoken\u003e                     | Support Authorization Bearer token based authentication                                      |\n|              |   username=\u003cusername\u003e                      | Basic HTTP Authentication scheme                                                             |\n|              |   password=\u003cpassword\u003e                      | Basic HTTP Authentication scheme                                                             |\n|              |                                            |                                                                                              |\n|              |   \u003e\u003e Additional Options \u003c\u003c                 |                                                                                              |\n|              |   proxy-url=\u003cproxy\u003e                        | The proxy URL the webhook client should connect to                                           |\n|              |   content-type=\u003ccontentType\u003e               | defaults to json and can be one of: json | text | xml | html | multipart                     |\n|              |   x-headers=k1:v1,k2:v2                    | additional custom request headers                                                            |\n|              |                                            |                                                                                              |\n|              |   \u003e\u003e TLS Options \u003c\u003c                        |                                                                                              |\n|              |   skip-verify=true                         | If one wished to allow connection to untrusted server                                        |\n|              |   ca-file=\u003cpath-to-file\u003e                   | CA PEM file                                                                                  |\n|              | -------------------------------------------+--------------------------------------------------------------------------------------------- |\n|              |                                                                                                                                           |\n| SMTP         |   Send file via email (smtp)               | smtp://smtpserver?to=\u003cemail\u003e\u0026from=\u003cemail\u003e\u0026username=myuser\u0026password=mypass                    |\n|              |                                            |                                                                                              |\n|              |   to=\u003ctarget\u003e[,\u003ctarget\u003e]                   | the destination email address(es) - required                                                 |\n|              |   from=\u003cfrom-email\u003e                        | From email address - required                                                                |\n|              |   username=\u003cusername\u003e                      | The smtp server authentication information - required                                        |\n|              |   password=\u003cpassword\u003e                      | The smtp server authentication information - required                                        |\n|              |                                            |                                                                                              |\n|              |   subject=\u003csubject\u003e                        | The Subject line of the email message                                                        |\n|              |   skip-verify=true                         | Skip SMTP server TLS verification - (not recommended)                                        |\n|              | -------------------------------------------+--------------------------------------------------------------------------------------------- |\n|              |                                                                                                                                           |\n| S3           |   Upload to AWS S3 bucket                  | s3://bucket-name/subdir?region=us-west-1                                                     |\n|              |                                            | For additional information see https://gocloud.dev/howto/blob/#s3                            |\n|              | -------------------------------------------+--------------------------------------------------------------------------------------------- |\n|              |                                                                                                                                           |\n| AZBLOB       |   Upload to Azure Blob storage             | azblob://my-container                                                                        |\n|              |                                            | For additional information see https://gocloud.dev/howto/blob/#azure                         |\n|              | -------------------------------------------+--------------------------------------------------------------------------------------------- |\n|              |                                                                                                                                           |\n+--------------+-------------------------------------------------------------------------------------------------------------------------------------------+\n\n```\n\n# Using Exodus as Library\n\n```go\npackage main\n\nimport (\n\t\"fmt\"\n\t\"io/ioutil\"\n\t\"os\"\n\n\t\"github.com/kruzio/exodus/pkg/sendfile\"\n)\n\nfunc main() {\n\tdata, err := ioutil.ReadFile(\"somefile.json\")\n\n\tif err != nil {\n\t\tos.Exit(255)\n\t}\n\n\t//Let's create our client\n\tuploadUrl := fmt.Sprintf(\"webhook://dest.io?skip-verify=true\u0026x-headers=X-myheader:myval\u0026token-bearer=1234\")\n\n\tuploader, err := sendfile.NewUploader(uploadUrl)\n\tif err != nil {\n\t\tos.Exit(255)\n\t}\n\n\t_ = uploader.SetDestName(\"somefile\")\n\n\terr = uploader.Export([]byte(data))\n\tif err != nil {\n\t\tos.Exit(255)\n\t}\n}\n```\n\n# Using Exodus as an add-on\n\n```shell script\n# Send to Slack\necho myfilecontent | exodus sendfile -f -  --target=\"slack://mychannel?apikey=xoxb-myslackapp-oauth-token\u0026title=My File\"\n\n# Send files from a watch directory (one shot)\nexodus sendfile  --target=webhook+http://localhost:8080/stuff?content-type=text --watch /tmp/exodus\n\n# Send files from a watch directory (forever)\nexodus sendfile  --target=webhook+http://localhost:8080/stuff?content-type=text --watch /tmp/exodus --watch-forever\n```\n\n# Using Exodus in Kubernetes\n\n```yaml\nkind: Namespace\nmetadata:\n  name: exodus\n---\napiVersion: v1\nkind: Secret\nmetadata:\n  name: export-targets\n  namespace: exodus\ntype: Opaque\ndata:\n  # printf \"webhook://dest.io?skip-verify=true\u0026token-bearer=1234\u0026content-type=text\" | base64\n  targets: d2ViaG9vazovL2Rlc3QuaW8/c2tpcC12ZXJpZnk9dHJ1ZSZ0b2tlbi1iZWFyZXI9MTIzNCZjb250ZW50LXR5cGU9dGV4dA==\n---\napiVersion: batch/v1\nkind: Job\nmetadata:\n  name: example\n  namespace: exodus\n  labels:\n    app.kubernetes.io/name: exodus-example\n    app.kubernetes.io/instance: example\n    app.kubernetes.io/version: \"1.0.0\"\nspec:\n  backoffLimit: 1\n  template:\n    spec:\n      # Pod Security\n      automountServiceAccountToken: false\n      securityContext:\n        runAsNonRoot: true\n        runAsUser: 1000590000\n        runAsGroup: 1000590000\n        fsGroup: 1000590000\n\n      volumes:\n        # Our Send Box\n        - name: sendbox\n          emptyDir: {}\n      containers:\n        - name: exodus\n          image: kruzio/exodus:v0.2.0\n          imagePullPolicy: IfNotPresent\n          volumeMounts:\n            - mountPath: /sendbox\n              name: sendbox\n          args:\n            - \"sendfile\"\n            - \"--watch\"\n            - \"/sendbox\"\n            - \"--watch-forever\"\n            - \"false\"\n            # Debugging\n            #- \"-v\"\n            #- \"7\"\n\n          securityContext:\n            allowPrivilegeEscalation: false\n            readOnlyRootFilesystem: true\n            capabilities:\n              drop:\n                - ALL\n          env:\n            - name: KRUZIO_EXODUS_SENDFILE_TARGETS\n              valueFrom:\n                secretKeyRef:\n                  name: export-targets\n                  key: targets\n        - name: producer\n          image: busybox:latest\n          imagePullPolicy: IfNotPresent\n          volumeMounts:\n            - mountPath: /sendbox\n              name: sendbox\n          command: [\"/bin/sh\"]\n          args:\n              - -c\n              - \"sleep 3 \u0026\u0026 echo hello \u003e /sendbox/file-to-send.txt \u0026\u0026 sleep 3 \u0026\u0026 ls -la /sendbox/ \u0026\u0026 exit 0\"\n          securityContext:\n            allowPrivilegeEscalation: false\n            readOnlyRootFilesystem: true\n            capabilities:\n              drop:\n                - ALL\n      restartPolicy: Never\n```\n\n## Contributing\n\n### Bugs\n\nIf you think you have found a bug please follow the instructions below.\n\n- Please spend a small amount of time giving due diligence to the issue tracker. Your issue might be a duplicate.\n- Open a [new issue](https://github.com/kruzio/exodus/issues/new/choose) if a duplicate doesn't already exist.\n\n### Features\n\nIf you have an idea to enhance exodus follow the steps below.\n\n- Open a [new issue](https://github.com/kruzio/exodus/issues/new/choose).\n- Remember users might be searching for your issue in the future, so please give it a meaningful title to helps others.\n- Clearly define the use case, using concrete examples.\n- Feel free to include any technical design for your feature.\n\n### Pull Requests\n\n- Your PR is more likely to be accepted if it focuses on just one change.\n- Please include a comment with the results before and after your change. \n- Your PR is more likely to be accepted if it includes tests. \n- You're welcome to submit a draft PR if you would like early feedback on an idea or an approach.\n\n\n[![Stargazers over time](https://starchart.cc/kruzio/exodus.svg)](https://starchart.cc/kruzio/exodus)\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fkruzio%2Fexodus","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fkruzio%2Fexodus","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fkruzio%2Fexodus/lists"}