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

Enable auth in migration params schema #1432

Merged
merged 1 commit into from
Jun 26, 2024
Merged

Conversation

ereteog
Copy link
Contributor

@ereteog ereteog commented Jun 26, 2024

Related XDR-5272

Fix CTIA migration configuraiton schema to accept authentication

2024-06-25T14:53:45.274Z INFO (main) [ctia.task.migration.migrate-es-stores] - migration started {:buffer-size 3, :store {:es {:default {:protocol :https, :host "int-es7-storage.es.vpce.us-east-1.aws.elastic-cloud.com", :auth {:params {:pwd "zGHz6L5gf1PsMxf86LAxIkWG", :user "elastic"}, :type :basic-auth}, :port 443, :version 7}, :migration {:indexname "ctia_migration"}}}, :migration-id "elastic-migration", :restart? nil, :prefix "2.0.0", :store-keys (:actor :attack-pattern :campaign :coa :feed :feedback :indicator :judgement :malware :relationship :sighting :tool :vulnerability :weakness), :migrations (:identity), :confirm? true, :batch-size 6000}
2024-06-25T14:53:45.280Z ERROR (main) [ctia.task.migration.migrate-es-stores] - Unexpected error during migration
clojure.lang.ExceptionInfo: Input to check-migration-params does not match schema:

           [(named {:store {:es {:default {:auth disallowed-key}}}} arg0) nil]


        at ctia.task.migration.migrate_es_stores$eval100649$check_migration_params__100654.invoke(migrate_es_stores.clj:283)
        at ctia.task.migration.migrate_es_stores$eval100709$run_migration__100714$fn__100715.invoke(migrate_es_stores.clj:325)
        at ctia.task.migration.migrate_es_stores$eval100709$run_migration__100714.invoke(migrate_es_stores.clj:310)
        at ctia.task.migration.migrate_es_stores$_main.invokeStatic(migrate_es_stores.clj:357)
        at ctia.task.migration.migrate_es_stores$_main.doInvoke(migrate_es_stores.clj:345)
        at clojure.lang.RestFn.applyTo(RestFn.java:137)
        at clojure.lang.Var.applyTo(Var.java:705)
        at clojure.core$apply.invokeStatic(core.clj:667)
        at clojure.main$main_opt.invokeStatic(main.clj:514)
        at clojure.main$main_opt.invoke(main.clj:510)
        at clojure.main$main.invokeStatic(main.clj:664)
        at clojure.main$main.doInvoke(main.clj:616)
        at clojure.lang.RestFn.applyTo(RestFn.java:137)
        at clojure.lang.Var.applyTo(Var.java:705)
        at clojure.main.main(main.java:40) 

§ QA

No QA is needed.

@BruXy BruXy requested a review from ryemelia June 26, 2024 15:36
Copy link
Contributor

@marioaquino marioaquino left a comment

Choose a reason for hiding this comment

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

LGTM

@ereteog ereteog merged commit 43ca304 into master Jun 26, 2024
14 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

4 participants