-
Notifications
You must be signed in to change notification settings - Fork 22
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(HMS-1674): Verify Azure source availability #750
Conversation
"github.com/RHEnVision/provisioning-backend/internal/telemetry" | ||
) | ||
|
||
const AZURE_SERVICE_ACCOUNT_OBJECT_ID = "bf9c3e0e-4bbd-425b-adb1-f005d3dfe9f9" |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Ugly, unfortunatelly this is the attribute we do not have in config, we do have application ID.
We could:
a) resolve applicationID to objectID through azure sdk,
b) store the applicationID in config as new value used just for this check.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Storing it in the config makes sense, assuming it does not change too often.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Oki, moved to config
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Okay thanks.
"github.com/RHEnVision/provisioning-backend/internal/telemetry" | ||
) | ||
|
||
const AZURE_SERVICE_ACCOUNT_OBJECT_ID = "bf9c3e0e-4bbd-425b-adb1-f005d3dfe9f9" |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Storing it in the config makes sense, assuming it does not change too often.
75761a6
to
31e08d6
Compare
Relevant test error I believe. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Code looks good. Failure on CI tho.
/retest Right, I've updated the account in ephemeral, lets 🙏 |
Bad luck. |
Relevant failure error. |
bd2e559
to
0564821
Compare
I've completely changed the approach here. I've tried to verify the correct role assignment, but it's bit too ambitious as Azure lighthouse works bit differently. |
Implement Azure availability check. We are only checking that we can login to the given subscritpion and fetch metadata. We currently fetch the tenant ID.
0564821
to
dabf313
Compare
🍏 |
Thanks. |
Implement Azure availability check.
We are checking for subscription metadata.
If we are able to fetch that, we consider the source available. It's not bullet proof, but it covers basics ;)