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

add beacon credentials to galaxy #18544

Closed
wants to merge 2 commits into from
Closed

Conversation

khaled196
Copy link
Contributor

@khaled196 khaled196 commented Jul 15, 2024

I am aiming to add Beacon credentials to Galaxy to wrap my tools into tools IUC

The Galaxy expects to keep the credentials to the Galaxu UI like this.

image

For the tools you can find them in

galaxyproject/tools-iuc#6028

`<xml name="configfile">
        <configfiles>
            <configfile name="credentials"><![CDATA[
            #set $db_auth_source = $__user__.extra_preferences.get('beacon2_account|db_auth_source', "")
            #set $db_user = $__user__.extra_preferences.get('beacon2_account|db_user', "")
            #set $db_password = $__user__.extra_preferences.get('beacon2_account|db_password', "")
            #if $db_user == "" or $db_password == "" or $db_auth_source == "":
                #set $db_auth_source = "admin"
                #set $db_user = "root"
                #set $db_password = "example"
            #end if
            {
                "db_auth_source": "$db_auth_source",
                "db_user": "$db_user",
                "db_password": "$db_password"
            }
            ]]></configfile>
    </configfiles>`

how the are extracted from the tool will be like this

--db-auth-source `jq -r .db_auth_source '$credentials'` 
--db-user `jq -r .db_user '$credentials'`
--db-password `jq -r .db_password '$credentials'`

How to test the changes?

(Select all options that apply)

  • I've included appropriate automated tests.
  • This is a refactoring of components with existing test coverage.
  • Instructions for manual testing are as follows:
    1. [add testing steps and prerequisites here if you didn't write automated tests covering all your changes]

License

  • I agree to license these and all my past contributions to the core galaxy codebase under the MIT license.

@khaled196
Copy link
Contributor Author

I need some help in building this into the UI.

Thank you

@bgruening
Copy link
Member

@khaled196 this is something an Admin needs to configure at the moment. We don't want to ship this with the Galaxy code base I think. Please ping me on Slack and we can discuss this.

@bgruening bgruening closed this Jul 15, 2024
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.

2 participants