Skip to content
This repository was archived by the owner on Nov 19, 2026. It is now read-only.

Don't use any default path fallbacks if the user specified a path - #1751

Merged
mtrmac merged 1 commit into
containers:mainfrom
mtrmac:auth-respect-overrides
Dec 9, 2022
Merged

mtrmac merged 1 commit into
containers:mainfrom
mtrmac:auth-respect-overrides

Conversation

@mtrmac

@mtrmac mtrmac commented Dec 8, 2022

Copy link
Copy Markdown
Collaborator

This means that users setting up AuthFilePath can rely on that config file, without influences from the external environment.

OTOH it might break existing users.

Fixes #596 — but I’m not really sure we want to make this change after all these years.

@vrothberg vrothberg left a comment

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

SGTM

Hard to predict whether it'll break something. Yet it seems more intuitive to only use what the user has provided.

@rhatdan

rhatdan commented Dec 9, 2022

Copy link
Copy Markdown
Member

I see the current settings as a bug. If a calling app specifies the path, then it should use it, just because the tool finds it in a random location, can cause random failures that could be difficult to debug.

This means that users setting up AuthFilePath can rely on that
config file, without influences from the external environment.

OTOH it might break existing users.

Signed-off-by: Miloslav Trmač <[email protected]>
@mtrmac
mtrmac force-pushed the auth-respect-overrides branch from 857c74e to b3748aa Compare December 9, 2022 20:59
@mtrmac

mtrmac commented Dec 9, 2022

Copy link
Copy Markdown
Collaborator Author

All right, let’s do this.

@mtrmac mtrmac changed the title RFC: Don't use any default path fallbacks if the user specified a path Don't use any default path fallbacks if the user specified a path Dec 9, 2022
@mtrmac
mtrmac merged commit d31ad45 into containers:main Dec 9, 2022
@mtrmac
mtrmac deleted the auth-respect-overrides branch December 9, 2022 21:17
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Incorrect/inconsistent docker/config.json path lookup

3 participants