Skip to content

[REFACTOR] Unify container labels #202

Description

@steveiliop56

Right now container labels are scattered instead of being grouped in purpose-specific groups:

// OAuthLabels is a list of labels that can be used in a tinyauth protected containertypeOAuthLabelsstruct {
WhiteliststringGroupsstring
}
// Basic auth labels for a tinyauth protected containertypeBasicLabelsstruct {
UserstringPasswordstring
}
// Labels is a struct that contains the labels for a tinyauth protected containertypeLabelsstruct {
UsersstringAllowedstringHeaders []stringDomainstringBasicBasicLabelsOAuthOAuthLabels
}

They should be instead refactored to more intuitive labels like:

typePathLabelsstruct {
Allowedstring
}
typeGenericLabelsstruct {
Usersstring
}
typeOAuthLabelsstruct {
WhiteliststringGroupsstring
}
typeConfigLabelsstruct {
DomainstringHeaders []stringBasicBasicLabelsPathsPathLabels
}
typeLabelsstruct {
GenericGenericLabelsOAuthOAuthLabelsConfigConfigLabels
}

This would require a breaking change but it would make labels easier to understand and use.

Metadata

Metadata

Assignees

Labels

breakingThis issue requires a breaking updateenhancementNew feature or requestpinnedThis issue is pinned

Type

No type

Projects

No projects

Milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions