message

package
v0.5.0 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Jan 7, 2024 License: Apache-2.0 Imports: 1 Imported by: 0

README

ContainerSSH message codes

This library contains all message codes used in ContainerSSH to identify log messages.

You can generate the documentation markdown files by running go generate.

Documentation

Overview

Package message contains all message codes used in ContainerSSH to identify log messages.

Index

Constants

View Source
const EAgentConnectionInvalidState = "AGENTPROTO_INVALID_STATE"

EAgentConnectionInvalidState indicates that the ContainerSSH Agent integration received a packet that is invalid for the state of the connection it refers to

View Source
const EAgentDecodingFailed = "AGENTPROTO_DECODE_FAILED"

EAgentDecodingFailed indicates that the ContainerSSH Agent integration failed to decode a packet

View Source
const EAgentPacketInvalid = "AGENTPROTO_PACKET_INVALID"

EAgentPacketInvalid indicates that the ContainerSSH Agent integration received a packet that it wasn't expecting

View Source
const EAgentUnknownConnection = "AGENTPROTO_UNKNOWN_CONNECTION"

EAgentUnknownConnection indicates that the ContainerSSH Agent integration received a packet referring to an unknown connection ID

View Source
const EAgentUnknownPacket = "AGENTPROTO_PACKET_UNKNOWN"

EAgentUnknownPacket indicates that the ContainerSSH Agent integration received an unknown packet

View Source
const EAgentWriteFailed = "AGENTPROTO_WRITE_FAILED"

EAgentWriteFailed indicates an error in the communication channel

View Source
const EAuditLogCannotCloseMetadataFileHandle = "AUDIT_S3_CANNOT_CLOSE_METADATA_FILE_HANDLE"

EAuditLogCannotCloseMetadataFileHandle indicates that ContainerSSH could not close the metadata file in the local folder. This typically happens when the local folder is on an NFS share. (Running an audit log on an NFS share is NOT supported.)

View Source
const EAuditLogCloseAuditLogFileFailed = "AUDIT_S3_CLOSE_FAILED"

EAuditLogCloseAuditLogFileFailed indicates that ContainerSSH failed to close an audit log file in the local directory. This usually happens when the local directory is on an NFS share. (This is NOT supported.)

View Source
const EAuditLogFailedCreatingMetadataFile = "AUDIT_S3_FAILED_CREATING_METADATA_FILE"

EAuditLogFailedCreatingMetadataFile indicates that ContainerSSH failed to create the metadata file for the S3 upload in the local temporary directory. Check if the local directory specified is writable and has enough disk space.

View Source
const EAuditLogFailedMetadataJSONEncoding = "AUDIT_S3_FAILED_METADATA_JSON_ENCODING"

EAuditLogFailedMetadataJSONEncoding indicates that ContainerSSH failed to encode the metadata file. This is a bug, please report it.

View Source
const EAuditLogFailedQueueStat = "AUDIT_S3_FAILED_STAT_QUEUE_ENTRY"

EAuditLogFailedQueueStat indicates that ContainerSSH failed to stat the queue file. This usually happens when the local directory is being manually manipulated.

View Source
const EAuditLogFailedReadingMetadataFile = "AUDIT_S3_FAILED_READING_METADATA_FILE"

EAuditLogFailedReadingMetadataFile indicates that ContainerSSH failed to read the metadata file for the S3 upload in the local temporary directory. Check if the local directory specified is readable and the files have not been corrupted.

View Source
const EAuditLogFailedWritingMetadataFile = "AUDIT_S3_FAILED_WRITING_METADATA_FILE"

EAuditLogFailedWritingMetadataFile indicates that ContainerSSH failed to write the local metadata file. Please check if your disk has enough disk space.

View Source
const EAuditLogMultipartAborting = "AUDIT_S3_MULTIPART_ABORTING"

EAuditLogMultipartAborting indicates that ContainerSSH is aborting a multipart upload. Check the log message for details.

View Source
const EAuditLogMultipartFailedAbort = "AUDIT_S3_MULTIPART_FAILED_ABORT"

EAuditLogMultipartFailedAbort indicates that ContainerSSH failed aborting a multipart upload from a previously crashed ContainerSSH run.

View Source
const EAuditLogMultipartFailedList = "AUDIT_S3_MULTIPART_FAILED_LIST"

EAuditLogMultipartFailedList indicates that ContainerSSH failed to list multipart uploads on the object storage bucket. This is needed to abort uploads from a previously crashed ContainerSSH run.

View Source
const EAuditLogMultipartPartUploadFailed = "AUDIT_S3_MULTIPART_PART_UPLOAD_FAILED"

EAuditLogMultipartPartUploadFailed indicates that ContainerSSH failed to upload a part to the S3-compatible object storage. Check the message for details.

View Source
const EAuditLogMultipartUploadFinalizationFailed = "AUDIT_S3_MULTIPART_UPLOAD_FINALIZATION_FAILED"

EAuditLogMultipartUploadFinalizationFailed indicates that ContainerSSH has uploaded all audit log parts, but could not finalize the multipart upload.

View Source
const EAuditLogMultipartUploadFinalized = "AUDIT_S3_MULTIPART_UPLOAD_FINALIZED"

EAuditLogMultipartUploadFinalized indicates that ContainerSSH has uploaded all audit log parts and has successfully finalized the upload.

View Source
const EAuditLogMultipartUploadInitializationFailed = "AUDIT_S3_MULTIPART_UPLOAD_INITIALIZATION_FAILED"

EAuditLogMultipartUploadInitializationFailed indicates that ContainerSSH failed to initialize a new multipart upload to the S3-compatible object storage. Check if the S3 configuration is correct and the provided S3 access key and secrets have permissions to start a multipart upload.

View Source
const EAuditLogNoSuchQueueEntry = "AUDIT_S3_NO_SUCH_QUEUE_ENTRY"

EAuditLogNoSuchQueueEntry indicates that ContainerSSH was trying to upload an audit log from the metadata file, but the audit log does not exist.

View Source
const EAuditLogRemoveAuditLogFailed = "AUDIT_S3_REMOVE_FAILED"

EAuditLogRemoveAuditLogFailed indicates that ContainerSSH failed to remove an uploaded audit log from the local directory. This usually happens on Windows when a different process has the audit log open. (This is not a supported setup.)

View Source
const EAuditLogStorageCloseFailed = "AUDIT_STORAGE_CLOSE_FAILED"

EAuditLogStorageCloseFailed indicates that ContainerSSH failed to close the audit log storage handler.

View Source
const EAuditLogStorageNotReadable = "AUDIT_STORAGE_NOT_READABLE"

EAuditLogStorageNotReadable indicates that The configured storage cannot be read from.

View Source
const EAuthBackendError = "AUTH_BACKEND_ERROR"

EAuthBackendError indicates that the ContainerSSH authentication server responded with a non-200 status code. ContainerSSH will retry the authentication for a few times before giving up. This is most likely a bug in your authentication server, please check your logs.

View Source
const EAuthConfigError = "AUTH_CONFIG_ERROR"

EAuthConfigError indicates that the authentication configuration is invalid.

View Source
const EAuthDeprecated = "AUTH_DEPRECATED"

EAuthDeprecated indicates that you are using a deprecated feature and should consider switching.

View Source
const EAuthDeviceFlowRateLimitExceeded = "OAUTH_DEVICE_FLOW_RATE_LIMIT_EXCEEDED"

EAuthDeviceFlowRateLimitExceeded indicates that the device flow rate limit on the OAuth2 server has been exceeded, falling back to authorization code flow.

View Source
const EAuthDisabled = "AUTH_DISABLED"

EAuthDisabled indicates that the authentication method the client tried is disabled.

View Source
const EAuthFailed = "AUTH_FAILED"

EAuthFailed indicates that the user has provided invalid credentials and the authentication is rejected.

View Source
const EAuthGenericTimeout = "GENERIC_TIMEOUT"

EAuthGenericTimeout indicates that the generic oAuth authentication process resulted in a timeout.

View Source
const EAuthGitHubAccessTokenFetchFailed = "GITHUB_ACCESS_TOKEN_FETCH_FAILED"

EAuthGitHubAccessTokenFetchFailed indicates that ContainerSSH failed to fetch the access token after the authentication process finishes.

View Source
const EAuthGitHubDeleteAccessTokenFailed = "GITHUB_DELETE_ACCESS_TOKEN_FAILED" //nolint:gosec

EAuthGitHubDeleteAccessTokenFailed indicates that ContainerSSH failed to delete the GitHub access token when the user logged out.

View Source
const EAuthGitHubDeviceAuthorizationLimit = "GITHUB_DEVICE_AUTHORIZATION_LIMIT"

EAuthGitHubDeviceAuthorizationLimit indicates that the GitHub device authorization count per hour (currently: 50) has been reached. ContainerSSH is falling back to the authorization code flow for this authentication.

View Source
const EAuthGitHubHTTPClientCreateFailed = "GITHUB_HTTP_CLIENT_CREATE_FAILED"

EAuthGitHubHTTPClientCreateFailed indicates that ContainerSSH failed to create an HTTP client for communicating with GitHub. This is likely a bug, please report it.

View Source
const EAuthGitHubNo2FA = "GITHUB_2FA_NOT_ENABLED"

EAuthGitHubNo2FA indicates that the user does not have two factor authentication enabled on GitHub, but it is required in the configuration.

View Source
const EAuthGitHubRequiredScopeNotGranted = "GITHUB_REQUIRED_SCOPE_NOT_GRANTED"

EAuthGitHubRequiredScopeNotGranted indicates that the user did not grand a required scope permission on GitHub.

View Source
const EAuthGitHubStateDoesNotMatch = "GITHUB_STATE_DOES_NOT_MATCH"

EAuthGitHubStateDoesNotMatch indicates that the user provided a return code that contained an invalid state component. This usually means that the user did not copy the code correctly, but may also mean that the code was manipulated.

View Source
const EAuthGitHubUserRequestFailed = "GITHUB_USER_REQUEST_FAILED"

EAuthGitHubUserRequestFailed indicates that fetching the user information from GitHub failed.

View Source
const EAuthGitHubUsernameDoesNotMatch = "GITHUB_USERNAME_DOES_NOT_MATCH"

EAuthGitHubUsernameDoesNotMatch indicates that the user specified a username other than their GitHub login and enforceUsername was set to on.

View Source
const EAuthIncorrectClientCredentials = "OAUTH_INCORRECT_CLIENT_CREDENTIALS"

EAuthIncorrectClientCredentials indicates that ContainerSSH has detected that the OAuth client ID or secret are invalid.

View Source
const EAuthInvalidStatus = "AUTH_INVALID_STATUS"

EAuthInvalidStatus indicates that the authentication server returned an invalid HTTP status code.

View Source
const EAuthKerberosBackendError = "KRB_BACKEND_ERROR"

EAuthKerberosBackendError indicates that there was an error contacting the authorization server

View Source
const EAuthKerberosUsernameDoesNotMatch = "KRB_USERNAME_DOES_NOT_MATCH"

EAuthKerberosUsernameDoesNotMatch indicates that the user tried to a user other than their own and enforceUsername was set to on

View Source
const EAuthKerberosVerificationFailed = "KRB_VERIFY_ERROR"

EAuthKerberosVerificationFailed indicates that there was an error verifying the kerberos ticket sent by the client

View Source
const EAuthOAuth2AccessTokenFetchFailed = "GENERIC_ACCESS_TOKEN_FETCH_FAILED"

EAuthOAuth2AccessTokenFetchFailed indicates that ContainerSSH failed to fetch the access token from the authorization code. This is usually the result of a user entering the incorrect code.

View Source
const EAuthOAuth2AuthorizationPending = "AUTH_OAUTH2_AUTHORIZATION_PENDING"

EAuthOAuth2AuthorizationPending indicates that ContainerSSH is still waiting for the user to enter the device code and authorize ContainerSSH.

View Source
const EAuthOAuth2DeviceCodeRequestFailed = "AUTH_OAUTH2_DEVICE_CODE_REQUEST_FAILED"

EAuthOAuth2DeviceCodeRequestFailed indicates that ContainerSSH failed to fetch a device code for the device authentication flow.

View Source
const EAuthOAuth2HTTPClientCreateFailed = "GENERIC_HTTP_CLIENT_CREATE_FAILED"

EAuthOAuth2HTTPClientCreateFailed indicates that ContainerSSH failed to create an HTTP client for the generic oAuth2 authentication. This is most likely due to a misconfiguration.

View Source
const EAuthOAuth2StateMismatch = "AUTH_OAUTH_STATE_MISMATCH"

EAuthOAuth2StateMismatch indicates that the submitted state variable does not match the expected value. This is usually the case when the user copied the code incorrectly and they simply need to try again.

View Source
const EAuthOAuth2Timeout = "AUTH_OAUTH2_TIMEOUT"

EAuthOAuth2Timeout indicates that authentication via oAuth2 timed out.

View Source
const EAuthOAuth2UnsupportedGrantType = "AUTH_OAUTH_UNSUPPORTED_GRANT_TYPE"

EAuthOAuth2UnsupportedGrantType indicates that the configured grant type is not supported by the oAuth2 server. This indicates that the oAuth2 configuration is incorrect.

View Source
const EAuthOIDCAccessTokenFetchFailed = "OIDC_ACCESS_TOKEN_FETCH_FAILED"

EAuthOIDCAccessTokenFetchFailed indicates that ContainerSSH failed to fetch the access token from the authorization code or device code. This is usually the result of a user entering the incorrect code.

View Source
const EAuthOIDCDeauthorizeFailed = "OIDC_DEAUTHORIZE_FAILED"

EAuthOIDCDeauthorizeFailed indicates that the request for revoking an access token failed.

View Source
const EAuthOIDCDeauthorizeTimeout = "OIDC_DEAUTHORIZE_TIMEOUT"

EAuthOIDCDeauthorizeTimeout indicates that the process to revoke the access token has timed out and the access token was not revoked.

View Source
const EAuthOIDCDiscoveryFailed = "OIDC_DISCOVERY_FAILED"

EAuthOIDCDiscoveryFailed indicates that the request to fetch the OIDC endpoints failed and will be retried. Check the connection to your OIDC server.

View Source
const EAuthOIDCDiscoveryTimeout = "OIDC_DISCOVERY_TIMEOUT"

EAuthOIDCDiscoveryTimeout indicates that there was a timeout while trying to obtain the OIDC endpoints. Check the connection to your OIDC server.

View Source
const EAuthOIDCHTTPClientCreateFailed = "OIDC_HTTP_CLIENT_CREATE_FAILED"

EAuthOIDCHTTPClientCreateFailed indicates that ContainerSSH failed to create an HTTP client for OIDC. This is most likely due to a misconfiguration.

View Source
const EAuthOIDCNoUsername = "OIDC_NO_USERNAME"

EAuthOIDCNoUsername indicates that the OIDC server did not return the configured field to be used for username. Check your ContainerSSH configuration against your OIDC server implementation.

View Source
const EAuthOIDCTimeout = "OIDC_TIMEOUT"

EAuthOIDCTimeout indicates that the OIDC authentication process resulted in a timeout.

View Source
const EAuthOIDCUserInfoFetchFailed = "OIDC_USER_INFO_FETCH_FAILED"

EAuthOIDCUserInfoFetchFailed indicates that a request for fetching the user information with a token failed. Check the connection to your OIDC server and the OIDC server logs for details.

View Source
const EAuthRequestDecodeFailed = "AUTH_SERVER_DECODE_FAILED"

EAuthRequestDecodeFailed indicates that the ContainerSSH Auth library failed to decode a request from ContainerSSH.

View Source
const EAuthUnsupported = "AUTH_UNSUPPORTED"

EAuthUnsupported indicates that the authentication the client requested is not available for the current method.

View Source
const EAuthUsernameDoesNotMatch = "GITHUB_USER_DOES_NOT_MATCH"

EAuthUsernameDoesNotMatch indicates that the username entered in the SSH login and the GitHub login name do not match, but enforceUsername is enabled. This is done as a safety mechanism, otherwise all other components would assume the SSH login is the correct one. It can be disabled and let the configuration server send a custom configuration based on the GITHUB_LOGIN metadata entry.

View Source
const EAuthzFailed = "AUTHZ_FAILED"

EAuthzFailed indicates that the authorization server rejected the user

View Source
const EBackendConfig = "BACKEND_CONFIG_ERROR"

EBackendConfig indicates that there is an error in the backend configuration.

View Source
const ECannotWriteConfigFile = "CORE_CONFIG_CANNOT_WRITE_FILE"

ECannotWriteConfigFile indicates that ContainerSSH cannot update the configuration file with the new host keys and will only use the host key for the current run.

