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

Commit 2ebf866

Browse files
authored
removed authentication for deploy script capture (#175)
1 parent d1e09ad commit 2ebf866

File tree

3 files changed

+5
-3
lines changed

3 files changed

+5
-3
lines changed

pom.xml

+1-1
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@
55
<artifactId>api</artifactId>
66
<packaging>jar</packaging>
77
<name>${project.groupId}:${project.artifactId}</name>
8-
<version>3.3.3-SNAPSHOT</version>
8+
<version>3.3.4-SNAPSHOT</version>
99
<description>Hygieia Rest API Layer</description>
1010
<url>https://github.com/Hygieia/api</url>
1111

src/main/java/com/capitalone/dashboard/config/WebSecurityConfig.java

+1
Original file line numberDiff line numberDiff line change
@@ -91,6 +91,7 @@ protected void configure(HttpSecurity http) throws Exception {
9191
.antMatchers(HttpMethod.POST, "/generic-item").permitAll()
9292
.antMatchers(HttpMethod.POST, "/generic-binary-artifact").permitAll()
9393
.antMatchers(HttpMethod.POST, "/metadata/create").permitAll()
94+
.antMatchers(HttpMethod.POST, "/v3/deploy").permitAll()
9495
.anyRequest().authenticated()
9596
.and()
9697
.addFilterBefore(standardLoginRequestFilter(), UsernamePasswordAuthenticationFilter.class)

src/main/java/com/capitalone/dashboard/service/DeployServiceImpl.java

+3-2
Original file line numberDiff line numberDiff line change
@@ -224,8 +224,9 @@ public String createV2(DeployDataCreateRequest request) throws HygieiaException
224224
}
225225

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

230231
}
231232

0 commit comments

Comments
 (0)