Title: Support object_storage_url override · Issue #341 · php-opencloud/openstack · GitHub
Open Graph Title: Support object_storage_url override · Issue #341 · php-opencloud/openstack
X Title: Support object_storage_url override · Issue #341 · php-opencloud/openstack
Description: Generally, the object_storage_url is built from OS_AUTH_URL, OS_PROJECT_ID and other similar variable. In php-opencloud/openstack it's retrieved from the JSON payload obtained from POST /v3/auth/tokens (in token.catalog.endpoints[type=="...
Open Graph Description: Generally, the object_storage_url is built from OS_AUTH_URL, OS_PROJECT_ID and other similar variable. In php-opencloud/openstack it's retrieved from the JSON payload obtained from POST /v3/auth/to...
X Description: Generally, the object_storage_url is built from OS_AUTH_URL, OS_PROJECT_ID and other similar variable. In php-opencloud/openstack it's retrieved from the JSON payload obtained from POST /v3/aut...
Opengraph URL: https://github.com/php-opencloud/openstack/issues/341
X: @github
Domain: patch-diff.githubusercontent.com
{"@context":"https://schema.org","@type":"DiscussionForumPosting","headline":"Support object_storage_url override","articleBody":"Generally, the object_storage_url is built from `OS_AUTH_URL`, `OS_PROJECT_ID` and other similar variable. In php-opencloud/openstack it's retrieved from the JSON payload obtained from `POST /v3/auth/tokens` (in `token.catalog.endpoints[type==\"object-store\"][interface == \"xx\"].url`)\r\n \r\nStill, the Python Swift client allows for another alternative: [OS_STORAGE_URL](https://github.com/openstack/python-swiftclient/blob/master/swiftclient/client.py#L785)\r\n\r\nThis allows to use a distinct storage-url unrelated from said variable.\r\n\r\nThis is useful (= actually _necessary_) in the context of **application credentials,** where an application credential is generated within a given project, but used to access an object container in another project (whose ACLs have been configured). In such a case we can't rely on the URL generation logic.\r\n\r\nThis is need to give a use for cross-projects https://github.com/php-opencloud/openstack/pull/336\r\nLet's remind that some Openstack hosting solution do not offer multiple users, but only multiple projects, making cross-project application credentials the only secure way to grant access to an object container which implies supporting the OS_STORAGE_URL override.\r\n\r\n\r\nIn a more generic way, it means giving the ability to override `OpenStack\\Identity\\v3\\Models\\Service::getUrl()` from the configuration (this class as not access to)","author":{"url":"https://github.com/drzraf","@type":"Person","name":"drzraf"},"datePublished":"2022-01-13T16:51:09.000Z","interactionStatistic":{"@type":"InteractionCounter","interactionType":"https://schema.org/CommentAction","userInteractionCount":0},"url":"https://github.com/341/openstack/issues/341"}
| route-pattern | /_view_fragments/issues/show/:user_id/:repository/:id/issue_layout(.:format) |
| route-controller | voltron_issues_fragments |
| route-action | issue_layout |
| fetch-nonce | v2:49a12c4c-0fd1-f724-469e-fda92fbc1aca |
| current-catalog-service-hash | 81bb79d38c15960b92d99bca9288a9108c7a47b18f2423d0f6438c5b7bcd2114 |
| request-id | C05E:DE334:24B4EBB:2F1E134:6975ED5D |
| html-safe-nonce | c41956003bacaa171d56ca995a29061c0267e3a64fa0b94e0f78b80d259dcee2 |
| visitor-payload | eyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiJDMDVFOkRFMzM0OjI0QjRFQkI6MkYxRTEzNDo2OTc1RUQ1RCIsInZpc2l0b3JfaWQiOiIyNzAwNjQxNzkwNzIwMzM5MjkzIiwicmVnaW9uX2VkZ2UiOiJpYWQiLCJyZWdpb25fcmVuZGVyIjoiaWFkIn0= |
| visitor-hmac | fc1ccc9ec55211ca15854dbbf102a59d432cee304021dd633d2ebaa6ca999eaa |
| hovercard-subject-tag | issue:1102032707 |
| github-keyboard-shortcuts | repository,issues,copilot |
| google-site-verification | Apib7-x98H0j5cPqHWwSMm6dNU4GmODRoqxLiDzdx9I |
| octolytics-url | https://collector.github.com/github/collect |
| analytics-location | / |
| fb:app_id | 1401488693436528 |
| apple-itunes-app | app-id=1477376905, app-argument=https://github.com/_view_fragments/issues/show/php-opencloud/openstack/341/issue_layout |
| twitter:image | https://opengraph.githubassets.com/abcbb3865811122cdd5db98e7d379293a2811931ded088a360e63dc12239c798/php-opencloud/openstack/issues/341 |
| twitter:card | summary_large_image |
| og:image | https://opengraph.githubassets.com/abcbb3865811122cdd5db98e7d379293a2811931ded088a360e63dc12239c798/php-opencloud/openstack/issues/341 |
| og:image:alt | Generally, the object_storage_url is built from OS_AUTH_URL, OS_PROJECT_ID and other similar variable. In php-opencloud/openstack it's retrieved from the JSON payload obtained from POST /v3/auth/to... |
| og:image:width | 1200 |
| og:image:height | 600 |
| og:site_name | GitHub |
| og:type | object |
| og:author:username | drzraf |
| hostname | github.com |
| expected-hostname | github.com |
| None | 2bce766e7450b03e00b2fc5badd417927ce33a860e78cda3e4ecb9bbd1374cc6 |
| turbo-cache-control | no-preview |
| go-import | github.com/php-opencloud/openstack git https://github.com/php-opencloud/openstack.git |
| octolytics-dimension-user_id | 8049082 |
| octolytics-dimension-user_login | php-opencloud |
| octolytics-dimension-repository_id | 32149778 |
| octolytics-dimension-repository_nwo | php-opencloud/openstack |
| octolytics-dimension-repository_public | true |
| octolytics-dimension-repository_is_fork | false |
| octolytics-dimension-repository_network_root_id | 32149778 |
| octolytics-dimension-repository_network_root_nwo | php-opencloud/openstack |
| turbo-body-classes | logged-out env-production page-responsive |
| disable-turbo | false |
| browser-stats-url | https://api.github.com/_private/browser/stats |
| browser-errors-url | https://api.github.com/_private/browser/errors |
| release | fcca2b8ef702b5f7f91427a6e920fa44446fe312 |
| ui-target | full |
| theme-color | #1e2327 |
| color-scheme | light dark |
Links:
Viewport: width=device-width