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

feat: GA4GH passport demonstration #240

Closed
wants to merge 4 commits into from

Conversation

andrewpatto
Copy link
Member

Not for merging.

Just a quick demonstration that we can deploy of passports as Auth headers.

let brokers = HashMap::from([
("https://broker-europe.aai.dev.umccr.org", DecodingKey::from_rsa_components("n5POaIPBp04XYkujy7ILkeYpuqPtzRz6fWNFZy7fR6qPLycP4aANFA2xRjr5YP1XXRnm7Jg23gmSbGYFNlnKDRNf67PM53L9Afx56DAUufH0vAISOq2e-i2P4aWZCGcc-d-8tmNTQ3FFcS2wD3bwUsVG2uLXVcdHvmvbTVVIXYxNiznXLk3sNBjuL40VIKEK_x8KSX04_0_x07KKFW1rqj1sguzBeF-NJRTGKuplFEwVM5TxAXRNQe1VeC3_TAEK4PRD8bzzFBz3y-fyovlppfjeOEbIlLT4mafzD130dlINw4xdaLQIPkQb8UE8O-XNKUzguSdUOw0TYB49mFIm5w", e).unwrap()),
("https://broker-australia.aai.dev.umccr.org", DecodingKey::from_rsa_components("q-mBB5jBJCCc68ALWF_A-zOM4S5gsKPB6qeFYWe_uzkfWf-jcSCHRrRCsMRzflVvZbz3mbBmqp8FVOnEWQe62x0qdNSZRUmRWkeBKhi0yxjXbKV7e11Sv5XWxxGhYL-gYzJXqQLR9T8ZfcDeQvEtobznm51VkZ1UgD6QogjtpCK-LL3t5NK2wS5lZO3K5GM4spbnXOLbbUU0sRHKujkYa6frY71i3EAs_nrzkTRmT0I_QkE24XlGRh0zbM67pW1n9SKHsEpFIEzXy3ebBfHhaWKdxY4qhGqbOvft-rgNGGAXPEkKbygIcE0Uif1DvaNHD6KDAeP0DGJVr3qCKQ4Naw", e).unwrap()),
]);
Copy link
Member Author

Choose a reason for hiding this comment

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

yes those are keys! they are public keys for known RSA keys though..

@andrewpatto
Copy link
Member Author

asking for review not for merging purposes.. just let me know anything I've done wildly wrong.

If ok - can we have this branch deployed to UoM demo?

@brainstorm
Copy link
Member

Quite hardcore/hardcoded changes not to be merged to main, but I see your intent. Changes look fine within those premises, so I'd say go ahead and deploy to UoM demo 🚀

@andrewpatto
Copy link
Member Author

andrewpatto commented Apr 12, 2024

Yes to get rid of the embedded keys we'd need to instigate a new config mechanism - and probably move the either auth into some sort of plugin architecture. Which is a bit more than I want for this demo.

I don't know how to deploy to demo btw. (I mean, is it literally the CDK in deploy?)

Copy link
Member

@mmalenic mmalenic left a comment

Choose a reason for hiding this comment

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

Yes, looks good. For deploying, it should just be a CDK deploy in the deploy directory to the demo account. Although the public property needs to be enabled in the settings.ts

files for ga4gh demo (just for local test)
@brainstorm
Copy link
Member

Thanks for this Andrew! Closing this for now as we'll not be merging and keeping the branch around so that we can revisit this and implement/merge once GA4GH impls (and elsewhere upstream) are a bit more stable? Probably worth looking at it again once you're back from Sweden?

@brainstorm brainstorm closed this May 22, 2024
@andrewpatto
Copy link
Member Author

Yes no problems - I am going to grab the code and possibly put it in a standalone GA4GH repo of "passport decoders" (in different languages). So it won't need to have any htsget tie in..
But yes - should re-visit later specifically for htsget

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

Successfully merging this pull request may close these issues.

None yet

3 participants