View Source
const EConfigBackendError = "CONFIG_BACKEND_ERROR"

EConfigBackendError indicates that ContainerSSH has received an invalid response from the configuration server or the network connection broke. ContainerSSH will retry fetching the user-specific configuration until the timeout. If this error persists check the connectivity to the configuration server, or the logs of the configuration server itself to find out of there may be a specific error.

View Source
const EConfigInvalidStatus = "CONFIG_INVALID_STATUS_CODE"

EConfigInvalidStatus indicates that ContainerSSH has received a non-200 response code when calling a per-user backend configuration from the configuration server.

View Source
const ECoreConfig = "CORE_CONFIG_ERROR"

ECoreConfig indicates that ContainerSSH encountered an error in the configuration.

View Source
const ECoreHealthCheckFailed = "CORE_HEALTH_CHECK_FAILED"

ECoreHealthCheckFailed indicates that a ContainerSSH health check failed.

View Source
const ECoreHostKeyGenerationFailed = "CORE_HOST_KEY_GENERATION_FAILED"

ECoreHostKeyGenerationFailed indicates that ContainerSSH could not generate host keys and is aborting the run.

View Source
const ECoreNoHostKeys = "CORE_NO_HOST_KEYS"

ECoreNoHostKeys indicates that the configuration does not contain host keys. ContainerSSH will attempt to generate host keys and update the configuration file.

View Source
const EDockerAgentFailed = "DOCKER_AGENT_FAILED"

EDockerAgentFailed indicates that the ContainerSSH docker backend failed to start the ContainerSSH agent or it exitted unexpectedly

View Source
const EDockerCannotSendSignalNoAgent = "DOCKER_EXEC_SIGNAL_FAILED_NO_AGENT"

EDockerCannotSendSignalNoAgent indicates that the ContainerSSH Docker module failed to deliver a signal because ContainerSSH Guest Agent support is disabled.

View Source
const EDockerConfigError = "DOCKER_CONFIG_ERROR"

EDockerConfigError indicates that the ContainerSSH Docker module detected a configuration error. Please check your configuration.

View Source
const EDockerContainerRestarting = "DOCKER_EXIT_CODE_CONTAINER_RESTARTING"

EDockerContainerRestarting indicates that the ContainerSSH Docker module could not fetch the exit code from the program because the container is restarting. This is typically a misconfiguration as ContainerSSH containers should not automatically restart.

View Source
const EDockerContainerStopFailed = "DOCKER_CONTAINER_STOP_FAILED"

EDockerContainerStopFailed indicates that the ContainerSSH Docker module failed to stop the container. This message can be either temporary and retried or permanent. Check the log message for details.

View Source
const EDockerFailedAgentRead = "DOCKER_AGENT_READ_FAILED"

EDockerFailedAgentRead indicates that the ContainerSSH Docker module failed to read from the ContainerSSH agent. This is most likely because the ContainerSSH guest agent is not present in the guest image, but agent support is enabled.

View Source
const EDockerFailedContainerAttach = "DOCKER_CONTAINER_ATTACH_FAILED"

EDockerFailedContainerAttach indicates that the ContainerSSH Docker module has failed to attach to a container in session mode.

View Source
const EDockerFailedContainerCreate = "DOCKER_CONTAINER_CREATE_FAILED"

EDockerFailedContainerCreate indicates that the ContainerSSH Docker module failed to create a container. This may be a temporary and retried or a permanent error message. Check the log message for details.

View Source
const EDockerFailedContainerRemove = "DOCKER_CONTAINER_REMOVE_FAILED"

EDockerFailedContainerRemove indicates that the ContainerSSH Docker module could not remove the container. This message may be temporary and retried or permanent. Check the log message for details.

View Source
const EDockerFailedContainerSignal = "DOCKER_CONTAINER_SIGNAL_FAILED"

EDockerFailedContainerSignal indicates that the ContainerSSH Docker module has failed to send a signal to the container.

View Source
const EDockerFailedContainerStart = "DOCKER_CONTAINER_START_FAILED"

EDockerFailedContainerStart indicates that the ContainerSSH docker module failed to start the container. This message can either be temporary and retried or permanent. Check the log message for details.

View Source
const EDockerFailedExecAttach = "DOCKER_EXEC_ATTACH_FAILED"

EDockerFailedExecAttach indicates that the ContainerSSH Docker module could not attach to the previously-created execution.

View Source
const EDockerFailedExecCreate = "DOCKER_EXEC_CREATE_FAILED"

EDockerFailedExecCreate indicates that the ContainerSSH Docker module has failed to create an execution. This can be temporary and retried or permanent. See the error message for details.

View Source
const EDockerFailedExecSignal = "DOCKER_EXEC_SIGNAL_FAILED"

EDockerFailedExecSignal indicates that the ContainerSSH Docker module failed to deliver a signal.

View Source
const EDockerFailedImageList = "DOCKER_IMAGE_LISTING_FAILED"

EDockerFailedImageList indicates that the ContainerSSH Docker module failed to list the images present in the local Docker daemon. This is used to determine if the image needs to be pulled. This can be because the Docker daemon is not reachable, the certificate is invalid, or there is something else interfering with listing the images.

View Source
const EDockerFailedImagePull = "DOCKER_IMAGE_PULL_FAILED"

EDockerFailedImagePull indicates that the ContainerSSH Docker module failed to pull the specified container image. This can be because of connection issues to the Docker daemon, or because the Docker daemon itself can't pull the image. If you don't intend to have the image pulled you should set the `ImagePullPolicy` to `Never`. See the Docker documentation for details.

View Source
const EDockerFailedInputCloseWriting = "DOCKER_CLOSE_INPUT_FAILED"

EDockerFailedInputCloseWriting indicates that the ContainerSSH Docker module attempted to close the input (stdin) for reading but failed to do so.

View Source
const EDockerFailedInputStream = "DOCKER_STREAM_INPUT_FAILED"

EDockerFailedInputStream indicates that the ContainerSSH Docker module failed to stream stdin to the Docker engine.

View Source
const EDockerFailedOutputCloseWriting = "DOCKER_CLOSE_OUTPUT_FAILED"

EDockerFailedOutputCloseWriting indicates that the ContainerSSH Docker module attempted to close the output (stdout and stderr) for writing but failed to do so.

View Source
const EDockerFailedOutputStream = "DOCKER_STREAM_OUTPUT_FAILED"

EDockerFailedOutputStream indicates that the ContainerSSH Docker module failed to stream stdout and stderr from the Docker engine.

View Source
const EDockerFailedPIDRead = "DOCKER_EXEC_PID_READ_FAILED"

EDockerFailedPIDRead indicates that the ContainerSSH Docker module has failed to read the process ID from the ContainerSSH Guest Agent. This is most likely because the guest image does not contain the guest agent, but guest agent support has been enabled.

View Source
const EDockerFailedResize = "DOCKER_EXEC_RESIZE_FAILED"

EDockerFailedResize indicates that the ContainerSSH Docker module failed to resize the console.

View Source
const EDockerFailedSignalNoPID = "DOCKER_SIGNAL_FAILED_NO_PID"

EDockerFailedSignalNoPID indicates that the ContainerSSH Docker module can't deliver a signal because no PID has been recorded. This is most likely because guest agent support is disabled.

View Source
const EDockerFetchingExitCodeFailed = "DOCKER_EXIT_CODE_FAILED"

EDockerFetchingExitCodeFailed indicates that the ContainerSSH Docker module has failed to fetch the exit code of the program.

View Source
const EDockerForwardingFailed = "DOCKER_FORWARDING_FAILED"

EDockerForwardingFailed indicates that the ContainerSSH docker backend failed to initialize the forwarding backend

View Source
const EDockerGuestAgentDisabled = "DOCKER_GUEST_AGENT_DISABLED"

EDockerGuestAgentDisabled indicates that the ContainerSSH Guest Agent has been disabled, which is strongly discouraged. ContainerSSH requires the guest agent to be installed in the container image to facilitate all SSH features. Disabling the guest agent will result in breaking the expectations a user has towards an SSH server. We provide the ability to disable guest agent support only for cases where the guest agent binary cannot be installed in the image at all.

View Source
const EDockerNegativeExitCode = "DOCKER_EXIT_CODE_NEGATIVE"

EDockerNegativeExitCode indicates that the ContainerSSH Docker module has received a negative exit code from Docker. This should never happen and is most likely a bug.

