-
-
Notifications
You must be signed in to change notification settings - Fork 8.8k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #80 from jenkinsci-cert/SECURITY-362
[SECURITY-362] Do not persist User in OfflineCause.UserCause
- Loading branch information
Showing
5 changed files
with
196 additions
and
9 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
34 changes: 34 additions & 0 deletions
34
...src/test/resources/hudson/model/ComputerTest/removeUserDetailsFromOfflineCause/config.xml
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,34 @@ | ||
<?xml version='1.0' encoding='UTF-8'?> | ||
<hudson> | ||
<disabledAdministrativeMonitors/> | ||
<version>1.0</version> | ||
<numExecutors>2</numExecutors> | ||
<mode>NORMAL</mode> | ||
<useSecurity>true</useSecurity> | ||
<authorizationStrategy class="hudson.security.AuthorizationStrategy$Unsecured"/> | ||
<securityRealm class="hudson.security.SecurityRealm$None"/> | ||
<disableRememberMe>false</disableRememberMe> | ||
<projectNamingStrategy class="jenkins.model.ProjectNamingStrategy$DefaultProjectNamingStrategy"/> | ||
<workspaceDir>${JENKINS_HOME}/workspace/${ITEM_FULLNAME}</workspaceDir> | ||
<buildsDir>${ITEM_ROOTDIR}/builds</buildsDir> | ||
<jdks/> | ||
<viewsTabBar class="hudson.views.DefaultViewsTabBar"/> | ||
<myViewsTabBar class="hudson.views.DefaultMyViewsTabBar"/> | ||
<clouds/> | ||
<scmCheckoutRetryCount>0</scmCheckoutRetryCount> | ||
<views> | ||
<hudson.model.AllView> | ||
<owner class="hudson" reference="../../.."/> | ||
<name>All</name> | ||
<filterExecutors>false</filterExecutors> | ||
<filterQueue>false</filterQueue> | ||
<properties class="hudson.model.View$PropertyList"/> | ||
</hudson.model.AllView> | ||
</views> | ||
<primaryView>All</primaryView> | ||
<slaveAgentPort>0</slaveAgentPort> | ||
<label></label> | ||
<nodeProperties/> | ||
<globalNodeProperties/> | ||
<noUsageStatistics>true</noUsageStatistics> | ||
</hudson> |
56 changes: 56 additions & 0 deletions
56
...hudson/model/ComputerTest/removeUserDetailsFromOfflineCause/nodes/deserialized/config.xml
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,56 @@ | ||
<?xml version='1.0' encoding='UTF-8'?> | ||
<slave> | ||
<temporaryOfflineCause class="hudson.slaves.OfflineCause$UserCause"> | ||
<timestamp>1479196265920</timestamp> | ||
<description> | ||
<holder> | ||
<owner>hudson.slaves.Messages</owner> | ||
</holder> | ||
<key>SlaveComputer.DisconnectedBy</key> | ||
<args> | ||
<string>username</string> | ||
<string> : msg</string> | ||
</args> | ||
</description> | ||
<user> | ||
<fullName>username</fullName> | ||
<properties> | ||
<jenkins.security.ApiTokenProperty> | ||
<apiToken>wPfVKd4HGJzRoEpazbTu35nXXfI34cguPjm+5JPO7pZDFLFgpFLviQsS3NdJndax</apiToken> | ||
</jenkins.security.ApiTokenProperty> | ||
<hudson.tasks.Mailer_-UserProperty/> | ||
<hudson.model.MyViewsProperty> | ||
<views> | ||
<hudson.model.AllView> | ||
<owner class="hudson.model.MyViewsProperty" reference="../../.."/> | ||
<name>All</name> | ||
<filterExecutors>false</filterExecutors> | ||
<filterQueue>false</filterQueue> | ||
<properties class="hudson.model.View$PropertyList"/> | ||
</hudson.model.AllView> | ||
</views> | ||
</hudson.model.MyViewsProperty> | ||
<hudson.model.PaneStatusProperties> | ||
<collapsed/> | ||
</hudson.model.PaneStatusProperties> | ||
<hudson.search.UserSearchProperty> | ||
<insensitiveSearch>false</insensitiveSearch> | ||
</hudson.search.UserSearchProperty> | ||
</properties> | ||
</user> | ||
</temporaryOfflineCause> | ||
<name>deserialized</name> | ||
<description>dummy</description> | ||
<remoteFS>...</remoteFS> | ||
<numExecutors>1</numExecutors> | ||
<mode>NORMAL</mode> | ||
<retentionStrategy class="hudson.slaves.RetentionStrategy$2"> | ||
<DESCRIPTOR> | ||
<outer-class reference="../.."/> | ||
</DESCRIPTOR> | ||
</retentionStrategy> | ||
<launcher/> | ||
<label></label> | ||
<nodeProperties/> | ||
<userId>SYSTEM</userId> | ||
</slave> |
38 changes: 38 additions & 0 deletions
38
...ces/hudson/model/ComputerTest/removeUserDetailsFromOfflineCause/users/username/config.xml
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,38 @@ | ||
<?xml version='1.0' encoding='UTF-8'?> | ||
<user> | ||
<fullName>username</fullName> | ||
<id>username</id> | ||
<description></description> | ||
<properties> | ||
<jenkins.security.ApiTokenProperty> | ||
<apiToken>qykj8q6EqvMg9LPu+lCqLiXBZvEVdCTWoYJwmicXgH+yh1ZUm85iHe29grd+g3QG</apiToken> | ||
</jenkins.security.ApiTokenProperty> | ||
<com.cloudbees.plugins.credentials.UserCredentialsProvider_-UserCredentialsProperty plugin="credentials@1.18"> | ||
<domainCredentialsMap class="hudson.util.CopyOnWriteMap$Hash"/> | ||
</com.cloudbees.plugins.credentials.UserCredentialsProvider_-UserCredentialsProperty> | ||
<hudson.tasks.Mailer_-UserProperty> | ||
<emailAddress></emailAddress> | ||
</hudson.tasks.Mailer_-UserProperty> | ||
<hudson.model.MyViewsProperty> | ||
<primaryViewName></primaryViewName> | ||
<views> | ||
<hudson.model.AllView> | ||
<owner class="hudson.model.MyViewsProperty" reference="../../.."/> | ||
<name>All</name> | ||
<filterExecutors>false</filterExecutors> | ||
<filterQueue>false</filterQueue> | ||
<properties class="hudson.model.View$PropertyList"/> | ||
</hudson.model.AllView> | ||
</views> | ||
</hudson.model.MyViewsProperty> | ||
<hudson.model.PaneStatusProperties> | ||
<collapsed/> | ||
</hudson.model.PaneStatusProperties> | ||
<org.jenkinsci.main.modules.cli.auth.ssh.UserPropertyImpl> | ||
<authorizedKeys></authorizedKeys> | ||
</org.jenkinsci.main.modules.cli.auth.ssh.UserPropertyImpl> | ||
<hudson.search.UserSearchProperty> | ||
<insensitiveSearch>false</insensitiveSearch> | ||
</hudson.search.UserSearchProperty> | ||
</properties> | ||
</user> |