Skip to content

Commit 466953f

Browse files
committed
fix: move socket path out of parsec directory
1 parent 8c97e0d commit 466953f

File tree

7 files changed

+10
-7
lines changed

7 files changed

+10
-7
lines changed

parsec-client-java/src/main/java/org/parallaxsecond/parsec/client/core/ipc_handler/UnixSocket.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@
1313
/** IPC handler for Unix domain sockets */
1414
public class UnixSocket implements IpcHandler {
1515
/** Default socket path used by the service. */
16-
public static final String DEFAULT_SOCKET_PATH = "/parsec/quickstart/parsec.sock";
16+
public static final String DEFAULT_SOCKET_PATH = "/run/parsec/parsec.sock";
1717
/** Path at which the socket can be found */
1818
private final Path path;
1919
/** Timeout for reads and writes on the streams */

parsec-client-java/src/test/resources/cryptoauthlib-config.toml.bak

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@ listener_type = "DomainSocket"
1313
# The timeout needs to be smaller than the test client timeout (five seconds) as it is testing
1414
# that the service does not hang for very big values of body or authentication length.
1515
timeout = 3000 # in milliseconds
16-
socket_path = "/parsec/quickstart/parsec.sock"
16+
socket_path = "/run/parsec/parsec.sock"
1717

1818
[authenticator]
1919
auth_type = "Direct"

parsec-client-java/src/test/resources/mbed-crypto-config.toml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@ listener_type = "DomainSocket"
1414
# The timeout needs to be smaller than the test client timeout (five seconds) as it is testing
1515
# that the service does not hang for very big values of body or authentication length.
1616
timeout = 3000 # in milliseconds
17-
socket_path = "/parsec/quickstart/parsec.sock"
17+
socket_path = "/run/parsec/parsec.sock"
1818

1919
[authenticator]
2020
auth_type = "Direct"

parsec-jca-java-test/src/test/resources/cryptoauthlib-config.toml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@ listener_type = "DomainSocket"
1313
# The timeout needs to be smaller than the test client timeout (five seconds) as it is testing
1414
# that the service does not hang for very big values of body or authentication length.
1515
timeout = 3000 # in milliseconds
16-
socket_path = "/parsec/quickstart/parsec.sock"
16+
socket_path = "/run/parsec/parsec.sock"
1717

1818
[authenticator]
1919
auth_type = "Direct"

parsec-jca-java-test/src/test/resources/mbed-crypto-config.toml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@ listener_type = "DomainSocket"
1313
# The timeout needs to be smaller than the test client timeout (five seconds) as it is testing
1414
# that the service does not hang for very big values of body or authentication length.
1515
timeout = 3000 # in milliseconds
16-
socket_path = "/parsec/quickstart/parsec.sock"
16+
socket_path = "/run/parsec/parsec.sock"
1717

1818
[authenticator]
1919
auth_type = "Direct"

parsec-testcontainers/parsec/Dockerfile

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -88,13 +88,16 @@ FROM ubuntu:latest AS runnable_image
8888
COPY --from=layout /parsec /parsec
8989

9090
ENV PATH=$PATH:/parsec/bin
91-
ENV PARSEC_SERVICE_ENDPOINT=unix:/parsec/quickstart/parsec.sock
91+
ENV PARSEC_SERVICE_ENDPOINT=unix:/run/parsec/parsec.sock
9292

9393
RUN apt update && apt install -y openssl socat
9494

9595

9696
RUN useradd -ms /bin/bash qs
9797
RUN chown -R qs:qs /parsec/quickstart
98+
RUN mkdir -p /run/parsec
99+
RUN chown -R qs:qs /run/parsec
100+
RUN chmod -R 777 /run/parsec
98101
USER qs
99102

100103
WORKDIR /parsec/quickstart

parsec-testcontainers/parsec/config.toml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@ allow_root = true
77
[listener]
88
listener_type = "DomainSocket"
99
timeout = 200 # in milliseconds
10-
socket_path = "/parsec/quickstart/parsec.sock"
10+
socket_path = "/run/parsec/parsec.sock"
1111

1212
[authenticator]
1313
# auth_type = "UnixPeerCredentials"

0 commit comments

Comments
 (0)