Skip to content

ci: refactor mcpauth CI job - #1444

Open
tschneider-aneo wants to merge 2 commits into
mainfrom
ts/refactor-mcpauth
Open

tschneider-aneo wants to merge 2 commits into
mainfrom
ts/refactor-mcpauth

Conversation

@tschneider-aneo

@tschneider-aneo tschneider-aneo commented Mar 5, 2026

Copy link
Copy Markdown
Contributor

Motivation

Following #1440, ArmoniK now has an standard deployment for its load balancer. Given that, keeping an ad-hoc docker compose for deploying it in the CI would much less relevant.

Description

CI jobs (especially mcpAuth) are now able to deploy ArmoniK with the Load Balancer.

A new job named auth, which is basicaly the same as mcpAuth except that it deploys a "classical" ArmoniK (i.e. without its load balancer) is added to CI.

Pytest script that runs in the CI is made agnostic about whether AK's load balancer is deployed.

Certificate for user armonik.mcp is ni longer generated since Load Balancer authentication data is hardcoded inside armonik TF module

Testing

See CI validations in present PR.

Impact

Authentication and authorization logics are tested against standard ArmoniK deployments.

Additional Information

/

Checklist

  • My code adheres to the coding and style guidelines of the project.
  • I have performed a self-review of my code.
  • I have commented my code, particularly in hard-to-understand areas.
  • [] I have made corresponding changes to the documentation.
  • I have thoroughly tested my modifications and added tests when necessary.
  • Tests pass locally and in the CI.
  • I have assessed the performance impact of my modifications.

@tschneider-aneo
tschneider-aneo marked this pull request as ready for review March 5, 2026 17:27
@tschneider-aneo
tschneider-aneo marked this pull request as draft March 5, 2026 17:29
@tschneider-aneo tschneider-aneo changed the title wip: refactor mcpauth CI job ci refactor mcpauth CI job Mar 5, 2026
@tschneider-aneo tschneider-aneo changed the title ci refactor mcpauth CI job ci:refactor mcpauth CI job Mar 5, 2026
@tschneider-aneo tschneider-aneo changed the title ci:refactor mcpauth CI job ci: refactor mcpauth CI job Mar 5, 2026
@tschneider-aneo
tschneider-aneo marked this pull request as ready for review March 12, 2026 09:30
lemaitre-aneo added a commit to aneoconsulting/ArmoniK.Infra that referenced this pull request Mar 13, 2026
# Motivation

While developing [this
PR](aneoconsulting/ArmoniK#1444), we faced an
uncapacity to customly define a custom, yet needed, `loadbalancer` user
when authentication is required but client certificates generation
disabled.

# Description
Rearranges logic behind client certificates generation : 
- moves the term "default" to "builtin"
- checks if builtin users are overrided in user-provided authentication
data before asking ingress module to generate certs for them
- merges the built-in users authentication data with user-provided ones,
with predecence for the latter.

# Testing

Current branch-version passes CI in the bug-revealing
[PR](aneoconsulting/ArmoniK#1444)

# Impact

More flexibility for AK authentication data initiation.
@tschneider-aneo
tschneider-aneo force-pushed the ts/refactor-mcpauth branch 2 times, most recently from 09af606 to c9c1f96 Compare March 19, 2026 09:58
@sonarqubecloud

Copy link
Copy Markdown

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant