Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

24.04 migration: Credentials #143

Open
wants to merge 4 commits into
base: Crola1702/24.04-migration-authentication
Choose a base branch
from

Conversation

Crola1702
Copy link
Contributor

Description

This PR replaces the use of jenkins_*_credentials resources with Groovy scripts to handle the use of credentials more dynamically and flexibly.

Also, it creates credentials_config.groovy inside /var/lib/jenkins/init.groovy.d/ (see #142)


file '/var/lib/jenkins/init.groovy.d/credentials_config.groovy' do
content credentials_scripts.join("\n")
mode '0755'

Choose a reason for hiding this comment

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

I think we want a 0500 permission here to allow the jenkins user to read and execute, but not write.
It would prevent other users from reading the content of the groovy script.
Do we know if Jenkins needs to read it as well or if just executes what's under init.groovy?

@Crola1702 Crola1702 force-pushed the Crola1702/24.04-migration-credentials branch from d828ac8 to a84fe93 Compare January 30, 2025 15:35
@Crola1702 Crola1702 force-pushed the Crola1702/24.04-migration-authentication branch 2 times, most recently from ea3bd19 to 39a0058 Compare January 30, 2025 15:50
@Crola1702 Crola1702 force-pushed the Crola1702/24.04-migration-credentials branch from a84fe93 to 49c9967 Compare January 30, 2025 16:02
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.

2 participants