View Source
const EDockerProgramAlreadyRunning = "DOCKER_PROGRAM_ALREADY_RUNNING"

EDockerProgramAlreadyRunning indicates that the ContainerSSH Docker module can't execute the request because the program is already running. This is a client error.

View Source
const EDockerProgramNotRunning = "DOCKER_PROGRAM_NOT_RUNNING"

EDockerProgramNotRunning indicates that the user requested an action that can only be performed when a program is running, but there is currently no program running.

View Source
const EDockerRunRemoved = "DOCKER_RUN_REMOVED"

EDockerRunRemoved indicates that the configuration contained a dockerrun configuration segment, but this backend was removed since ContainerSSH 0.5. To fix this error please remove the dockerrun segment from your configuration or configuration server response. For details please see https://containerssh.io/deprecations/dockerrun/ .

View Source
const EDockerShuttingDown = "DOCKER_CONTAINER_SHUTTING_DOWN"

EDockerShuttingDown indicates that the ContainerSSH Docker module is shutting down a container.

View Source
const EDockerStillRunning = "DOCKER_EXIT_CODE_STILL_RUNNING"

EDockerStillRunning indicates that the ContainerSSH Docker module could not fetch the program exit code because the program is still running. This error may be temporary and retried or permanent.

View Source
const EDockerSubsystemNotSupported = "DOCKER_SUBSYSTEM_NOT_SUPPORTED"

EDockerSubsystemNotSupported indicates that the ContainerSSH Docker module is not configured to run the requested subsystem.

View Source
const EDockerWriteFileFailed = "DOCKER_FILE_WRITE_FAILED"

EDockerWriteFileFailed indicates that the ContainerSSH docker backend failed to write to a file in the container

View Source
const EHTTPClientRedirectsDisabled = "HTTP_CLIENT_REDIRECTS_DISABLED"

EHTTPClientRedirectsDisabled indicates that ContainerSSH is not following an HTTP redirect sent by the server. Use the allowRedirects option to allow following HTTP redirects or enter the config URL directly.

View Source
const EHTTPFailureConnectionFailed = "HTTP_CLIENT_CONNECTION_FAILED"

EHTTPFailureConnectionFailed indicates that a connection failure on the network level.

View Source
const EHTTPFailureDecodeFailed = "HTTP_CLIENT_DECODE_FAILED"

EHTTPFailureDecodeFailed indicates that decoding the JSON response has failed. This is usually a bug in the webhook server.

View Source
const EHTTPFailureEncodeFailed = "HTTP_CLIENT_ENCODE_FAILED"

EHTTPFailureEncodeFailed indicates that JSON encoding the request failed. This is usually a bug.

View Source
const EHTTPListenFailed = "HTTP_LISTEN_FAILED"

EHTTPListenFailed indicates that ContainerSSH failed to listen on the specified port.

View Source
const EHealthRequestFailed = "HEALTH_REQUEST_FAILED"

EHealthRequestFailed indicates that a request to the health check endpoint failed.

View Source
const EKubeRunRemoved = "KUBERNETES_KUBERUN_REMOVED"

EKubeRunRemoved indicates that the configuration contained a kuberun configuration segment, but this backend was removed since ContainerSSH 0.5. To fix this error please remove the kuberun segment from your configuration or configuration server response. For details please see https://containerssh.io/deprecations/kuberun/ .

View Source
const EKubernetesAgentFailed = "KUBERNETES_AGENT_FAILED"

EKubernetesAgentFailed indicates that the ContainerSSH Kubernetes backend failed to start the ContainerSSH agent or the agent exited unexpectedly

View Source
const EKubernetesCannotSendSignalNoAgent = "KUBERNETES_EXEC_SIGNAL_FAILED_NO_AGENT"

EKubernetesCannotSendSignalNoAgent indicates that the ContainerSSH Kubernetes module failed to deliver a signal because guest agent support is disabled.

View Source
const EKubernetesConfigError = "KUBERNETES_CONFIG_ERROR"

EKubernetesConfigError indicates that the ContainerSSH Kubernetes module detected a configuration error. Please check your configuration.

View Source
const EKubernetesFailedExecSignal = "KUBERNETES_EXEC_SIGNAL_FAILED"

EKubernetesFailedExecSignal indicates that the ContainerSSH Kubernetes module failed to deliver a signal.

View Source
const EKubernetesFailedOutputCloseWriting = "KUBERNETES_CLOSE_OUTPUT_FAILED"

EKubernetesFailedOutputCloseWriting indicates that the ContainerSSH Kubernetes module attempted to close the output (stdout and stderr) for writing but failed to do so.

View Source
const EKubernetesFailedPodCreate = "KUBERNETES_POD_CREATE_FAILED"

EKubernetesFailedPodCreate indicates that the ContainerSSH Kubernetes module failed to create a pod. This may be a temporary and retried or a permanent error message. Check the log message for details.

View Source
const EKubernetesFailedPodRemove = "KUBERNETES_POD_REMOVE_FAILED"

EKubernetesFailedPodRemove indicates that the ContainerSSH Kubernetes module could not remove the pod. This message may be temporary and retried or permanent. Check the log message for details.

View Source
const EKubernetesFailedResize = "KUBERNETES_EXEC_RESIZE_FAILED"

EKubernetesFailedResize indicates that the ContainerSSH Kubernetes module failed to resize the console.

View Source
const EKubernetesFailedSignalExited = "KUBERNETES_SIGNAL_FAILED_EXITED"

EKubernetesFailedSignalExited indicates that the ContainerSSH Kubernetes module can't deliver a signal because the program already exited.

View Source
const EKubernetesFailedSignalNoPID = "KUBERNETES_SIGNAL_FAILED_NO_PID"

EKubernetesFailedSignalNoPID indicates that the ContainerSSH Kubernetes module can't deliver a signal because no PID has been recorded. This is most likely because guest agent support is disabled.

View Source
const EKubernetesFetchingExitCodeFailed = "KUBERNETES_EXIT_CODE_FAILED"

EKubernetesFetchingExitCodeFailed indicates that the ContainerSSH Kubernetes module has failed to fetch the exit code of the program.

View Source
const EKubernetesFileModificationFailed = "KUBERNETES_FILE_WRITE_FAILED"

EKubernetesFileModificationFailed indicates that the ContainerSSH Kubernetes module failed to modify a file on the container

View Source
const EKubernetesForwardingFailed = "KUBERNETES_FORWARDING_FAILED"

EKubernetesForwardingFailed indicates that the ContainerSSH Kubernetes backend failed to initialize the forwarding backend

View Source
const EKubernetesGuestAgentDisabled = "KUBERNETES_GUEST_AGENT_DISABLED"

EKubernetesGuestAgentDisabled indicates that the ContainerSSH Guest Agent has been disabled, which is strongly discouraged. ContainerSSH requires the guest agent to be installed in the pod image to facilitate all SSH features. Disabling the guest agent will result in breaking the expectations a user has towards an SSH server. We provide the ability to disable guest agent support only for cases where the guest agent binary cannot be installed in the image at all.

View Source
const EKubernetesProgramAlreadyRunning = "KUBERNETES_PROGRAM_ALREADY_RUNNING"

EKubernetesProgramAlreadyRunning indicates that the ContainerSSH Kubernetes module can't execute the request because the program is already running. This is a client error.

View Source
const EKubernetesProgramNotRunning = "KUBERNETES_PROGRAM_NOT_RUNNING"

EKubernetesProgramNotRunning indicates that the user requested an action that can only be performed when a program is running, but there is currently no program running.

View Source
const EKubernetesShuttingDown = "KUBERNETES_POD_SHUTTING_DOWN"

EKubernetesShuttingDown indicates that the ContainerSSH Kubernetes module is shutting down a pod.

View Source
const EKubernetesSubsystemNotSupported = "KUBERNETES_SUBSYSTEM_NOT_SUPPORTED"

EKubernetesSubsystemNotSupported indicates that the ContainerSSH Kubernetes module is not configured to run the requested subsystem.

View Source
const ELogFileOpenFailed = "LOG_FILE_OPEN_FAILED"

ELogFileOpenFailed indicates that ContainerSSH failed to open the specified log file.

View Source
const ELogRotateFailed = "LOG_ROTATE_FAILED"

ELogRotateFailed indicates that ContainerSSH cannot rotate the logs as requested because of an underlying error.

View Source
const ELogWriteFailed = "LOG_WRITE_FAILED"

ELogWriteFailed indicates that ContainerSSH cannot write to the specified log file. This usually happens because the underlying filesystem is full or the log is located on a non-local storage (e.g. NFS), which is not supported.

View Source
const ESSHAlreadyRunning = "SSH_ALREADY_RUNNING"

ESSHAlreadyRunning indicates that the SSH server is already running and has been started again. This is a bug, please report it.

View Source
const ESSHAuthFailed = "SSH_AUTH_FAILED"

ESSHAuthFailed indicates that the user has provided invalid credentials.

View Source
const ESSHAuthSuccessful = "SSH_AUTH_SUCCESSFUL"

ESSHAuthSuccessful indicates that the user has provided valid credentials and is now authenticated.

View Source
const ESSHAuthUnavailable = "SSH_AUTH_UNAVAILABLE"

ESSHAuthUnavailable indicates that the user has requested an authentication method that is currently unavailable.

View Source
const ESSHBackendRejected = "SSH_BACKEND_REJECTED_HANDSHAKE"

ESSHBackendRejected indicates that the backend has rejected the connecting user after successful authentication.

View Source
const ESSHDecodeFailed = "SSH_DECODE_FAILED"

ESSHDecodeFailed indicates that ContainerSSH failed to decode something from the user. This is either a bug in ContainerSSH or in the connecting client.

View Source
const ESSHExitCodeFailed = "SSH_EXIT_CODE_FAILED"

ESSHExitCodeFailed indicates that ContainerSSH failed to obtain and send the exit code of the program to the user.

View Source
const ESSHHandshakeFailed = "SSH_HANDSHAKE_FAILED"

ESSHHandshakeFailed indicates that the connecting party failed to establish a secure SSH connection. This is most likely due to invalid credentials or a backend error.

View Source
const ESSHKeepAliveFailed = "SSH_KEEPALIVE_NORESP"

ESSHKeepAliveFailed indicates that ContainerSSH couldn't send or didn't receive a response to a keepalive packet

View Source
const ESSHListenCloseFailed = "SSH_LISTEN_CLOSE_FAILED"

ESSHListenCloseFailed indicates that ContainerSSH failed to close the listen socket.

View Source
const ESSHNotImplemented = "SSH_NOT_IMPLEMENTED"

ESSHNotImplemented indicates that a feature is not implemented in the backend.

View Source
const ESSHProxyBackendCloseFailed = "SSHPROXY_BACKEND_SESSION_CLOSE_FAILED"

ESSHProxyBackendCloseFailed indicates that ContainerSSH could not close the session towards the backend service.

View Source
const ESSHProxyBackendConnectionFailed = "SSHPROXY_BACKEND_FAILED"

ESSHProxyBackendConnectionFailed indicates that the connection to the designated target server failed. If this message is logged on the debug level the connection will be retried. If this message is logged on the error level no more attempts will be made.

View Source
const ESSHProxyBackendForwardFailed = "SSHPROXY_BACKEND_FORWARD_FAILED"

ESSHProxyBackendForwardFailed indicates that ContainerSSH failed to open a forwarding channel on the backend server with the SSH Proxy backend

View Source
const ESSHProxyBackendHandshakeFailed = "SSHPROXY_BACKEND_HANDSHAKE_FAILED"

ESSHProxyBackendHandshakeFailed indicates that the connection could not be established because the backend refused our authentication attempt. This is usually due to misconfigured credentials to the backend.

View Source
const ESSHProxyBackendRequestFailed = "SSHPROXY_BACKEND_REQUEST_FAILED"

ESSHProxyBackendRequestFailed indicates that ContainerSSH failed to send a request to the backing server.

View Source
const ESSHProxyBackendSessionFailed = "SSHPROXY_BACKEND_SESSION_FAILED"

ESSHProxyBackendSessionFailed indicates that ContainerSSH failed to open a session on the backend server with the SSH Proxy backend.

View Source
const ESSHProxyChannelCloseFailed = "SSHPROXY_CHANNEL_CLOSE_FAILED"

ESSHProxyChannelCloseFailed indicates that the ContainerSSH SSH proxy module failed to close the client connection.

View Source
const ESSHProxyDisconnected = "SSHPROXY_DISCONNECTED"

ESSHProxyDisconnected indicates that the operation couldn't complete because the user already disconnected.

View Source
const ESSHProxyInvalidFingerprint = "SSHPROXY_INVALID_FINGERPRINT"

ESSHProxyInvalidFingerprint indicates that ContainerSSH encountered an unexpected host key fingerprint on the backend while trying to proxy the connection. This is either due to a misconfiguration (not all host keys are listed), or a MITM attack between ContainerSSH and the target server.

View Source
const ESSHProxyPayloadUnmarshalFailed = "SSHPROXY_UNMARSHAL_FAILED"

ESSHProxyPayloadUnmarshalFailed indicates that the backend server has sent an invalid payload

View Source
const ESSHProxyProgramAlreadyStarted = "SSHPROXY_PROGRAM_ALREADY_STARTED"

ESSHProxyProgramAlreadyStarted indicates that the client tried to perform an operation after the program has already been started which can only be performed before the program is started.

View Source
const ESSHProxyProgramNotStarted = "SSHPROXY_PROGRAM_NOT_STARTED"

ESSHProxyProgramNotStarted indicates that the client tried to request an action that can only be performed once the program has started before the program started.

View Source
const ESSHProxySessionCloseFailed = "SSHPROXY_SESSION_CLOSE_FAILED"

ESSHProxySessionCloseFailed indicates that ContainerSSH failed to close the session channel on the backend. This may be because of an underlying network issue or a problem with the backend server.

View Source
const ESSHProxyShuttingDown = "SSHPROXY_SHUTTING_DOWN"

ESSHProxyShuttingDown indicates that the action cannot be performed because the connection is shutting down.

View Source
const ESSHProxySignalFailed = "SSHPROXY_BACKEND_SIGNAL_FAILED"

ESSHProxySignalFailed indicates that ContainerSSH failed to deliver a signal on the backend channel. This may be because of an underlying network issue, a policy-based block on the backend server, or a general issue with the backend.

View Source
const ESSHProxyStderrError = "SSHPROXY_STDERR_ERROR"

ESSHProxyStderrError indicates that ContainerSSH failed to copy the stderr from the backing connection. This is usually due to an underlying network problem.

View Source
const ESSHProxyStdinError = "SSHPROXY_STDIN_ERROR"

ESSHProxyStdinError indicates that ContainerSSH failed to copy the stdin to the backing connection. This is usually due to an underlying network problem.

View Source
const ESSHProxyStdoutError = "SSHPROXY_STDOUT_ERROR"

ESSHProxyStdoutError indicates that ContainerSSH failed to copy the stdout from the backing connection. This is usually due to an underlying network problem.

View Source
const ESSHProxyWindowChangeFailed = "SSHPROXY_BACKEND_WINDOW_CHANGE_FAILED"

ESSHProxyWindowChangeFailed indicates that ContainerSSH failed to change the window size on the backend channel. This may be because of an underlying network issue, a policy-based rejection from the backend server, or a bug in the backend server.

View Source
const ESSHProxyX11RequestFailed = "SSHPROXY_X11_FAILED"
View Source
const ESSHReplyFailed = "SSH_REPLY_SEND_FAILED"

ESSHReplyFailed indicates that ContainerSSH couldn't send the reply to a request to the user. This is usually the case if the user suddenly disconnects.

View Source
const ESSHSOReuseFailed = "SSH_SOCKET_REUSE_FAILED"

ESSHSOReuseFailed indicates that ContainerSSH failed to set the socket to reuse. This may cause ContainerSSH to fail on a restart.

View Source
const ESSHStartFailed = "SSH_START_FAILED"

ESSHStartFailed indicates that ContainerSSH failed to start the SSH service. This is usually because of invalid configuration.

View Source
const ESSHUnsupportedChannelType = "SSH_UNSUPPORTED_CHANNEL_TYPE"

ESSHUnsupportedChannelType indicates that the user requested a channel type that ContainerSSH doesn't support.

View Source
const ESSHUnsupportedGlobalRequest = "SSH_UNSUPPORTED_GLOBAL_REQUEST"

ESSHUnsupportedGlobalRequest indicates that the user's client has sent a global request ContainerSSH does not support. This is nothing to worry about.

View Source
const ESecurityEnvRejected = "SECURITY_ENV_REJECTED"

