Skip to content

[PoC] 3rd party zones#926

Closed
davlgd wants to merge 3 commits intomasterfrom
davlgd-3rd-party-zones
Closed

[PoC] 3rd party zones#926
davlgd wants to merge 3 commits intomasterfrom
davlgd-3rd-party-zones

Conversation

@davlgd
Copy link
Copy Markdown
Contributor

@davlgd davlgd commented Jun 25, 2025

Fixes #345

@davlgd davlgd force-pushed the davlgd-3rd-party-zones branch from 5b0ddb2 to 5d17827 Compare June 25, 2025 23:15
@BlackYoup
Copy link
Copy Markdown
Member

Just tested, quick functional review:

  • we should have arguments to set the values, interactive mode is great but for scripts the arguments will be nicer
  • it asks for CONSOLE_TOKEN_URL, not sure what to put there
  • Could we also provide oauth tokens (not consumers, tokens)? It would help when clever login won't be available.

@davlgd
Copy link
Copy Markdown
Contributor Author

davlgd commented Jul 10, 2025

  • it asks for CONSOLE_TOKEN_URL, not sure what to put there

Classic value is:

CONSOLE_TOKEN_URL: 'https://console.clever-cloud.com/cli-oauth',

@davlgd davlgd force-pushed the davlgd-3rd-party-zones branch from 19968cc to ad4ae75 Compare July 11, 2025 04:50
@davlgd
Copy link
Copy Markdown
Contributor Author

davlgd commented Jul 11, 2025

  • we should have arguments to set the values, interactive mode is great but for scripts the arguments will be nicer

For the set-oauth-conf command, you now have:

[--api-host] API_HOST                               API host to use (e.g.: https://api.clever-cloud.com)
[--console-token-url] CONSOLE_TOKEN_URL             Console token URL to use (e.g.: https://console.clever-cloud.com/cli-oauth)
[--oauth-consumer-key] OAUTH_CONSUMER_KEY           OAuth consumer key to use)
[--oauth-consumer-secret] OAUTH_CONSUMER_SECRET     OAuth consumer secret to use
  • Could we also provide oauth tokens (not consumers, tokens)? It would help when clever login won't be available.

To auth from command line arguments and write config file, you can already:

clever login --token TOKEN --secret SECRET

@davlgd davlgd force-pushed the davlgd-3rd-party-zones branch from 73c654b to 55084d4 Compare July 11, 2025 05:13
@davlgd davlgd force-pushed the davlgd-3rd-party-zones branch from 55084d4 to a0fcdc9 Compare November 21, 2025 08:13
@davlgd davlgd marked this pull request as ready for review November 21, 2025 08:14
@davlgd davlgd requested a review from a team as a code owner November 21, 2025 08:14
@davlgd davlgd force-pushed the davlgd-3rd-party-zones branch 3 times, most recently from cd76cc6 to 55084d4 Compare November 21, 2025 11:14
@davlgd davlgd force-pushed the davlgd-3rd-party-zones branch from 55084d4 to fcd4acf Compare November 21, 2025 11:34
@github-actions
Copy link
Copy Markdown

github-actions Bot commented Nov 21, 2025

🔎 A preview has been automatically published!

If you created the alias to the preview script, you can run this command to download and install this preview:

clever-preview update davlgd-3rd-party-zones

You can also run it from your local repository:

./scripts/preview.js update davlgd-3rd-party-zones
OS SHA256 checksum
🐧 linux 48ba025822288e12bc8f2c30c7340c8dc1253970b999f3a6db75293225171ac1
🍏 macos d65e2f45dde1aac4be4b20b67491d0d96d337222f6bf1b7c931ef5de8a70a26e
🪟 win 31cba0f552f7d5381f32bb766f2ba91ef5456c69a1b9ac13bc2914de4f7e38ed

This preview will be deleted once this PR is closed.

@davlgd davlgd force-pushed the davlgd-3rd-party-zones branch from fcd4acf to 536044f Compare November 21, 2025 11:45
@CleverCloud CleverCloud deleted a comment from github-actions Bot Nov 21, 2025
@davlgd davlgd marked this pull request as draft November 21, 2025 11:51
@BlackYoup
Copy link
Copy Markdown
Member

❯ ./clever-tools-davlgd-3rd-party-zones_linux/clever set-oauth-conf
✔ API Host api.airgap.local
✔ Console Token URL https://console.airgap.local/cli-oauth
✔ OAuth Consumer Key ********************************
✔ OAuth Consumer Secret ********************************
✓ OAuth Configuration saved successfully, test it with clever login
❯ clever login
Opening https://console.clever-cloud.com/cli-oauth?cli_version=4.4.0&cli_token=xxxx in your browser to log you in…

Shouldn't it open the provided Console Token URL?

@FlorentinDUBOIS
Copy link
Copy Markdown

@BlackYoup @davlgd does the console link should be updated as well ? As it should be https//console.airgap.local/cli-oauth?xxx there ?

@hsablonniere hsablonniere deleted the davlgd-3rd-party-zones branch January 9, 2026 21:56
@hsablonniere hsablonniere restored the davlgd-3rd-party-zones branch January 9, 2026 21:59
@hsablonniere hsablonniere reopened this Jan 9, 2026
@hsablonniere
Copy link
Copy Markdown
Member

Closed in favor of #1028

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.

Make clever-tools configurable for multizone purpose

4 participants