Skip to content

allow object storage to be configured by env vars - #1146

Merged
tdas merged 2 commits into
unitycatalog:mainfrom
1b5d:object-storage-env-var
Nov 1, 2025
Merged

tdas merged 2 commits into
unitycatalog:mainfrom
1b5d:object-storage-env-var

Conversation

@1b5d

@1b5d 1b5d commented Oct 30, 2025

Copy link
Copy Markdown
Contributor

PR Checklist

  • A description of the changes is added to the description of this PR.
  • If there is a related issue, make sure it is linked to this PR.
  • If you've fixed a bug or added code that should be tested, add tests!
  • If you've added or modified a feature, documentation in docs is updated

Description of changes

It's currently possible to use environment variables to configure server properties, however that's not the case for object storage configurations, as it seems they are being fetched directly from the properties files and not being fetched through the configuration precedence, this PR unify that logic with the rest of the configurations in server properteis

@1b5d
1b5d force-pushed the object-storage-env-var branch from 40e9a07 to b97a71b Compare October 30, 2025 14:33

@openinx openinx left a comment

Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

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

LGTM, thanks @1b5d for the contribution !

@openinx

openinx commented Oct 30, 2025

Copy link
Copy Markdown
Collaborator

@1b5d , Please help to see what's the reason that the CI is broken, thanks .

@1b5d
1b5d force-pushed the object-storage-env-var branch from 7c76cc9 to 0cd7575 Compare October 30, 2025 16:00
Signed-off-by: 1b5d <[email protected]>
@1b5d
1b5d force-pushed the object-storage-env-var branch from 0cd7575 to e4c0790 Compare October 30, 2025 16:15

@tdas tdas left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

thank you for catching this. good code improvement!

@tdas
tdas merged commit bc99c38 into unitycatalog:main Nov 1, 2025
@tdas

tdas commented Nov 1, 2025

Copy link
Copy Markdown
Contributor

Created backport PR for branch-0.3:

Please cherry-pick the changes locally and resolve any conflicts.

git fetch origin backport-1146-to-branch-0.3
git worktree add --checkout .worktree/backport-1146-to-branch-0.3 backport-1146-to-branch-0.3
cd .worktree/backport-1146-to-branch-0.3
git reset --hard HEAD^
git cherry-pick -x bc99c38d00e608b57c0e1f3ad544c8b22f1464ed
git push --force-with-lease

tdas pushed a commit that referenced this pull request Nov 14, 2025
**PR Checklist**

- [x] A description of the changes is added to the description of this
PR.
- [ ] If there is a related issue, make sure it is linked to this PR.
- [ ] If you've fixed a bug or added code that should be tested, add
tests!
- [ ] If you've added or modified a feature, documentation in `docs` is
updated

**Description of changes**

<!-- Please state what you've changed and how it might affect the users.
-->

It's currently possible to use environment variables to configure server
properties, however that's not the case for object storage
configurations, as it seems they are being fetched directly from the
properties files and not being fetched through the configuration
precedence, this PR unify that logic with the rest of the configurations
in server properteis

---------

Signed-off-by: 1b5d <[email protected]>
tdas pushed a commit that referenced this pull request Nov 14, 2025
**PR Checklist**

- [x] A description of the changes is added to the description of this
PR.
- [ ] If there is a related issue, make sure it is linked to this PR.
- [ ] If you've fixed a bug or added code that should be tested, add
tests!
- [ ] If you've added or modified a feature, documentation in `docs` is
updated

**Description of changes**

<!-- Please state what you've changed and how it might affect the users.
-->

It's currently possible to use environment variables to configure server
properties, however that's not the case for object storage
configurations, as it seems they are being fetched directly from the
properties files and not being fetched through the configuration
precedence, this PR unify that logic with the rest of the configurations
in server properteis

---------

Signed-off-by: 1b5d <[email protected]>
tdas pushed a commit that referenced this pull request Nov 14, 2025
**PR Checklist**

- [x] A description of the changes is added to the description of this
PR.
- [ ] If there is a related issue, make sure it is linked to this PR.
- [ ] If you've fixed a bug or added code that should be tested, add
tests!
- [ ] If you've added or modified a feature, documentation in `docs` is
updated

**Description of changes**

<!-- Please state what you've changed and how it might affect the users.
-->

It's currently possible to use environment variables to configure server
properties, however that's not the case for object storage
configurations, as it seems they are being fetched directly from the
properties files and not being fetched through the configuration
precedence, this PR unify that logic with the rest of the configurations
in server properteis

---------

Signed-off-by: 1b5d <[email protected]>
Signed-off-by: Tathagata Das <[email protected]>
tdas added a commit that referenced this pull request Nov 17, 2025
…rs (#1150)

Backport of #1146 to `branch-0.3`.

---

**PR Checklist**

- [x] A description of the changes is added to the description of this
PR.
- [ ] If there is a related issue, make sure it is linked to this PR.
- [ ] If you've fixed a bug or added code that should be tested, add
tests!
- [ ] If you've added or modified a feature, documentation in `docs` is
updated

**Description of changes**

<!-- Please state what you've changed and how it might affect the users.
-->

It's currently possible to use environment variables to configure server
properties, however that's not the case for object storage
configurations, as it seems they are being fetched directly from the
properties files and not being fetched through the configuration
precedence, this PR unify that logic with the rest of the configurations
in server properteis

Signed-off-by: 1b5d <[email protected]>
Signed-off-by: Tathagata Das <[email protected]>
Co-authored-by: Abed <[email protected]>
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.

3 participants