ESecurityEnvRejected indicates that ContainerSSH rejected setting the environment variable because it does not pass the security settings.

View Source
const ESecurityExecRejected = "SECURITY_EXEC_REJECTED"

ESecurityExecRejected indicates that a program execution request has been rejected because it doesn't conform to the security settings.

View Source
const ESecurityFailedSetEnv = "SECURITY_EXEC_FAILED_SETENV"

ESecurityFailedSetEnv indicates that a program execution failed in conjunction with the forceCommand option because ContainerSSH could not set the `SSH_ORIGINAL_COMMAND` environment variable on the backend.

View Source
const ESecurityForwardingRejected = "SECURITY_FORWARDING_REJECTED"
View Source
const ESecurityMaxSessions = "SECURITY_MAX_SESSIONS"

ESecurityMaxSessions indicates that the client has reached the maximum number of configured sessions, the new session request is therefore rejected.

View Source
const ESecurityReverseForwardingRejected = "SECURITY_REVERSE_FORWARDING_REJECTED"
View Source
const ESecurityShellRejected = "SECURITY_SHELL_REJECTED"

ESecurityShellRejected indicates that ContainerSSH rejected launching a shell due to the security settings.

View Source
const ESecuritySignalRejected = "SECURITY_SIGNAL_REJECTED"

ESecuritySignalRejected indicates that ContainerSSH rejected delivering a signal because it does not pass the security settings.

View Source
const ESecuritySubsystemRejected = "SECURITY_SUBSYSTEM_REJECTED"

ESecuritySubsystemRejected indicates that ContainerSSH rejected the subsystem because it does pass the security settings.

View Source
const ESecurityTTYRejected = "SECURITY_TTY_REJECTED"

ESecurityTTYRejected indicates that ContainerSSH rejected the pseudoterminal request because of the security settings.

View Source
const ESecurityX11ForwardingRejected = "SECURITY_X11_FORWARDING_REJECTED"
View Source
const EServiceCrashed = "SERVICE_CRASHED"

EServiceCrashed indicates that a ContainerSSH has stopped improperly.

View Source
const EUnknownError = "UNKNOWN_ERROR"

EUnknownError indicates that the error cannot be identified. If you see this in a log that is a bug and should be reported.

View Source
const MAgentRemoteError = "AGENTPROTO_REMOTE_ERROR"

MAgentRemoteError indicates that the ContainerSSH Agent integration received an error message from the remote agent

View Source
const MAuditLogMultipartPartUploadComplete = "AUDIT_S3_MULTIPART_PART_UPLOAD_COMPLETE"

MAuditLogMultipartPartUploadComplete indicates that ContainerSSH completed the upload of an audit log part to the S3-compatible object storage.

View Source
const MAuditLogMultipartPartUploading = "AUDIT_S3_MULTIPART_PART_UPLOADING"

MAuditLogMultipartPartUploading indicates that ContainerSSH is uploading a part of an audit log to the S3-compatible object storage.

View Source
const MAuditLogMultipartUpload = "AUDIT_S3_MULTIPART_UPLOAD"

MAuditLogMultipartUpload indicates that ContainerSSH is starting a new S3 multipart upload.

View Source
const MAuditLogMultipartUploadFinalizing = "AUDIT_S3_MULTIPART_UPLOAD_FINALIZING"

MAuditLogMultipartUploadFinalizing indicates that ContainerSSH has uploaded all audit log parts and is now finalizing the multipart upload.

View Source
const MAuditLogRecovering = "AUDIT_S3_RECOVERING"

MAuditLogRecovering indicates that ContainerSSH found a previously aborted multipart upload locally and is now attempting to recover the upload.

View Source
const MAuditLogSingleUpload = "AUDIT_S3_SINGLE_UPLOAD"

MAuditLogSingleUpload indicates that ContainerSSH is uploading the full audit log in a single upload to the S3-compatible object storage. This happens when the audit log size is below the minimum size for a multi-part upload.

View Source
const MAuditLogSingleUploadComplete = "AUDIT_S3_SINGLE_UPLOAD_COMPLETE"

MAuditLogSingleUploadComplete indicates that ContainerSSH successfully uploaded the audit log as a single upload.

View Source
const MAuditLogSingleUploadFailed = "AUDIT_S3_SINGLE_UPLOAD_FAILED"

MAuditLogSingleUploadFailed indicates that ContainerSSH failed to upload the audit log as a single upload.

View Source
const MAuth = "AUTH"

MAuth indicates that ContainerSSH is trying to contact the authentication backend to verify the user credentials.

View Source
const MAuthOAuth2Available = "AUTH_OAUTH2_AVAILABLE"

MAuthOAuth2Available indicates that the OAuth2 redirect server is now running at the specified address.

View Source
const MAuthServerAvailable = "AUTH_AVAILABLE"

MAuthServerAvailable indicates that the ContainerSSH authentication server is now available.

View Source
const MAuthSuccessful = "AUTH_SUCCESSFUL"

MAuthSuccessful indicates that the user has provided the correct credentials and the authentication is accepted.

View Source
const MConfigRequest = "CONFIG_REQUEST"

MConfigRequest indicates that ContainerSSH is sending a quest to the configuration server to obtain a per-user backend configuration.

View Source
const MConfigServerAvailable = "CONFIG_SERVER_AVAILABLE"

MConfigServerAvailable indicates that the ContainerSSH configuration server is now available at the specified address.

View Source
const MConfigSuccess = "CONFIG_RESPONSE"

MConfigSuccess indicates that ContainerSSH has received a per-user backend configuration from the configuration server.

View Source
const MCoreConfigFile = "CORE_CONFIG_FILE"

MCoreConfigFile indicates that ContainerSSH is reading the configuration file.

View Source
const MCoreHealthCheckSuccessful = "CORE_HEALTH_CHECK_SUCCESSFUL"

MCoreHealthCheckSuccessful indicates that The health check was successful.

View Source
const MDockerAgentLog = "DOCKER_AGENT_LOG"

MDockerAgentLog indicates a log message from the ContainerSSH agent running within a user container. Note that the agent is normally run with the users credentials and as such all log output is to be considered UNTRUSTED and should only be used for debugging purposes

View Source
const MDockerContainerAttach = "DOCKER_CONTAINER_ATTACH"

MDockerContainerAttach indicates that the ContainerSSH Docker module is attaching to a container in session mode.

View Source
const MDockerContainerCreate = "DOCKER_CONTAINER_CREATE"

MDockerContainerCreate indicates that the ContainerSSH Docker module is creating a container.

View Source
const MDockerContainerRemove = "DOCKER_CONTAINER_REMOVE"

MDockerContainerRemove indicates that the ContainerSSH Docker module os removing the container.

View Source
const MDockerContainerRemoveSuccessful = "DOCKER_CONTAINER_REMOVE_SUCCESSFUL"

MDockerContainerRemoveSuccessful indicates that the ContainerSSH Docker module has successfully removed the container.

View Source
const MDockerContainerSignal = "DOCKER_CONTAINER_SIGNAL"

MDockerContainerSignal indicates that the ContainerSSH Docker module is sending a signal to the container.

View Source
const MDockerContainerStart = "DOCKER_CONTAINER_START"

MDockerContainerStart indicates that the ContainerSSH Docker module is starting the previously-created container.

View Source
const MDockerContainerStop = "DOCKER_CONTAINER_STOP"

MDockerContainerStop indicates that the ContainerSSH Docker module is stopping the container.

View Source
const MDockerExec = "DOCKER_EXEC"

MDockerExec indicates that the ContainerSSH Docker module is creating an execution. This may be in connection mode, or it may be the module internally using the exec mechanism to deliver a payload into the container.

View Source
const MDockerExecAttach = "DOCKER_EXEC_ATTACH"

MDockerExecAttach indicates that the ContainerSSH Docker module is attaching to the previously-created execution.

View Source
const MDockerExecCreate = "DOCKER_EXEC_CREATE"

MDockerExecCreate indicates that the ContainerSSH Docker module is creating an execution.

View Source
const MDockerExecSignal = "DOCKER_EXEC_SIGNAL"

MDockerExecSignal indicates that the ContainerSSH Docker module is delivering a signal in container mode.

View Source
const MDockerExecSignalSuccessful = "DOCKER_EXEC_SIGNAL_SUCCESSFUL"

MDockerExecSignalSuccessful indicates that the ContainerSSH Docker module successfully delivered the requested signal.

