Skip to content
This repository has been archived by the owner on Oct 2, 2023. It is now read-only.

Commit

Permalink
removed authentication for deploy script capture (#175)
Browse files Browse the repository at this point in the history
  • Loading branch information
rvema authored Nov 16, 2020
1 parent d1e09ad commit 2ebf866
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 3 deletions.
2 changes: 1 addition & 1 deletion pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@
<artifactId>api</artifactId>
<packaging>jar</packaging>
<name>${project.groupId}:${project.artifactId}</name>
<version>3.3.3-SNAPSHOT</version>
<version>3.3.4-SNAPSHOT</version>
<description>Hygieia Rest API Layer</description>
<url>https://github.com/Hygieia/api</url>

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -91,6 +91,7 @@ protected void configure(HttpSecurity http) throws Exception {
.antMatchers(HttpMethod.POST, "/generic-item").permitAll()
.antMatchers(HttpMethod.POST, "/generic-binary-artifact").permitAll()
.antMatchers(HttpMethod.POST, "/metadata/create").permitAll()
.antMatchers(HttpMethod.POST, "/v3/deploy").permitAll()
.anyRequest().authenticated()
.and()
.addFilterBefore(standardLoginRequestFilter(), UsernamePasswordAuthenticationFilter.class)
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -224,8 +224,9 @@ public String createV2(DeployDataCreateRequest request) throws HygieiaException
}

public String createV3(DeployDataCreateRequest request) throws HygieiaException {
EnvironmentComponent deploy = createDeploy(request, Boolean.TRUE);
return String.format("%s,%s", deploy.getId().toString(), deploy.getCollectorItemId().toString());
// Will be re designed later
//EnvironmentComponent deploy = createDeploy(request, Boolean.TRUE);
return String.format("%s,%s", "deployId", "deployCollectorItemId");

}

Expand Down

0 comments on commit 2ebf866

Please sign in to comment.