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

Make Dynatrace DQL provider oAuth URL configurable #1968

Closed
bacherfl opened this issue Aug 28, 2023 · 15 comments · Fixed by #2713
Closed

Make Dynatrace DQL provider oAuth URL configurable #1968

bacherfl opened this issue Aug 28, 2023 · 15 comments · Fixed by #2713
Assignees
Labels
chore Maintenance good first issue Good for newcomers metrics-operator
Milestone

Comments

@bacherfl
Copy link
Member

bacherfl commented Aug 28, 2023

Description

Currently, the oAuth URL for the DQL provider is hardcoded here:

defaultAuthURL = "https://dev.token.internal.dynatracelabs.com/sso/oauth2/token"

The goal of this ticket is to make this configurable by adding a key to the secret containing the client credentials that are used to authenticate the client at the oAuth URL

The current secret could be a good place where to store this information.

DoD

  • Feature implemented
  • Unit tests
@bacherfl bacherfl added status: ready-for-refinement Issue is relevant for the next backlog refinment metrics-operator labels Aug 28, 2023
@thisthat thisthat moved this to 🎟️ Refined in Keptn Lifecycle Toolkit Sep 6, 2023
@thisthat thisthat added this to the 0.10 milestone Sep 6, 2023
@thisthat thisthat added good first issue Good for newcomers chore Maintenance and removed status: ready-for-refinement Issue is relevant for the next backlog refinment labels Sep 6, 2023
@Sourav-Kumar-Panda
Copy link

Can i work on this?

@RealAnna
Copy link
Contributor

Hi @Sourav-Kumar-Panda sure you can! Let us know if anything in the ticket is unclear 🚀

@mowies
Copy link
Member

mowies commented Oct 4, 2023

any updates on this @Sourav-Kumar-Panda ?

@github-actions
Copy link
Contributor

This issue will be unassigned in 1 week if no further activity is seen.
If you are active please provide an update on the status of the issue and if you would like to continue
working on it.

@github-actions github-actions bot closed this as not planned Won't fix, can't repro, duplicate, stale Nov 3, 2023
@github-project-automation github-project-automation bot moved this from 🎟️ Refined to ✅ Done in Keptn Lifecycle Toolkit Nov 3, 2023
@mowies mowies reopened this Nov 6, 2023
@prakrit55
Copy link
Member

Hey @mowies, I wd like fix this.

@mowies
Copy link
Member

mowies commented Nov 19, 2023

Great! Thank you!

@prakrit55
Copy link
Member

hey @mowies, I looked into it and so abt it do I need to create a field function for another key in secret which defines the AuthUrl which the user can configure ??

@bacherfl
Copy link
Member Author

Hi @prakrit55 ! In the KeptnMetricProviderSpec we only allow to refer to one key within a secret. To not break that interface, I would suggest to change the expected format from a value containing the api token to a json encoded object containing a token and an authURL field. So this section here needs to be adapted:

token := string(dtCredsSecret.Data[provider.Spec.SecretKeyRef.Key])

Please let me know if there is anything unclear

@prakrit55
Copy link
Member

hey @bacherfl, one reconfirmation, so the authUrl should contain the token in its field, which need to be passed ??

@bacherfl
Copy link
Member Author

bacherfl commented Dec 5, 2023

Hi @prakrit55 , there should be a new field called authUrl , in addition to the token, that was previously defined in the secret. So for example, the content of the secret should be something like this:

{"authURL": "my-auth-url", "token":"my-token"}

@mowies mowies moved this from ✅ Done to 🏃 In progress in Keptn Lifecycle Toolkit Dec 5, 2023
@odubajDT
Copy link
Contributor

odubajDT commented Dec 6, 2023

Hi @prakrit55, do you plan to work on this issue? I see you are working also on another one #2640

Thanks!

@prakrit55
Copy link
Member

Hi @prakrit55, do you plan to work on this issue? I see you are working also on another one #2640

Thanks!

hey @odubajDT, after the former is done, I'm willing to continue it or if its an immediate requirement I will pull off a pr today itself, it wd be no hurdle for me

@odubajDT
Copy link
Contributor

odubajDT commented Dec 6, 2023

Hi @prakrit55, do you plan to work on this issue? I see you are working also on another one #2640
Thanks!

hey @odubajDT, after the former is done, I'm willing to continue it or if its an immediate requirement I will pull off a pr today itself, it wd be no hurdle for me

Thanks for the update, we still have some time.

Copy link
Contributor

This issue will be unassigned in 1 week if no further activity is seen.
If you are active please provide an update on the status of the issue and if you would like to continue
working on it.

@github-actions github-actions bot closed this as not planned Won't fix, can't repro, duplicate, stale Jan 4, 2024
@github-project-automation github-project-automation bot moved this from 🏃 In progress to ✅ Done in Keptn Lifecycle Toolkit Jan 4, 2024
@rakshitgondwal
Copy link
Member

Reopening this as an open PR is already linked to this issue.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
chore Maintenance good first issue Good for newcomers metrics-operator
Projects
Archived in project
8 participants