View Source
const MDockerExitCode = "DOCKER_EXIT_CODE"

MDockerExitCode indicates that the ContainerSSH Docker module is fetching the exit code from the program.

View Source
const MDockerFileWrite = "DOCKER_FILE_WRITE"

EDockerFileWrite indicates that the ContainerSSH docker backend wrote a file inside the container

View Source
const MDockerImageList = "DOCKER_IMAGE_LISTING"

MDockerImageList indicates that the ContainerSSH Docker module is listing the locally present container images to determine if the specified container image needs to be pulled.

View Source
const MDockerImagePull = "DOCKER_IMAGE_PULL"

MDockerImagePull indicates that the ContainerSSH Docker module is pulling the container image.

View Source
const MDockerImagePullNeeded = "DOCKER_IMAGE_PULL_NEEDED_CHECKING"

MDockerImagePullNeeded indicates that the ContainerSSH Docker module is checking if an image pull is needed.

View Source
const MDockerResizing = "DOCKER_EXEC_RESIZE"

MDockerResizing indicates that the ContainerSSH Docker module is resizing the console.

View Source
const MHTTPClientRedirect = "HTTP_CLIENT_REDIRECT"

MHTTPClientRedirect indicates that the server responded with an HTTP redirect.

View Source
const MHTTPClientRequest = "HTTP_CLIENT_REQUEST"

MHTTPClientRequest indicates that an HTTP request is being sent from ContainerSSH.

View Source
const MHTTPClientResponse = "HTTP_CLIENT_RESPONSE"

MHTTPClientResponse indicates that ContainerSSH received an HTTP response from a server.

View Source
const MHTTPServerEncodeFailed = "HTTP_SERVER_ENCODE_FAILED"

MHTTPServerEncodeFailed indicates that the HTTP server failed to encode the response object. This can happen if the incorrect response object was returned in a webhook.

View Source
const MHTTPServerResponseWriteFailed = "HTTP_SERVER_RESPONSE_WRITE_FAILED"

MHTTPServerResponseWriteFailed indicates that the HTTP server failed to write the response.

View Source
const MHealthServiceAvailable = "HEALTH_AVAILABLE"

MHealthServiceAvailable indicates that the health check service is now online and ready for service.

View Source
const MKubernetesAgentLog = "KUBERNETES_AGENT_LOG"

MKubernetesAgentLog indicates a log message from the ContainerSSH agent running within a user container. Note that the agent is normally run with the users credentials and as such all log output is to be considered UNTRUSTED and should only be used for debugging purposes

View Source
const MKubernetesExec = "KUBERNETES_EXEC"

MKubernetesExec indicates that the ContainerSSH Kubernetes module is creating an execution. This may be in connection mode, or it may be the module internally using the exec mechanism to deliver a payload into the pod.

View Source
const MKubernetesExecSignal = "KUBERNETES_EXEC_SIGNAL"

MKubernetesExecSignal indicates that the ContainerSSH Kubernetes module is delivering a signal.

View Source
const MKubernetesExecSignalSuccessful = "KUBERNETES_EXEC_SIGNAL_SUCCESSFUL"

MKubernetesExecSignalSuccessful indicates that the ContainerSSH Kubernetes module successfully delivered the requested signal.

View Source
const MKubernetesFileModification = "KUBERNETES_FILE_WRITE"

MKubernetesFileModification indicates that the ContainerSSH Kubernetes module is modifying a file on the container based on connection metadata

View Source
const MKubernetesPIDReceived = "KUBERNETES_PID_RECEIVED"

MKubernetesPIDReceived indicates that the ContainerSSH Kubernetes module has received a PID from the Kubernetes guest agent.

View Source
const MKubernetesPodAttach = "KUBERNETES_POD_ATTACH"

MKubernetesPodAttach indicates that the ContainerSSH Kubernetes module is attaching to a pod in session mode.

View Source
const MKubernetesPodCreate = "KUBERNETES_POD_CREATE"

MKubernetesPodCreate indicates that the ContainerSSH Kubernetes module is creating a pod.

View Source
const MKubernetesPodRemove = "KUBERNETES_POD_REMOVE"

MKubernetesPodRemove indicates that the ContainerSSH Kubernetes module is removing a pod.

View Source
const MKubernetesPodRemoveSuccessful = "KUBERNETES_POD_REMOVE_SUCCESSFUL"

MKubernetesPodRemoveSuccessful indicates that the ContainerSSH Kubernetes module has successfully removed the pod.

View Source
const MKubernetesPodWait = "KUBERNETES_POD_WAIT"

MKubernetesPodWait indicates that the ContainerSSH Kubernetes module is waiting for the pod to come up.

View Source
const MKubernetesPodWaitFailed = "KUBERNETES_POD_WAIT_FAILED"

MKubernetesPodWaitFailed indicates that the ContainerSSH Kubernetes module failed to wait for the pod to come up. Check the error message for details.

View Source
const MKubernetesResizing = "KUBERNETES_EXEC_RESIZE"

MKubernetesResizing indicates that the ContainerSSH Kubernetes module is resizing the terminal window.

View Source
const MKubernetesUsernameTooLong = "KUBERNETES_USERNAME_TOO_LONG"

MKubernetesUsernameTooLong indicates that the users username is too long to be provided as a label in the k8s pod. The containerssh_username label is unavailable on that users pod.

View Source
const MMetricsServiceAvailable = "METRICS_AVAILABLE"

MMetricsServiceAvailable indicates that the metrics service is now online and ready for service.

View Source
const MSSHChannelRequest = "SSH_CHANNEL_REQUEST"

MSSHChannelRequest indicates that the user has sent a new channel-specific request.

View Source
const MSSHChannelRequestFailed = "SSH_CHANNEL_REQUEST_FAILED"

MSSHChannelRequestFailed indicates that ContainerSSH couldn't fulfil the channel-specific request.

View Source
const MSSHChannelRequestSuccessful = "SSH_CHANNEL_REQUEST_SUCCESSFUL"

MSSHChannelRequestSuccessful indicates that ContainerSSH has successfully processed the channel-specific request.

View Source
const MSSHConnected = "SSH_CONNECTED"

MSSHConnected indicates that a user has connected over SSH.

View Source
const MSSHDisconnected = "SSH_DISCONNECTED"

MSSHDisconnected indicates that an SSH connection has been severed.

View Source
const MSSHExit = "SSH_EXIT"

MSSHExit indicates that ContainerSSH is sending the exit code of the program to the user.

View Source
const MSSHExitSignal = "SSH_EXIT_SIGNAL"

MSSHExitSignal indicates that ContainerSSH is sending the exit signal from an abnormally exited program to the user.

View Source
const MSSHGlobalRequest = "SSH_GLOBAL_REQUEST"
View Source
const MSSHGlobalRequestFailed = "SSH_GLOBAL_REQUEST_FAILED"
View Source
const MSSHGlobalRequestSuccessful = "SSH_GLOBAL_REQUEST_SUCCESSFUL"
View Source
const MSSHHandshakeSuccessful = "SSH_HANDSHAKE_SUCCESSFUL"

MSSHHandshakeSuccessful indicates that the user has provided valid credentials and has now established an SSH connection.

View Source
const MSSHNewChannel = "SSH_NEW_CHANNEL"

MSSHNewChannel indicates that a user has established a new SSH channel. (Not connection!)

View Source
const MSSHNewChannelRejected = "SSH_NEW_CHANNEL_REJECTED"

MSSHNewChannelRejected indicates that the user has requested a new channel to be opened, but was rejected.

View Source
const MSSHProxyBackendDisconnectFailed = "SSHPROXY_BACKEND_DISCONNECT_FAILED"

MSSHProxyBackendDisconnectFailed indicates that the SSH proxy backend failed to disconnect from the backing server.

View Source
const MSSHProxyBackendDisconnected = "SSHPROXY_BACKEND_DISCONNECTED"

MSSHProxyBackendDisconnected indicates that the SSH proxy backend disconnected from the backing server.

View Source
const MSSHProxyBackendDisconnecting = "SSHPROXY_BACKEND_DISCONNECTING"

MSSHProxyBackendDisconnecting indicates that ContainerSSH is disconnecting from the backing server.

View Source
const MSSHProxyBackendSessionClosed = "SSHPROXY_BACKEND_SESSION_CLOSED"

MSSHProxyBackendSessionClosed indicates that the backend closed the SSH session towards ContainerSSH.

View Source
const MSSHProxyBackendSessionClosing = "SSHPROXY_BACKEND_SESSION_CLOSING"

MSSHProxyBackendSessionClosing indicates that ContainerSSH is closing the session towards the backend service.

View Source
const MSSHProxyConnecting = "SSHPROXY_CONNECTING"

MSSHProxyConnecting indicates that ContainerSSH is connecting the backing server.

View Source
const MSSHProxyDisconnected = "SSHPROXY_DISCONNECTED"

MSSHProxyDisconnected indicates that the ContainerSSH SSH proxy received a disconnect from the client.

View Source
const MSSHProxyExitSignal = "SSHPROXY_EXIT_SIGNAL"

MSSHProxyExitSignal indicates that the ContainerSSH SSH proxy backend has received an exit-signal message.

View Source
const MSSHProxyExitSignalDecodeFailed = "SSHPROXY_EXIT_SIGNAL_DECODE_FAILED"

MSSHProxyExitSignalDecodeFailed indicates that the ContainerSSH SSH proxy backend has received an exit-signal message, but failed to decode the message. This is most likely due to a bug in the backend SSH server.

View Source
const MSSHProxyExitStatus = "SSHPROXY_EXIT_STATUS"

MSSHProxyExitStatus indicates that the ContainerSSH SSH proxy backend has received an exit-status message.

View Source
const MSSHProxyExitStatusDecodeFailed = "SSHPROXY_EXIT_STATUS_DECODE_FAILED"

MSSHProxyExitStatusDecodeFailed indicates that the ContainerSSH SSH proxy backend has received an exit-status message, but failed to decode the message. This is most likely due to a bug in the backend SSH server.

View Source
const MSSHProxyForward = "SSHPROXY_TCP_FORWARD"

MSSHProxyForward indicates that the ContainerSSH proxy backend is opening a new proxy connection

View Source
const MSSHProxySession = "SSHPROXY_SESSION"

MSSHProxySession indicates that the ContainerSSH SSH proxy backend is opening a new session.

View Source
const MSSHProxySessionClose = "SSHPROXY_SESSION_CLOSE"

MSSHProxySessionClose indicates that the ContainerSSH SSH proxy backend is closing a session.

View Source
const MSSHProxySessionClosed = "SSHPROXY_SESSION_CLOSED"

MSSHProxySessionClosed indicates that the ContainerSSH SSH proxy backend has closed a session.

View Source
const MSSHProxySessionOpen = "SSHPROXY_SESSION_OPEN"

MSSHProxySessionOpen indicates that the ContainerSSH SSH proxy backend has opened a new session.

View Source
const MSSHProxyShutdown = "SSHPROXY_SHUTDOWN"

MSSHProxyShutdown indicates that ContainerSSH is shutting down and is sending TERM and KILL signals on the backend connection.

View Source
const MSSHProxyStderrComplete = "SSHPROXY_STDERR_COMPLETE"

MSSHProxyStderrComplete indicates that the SSH proxy backend finished streaming the standard error to the client.

View Source
const MSSHProxyStdoutComplete = "SSHPROXY_STDOUT_COMPLETE"

MSSHProxyStdoutComplete indicates that the SSH proxy backend finished streaming the standard output to the client.

View Source
const MSSHServiceAvailable = "SSH_AVAILABLE"

MSSHServiceAvailable indicates that the SSH service is now online and ready for service.

View Source
const MSecurityForcingCommand = "SECURITY_EXEC_FORCING_COMMAND"

MSecurityForcingCommand indicates that ContainerSSH is replacing the command passed from the client (if any) to the specified command and is setting the `SSH_ORIGINAL_COMMAND` environment variable.

View Source
const MServiceRunning = "SERVICE_RUNNING"

MServiceRunning indicates that a ContainerSSH service is now running.

View Source
const MServiceStarting = "SERVICE_STARTING"

MServiceStarting indicates that ContainerSSH is starting a component service.

View Source
const MServiceStopped = "SERVICE_STOPPED"

MServiceStopped indicates that a ContainerSSH service has stopped.

View Source
const MServiceStopping = "SERVICE_STOPPING"

MServiceStopping indicates that a ContainerSSH service is now stopping.

View Source
const MServicesRunning = "SERVICE_POOL_RUNNING"

MServicesRunning indicates that all ContainerSSH services are now running.

View Source
const MServicesStarting = "SERVICE_POOL_STARTING"

MServicesStarting indicates that all ContainerSSH services are starting.

View Source
const MServicesStopped = "SERVICE_POOL_STOPPED"

MServicesStopped indicates that ContainerSSH has stopped all services.

View Source
const MServicesStopping = "SERVICE_POOL_STOPPING"

MServicesStopping indicates that ContainerSSH is stopping all services.

View Source
const MTest = "TEST"

MTest indicates that this message should only be seen in unit and component tests, never in production.

View Source
const WConfigAuthURLDeprecated = "CONFIG_AUTH_URL_DEPRECATED"

WConfigAuthURLDeprecated indicates that the auth.url option in the authentication webhook configuration. This option is deprecated since ContainerSSH 0.5. See https://containerssh.io/deprecations/authurl for details.

Variables

This section is empty.

Functions

This section is empty.

Types

type LabelName

type LabelName string

LabelName is a name for a Message label. Can only contain A-Z, a-z, 0-9, -, _.

type LabelValue

type LabelValue interface{}

LabelValue is a string, int, bool, or float.

type Labels

type Labels map[LabelName]LabelValue

Labels is a map linking together a label name with a label value.

type Message

type Message interface {
	// Error is the Go-compatible error message.
	Error() string
	// String returns the string representation of this message.
	String() string

	// Code is a unique code identifying log messages.
	Code() string
	// UserMessage is a message that is safe to print/send to the end user.
	UserMessage() string
	// Explanation is the text explanation for the system administrator.
	Explanation() string
	// Labels are a set of extra labels for the message containing information.
	Labels() Labels
	// Label adds a label to the message.
	Label(name LabelName, value LabelValue) Message
}

Message is a message structure for error reporting in ContainerSSH. The actual implementations may differ, but we provide the UserMessage method to construct a message that conforms to this interface.

func NewMessage

func NewMessage(Code string, Explanation string, Args ...interface{}) Message

NewMessage creates an internal error with only the explanation for the administrator inserted.

  • Code is an error code allowing an administrator to identify the error that happened.
  • Explanation is the explanation string to the system administrator. This is an fmt.Sprintf-compatible string
  • Args are the arguments to Explanation to create a formatted message. It is recommended that these arguments also be added as labels to allow system administrators to index the error properly.

func UserMessage

func UserMessage(Code string, UserMessage string, Explanation string, Args ...interface{}) Message

UserMessage constructs a Message.

  • Code is an error code allowing an administrator to identify the error that happened.
  • UserMessage is the message that can be printed to the user if needed.
  • Explanation is the explanation string to the system administrator. This is an fmt.Sprintf-compatible string
  • Args are the arguments to Explanation to create a formatted message. It is recommended that these arguments also be added as labels to allow system administrators to index the error properly.

type WrappingMessage

type WrappingMessage interface {
	Message
	// Unwrap returns the original error wrapped in this message.
	Unwrap() error
}

WrappingMessage is a message that wraps a different error.

func Wrap

func Wrap(Cause error, Code string, Explanation string, Args ...interface{}) WrappingMessage

Wrap creates a wrapped error with a specific Code and Explanation string. The wrapping method will automatically

	append the error message in brackets.

  - Cause is the original error that can be accessed with the Unwrap method.
  - Code is an error code allowing an administrator to identify the error that happened.
  - Explanation is the explanation string to the system administrator. This is an fmt.Sprintf-compatible string
  - Args are the arguments to Explanation to create a formatted message. It is recommended that these arguments also
    be added as labels to allow system administrators to index the error properly.

func WrapUser

func WrapUser(Cause error, Code string, User string, Explanation string, Args ...interface{}) WrappingMessage

WrapUser creates a Message wrapping an error with a user-facing message.

  • Cause is the original error that can be accessed with the Unwrap method.
  • Code is an error code allowing an administrator to identify the error that happened.
  • UserMessage is the message that can be printed to the user if needed.
  • Explanation is the explanation string to the system administrator. This is an fmt.Sprintf-compatible string
  • Args are the arguments to Explanation to create a formatted message. It is recommended that these arguments also be added as labels to allow system administrators to index the error properly.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL